summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* document PEP 11 progress so far.Skip Montanaro2004-01-171-0/+8
|
* Remove support for SunOS 4.Skip Montanaro2004-01-171-4/+0
| | | | Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition).
* SF Patch #864863: Bisect C implementationRaymond Hettinger2004-01-052-1/+3
| | | | (Contributed by Dmitry Vasiliev.)
* Add note about new base64.py module support for RFC 3548.Barry Warsaw2004-01-041-0/+3
|
* complete backout of listobject.c v2.171Andrew MacIntyre2003-12-282-9/+0
|
* Performance of list([]) in 2.3 came up in a thread on comp.lang.python,Andrew MacIntyre2003-12-252-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which can be reviewed via http://coding.derkeiler.com/Archive/Python/comp.lang.python/2003-12/1011.html Duncan Booth investigated, and discovered that an "optimisation" was in fact a pessimisation for small numbers of elements in a source list, compared to not having the optimisation, although with large numbers of elements in the source list the optimisation was quite beneficial. He posted his change to comp.lang.python (but not to SF). Further research has confirmed his assessment that the optimisation only becomes a net win when the source list has more than 100 elements. I also found that the optimisation could apply to tuples as well, but the gains only arrive with source tuples larger than about 320 elements and are nowhere near as significant as the gains with lists, (~95% gain @ 10000 elements for lists, ~20% gain @ 10000 elements for tuples) so I haven't proceeded with this. The code as it was applied the optimisation to list subclasses as well, and this also appears to be a net loss for all reasonable sized sources (~80-100% for up to 100 elements, ~20% for more than 500 elements; I tested up to 10000 elements). Duncan also suggested special casing empty lists, which I've extended to all empty sequences. On the basis that list_fill() is only ever called with a list for the result argument, testing for the source being the destination has now happens before testing source types.
* Sync with python-mode project. Adds two changes:Skip Montanaro2003-12-181-5/+47
| | | | | | | * in py-checker-run, fall back to read-string if read-shell-command (XEmacs-specific) is not available. * highlight variables would mask builtins as if they were keywords.
* Guido grants a Christmas wish:Raymond Hettinger2003-12-171-3/+3
| | | | sorted() becomes a regular function instead of a classmethod.
* Fix typo and improve wording a bit.Raymond Hettinger2003-12-151-4/+4
|
* Add an entry for addition of {str,unicode}.rsplit.Hye-Shik Chang2003-12-151-0/+4
|
* Add news item about processor support in urllib2.Jeremy Hylton2003-12-141-0/+4
|
* * Added a new method flag, METH_COEXIST.Raymond Hettinger2003-12-131-0/+6
| | | | | * Used the flag to optimize set.__contains__(), dict.__contains__(), dict.__getitem__(), and list.__getitem__().
* Implement itertools.groupby()Raymond Hettinger2003-12-061-0/+5
| | | | | | | Original idea by Guido van Rossum. Idea for skipable inner iterators by Raymond Hettinger. Idea for argument order and identity function default by Alex Martelli. Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger).
* distutils compilers now compile source files in the same order as theyThomas Heller2003-12-051-0/+3
| | | | are passed to the compiler.
* Add news about removal of the PendingDeprecationWarning from apply().Fred Drake2003-12-051-0/+3
|
* Add parameters indent, width and depth to pprint.pprint() and pprint.pformat()Walter Dörwald2003-12-031-0/+3
| | | | and pass them along to the PrettyPrinter constructor.
* Patch #750542: pprint now will pretty print subclasses of list, tupleWalter Dörwald2003-12-031-0/+3
| | | | and dict too, as long as they don't overwrite __repr__().
* Py_Finalize(): disabled the second call of cyclic gc, and added extensiveTim Peters2003-12-011-0/+10
| | | | | | | comments about why both calls to cyclic gc here can cause problems. I'll backport to 2.3 maint. Since the calls were introduced in 2.3, that will be the end of it.
* As discussed on python-dev, added two extractor functions to theRaymond Hettinger2003-12-011-0/+5
| | | | operator module.
* Add news item for _winreg fix (SF bug 851056).Guido van Rossum2003-11-301-0/+5
|
* - Removed FutureWarnings related to hex/oct literals and conversionsGuido van Rossum2003-11-291-0/+9
| | | | | | | | | | and left shifts. (Thanks to Kalle Svensson for SF patch 849227.) This addresses most of the remaining semantic changes promised by PEP 237, except for repr() of a long, which still shows the trailing 'L'. The PEP appears to promise warnings for operations that changed semantics compared to Python 2.3, but this is not implemented; we've suffered through enough warnings related to hex/oct literals and I think it's best to be silent now.
* See SF #848614: distutils' msvccompiler now tries to detect that MSVC6Thomas Heller2003-11-281-0/+3
| | | | | | | is installed but the registry settings are incomplete because the gui has never been run. Already backported to release23-maint.
* Patch #849595: Add socket.shutdown() constants.Martin v. Löwis2003-11-271-0/+2
|
* Add optional fillchar argument to ljust(), rjust(), and center() string methods.Raymond Hettinger2003-11-261-0/+4
|
* Expose dict_contains() and PyDict_Contains() with is about 10% fasterRaymond Hettinger2003-11-251-0/+4
| | | | | | | than PySequence_Contains() and more clearly applicable to dicts. Apply the new function in setobject.c where __contains__ checking is ubiquitous.
* - When method objects have an attribute that can be satisfied eitherGuido van Rossum2003-11-221-0/+9
| | | | | | | | | | by the function object or by the method object, the function object's attribute usually wins. Christian Tismer pointed out that that this is really a mistake, because this only happens for special methods (like __reduce__) where the method object's version is really more appropriate than the function's attribute. So from now on, all method attributes will have precedence over function attributes with the same name.
* SF bug 839548: Bug in type's GC handling causes segfaults.Tim Peters2003-11-201-3/+18
| | | | | | | | Also SF patch 843455. This is a critical bugfix. I'll backport to 2.3 maint, but not beyond that. The bugs this fixes have been there since weakrefs were introduced.
* Patch #831747: Add skip_accept_encoding parameter to putrequest.Martin v. Löwis2003-11-191-0/+2
|
* Remove deprecation of sets.Set.update().Raymond Hettinger2003-11-191-2/+1
|
* Patch #794400: Let PYTHONSTARTUP influence the compiler flags.Martin v. Löwis2003-11-181-0/+2
|
* * Migrate set() and frozenset() from the sandbox.Raymond Hettinger2003-11-161-0/+2
| | | | | | | | * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
* Mention patch #841977: modulefinder didn't find extension modules in packagesThomas Heller2003-11-141-0/+2
| | | | Backported to release-maint23
* SF bug 840829: weakref callbacks and gc corrupt memory.Tim Peters2003-11-121-0/+6
| | | | | | | | | | | | | | | | | subtype_dealloc(): This left the dying object exposed to gc, so that if cyclic gc triggered during the weakref callback, gc tried to delete the dying object a second time. That's a disaster. subtype_dealloc() had a (I hope!) unique problem here, as every normal dealloc routine untracks the object (from gc) before fiddling with weakrefs etc. But subtype_dealloc has obscure technical reasons for re-registering the dying object with gc (already explained in a large comment block at the bottom of the function). The fix amounts to simply refraining from reregistering the dying object with gc until after the weakref callback (if any) has been called. This is a critical bug (hard to predict, and causes seemingly random memory corruption when it occurs). I'll backport it to 2.3 later.
* Patch #798297: Add IMAP THREAD command.Martin v. Löwis2003-11-102-0/+5
|
* Plug tempfile.mktemp() hole (Iustin Pop).Guido van Rossum2003-11-102-0/+4
|
* Convert heapq.py to a C implementation.Raymond Hettinger2003-11-081-0/+2
|
* Implement and apply PEP 322, reverse iterationRaymond Hettinger2003-11-061-0/+3
|
* Add traceback.format_exc().Neil Schemenauer2003-11-051-0/+3
|
* missing news entryAnthony Baxter2003-11-041-0/+2
|
* Patch #531629: Add multicall support.Martin v. Löwis2003-10-311-0/+2
|
* Patch #: Add POP3 over SSL support.Martin v. Löwis2003-10-312-0/+3
|
* Add list.sorted() classmethod.Raymond Hettinger2003-10-291-2/+2
|
* note db2pickle/pickle2db tweaksSkip Montanaro2003-10-281-0/+2
|
* Deleting cyclic object comparison.Armin Rigo2003-10-281-0/+4
| | | | | SF patch 825639 http://mail.python.org/pipermail/python-dev/2003-October/039445.html
* regressing the performance bugfix -- Guido wants the performance bug leftAlex Martelli2003-10-251-3/+0
| | | | alone, because there can be no guarantee re the semantics of += vs + .
* document the performance fix to builtin_sum().Alex Martelli2003-10-251-0/+6
|
* Added itertools.tee()Raymond Hettinger2003-10-241-15/+18
| | | | | | It works like the pure python verion except: * it stops storing data after of the iterators gets deallocated * the data queue is implemented with two stacks instead of one dictionary.
* - The pwd module incorrectly advertised its struct type asGuido van Rossum2003-10-231-0/+4
| | | | | struct_pwent; this has been renamed to struct_passwd. (The old name is still supported for backwards compatibility.)
* Note the update to Expat 1.95.7.Fred Drake2003-10-211-0/+2
|
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-2/+2
| | | | (From SF patch #810751)