Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add documentation for __future__ | Jeremy Hylton | 2003-05-21 | 1 | -0/+69 |
| | |||||
* | Move future statement here from appendix a. | Jeremy Hylton | 2003-05-21 | 1 | -0/+78 |
| | |||||
* | PyType_Ready(): Complain if the type is a base type, and gc'able, and | Tim Peters | 2003-05-21 | 3 | -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 comprehensions | Jeremy Hylton | 2003-05-21 | 5 | -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 []*n | Raymond Hettinger | 2003-05-21 | 1 | -0/+12 |
| | | | | Fulfilled request to special case repetitions of lists of length 0 or 1. | ||||
* | Don't mention __slots__ as a technique for error avoidance | Andrew M. Kuchling | 2003-05-20 | 1 | -10/+6 |
| | |||||
* | Added a test for the fix of SF bug #658233, where continuation lines | Barry Warsaw | 2003-05-20 | 1 | -12/+52 |
| | | | | | | | | in .po metadata caused a crash. Also, removed some unnecessary code. Backport candidate. | ||||
* | GNUTranslations._parse(): Fix SF bug #658233, where continuation lines | Barry Warsaw | 2003-05-20 | 1 | -4/+9 |
| | | | | | | in .po metadata caused a crash. Backport candidate. | ||||
* | Fix markup nits. | Fred Drake | 2003-05-20 | 1 | -4/+4 |
| | |||||
* | Straighten out the docs for os.system(); the Unix and Windows behaviors | Tim Peters | 2003-05-20 | 1 | -5/+13 |
| | | | | | | really can't be smushed together. Bugfix candidate. | ||||
* | Markup nits. | Fred Drake | 2003-05-20 | 1 | -5/+5 |
| | |||||
* | Remove unused line numbers from example code. | Fred Drake | 2003-05-20 | 1 | -28/+27 |
| | | | | Line numbering of examples is not used elsewhere. | ||||
* | Preserved one bit in type objects for Stackless. | Christian Tismer | 2003-05-20 | 1 | -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 fail | Just van Rossum | 2003-05-20 | 1 | -1/+1 |
| | |||||
* | Fix missing parethesis. | Raymond Hettinger | 2003-05-20 | 1 | -1/+1 |
| | |||||
* | SF 740055: optional argument protocol in shelve.open is ignored | Raymond Hettinger | 2003-05-20 | 1 | -1/+1 |
| | | | | | * added the missing parameter * put optional parameters in correct positional order | ||||
* | SF bug 735293: Command line timeit.py sets sys.path badly | Raymond Hettinger | 2003-05-20 | 3 | -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 Cannon | 2003-05-20 | 1 | -1/+7 |
| | | | | from socket.ssl docs. | ||||
* | Fixing the previous patch to have the changes be to the proper docstrings. | Brett Cannon | 2003-05-20 | 1 | -8/+8 |
| | |||||
* | Fix docstrings for __(get|set|del)slice__ to mention that negative indices ↵ | Brett Cannon | 2003-05-20 | 1 | -3/+9 |
| | | | | are not supported. | ||||
* | Fix race exposed by 2.4 GHz XP box: Don't tear down PyShell until | Kurt B. Kaiser | 2003-05-19 | 1 | -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öwis | 2003-05-19 | 1 | -1/+6 |
| | |||||
* | * Correct Sniffer doc to correspond to the implementation. | Skip Montanaro | 2003-05-19 | 3 | -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. Kaiser | 2003-05-19 | 3 | -3/+3 |
| | | | | | Modified Files: idle idle.py idle.pyw | ||||
* | Only encode Unicode objects when printing them raw. | Martin v. Löwis | 2003-05-18 | 1 | -1/+2 |
| | |||||
* | Consider \U-escapes in raw-unicode-escape. Fixes #444514. | Martin v. Löwis | 2003-05-18 | 2 | -3/+49 |
| | |||||
* | Fix array.array.insert(), so that it treats negative indices as | Walter Dörwald | 2003-05-18 | 4 | -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 Cannon | 2003-05-18 | 1 | -2/+2 |
| | | | | back to item calls. | ||||
* | Added more words about the abuse of the tp_alloc nitems argument | Tim Peters | 2003-05-18 | 1 | -1/+12 |
| | | | | perpetrated by the time and datetime classes. | ||||
* | Whitespace Normalization | Kurt B. Kaiser | 2003-05-18 | 1 | -29/+29 |
| | |||||
* | Whitespace Normalization | Kurt B. Kaiser | 2003-05-18 | 4 | -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örwald | 2003-05-18 | 1 | -0/+1 |
| | |||||
* | Port test_array and test_winsound to PyUnit. Enhance tests for array | Walter Dörwald | 2003-05-18 | 3 | -380/+920 |
| | | | | | | (code coverage for Modules/arraymodule.c is at 91%) From SF patch #736962. | ||||
* | Show Freddy the mirror | Kurt B. Kaiser | 2003-05-17 | 1 | -7/+15 |
| | | | | i.e. improve subprocess exit paths and exeception reporting | ||||
* | User cStringIO instead of StringIO. | Raymond Hettinger | 2003-05-17 | 1 | -2/+2 |
| | |||||
* | Revert some changes back to dict.items made in a previous patch. | Brett Cannon | 2003-05-17 | 1 | -2/+2 |
| | |||||
* | datetime.timedelta is now subclassable in Python. The new test shows | Tim Peters | 2003-05-17 | 3 | -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 X | Tony Lownds | 2003-05-17 | 2 | -0/+1 |
| | |||||
* | minor fix, jython-only. Don't asssume stdout to save is the ur-stdout. | Samuele Pedroni | 2003-05-17 | 1 | -1/+2 |
| | |||||
* | datetime.datetime and datetime.time can now be subclassed in Python. Brr. | Tim Peters | 2003-05-17 | 3 | -61/+180 |
| | |||||
* | Nigel Rowe's Patch | Kurt B. Kaiser | 2003-05-17 | 1 | -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. Kaiser | 2003-05-17 | 5 | -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 cleanup | Skip Montanaro | 2003-05-17 | 1 | -8/+6 |
| | |||||
* | beefed up version: jython support, covers now fixed differences between ↵ | Samuele Pedroni | 2003-05-17 | 1 | -11/+105 |
| | | | | CPython/Jython. | ||||
* | test_subclass_date(): Beefed this up, to check that new instance | Tim Peters | 2003-05-17 | 1 | -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 Hettinger | 2003-05-17 | 1 | -1/+1 |
| | |||||
* | Use test_support.run_doctest() | Raymond Hettinger | 2003-05-17 | 1 | -3/+3 |
| | |||||
* | Provide a clue that the doctests have run. | Raymond Hettinger | 2003-05-17 | 1 | -1/+3 |
| | |||||
* | Minor cleanups. | Raymond Hettinger | 2003-05-16 | 1 | -5/+1 |
| | |||||
* | Turns out there wasn't a need to define tp_free for any of the types here. | Tim Peters | 2003-05-16 | 1 | -4/+4 |
| |