summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* SF #926075: Fixed the bug that returns a wrong pattern object forHye-Shik Chang2004-04-201-0/+4
| | | | | a string or unicode object in sre.compile() when a different type pattern with the same value exists.
* Bug #934635: Fix a bug where the configure script couldn't detectHye-Shik Chang2004-04-141-0/+3
| | | | | getaddrinfo() properly if the KAME stack had SCTP support. (Submitted by SUZUKI Shinsuke)
* note --trackcalls flag in trace moduleSkip Montanaro2004-04-071-0/+3
|
* Improve accuracy of sequence and mapping checks.Raymond Hettinger2004-04-041-0/+3
|
* If a file is opened with an explicit buffer size >= 1, repeatedAndrew MacIntyre2004-04-041-0/+4
| | | | | | | | close() calls would attempt to free() the buffer already free()ed on the first close(). [bug introduced with patch #788249] Making sure that the buffer is free()ed in file object deallocation is a belt-n-braces bit of insurance against a memory leak.
* It would help if I deleted the old pystack!Skip Montanaro2004-04-021-23/+11
| | | | Also, move pystack comment down next to it
* include local variables when dumping Python stack traceSkip Montanaro2004-04-021-9/+36
|
* Patch #924497: find(1) all files with /usr/local/bin/python in them.Martin v. Löwis2004-03-311-5/+7
| | | | Backported to 2.3.
* Fixed a caching bug in platform.platform() where the argument of 'terse' wasBrett Cannon2004-03-251-1/+4
| | | | not taken into consideration when caching value.
* Enable the profiling of C functions (builtins and extensions)Nicholas Bastin2004-03-241-0/+3
|
* ...for work done at PyCon 2004 (and beyond...)Nicholas Bastin2004-03-231-0/+1
|
* Make socket.sslerror a subclass of socket.error .Brett Cannon2004-03-231-0/+3
| | | | Added socket.error to the socket module's C API.
* Added command line options for profile.py - one for stats output fileNicholas Bastin2004-03-231-0/+3
| | | | and one for sort order when using stdout. Uses optparse.
* Added global runctx function to profile to fix SF Bug #716587Nicholas Bastin2004-03-221-0/+2
|
* Changed file.name to be the object passed as the 'name' argument to file()Nicholas Bastin2004-03-211-0/+2
| | | | Fixes SF Bug #773356
* Bug #920575: Add a workaround for GNU libc nl_langinfo()'s returning NULL.Hye-Shik Chang2004-03-211-0/+3
| | | | (Reported by Matthias Klose)
* Update URLsAndrew M. Kuchling2004-03-211-2/+2
|
* Moved tracebackobject to traceback.h, Closes SF Bug #497067Nicholas Bastin2004-03-211-0/+2
|
* [693255] also back out corresponding NEWS item...Just van Rossum2004-03-211-2/+0
|
* Patch #853488: Tix hlist missing entryconfigure and entrycget methods.Martin v. Löwis2004-03-211-0/+2
|
* Improve byte coding for multiple assignments.Raymond Hettinger2004-03-211-0/+3
| | | | Gives 30% speedup on "a,b=1,2" and 25% on "a,b,c=1,2,3".
* Limit the nesting depth of a tuple passed as the second argument toBrett Cannon2004-03-201-0/+4
| | | | isinstance() or issubclass() to the recursion limit of the interpreter.
* Remove non-existent paths.Brett Cannon2004-03-201-0/+2
|
* Add an entry for addition of the ptcp154 codec.Hye-Shik Chang2004-03-191-0/+2
|
* Add news entries for the dictionary optimizations.Raymond Hettinger2004-03-181-0/+4
|
* SF feature request #686323: Minor array module enhancementsRaymond Hettinger2004-03-141-1/+3
| | | | | | | array.extend() now accepts iterable arguments implements as a series of appends. Besides being a user convenience and matching the behavior for lists, this the saves memory and cycles that would be used to create a temporary array object.
* Update the array overallocation scheme to match the approach used forRaymond Hettinger2004-03-141-1/+3
| | | | | | | | lists. Speeds append() operations and reduces memory requirements (because of more conservative overallocation). Paves the way for the feature request for array.extend() to support arbitrary iterable arguments.
* SF patch #911431: robot.txt must be robots.txtRaymond Hettinger2004-03-131-1/+1
| | | | (Contributed by George Yoshida.)
* SF bug #910986: copy.copy fails for array.arrayRaymond Hettinger2004-03-131-0/+2
| | | | Added support for the copy module.
* Use a new macro, PySequence_Fast_ITEMS to factor out code common toRaymond Hettinger2004-03-121-0/+3
| | | | | three recent optimizations. Aside from reducing code volume, it increases readability.
* Make buffer objects based on mutable objects (like array) safe.Neil Schemenauer2004-03-111-0/+5
|
* SF patch #907403: Improvements to cStringIO.writelines()Raymond Hettinger2004-03-081-0/+5
| | | | | | | The writelines() method now accepts any iterable argument and writes the lines one at a time rather than using ''.join(lines) followed by a single write. Results in considerable memory savings and makes the method suitable for use with generator expressions.
* SF patch #910929: Optimize list comprehensionsRaymond Hettinger2004-03-071-0/+4
| | | | | Add a new opcode, LIST_APPEND, and apply it to the code generation for list comprehensions. Reduces the per-loop overhead by about a third.
* SF #904720: dict.update should take a 2-tuple sequence like dict.__init_Raymond Hettinger2004-03-042-0/+5
| | | | | | | | (Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
* * explain flags in doc stringsSkip Montanaro2004-03-031-0/+5
| | | | | * reverse order of files on the command line in pickle2db.py to make it symmetrical with db2pickle.py in the two-arg case (src, then dest)
* Have strftime() check its time tuple argument to make sure the tuple's valuesBrett Cannon2004-03-021-0/+7
| | | | | | | | | | are within proper boundaries as specified in the docs. This can break possible code (datetime module needed changing, for instance) that uses 0 for values that need to be greater 1 or greater (month, day, and day of year). Fixes bug #897625.
* Add pystack definition to Misc/gdbinit with some explanation of its behaviorSkip Montanaro2004-03-011-0/+23
| | | | | and add flag comments to ceval.c and main.c alerting people to the coupling between pystack and the layout of those files.
* "Fix" (for certain configurations of the planets, includingMichael W. Hudson2004-02-191-0/+4
| | | | | | | | | | | recent gcc on Linux/x86) [ 899109 ] 1==float('nan') by implementing rich comparisons for floats. Seems to make comparisons involving NaNs somewhat less surprising when the underlying C compiler actually implements C99 semantics.
* Patch #892673: Replace /usr/local/bin/python withMartin v. Löwis2004-02-151-1/+38
| | | | | /usr/bin/env python'%{binsuffix} Backported to 2.3.
* Patch #711838: Allow non-anonymous ftp urls in urllib2.Martin v. Löwis2004-02-151-0/+2
| | | | Backported to 2.3.
* * Moved the responsibility for emptying the previous list from list_fillRaymond Hettinger2004-02-151-0/+5
| | | | | | | | | | | | | | | | | | | | | to list_init. * Replaced the code in list_extend with the superior code from list_fill. * Eliminated list_fill. Results: * list.extend() no longer creates an intermediate tuple except to handle the special case of x.extend(x). The saves memory and time. * list.extend(x) runs about the same x is a list or tuple, a little faster when x is an iterable not defining __len__, and twice as fast when x is an iterable defining __len__. * the code is about 15 lines shorter and no longer duplicates functionality.
* Fine tune the speed/space trade-off for overallocating small lists.Raymond Hettinger2004-02-141-2/+2
| | | | | | | | | | | | | | The Py2.3 approach overallocated small lists by up to 8 elements. The last checkin would limited this to one but slowed down (by 20 to 30%) the creation of small lists between 3 to 8 elements. This tune-up balances the two, limiting overallocation to 3 elements (significantly reducing space consumption from Py2.3) and running faster than the previous checkin. The first part of the growth pattern (0, 4, 8, 16) neatly meshes with allocators that trigger data movement only when crossing a power of two boundary. Also, then even numbers mesh well with common data alignments.
* - Fixed #853061: allow BZ2Compressor.compress() to receive an empty stringGustavo Niemeyer2004-02-141-0/+3
| | | | as parameter.
* * Optimized list appends and pops by making fewer calls the underlying systemRaymond Hettinger2004-02-131-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc(). This is achieved by tracking the overallocation size in a new field and using that information to skip calls to realloc() whenever possible. * Simplified and tightened the amount of overallocation. For larger lists, this overallocates by 1/8th (compared to the previous scheme which ranged between 1/4th to 1/32nd over-allocation). For smaller lists (n<6), the maximum overallocation is one byte (formerly it could be upto eight bytes). This saves memory in applications with large numbers of small lists. * Eliminated the NRESIZE macro in favor of a new, static list_resize function that encapsulates the resizing logic. Coverting this back to macro would give a small (under 1%) speed-up. This was too small to warrant the loss of readability, maintainability, and de-coupling. * Some functions using NRESIZE had grown unnecessarily complex in their efforts to bend to the macro's calling pattern. With the new list_resize function in place, those other functions could be simplified. That is being saved for a separate patch. * The ob_item==NULL check could be eliminated from the new list_resize function. This would entail finding each piece of code that sets ob_item to NULL and adding a new line to invalidate the overallocation tracking field. Rather than impose a new requirement on other pieces of list code, it was preferred to leave the NULL check in place and retain the benefits of decoupling, maintainability and information hiding (only PyList_New() and list_sort() need to know about the new field). This approach also reduces the odds of breaking an extension module. (Collaborative effort by Raymond Hettinger, Hye-Shik Chang, Tim Peters, and Armin Rigo.)
* This is my patch #876198 plus a NEWS entry and a header frob.Michael W. Hudson2004-02-121-0/+4
| | | | | Remove the ability to use (from C) arbitrary objects supporting the read buffer interface as the co_code member of code objects.
* remove support for missing ANSI C header files (limits.h, stddef.h, etc).Skip Montanaro2004-02-101-0/+3
|
* SF patch #875689: >100k alloc wasted on startupRaymond Hettinger2004-02-081-0/+1
| | | | | | | (Contributed by Mike Pall.) Make sure fill_free_list() is called only once rather than 106 times when pre-allocating small ints.
* Fixed a bug in object.__reduce_ex__ (reduce_2) when using protocolJim Fulton2004-02-081-0/+4
| | | | | 2. Failure to clear the error when attempts to get the __getstate__ attribute fail caused intermittent errors and odd behavior.
* Remove support for --without-universal-newlines (see PEP 11).Skip Montanaro2004-02-071-0/+5
|
* added notes about weakref changesFred Drake2004-02-061-0/+15
|