summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add documentation for __future__Jeremy Hylton2003-05-211-0/+69
|
* Move future statement here from appendix a.Jeremy Hylton2003-05-211-0/+78
|
* PyType_Ready(): Complain if the type is a base type, and gc'able, andTim Peters2003-05-213-3/+49
| | | | | | | | | | | | | | | | | | tp_free is NULL or PyObject_Del at the end. Because it's a base type it must call tp_free in its dealloc function, and because it's gc'able it must not call PyObject_Del. inherit_slots(): Don't inherit tp_free unless the type and its base agree about whether they're gc'able. If the type is gc'able and the base is not, and the base uses the default PyObject_Del for its tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate default for a gc'able type). cPickle.c: The Pickler and Unpickler types claim to be base classes and gc'able, but their dealloc functions didn't call tp_free. Repaired that. Also call PyType_Ready() on these typeobjects, so that the correct (PyObject_GC_Del) default memory-freeing function gets plugged into these types' tp_free slots.
* Fix for SF [ 734869 ] Lambda functions in list comprehensionsJeremy Hylton2003-05-215-15/+27
| | | | | | The compiler was reseting the list comprehension tmpname counter for each function, but the symtable was using the same counter for the entire module. Repair by move tmpname into the symtable entry. Bugfix candidate.
* SF bug #604716: faster [None]*n or []*nRaymond Hettinger2003-05-211-0/+12
| | | | Fulfilled request to special case repetitions of lists of length 0 or 1.
* Don't mention __slots__ as a technique for error avoidanceAndrew M. Kuchling2003-05-201-10/+6
|
* Added a test for the fix of SF bug #658233, where continuation linesBarry Warsaw2003-05-201-12/+52
| | | | | | | | in .po metadata caused a crash. Also, removed some unnecessary code. Backport candidate.
* GNUTranslations._parse(): Fix SF bug #658233, where continuation linesBarry Warsaw2003-05-201-4/+9
| | | | | | in .po metadata caused a crash. Backport candidate.
* Fix markup nits.Fred Drake2003-05-201-4/+4
|
* Straighten out the docs for os.system(); the Unix and Windows behaviorsTim Peters2003-05-201-5/+13
| | | | | | really can't be smushed together. Bugfix candidate.
* Markup nits.Fred Drake2003-05-201-5/+5
|
* Remove unused line numbers from example code.Fred Drake2003-05-201-28/+27
| | | | Line numbering of examples is not used elsewhere.
* Preserved one bit in type objects for Stackless.Christian Tismer2003-05-201-0/+8
| | | | | The presence of this bit controls, whether there are special fields for non-recursive calls.
* 'Progress' doesn't exists, causing 'from EasyDialogs import *' to failJust van Rossum2003-05-201-1/+1
|
* Fix missing parethesis.Raymond Hettinger2003-05-201-1/+1
|
* SF 740055: optional argument protocol in shelve.open is ignoredRaymond Hettinger2003-05-201-1/+1
| | | | | * added the missing parameter * put optional parameters in correct positional order
* SF bug 735293: Command line timeit.py sets sys.path badlyRaymond Hettinger2003-05-203-0/+8
| | | | | Paul Moore's patch to have timeit.py check the current directory for imports (instead of the directory for Lib/timeit.py).
* Add docs for key_file and cert_file arguments for HTTPSConnection. Copied ↵Brett Cannon2003-05-201-1/+7
| | | | from socket.ssl docs.
* Fixing the previous patch to have the changes be to the proper docstrings.Brett Cannon2003-05-201-8/+8
|
* Fix docstrings for __(get|set|del)slice__ to mention that negative indices ↵Brett Cannon2003-05-201-3/+9
| | | | are not supported.
* Fix race exposed by 2.4 GHz XP box: Don't tear down PyShell untilKurt B. Kaiser2003-05-191-5/+11
| | | | | | | subprocess polling has terminated. Tk callit gets unhappy if it can't find the function 'after' scheduled to run. M PyShell.py
* Only return objects if wantobjects is set in GetVar.Martin v. Löwis2003-05-191-1/+6
|
* * Correct Sniffer doc to correspond to the implementation.Skip Montanaro2003-05-193-14/+31
| | | | | * Add optional delimiters arg to Sniffer.sniff() which restricts the set of candidate field delimiters.
* Let Python inform the user what went wrong with the import.Kurt B. Kaiser2003-05-193-3/+3
| | | | | Modified Files: idle idle.py idle.pyw
* Only encode Unicode objects when printing them raw.Martin v. Löwis2003-05-181-1/+2
|
* Consider \U-escapes in raw-unicode-escape. Fixes #444514.Martin v. Löwis2003-05-182-3/+49
|
* Fix array.array.insert(), so that it treats negative indices asWalter Dörwald2003-05-184-3/+34
| | | | | being relative to the end of the array, just like list.insert() does. This closes SF bug #739313.
* To be on the safe side, backed out any questionable iteritem changes and set ↵Brett Cannon2003-05-181-2/+2
| | | | back to item calls.
* Added more words about the abuse of the tp_alloc nitems argumentTim Peters2003-05-181-1/+12
| | | | perpetrated by the time and datetime classes.
* Whitespace NormalizationKurt B. Kaiser2003-05-181-29/+29
|
* Whitespace NormalizationKurt B. Kaiser2003-05-184-23/+23
| | | | | | Modified Files: config-extensions.def config-highlight.def config-keys.def config-main.def
* Add another error case to the insert test.Walter Dörwald2003-05-181-0/+1
|
* Port test_array and test_winsound to PyUnit. Enhance tests for arrayWalter Dörwald2003-05-183-380/+920
| | | | | | (code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962.
* Show Freddy the mirrorKurt B. Kaiser2003-05-171-7/+15
| | | | i.e. improve subprocess exit paths and exeception reporting
* User cStringIO instead of StringIO.Raymond Hettinger2003-05-171-2/+2
|
* Revert some changes back to dict.items made in a previous patch.Brett Cannon2003-05-171-2/+2
|
* datetime.timedelta is now subclassable in Python. The new test showsTim Peters2003-05-173-167/+203
| | | | | | | | one good use: a subclass adding a method to express the duration as a number of hours (or minutes, or whatever else you want to add). The native breakdown into days+seconds+us is often clumsy. Incidentally moved a large chunk of object-initialization code closer to the top of the file, to avoid worse forward-reference trickery.
* Added icon for IDLE on OS XTony Lownds2003-05-172-0/+1
|
* minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.Samuele Pedroni2003-05-171-1/+2
|
* datetime.datetime and datetime.time can now be subclassed in Python. Brr.Tim Peters2003-05-173-61/+180
|
* Nigel Rowe's PatchKurt B. Kaiser2003-05-171-5/+5
| | | | | | | [ 735527 ] Re Bug [ 678325 ] ParenMatching Missing AutoIndent AutoIndent was merged with EditorWindow, this patch corrects the references in ParenMatch.
* Noam Raphael's patch.Kurt B. Kaiser2003-05-175-14/+52
| | | | | | | | | | | | | | | | SF Patch 686254 "Run IDLEfork from any directory without set-up" Allows IDLE to run when not installed and cwd is not the IDLE directory. I took the liberty of moving it to the startup scripts since once IDLEfork is again a part of Python it will be superfluous and I don't want it to be forgotten. But it is very useful for those using IDLEfork standalone! M CREDITS.txt M NEWS.txt M idle M idle.py M idle.pyw
* simpler temp dir cleanupSkip Montanaro2003-05-171-8/+6
|
* beefed up version: jython support, covers now fixed differences between ↵Samuele Pedroni2003-05-171-11/+105
| | | | CPython/Jython.
* test_subclass_date(): Beefed this up, to check that new instanceTim Peters2003-05-171-2/+28
| | | | | | | attributes and methods work, that new arguments can be passed to the constructor, and that inherited methods and attrs still work. Added XXX comments about what to do when datetime becomes usably subclassable too (it's not yet).
* Include module name in doctest summary.Raymond Hettinger2003-05-171-1/+1
|
* Use test_support.run_doctest()Raymond Hettinger2003-05-171-3/+3
|
* Provide a clue that the doctests have run.Raymond Hettinger2003-05-171-1/+3
|
* Minor cleanups.Raymond Hettinger2003-05-161-5/+1
|
* Turns out there wasn't a need to define tp_free for any of the types here.Tim Peters2003-05-161-4/+4
|