summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Variation of patch # 1624059 to speed up checking if an object is a subclassNeal Norwitz2007-02-2518-22/+61
| | | | | | | | | | | | | | | | | | of some of the common builtin types. Use a bit in tp_flags for each common builtin type. Check the bit to determine if any instance is a subclass of these common types. The check avoids a function call and O(n) search of the base classes. The check is done in the various Py*_Check macros rather than calling PyType_IsSubtype(). All the bits are set in tp_flags when the type is declared in the Objects/*object.c files because PyType_Ready() is not called for all the types. Should PyType_Ready() be called for all types? If so and the change is made, the changes to the Objects/*object.c files can be reverted (remove setting the tp_flags). Objects/typeobject.c would also have to be modified to add conditions for Py*_CheckExact() in addition to each the PyType_IsSubtype check.
* - SF patch #1657613: add documentation for the Element interfaceFred Drake2007-02-251-93/+163
| | | | - clean up bogus use of the {datadescni} environment everywhere
* Put declarations before code.Jeremy Hylton2007-02-251-1/+1
|
* Fix crash in exec when unicode filename can't be decoded.Jeremy Hylton2007-02-252-0/+3
| | | | | | | I can't think of an easy way to test this behavior. It only occurs when the file system default encoding and the interpreter default encoding are different, such that you can open the file but not decode its name.
* Whitespace only changesNeal Norwitz2007-02-251-3/+2
|
* Add more details when releasing interned stringsNeal Norwitz2007-02-251-1/+8
|
* Refactor PEP 352 tests to make it easier in the future to make sure certainBrett Cannon2007-02-231-18/+34
| | | | things cannot be raised or caught.
* Fix typo in commentNeal Norwitz2007-02-231-1/+1
|
* Remove filler struct item and fix leak.Raymond Hettinger2007-02-211-44/+40
|
* Add itertools.izip_longest().Raymond Hettinger2007-02-214-0/+317
|
* Fixup set/dict interoperability.Raymond Hettinger2007-02-191-0/+11
|
* Fixup docstrings for merge().Raymond Hettinger2007-02-192-4/+4
|
* Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()Martin v. Löwis2007-02-1911-10/+133
| | | | functions on platforms where the underlying system calls are available.
* Moved misplaced news item.Lars Gustäbel2007-02-191-3/+3
|
* Provide an example of defaultdict with non-zero constant factory function.Raymond Hettinger2007-02-191-8/+12
|
* Add test for merge stabilityRaymond Hettinger2007-02-191-0/+15
|
* Use C heapreplace() instead of slower _siftup() in pure python.Raymond Hettinger2007-02-191-2/+2
|
* Add tie-breaker count to preserve sort stability.Raymond Hettinger2007-02-191-6/+6
|
* Add merge() function to heapq.Raymond Hettinger2007-02-194-5/+64
|
* Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().Raymond Hettinger2007-02-194-7/+73
|
* Minor fix for currentframe (SF #1652788).Vinay Sajip2007-02-161-5/+5
|
* Make the __import__ call in encodings.__init__ absolute with a level 0 call.Brett Cannon2007-02-161-4/+4
|
* Update the encoding package's search function to use absolute imports whenBrett Cannon2007-02-152-2/+7
| | | | | | | | | | | | calling __import__. This helps make the expected search locations for encoding modules be more explicit. One could use an explicit value for __path__ when making the call to __import__ to force the exact location searched for encodings. This would give the most strict search path possible if one is worried about malicious code being imported. The unfortunate side-effect of that is that if __path__ was modified on 'encodings' on purpose in a safe way it would not be picked up in future __import__ calls.
* Add missing \versionadded.Georg Brandl2007-02-151-0/+4
|
* Patch #1494140: Add documentation for the new struct.Struct object.Georg Brandl2007-02-152-0/+57
|
* Make functools.wraps() docs a bit clearer.Georg Brandl2007-02-151-6/+11
|
* Patch #1397848: add the reasoning behind no-resize-on-shrinkage.Martin v. Löwis2007-02-151-0/+20
|
* A missing binary mode in AppendTest caused failures in WindowsLars Gustäbel2007-02-141-2/+2
| | | | Buildbot.
* Ignore directory time stamps when consideringMartin v. Löwis2007-02-141-1/+2
| | | | whether to rerun libffi configure.
* Update 1432399 to removal of _BT_SOCKADDR_MEMB.Martin v. Löwis2007-02-141-2/+1
|
* Patch #1432399: Add HCI sockets.Martin v. Löwis2007-02-143-0/+38
|
* Strip the '.gz' extension from the filename that is written to theLars Gustäbel2007-02-131-3/+6
| | | | gzip header.
* Patch #1647484: Renamed GzipFile's filename attribute to name. TheLars Gustäbel2007-02-133-8/+22
| | | | | filename attribute is still accessible as a property that emits a DeprecationWarning.
* Patch #1657276: Make NETLINK_DNRTMSG conditional.Martin v. Löwis2007-02-132-0/+4
| | | | Will backport.
* Bug #1658794: Remove extraneous 'this'.Martin v. Löwis2007-02-131-1/+1
| | | | Will backport to 2.5.
* Patch #1517891: Make 'a' create the file if it doesn't exist.Martin v. Löwis2007-02-134-1/+38
| | | | Fixes #1514451.
* Patch #698833: Support file decryption in zipfile.Martin v. Löwis2007-02-134-6/+143
|
* Patch #685268: Consider a package's __path__ in imputil.Martin v. Löwis2007-02-132-0/+6
| | | | Will backport.
* Fix the line to what is my guess at the original author's meaning.Armin Rigo2007-02-121-1/+1
| | | | | (The line has no effect anyway, but is present because it's customary call the base class __init__).
* Patch 1463026: Support default namespace in XMLGenerator.Martin v. Löwis2007-02-123-17/+59
| | | | Fixes #847665. Will backport.
* Bug #1656581: Point out that external file objects are supposed to beLars Gustäbel2007-02-121-2/+3
| | | | at position 0.
* Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.cBrett Cannon2007-02-123-4/+30
| | | | | | is specified at the top of the file. Also add a note that Python/Python-ast.c needs to be committed separately after a change to the AST grammar to capture the revision number of the change (which is what __version__ is set to).
* Check in changed Python-ast.c from a cosmetic change to Python.asdl (inBrett Cannon2007-02-111-1/+1
| | | | r53731).
* fix trace.py --ignore-dirSkip Montanaro2007-02-112-1/+4
|
* Change a very minor inconsistency (that is purely cosmetic) in the ASTBrett Cannon2007-02-111-1/+1
| | | | definition.
* Bug #1656078: typo in in profile docs.Georg Brandl2007-02-091-1/+1
|
* Update broken link. Will backport to 2.5.Martin v. Löwis2007-02-091-1/+1
|
* Bug #1600860: Search for shared python library in LIBDIR, notMartin v. Löwis2007-02-092-3/+15
| | | | | lib/python/config, on "linux" and "gnu" systems. Will backport.
* Bug #1653736: Properly discard third argument to slot_nb_inplace_power.Martin v. Löwis2007-02-092-1/+9
| | | | Will backport.
* Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;Kurt B. Kaiser2007-02-083-21/+103
| | | | | | mouse and cursor selection in ACWindow implemented; double Tab inserts current selection and closes ACW (similar to double-click and Return); scroll wheel now works in ACW. Added AutoComplete instructions to IDLE Help.