]> granicus.if.org Git - python/log
python
24 years agomwh: [ Patch #103228 ] traceback.py nit.
Guido van Rossum [Sat, 13 Jan 2001 22:14:31 +0000 (22:14 +0000)]
mwh: [ Patch #103228 ] traceback.py nit.

When the exception has no message, don't insert a colon after the
exception name.

24 years agoSF Patch #103227 by mwh: make code.py appreciate softspace
Guido van Rossum [Sat, 13 Jan 2001 22:10:41 +0000 (22:10 +0000)]
SF Patch #103227 by mwh: make code.py appreciate softspace

24 years agoNeil discovered a bad DECREF on warnoptions, that caused repeated
Guido van Rossum [Sat, 13 Jan 2001 22:06:05 +0000 (22:06 +0000)]
Neil discovered a bad DECREF on warnoptions, that caused repeated
re-initializing Python (Py_Finalize() followed by Py_Initialize()) to
blow up quickly.  With the DECREF removed I can't get it to fail any
more.  (Except it still leaks, but that's probably a separate issue.)

24 years agoNo text file relying on significant trailing whitespace is robust under
Tim Peters [Sat, 13 Jan 2001 19:16:21 +0000 (19:16 +0000)]
No text file relying on significant trailing whitespace is robust under
modification.  Removed the need for that.

24 years agoSF Patch #103225 by Ping: httplib: smallest Python patch ever
Guido van Rossum [Sat, 13 Jan 2001 16:55:33 +0000 (16:55 +0000)]
SF Patch #103225 by Ping: httplib: smallest Python patch ever

  The ASCII-art diagram at the top of httplib contains a backslash at
  the end of a line, which causes Python to remove the newline. This
  one-character patch adds a space after the backslash so it will
  appear at the end of the line in the docstring as intended.

24 years agoMention new curses.panel module
Andrew M. Kuchling [Sat, 13 Jan 2001 14:53:34 +0000 (14:53 +0000)]
Mention new curses.panel module

24 years agoDocument extensions to .pth files.
Martin v. Löwis [Sat, 13 Jan 2001 09:54:41 +0000 (09:54 +0000)]
Document extensions to .pth files.

24 years agoFix stupidity.
Tim Peters [Sat, 13 Jan 2001 03:45:59 +0000 (03:45 +0000)]
Fix stupidity.

24 years agoGuido found a brand new race in tempfile on Linux, due to Linux changing
Tim Peters [Sat, 13 Jan 2001 03:04:02 +0000 (03:04 +0000)]
Guido found a brand new race in tempfile on Linux, due to Linux changing
pid across threads (but in that case, it's still the same process, and so
still sharing the "template" cache in tempfile.py).  Repaired that, and
added a new std test.
On Linux, someone please run that standalone with more files and/or more
threads; e.g.,

    python lib/test/test_threadedtempfile.py -f 1000 -t 10

to run with 10 threads each creating (and deleting) 1000 temp files.

24 years agoFixed Carbon command-dot handling. There is still a problem, though, and you may...
Jack Jansen [Fri, 12 Jan 2001 23:42:28 +0000 (23:42 +0000)]
Fixed Carbon command-dot handling. There is still a problem, though, and you may have to hit it repeatedly.

24 years agoGot rid of ifdefs to enable MacTCP GUSI support, Open Transport always works fine...
Jack Jansen [Fri, 12 Jan 2001 23:41:46 +0000 (23:41 +0000)]
Got rid of ifdefs to enable MacTCP GUSI support, Open Transport always works fine nowadays.

24 years agoThe interruptRoutine attribute is gone under Carbon. Luckily it appears that nothing...
Jack Jansen [Fri, 12 Jan 2001 23:39:59 +0000 (23:39 +0000)]
The interruptRoutine attribute is gone under Carbon. Luckily it appears that nothing used it.

24 years agoSetpopupData and GetPopupData are gone under Carbon, use {Get,Set}PopupMenu{Handle...
Jack Jansen [Fri, 12 Jan 2001 23:39:00 +0000 (23:39 +0000)]
SetpopupData and GetPopupData are gone under Carbon, use {Get,Set}PopupMenu{Handle,ID} in stead.
The UserPane routines appear to be fixed in the current Universal Headers, so they're re-enabled.

24 years agoxstat() will never be implemented under Carbon. Fortunately it also doesn't appear...
Jack Jansen [Fri, 12 Jan 2001 23:37:14 +0000 (23:37 +0000)]
xstat() will never be implemented under Carbon. Fortunately it also doesn't appear to be used anywhere.

24 years agoAlways use c2pstrcpy in stead of c2pstr, not only when compiling for carbon.
Jack Jansen [Fri, 12 Jan 2001 23:36:13 +0000 (23:36 +0000)]
Always use c2pstrcpy in stead of c2pstr, not only when compiling for carbon.

24 years agoAdded note that this module was added in Python 2.1.
Fred Drake [Fri, 12 Jan 2001 22:57:32 +0000 (22:57 +0000)]
Added note that this module was added in Python 2.1.

24 years agoUpdate the docstring for apply() so that "args" is marked as optional
Fred Drake [Fri, 12 Jan 2001 17:05:05 +0000 (17:05 +0000)]
Update the docstring for apply() so that "args" is marked as optional
(since it is).

24 years agoNews about from...import.
Guido van Rossum [Fri, 12 Jan 2001 16:25:08 +0000 (16:25 +0000)]
News about from...import.

24 years agoTwo changes to from...import:
Guido van Rossum [Fri, 12 Jan 2001 16:24:03 +0000 (16:24 +0000)]
Two changes to from...import:

1) "from M import X" now works even if M is not a real module; it's
   basically a getattr() operation with AttributeError exceptions
   changed into ImportError.

2) "from M import *" now looks for M.__all__ to decide which names to
   import; if M.__all__ doesn't exist, it uses M.__dict__.keys() but
   filters out names starting with '_' as before.  Whether or not
   __all__ exists, there's no restriction on the type of M.

24 years ago(Modified) patch by Ping - SF Patch #102681.
Guido van Rossum [Fri, 12 Jan 2001 16:03:05 +0000 (16:03 +0000)]
(Modified) patch by Ping - SF Patch #102681.

- Make error messages from issubclass() and isinstance() a bit more
  descriptive (Ping, modified by Guido)

- Couple of tiny fixes to other docstrings (Ping)

- Get rid of trailing whitespace (Guido)

24 years agoChange LONG_BIT error warning to mention glibc, too, since this is really
Andrew M. Kuchling [Fri, 12 Jan 2001 15:06:28 +0000 (15:06 +0000)]
Change LONG_BIT error warning to mention glibc, too, since this is really
    a glibc, not a gcc, problem.

24 years agoA variant of SF patch 103028 (Make tempfile.mktemp threadsafe).
Tim Peters [Fri, 12 Jan 2001 10:02:46 +0000 (10:02 +0000)]
A variant of SF patch 103028 (Make tempfile.mktemp threadsafe).
Tested on Windows.  Should be tested on Linux.  Should also be
tested on some platform without threads (I simulated that by
making the "import thread" fail, but that's not the same as
actually doing it!).

24 years agoWhen compiling for GUSI and Carbon disable te "keep open on unseen output", for the...
Jack Jansen [Thu, 11 Jan 2001 23:04:32 +0000 (23:04 +0000)]
When compiling for GUSI and Carbon disable te "keep open on unseen output", for the time being.

24 years agoDisabled a few other routines that are available in CarbonLib.
Jack Jansen [Thu, 11 Jan 2001 23:03:56 +0000 (23:03 +0000)]
Disabled a few other routines that are available in CarbonLib.

24 years agoAdded GUSI-Carbon targets (both threading and nonthreading), and they work!! YEAH!!!
Jack Jansen [Thu, 11 Jan 2001 23:03:20 +0000 (23:03 +0000)]
Added GUSI-Carbon targets (both threading and nonthreading), and they work!! YEAH!!!

24 years agoUpdated descriptions to incorporate additional information from Tim Peters.
Fred Drake [Thu, 11 Jan 2001 22:49:49 +0000 (22:49 +0000)]
Updated descriptions to incorporate additional information from Tim Peters.
This mostly closes SF bug #128251.

24 years agoExport mmap's entry point under Windows (thanks, MarkH & Guido!).
Tim Peters [Thu, 11 Jan 2001 22:46:45 +0000 (22:46 +0000)]
Export mmap's entry point under Windows (thanks, MarkH & Guido!).

24 years agoDocument \code{import} in pth files.
Martin v. Löwis [Thu, 11 Jan 2001 22:07:25 +0000 (22:07 +0000)]
Document \code{import} in pth files.

24 years agoFixed minor markup nits for consistency with the rest of the library
Fred Drake [Thu, 11 Jan 2001 16:02:08 +0000 (16:02 +0000)]
Fixed minor markup nits for consistency with the rest of the library
reference.

24 years agoConform the new module to /the/ C style.
Thomas Wouters [Thu, 11 Jan 2001 15:40:39 +0000 (15:40 +0000)]
Conform the new module to /the/ C style.

Noone but me cares, but Guido said to go ahead and fix it if it bothered me.

24 years agoDelete unused import of pprint module
Andrew M. Kuchling [Thu, 11 Jan 2001 15:35:16 +0000 (15:35 +0000)]
Delete unused import of pprint module

24 years agoTypo.
Guido van Rossum [Thu, 11 Jan 2001 15:00:14 +0000 (15:00 +0000)]
Typo.

24 years agoMove the _socket module closer to the SSL-_socket line (mmap and
Thomas Wouters [Thu, 11 Jan 2001 14:46:40 +0000 (14:46 +0000)]
Move the _socket module closer to the SSL-_socket line (mmap and
xreadlines inserted themselves inbetween the two) and clarify that the
normal socket module should be commented out. (Someone also suggested the
latter on c.l.py some time ago, I forget who, sorry.)

24 years agoPatch #103134: Support import lines in pth files.
Martin v. Löwis [Thu, 11 Jan 2001 13:02:43 +0000 (13:02 +0000)]
Patch #103134: Support import lines in pth files.

24 years agoFixed bugs noted by Greg Stein
Moshe Zadka [Thu, 11 Jan 2001 11:55:37 +0000 (11:55 +0000)]
Fixed bugs noted by Greg Stein
* x wasn't initialized to NULL
* Did not DECREF result from displayhook function

24 years agoAdded pointer on POP3 variations.
Eric S. Raymond [Thu, 11 Jan 2001 10:22:34 +0000 (10:22 +0000)]
Added pointer on POP3 variations.

24 years agostdout is sometimes a macro; use "outf" instead.
Greg Stein [Thu, 11 Jan 2001 09:27:34 +0000 (09:27 +0000)]
stdout is sometimes a macro; use "outf" instead.

Submitted by: Mark Favas <m.favas@per.dem.csiro.au>

24 years agoImplementation of PEP-0217.
Moshe Zadka [Thu, 11 Jan 2001 05:41:27 +0000 (05:41 +0000)]
Implementation of PEP-0217.
This closes the PEP, and patch 103170

24 years agoCorrections and additions to the documentation for POP3 and IMAP library
Eric S. Raymond [Thu, 11 Jan 2001 04:19:52 +0000 (04:19 +0000)]
Corrections and additions to the documentation for POP3 and IMAP library
support, based on my fetchmail experience.

24 years agoAdd missing Py_DECREF in fast_cfunction. Partial fix for SF bug
Charles G. Waldman [Wed, 10 Jan 2001 22:11:59 +0000 (22:11 +0000)]
Add missing Py_DECREF in fast_cfunction.  Partial fix for SF bug
#127699.

24 years agoSF Patch #102357 by bbum: Add support for frameworks and objective-c
Guido van Rossum [Wed, 10 Jan 2001 21:46:05 +0000 (21:46 +0000)]
SF Patch #102357 by bbum: Add support for frameworks and objective-c
source. Uesful for both GnuStep and for OSXS/OSX/Darwin.

(Note: I changed $(CCC) to $(CXX) since that's now the name of the C++
compiler.  Please test!

24 years agoSF Patch #102362 by bbum: Support dynamic module loading under OSX
Guido van Rossum [Wed, 10 Jan 2001 21:41:16 +0000 (21:41 +0000)]
SF Patch #102362 by bbum: Support dynamic module loading under OSX
[including support for modules w/Objective-C].

24 years agoOops, one more part of the cygwin patch (SF patch #102409 by jlt63:
Guido van Rossum [Wed, 10 Jan 2001 21:17:27 +0000 (21:17 +0000)]
Oops, one more part of the cygwin patch (SF patch #102409 by jlt63:
Cygwin Python DLL and Shared Extension Patch).  Add module.dll as a
valid extension.

jlt63 writes: Note that his change essentially backs out the fix for
bug #115973. Should ".pyd" be retained instead for posterity?

24 years agoFinal part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Guido van Rossum [Wed, 10 Jan 2001 21:12:18 +0000 (21:12 +0000)]
Final part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Extension Patch.

These are the changes to the Modules Makefile and makesetup script for
Cygwin.

24 years agoPart of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Guido van Rossum [Wed, 10 Jan 2001 21:09:12 +0000 (21:09 +0000)]
Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Extension Patch.

Note: this could use some testing on NeXT, DG/UX, or BeOS, because of
the changes in the Makefile regarding $(LDLIBRARY).

24 years agoPart of SF patch #102409 by jlt63 to support building these modules
Guido van Rossum [Wed, 10 Jan 2001 21:03:32 +0000 (21:03 +0000)]
Part of SF patch #102409 by jlt63 to support building these modules
under CYGWIN as shared libraries (DLLs).

24 years agoSF Patch #103154 by jlt63: Cygwin Check Import Case Patch.
Guido van Rossum [Wed, 10 Jan 2001 20:40:46 +0000 (20:40 +0000)]
SF Patch #103154 by jlt63: Cygwin Check Import Case Patch.

Note: I've reordered acconfig.h and config.h.in to obtain alphabetical
order (modulo case and leading _).

24 years agoAdded a whole slew of news items. Not striving for completeness --
Guido van Rossum [Wed, 10 Jan 2001 20:13:55 +0000 (20:13 +0000)]
Added a whole slew of news items.  Not striving for completeness --
I've skipped all bugfixes, Unicode, distutils changes.  But this
should be a start!

24 years agoSourceForge patch #103140, checked in at fdrake's invitation. Minor fixes and
Eric S. Raymond [Wed, 10 Jan 2001 19:34:52 +0000 (19:34 +0000)]
SourceForge patch #103140, checked in at fdrake's invitation. Minor fixes and
additions to library docs.#

24 years agoAdapted version of SF Patch #103173 by pyretic: make uu.decode work
Guido van Rossum [Wed, 10 Jan 2001 19:14:28 +0000 (19:14 +0000)]
Adapted version of SF Patch #103173 by pyretic: make uu.decode work
with spaces in filename.

I changed the module to use string methods instead of the string
module.  Also, instead of stripping the last character of the filename
(assuming this is the linefeed), I strip trailing whitespace (assuming
creating files with trailing whitespace in their name cannot possibly
be a wise idea).

(Note that I believe that /F's "workaround for broken uuencoders" is
no longer needed since the recent fix to binascii.c, but I'll leave it
in since it appears pretty harmless.)

24 years agoAdapted version of Eric Raymond's patches to automatically configure
Guido van Rossum [Wed, 10 Jan 2001 18:53:48 +0000 (18:53 +0000)]
Adapted version of Eric Raymond's patches to automatically configure
curses and readline (for Linux, at least).

These are done as shared libraries by default, and so is bsddb -- that
seems to make the most sense.

24 years agoAdd loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum [Wed, 10 Jan 2001 17:11:51 +0000 (17:11 +0000)]
Add loop.c -- a test program for repeatedly calling Py_Initialize()
and Py_Finalize().  It seems to dump core right now...

24 years agoFix weird typo caused by ANSIfication (nobody bothered to test it
Guido van Rossum [Wed, 10 Jan 2001 17:09:00 +0000 (17:09 +0000)]
Fix weird typo caused by ANSIfication (nobody bothered to test it
since! :-( ).

24 years agoMoved the test codec definition to a new module and updated the test and
Marc-André Lemburg [Wed, 10 Jan 2001 10:21:11 +0000 (10:21 +0000)]
Moved the test codec definition to a new module and updated the test and
codec to test all charmap codec features.

As side-effect of moving the test codec into a new module, the encodings
package codec import mechanism is checked as well.

24 years agoWindows mmap should (as the docs probably <wink> say) create a mapping
Tim Peters [Wed, 10 Jan 2001 05:42:18 +0000 (05:42 +0000)]
Windows mmap should (as the docs probably <wink> say) create a mapping
without a name when the optional tagname arg isn't specified.  Was
actually creating a mapping with an empty string as the name.

24 years agoFix a typo, remove one copy of a duplicated name.
Fred Drake [Wed, 10 Jan 2001 05:33:38 +0000 (05:33 +0000)]
Fix a typo, remove one copy of a duplicated name.

24 years agoMake Windows build compile new xreadlinesmodule.
Tim Peters [Tue, 9 Jan 2001 23:27:12 +0000 (23:27 +0000)]
Make Windows build compile new xreadlinesmodule.

24 years agoAssorted xreadlines problems:
Tim Peters [Tue, 9 Jan 2001 23:26:39 +0000 (23:26 +0000)]
Assorted xreadlines problems:
    Wasn't built on Windows; not in config.c either.
    Module init function missing DL_EXPORT magic.
    test_xreadline output file obviously wrong (started w/ "test_xrl").
    test program very unclear about what was expected.

24 years agoRemove bogus "echo" command.
Fred Drake [Tue, 9 Jan 2001 22:50:13 +0000 (22:50 +0000)]
Remove bogus "echo" command.

24 years agoAdded documentation for the xreadlines module & related changes. The
Fred Drake [Tue, 9 Jan 2001 22:47:46 +0000 (22:47 +0000)]
Added documentation for the xreadlines module & related changes.  The
documentation was written by Jeff Epler (thanks!).

24 years agoResurrected Small Carbon Python as a target in PythonStandSmall. Still no GUSI, thoug...
Jack Jansen [Tue, 9 Jan 2001 22:27:24 +0000 (22:27 +0000)]
Resurrected Small Carbon Python as a target in PythonStandSmall. Still no GUSI, though, so no socket/select/threads.

24 years agoFSSpec names may be longer on carbon (1024 chars), cater for that in buffer sizes.
Jack Jansen [Tue, 9 Jan 2001 22:25:49 +0000 (22:25 +0000)]
FSSpec names may be longer on carbon (1024 chars), cater for that in buffer sizes.

24 years agoDon't need to define c2pstrcpy() on Carbon: it's in CarbonLib.
Jack Jansen [Tue, 9 Jan 2001 22:24:56 +0000 (22:24 +0000)]
Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.

24 years agoIf we're not using GUSI the "keep open on unseen output" becomes the same as "always...
Jack Jansen [Tue, 9 Jan 2001 22:24:06 +0000 (22:24 +0000)]
If we're not using GUSI the "keep open on unseen output" becomes the same as "always keep open".

24 years agoCarbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get...
Jack Jansen [Tue, 9 Jan 2001 22:22:58 +0000 (22:22 +0000)]
Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc.

24 years agoCarbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get...
Jack Jansen [Tue, 9 Jan 2001 22:10:16 +0000 (22:10 +0000)]
Carbon defines {Get,Set}ControlDataHandle, so unfortunately our variants on {Get,Set}ControlData have gotten an underscore: GetControlData_Handle, etc. This is an incompatible change:-(

24 years agoVarious tweaks to make it everything build and compile again under carbon. Mainly...
Jack Jansen [Tue, 9 Jan 2001 22:09:31 +0000 (22:09 +0000)]
Various tweaks to make it everything build and compile again under carbon. Mainly greylisted functions.

24 years agoAdded a --global-module-index option to specify a (possibly relative) URL
Fred Drake [Tue, 9 Jan 2001 22:02:10 +0000 (22:02 +0000)]
Added a --global-module-index option to specify a (possibly relative) URL
to the Global Module Index for a set of documents.  This is used to include
a reference to the global index from the per-document module indexes, so
that it is just a little easier to find.

(Someone suggested this, but I do not remember who.  Please let me know if
it was you -- thanks!)

24 years agoJeff Epler's patch adding an xreadlines() method. (It just imports
Guido van Rossum [Tue, 9 Jan 2001 21:50:24 +0000 (21:50 +0000)]
Jeff Epler's patch adding an xreadlines() method.  (It just imports
the xreadlines module and lets it do its thing.)

24 years agoTest for xreadline.
Guido van Rossum [Tue, 9 Jan 2001 21:47:44 +0000 (21:47 +0000)]
Test for xreadline.

24 years agoJeff Epler's xreadlines module, with slight reformatting and some
Guido van Rossum [Tue, 9 Jan 2001 21:46:50 +0000 (21:46 +0000)]
Jeff Epler's xreadlines module, with slight reformatting and some
changes for safety and tuning.

24 years agoMiscellaneous updates.
Fred Drake [Tue, 9 Jan 2001 21:40:52 +0000 (21:40 +0000)]
Miscellaneous updates.

24 years agoSteve Holden <sholden@holdenweb.com>:
Fred Drake [Tue, 9 Jan 2001 21:38:16 +0000 (21:38 +0000)]
Steve Holden <sholden@holdenweb.com>:
Clarify the handling of characters following backslashes in raw strings.

24 years agoAdded names.
Fred Drake [Tue, 9 Jan 2001 20:55:09 +0000 (20:55 +0000)]
Added names.

24 years agoAdded missing word; fixed minor nits.
Fred Drake [Tue, 9 Jan 2001 20:54:15 +0000 (20:54 +0000)]
Added missing word; fixed minor nits.

24 years agoAdded entry for fpectl module documentation.
Fred Drake [Tue, 9 Jan 2001 20:52:49 +0000 (20:52 +0000)]
Added entry for fpectl module documentation.

Moved the mutex docs to be adjacent to the sched docs, since these are
meant to be used together (if they are used at all!).

24 years agoAdded entry for fpectl module documentation.
Fred Drake [Tue, 9 Jan 2001 20:50:02 +0000 (20:50 +0000)]
Added entry for fpectl module documentation.

24 years agoDocumentation for the fpectl module, from Lee Busby. (Thanks!)
Fred Drake [Tue, 9 Jan 2001 20:38:54 +0000 (20:38 +0000)]
Documentation for the fpectl module, from Lee Busby.  (Thanks!)

24 years agoCheck in patch #102971: if library_dirs is a string, split it using
Andrew M. Kuchling [Tue, 9 Jan 2001 03:15:47 +0000 (03:15 +0000)]
Check in patch #102971: if library_dirs is a string, split it using
   os.pathsep

24 years agoPatch #102953: Fix bug #125452, where shlex.shlex hangs when it
Andrew M. Kuchling [Tue, 9 Jan 2001 03:01:15 +0000 (03:01 +0000)]
Patch #102953: Fix bug #125452, where shlex.shlex hangs when it
    encounters a string with an unmatched quote, by adding a check for
    EOF in the 'quotes' state.

24 years agoAddress a bug in the uuencode decoder, reported bu "donut" in SF bug
Guido van Rossum [Tue, 9 Jan 2001 02:11:57 +0000 (02:11 +0000)]
Address a bug in the uuencode decoder, reported bu "donut" in SF bug
#127718: '@' and '`' seem to be confused.

24 years agoTsk, tsk, tsk. Treat FreeBSD the same as the other BSDs when defining
Guido van Rossum [Tue, 9 Jan 2001 02:00:11 +0000 (02:00 +0000)]
Tsk, tsk, tsk.  Treat FreeBSD the same as the other BSDs when defining
a fallback for TELL64.  Fixes SF Bug #128119.

24 years agoRemove configure test for getline(), since it's no longer used at all
Andrew M. Kuchling [Mon, 8 Jan 2001 17:58:56 +0000 (17:58 +0000)]
Remove configure test for getline(), since it's no longer used at all

24 years agoAnonymous SF bug report #128053 point out that the #ifdef for
Guido van Rossum [Mon, 8 Jan 2001 17:51:55 +0000 (17:51 +0000)]
Anonymous SF bug report #128053 point out that the #ifdef for
including "tmpfile" in the posix_methods[] array is wrong -- should be
HAVE_TMPFILE, not HAVE_TMPNAM.

24 years agoExplain that long options are matched based on a unique prefix rather than
Fred Drake [Mon, 8 Jan 2001 16:05:51 +0000 (16:05 +0000)]
Explain that long options are matched based on a unique prefix rather than
requiring the whole option to be typed out.

This closes SF bug #126863.

24 years agoGetoptError is always initialized with exactly two parameters, so simplify
Fred Drake [Mon, 8 Jan 2001 15:39:32 +0000 (15:39 +0000)]
GetoptError is always initialized with exactly two parameters, so simplify
the constructor.

24 years agoFixed bug which caused HTTPS not to work at all with string URLs
Moshe Zadka [Mon, 8 Jan 2001 07:09:25 +0000 (07:09 +0000)]
Fixed bug which caused HTTPS not to work at all with string URLs

24 years agoFix a silly bug in float_pow. Sorry Tim.
Neil Schemenauer [Mon, 8 Jan 2001 06:29:50 +0000 (06:29 +0000)]
Fix a silly bug in float_pow.  Sorry Tim.

24 years agoThe Python/C API deals in PyObject*, not PyDictObject*.
Fred Drake [Mon, 8 Jan 2001 05:53:53 +0000 (05:53 +0000)]
The Python/C API deals in PyObject*, not PyDictObject*.

24 years agoText.__init__(): Make sure the data parameter is a string (8-bit or
Fred Drake [Mon, 8 Jan 2001 04:04:34 +0000 (04:04 +0000)]
Text.__init__():  Make sure the data parameter is a string (8-bit or
                  Unicode); raise TypeError if not.

This closes SF bug #126866.

24 years agoA few reformats; no logic changes.
Tim Peters [Mon, 8 Jan 2001 04:02:07 +0000 (04:02 +0000)]
A few reformats; no logic changes.

24 years agoLet's hope that three time's a charm...
Guido van Rossum [Mon, 8 Jan 2001 01:26:47 +0000 (01:26 +0000)]
Let's hope that three time's a charm...

Tim discovered another "bug" in my get_line() code: while the comments
said that n<0 was invalid, it was in fact still called with n<0 (when
PyFile_GetLine() was called with n<0).  In that case fortunately
executed the same code as for n==0.

Changed the comment to admit this fact, and changed Tim's MS speed
hack code to use 'n <= 0' as the criteria for the speed hack.

24 years ago18 isn't a prime (duh).
Tim Peters [Mon, 8 Jan 2001 01:17:26 +0000 (01:17 +0000)]
18 isn't a prime (duh).

24 years agoFiddled ms_getline_hack after talking w/ Guido: made clearer that the
Tim Peters [Mon, 8 Jan 2001 00:53:12 +0000 (00:53 +0000)]
Fiddled ms_getline_hack after talking w/ Guido:  made clearer that the
code duplication is to let us get away without a realloc whenever possible;
boosted the init buf size (the cutoff at which we *can* get away without
a realloc) from 100 to 200 so that more files can enjoy this boost; and
allowed other threads to run in all cases.  The last two cost something,
but not significantly:  in my fat test case, less than a 1% slowdown total.
Since my test case has a great many short lines, that's probably the worst
slowdown, too.  While the logic barely changed, there were lots of edits.
This also gets rid of the reference to fp->_cnt, so the last platform
assumption being made here is that fgets doesn't overwrite bytes
capriciously (== beyond the terminating null byte it must write).

24 years agoMS Win32 .readline() speedup, as discussed on Python-Dev. This is a tricky
Tim Peters [Sun, 7 Jan 2001 21:19:34 +0000 (21:19 +0000)]
MS Win32 .readline() speedup, as discussed on Python-Dev.  This is a tricky
variant that never needs to "search from the right".
Also fixed unlikely memory leak in get_line, if string size overflows INTMAX.
Also new std test test_bufio to make sure .readline() works.

24 years agoTim noticed that I had botched get_line_raw(). Looking again, I
Guido van Rossum [Sun, 7 Jan 2001 20:51:39 +0000 (20:51 +0000)]
Tim noticed that I had botched get_line_raw().  Looking again, I
realized that this behavior is already present in PyFile_GetLine(),
which is the only place that needs it.  A little refactoring of that
function made get_line_raw() redundant.

24 years agoAdd more regression tests, including for the import statement variations.
Fred Drake [Sun, 7 Jan 2001 06:02:19 +0000 (06:02 +0000)]
Add more regression tests, including for the import statement variations.
These will detect regression on SF bug #127271 and other import statement
bugs.

24 years agoFix problems with validation of import statement parse trees.
Fred Drake [Sun, 7 Jan 2001 05:59:59 +0000 (05:59 +0000)]
Fix problems with validation of import statement parse trees.
This closes SF bug #127271.

24 years agoThis patch adds a new feature to the builtin charmap codec:
Marc-André Lemburg [Sat, 6 Jan 2001 15:09:57 +0000 (15:09 +0000)]
This patch adds a new feature to the builtin charmap codec:

the mapping dictionaries can now contain 1-n mappings, meaning
that character ordinals may be mapped to strings or Unicode object,
e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by
the complete string or Unicode object instead of just one character.

Another feature introduced by the patch is that of mapping oridnals to
the emtpy string. This allows removing characters.

The patch is different from patch #103100 in that it does not cause a
performance hit for the normal use case of 1-1 mappings.

Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.

24 years agoThis patch adds a new feature to the builtin charmap codec:
Marc-André Lemburg [Sat, 6 Jan 2001 14:59:58 +0000 (14:59 +0000)]
This patch adds a new feature to the builtin charmap codec:

The mapping dictionaries can now contain 1-n mappings, meaning
that character ordinals may be mapped to strings or Unicode object,
e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by
the complete string or Unicode object instead of just one character.

Another feature introduced by the patch is that of mapping oridnals to
the emtpy string. This allows removing characters.

The patch is different from patch #103100 in that it does not cause a
performance hit for the normal use case of 1-1 mappings.

Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.