summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use a version number of 0.0.0 instead of ???. The latter leads toThomas Heller2001-12-061-1/+1
| | | | | | | | | | invalid filenames on Windows when building without specifying a version number in the setup script. See also http://mail.python.org/pipermail/distutils-sig/2001-November/002656.html Bugfix candidate.
* Document that PyString_FromString() cannot take NULL as a parameter.Fred Drake2001-12-061-1/+2
| | | | This closes SF bug #489872.
* PyString_FromString: this requires its argument be non-NULL, but doesn'tTim Peters2001-12-061-1/+4
| | | | check it. Added an assert() to that effect.
* Fix for #489669 (Neil Norwitz): memory leak in test_descr (unicode).Guido van Rossum2001-12-061-6/+3
| | | | | | | | | | | | | | This is best reproduced by while 1: class U(unicode): pass U(u"xxxxxx") The unicode_dealloc() code wasn't properly freeing the str and defenc fields of the Unicode object when freeing a subtype instance. Fixed this by a subtle refactoring that actually reduces the amount of code slightly.
* Undefine addrinfo.h constants if the system header defined them.Martin v. Löwis2001-12-061-4/+35
| | | | Fixes #486099.
* Attribute nodes did not always get their ownerDocument and ownerElementFred Drake2001-12-063-4/+41
| | | | properly set. This fixes that.
* Be more careful about accessing attributes of the parent: if Tk has not beenFred Drake2001-12-061-4/+20
| | | | | | | | | | | | | | initialized, this will be None, but the functions will still work (there will simply be a bogus parent on the screen). Allowing the parent to be None is useful when testing the functions from an interactive interpreter. Add an optional keyword paramter "show" to the _QueryString class; when given it is used to set the -show option to the entry widget. This allows passing show="*" or the like to askstring(), making it useful for requesting passwords/passphrases from the user. This closes SF bug #438517. Changed a docstring to be less font-lock-hostile.
* [Bug #459270] Fix incorrect filename for system-wide config fileAndrew M. Kuchling2001-12-061-6/+6
|
* [Bug #459270] Fix incorrect docstringAndrew M. Kuchling2001-12-061-8/+5
|
* [Bug #480882] Remove now-pointless check for existence for _curses_panel.c;Andrew M. Kuchling2001-12-061-2/+1
| | | | Bugfix candidate.
* Fix memory leak in dict_to_map(), SF bug [ #485152 ] memory leak in test_scope.Jeremy Hylton2001-12-061-8/+11
| | | | | | | | | | | | PyCell_Set() incremenets the reference count, so the earlier XINCREF causes a leak. Also make a number of small performance improvements to the code on the assumption that most of the time variables are not rebound across a FastToLocals() / LocalsToFast() pair. Replace uses of PyCell_Set() and PyCell_Get() with PyCell_SET() and PyCell_GET(), since the frame is guaranteed to contain cells.
* Little stuff.Jeremy Hylton2001-12-061-8/+9
| | | | | | | | | | | Add a missing DECREF in an obscure corner. If the str() or repr() of an object passed to a string interpolation -- e.g. "%s" % obj -- returns a non-string, the returned object was leaked. Repair an indentation glitch. Replace a bunch of PyString_AsString() calls (and their ilk) with macros.
* Fix [ #489673 ] memory leak in test_symtable: Free the st_future slot.Jeremy Hylton2001-12-061-0/+1
| | | | | | | The st_future slot of the symtable is not freed by PySymtable_Free() because it is shared by the symtable and compiling structs in compiel.c. Since it is shared, it is explicitly deallocated when the compiling struct is freed.
* Fix a typo (probably caused by autocompletion <blush>) that caused aGuido van Rossum2001-12-061-1/+1
| | | | | | leak when a class defined a __metaclass__. This fixes the problem reported on python-dev by Ping; I dunno if it's the same as SF bug #489669 (since that mentions Unicode).
* SF bug #488514: -Qnew needs workTim Peters2001-12-068-25/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Big Hammer to implement -Qnew as PEP 238 says it should work (a global option affecting all instances of "/"). pydebug.h, main.c, pythonrun.c: define a private _Py_QnewFlag flag, true iff -Qnew is passed on the command line. This should go away (as the comments say) when true division becomes The Rule. This is deliberately not exposed to runtime inspection or modification: it's a one-way one-shot switch to pretend you're using Python 3. ceval.c: when _Py_QnewFlag is set, treat BINARY_DIVIDE as BINARY_TRUE_DIVIDE. test_{descr, generators, zipfile}.py: fiddle so these pass under -Qnew too. This was just a matter of s!/!//! in test_generators and test_zipfile. test_descr was trickier, as testbinop() is passed assumptions that "/" is the same as calling a "__div__" method; put a temporary hack there to call "__truediv__" instead when the method name is "__div__" and 1/2 evaluates to 0.5. Three standard tests still fail under -Qnew (on Windows; somebody please try the Linux tests with -Qnew too! Linux runs a whole bunch of tests Windows doesn't): test_augassign test_class test_coercion I can't stay awake longer to stare at this (be my guest). Offhand cures weren't obvious, nor was it even obvious that cures are possible without major hackery. Question: when -Qnew is in effect, should calls to __div__ magically change into calls to __truediv__? See "major hackery" at tail end of last paragraph <wink>.
* Fix appendChild() and insertBefore() (and replaceChild() indirectly) whenFred Drake2001-12-063-2/+57
| | | | | the node being added is a fragment node. This closes SF bug #487929.
* SF patch #489680 (David Abrahams): h2py uses nonexistent method splitfields()Guido van Rossum2001-12-061-0/+1
|
* Warning message about unfound file was missing trailing \n.Guido van Rossum2001-12-061-1/+2
|
* SF patch #489680 (David Abrahams): h2py uses nonexistent method splitfields()Guido van Rossum2001-12-061-3/+3
|
* The previous checkin to clear __slots__ variables did a little bit ofGuido van Rossum2001-12-061-20/+20
| | | | | the work each time it found another base class. All the work is contiguous, so we might as well do it all at once at the end.
* Replace sprintf() with PyOS_snprintf().Jack Jansen2001-12-053-9/+9
|
* sys.platform on Mac OS X is now "darwin", without any version number appended.Jack Jansen2001-12-054-415/+417
| | | | This should probably go into NEWS (who's responsible for that?).
* Link more modules with weak import, and add CarbonAccessors.o to all ↵Jack Jansen2001-12-051-6/+7
| | | | relevant PowerPC toolbox modules. This, in combination with recent IDE mods, makes the IDE work again under MacOS 8.1.
* Fix SF bug #489581: __slots__ leak.Guido van Rossum2001-12-053-2/+59
| | | | | | It was easier than I thought, assuming that no other things contribute to the instance size besides slots -- a pretty good bet. With a test suite, no less!
* Define NDEBUG if Py_DEBUG isn't defined.Jack Jansen2001-12-0511-0/+33
|
* Re-enabled debugging prints in poplib & documented the set_debuglevel()Fred Drake2001-12-052-6/+14
| | | | | method. This closes SF patch #486079.
* audioop_ratecv(): I left a potentially unsafe multiply uncheckedTim Peters2001-12-051-15/+15
| | | | | yesterday -- repair that. Also renamed the silly size_times_nchannels to bytes_per_frame.
* Added a missing period at the end of an error message.Fred Drake2001-12-051-2/+2
|
* Fix memory leak in the parser module: There were two leaks inFred Drake2001-12-051-5/+22
| | | | | | parser_tuple2st() and a failure to propogate an error in build_node_children() (masking yet another leak, of course!). This closes SF bug #485133 (confirmed by Insure++).
* asyncore.loop() description contributed by Skip Montanaro.Fred Drake2001-12-051-0/+14
| | | | This closes SF bug #489513.
* At the PythonLabs meeting someone mentioned it would make Jim reallyGuido van Rossum2001-12-053-8/+7
| | | | | | | | | happy if one could delete the __dict__ attribute of an instance. I love to make Jim happy, so here goes... - New-style objects now support deleting their __dict__. This is for all intents and purposes equivalent to assigning a brand new empty dictionary, but saves space if the object is not used further.
* Separate the script portion from the library portion; everything thatFred Drake2001-12-051-17/+17
| | | | | pertains to the script is now in the if __name__ == "__main__" block. This is in response to a commenton python-dev from Neal Norwitz.
* As of OS X 10.1.1 the version numbering scheme has changed. Convert all ↵Jack Jansen2001-12-051-4/+6
| | | | "darwin*" to "darwin" and use that for testing.
* changes to use new tabpages classesSteven M. Gava2001-12-051-67/+14
|
* remove cruft from other projectSteven M. Gava2001-12-051-28/+1
|
* cleaner tabbed-page mini implementation through classesSteven M. Gava2001-12-051-0/+137
|
* SF bug 482574: audioop.ratecv crashes.Tim Peters2001-12-051-6/+62
| | | | | | | | | | | | Bugfix candidate. A numerically naive computation of output buffer size caused crashes and spurious MemoryErrors for reasonable arguments. audioop_ratecv(): Avoid spurious overflow by careful reworking of the buffer size computations, triggering MemoryError if and only if the final buffer size can't be represented in a C int (although PyString_FromStringAndSize may legitimately raise MemoryError even if it does fit in a C int). All reasonable arguments should work as intended now, and all unreasonable arguments should be cuaght.
* Add a note to the description of the interaction between the softspaceFred Drake2001-12-051-9/+12
| | | | | | | attribute of file objects, the print statement, and other file operations. This closes SF bug #484857. Fix minor markup nits.
* Added documentation of the sendall() method, and a note to the send() methodFred Drake2001-12-051-0/+13
| | | | | that it does not guarantee that all data is sent. This closes SF patch #474307.
* Change new tests to use integer division (// instead of /).Tim Peters2001-12-051-3/+3
|
* SF bug #488480: integer multiply to return -max_int-1.Tim Peters2001-12-042-127/+89
| | | | | | | int_mul(): new and vastly simpler overflow checking. Whether it's faster or slower will likely vary across platforms, favoring boxes with fast floating point. OTOH, we no longer have to worry about people shipping broken LONG_BIT definitions <0.9 wink>.
* Added entry for the "cgitb" module docs.Fred Drake2001-12-042-0/+2
|
* Documentation for the "cgitb" module.Fred Drake2001-12-041-0/+40
|
* Make sure to propogate errors that arise when profiling data cannot beFred Drake2001-12-041-71/+112
| | | | | written to the log file, and turn off the profiler. This closes SF bug #483925.
* Another no-longer-nameless contributor...Guido van Rossum2001-12-041-0/+1
|
* Add note about fixed hash() of mutable objects.Guido van Rossum2001-12-041-0/+5
|
* Define NDEBUG when compiling a release build on Unix.Fred Drake2001-12-042-368/+380
| | | | This is the Unix portion of the fix for SF bug #489052.
* Import the keyword module instead of relying on our own list ofGuido van Rossum2001-12-041-11/+2
| | | | reserved words. No longer need to import string.
* Put the keywords back in alphabetical order. Apparently somebodyGuido van Rossum2001-12-041-2/+2
| | | | didn't use reswords.py, as the comment clearly states. :-(
* Stop defining NDEBUG in Python.h, because it can interfere withTim Peters2001-12-041-5/+4
| | | | | extensions that #include Python.h. See (rejected) patch 487634 for more detail. I'll open a new bug report for the rest needed here.