summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Open file in universal newline mode when passing to compile(). SolutionSkip Montanaro2004-04-161-1/+1
| | | | from Felix Wiemann. Closes patch #934971.
* * Add unittests for iterators that report their lengthRaymond Hettinger2004-04-121-0/+245
| | | | | | * Document the differences between them * Fix corner cases covered by the unittests * Use Py_RETURN_NONE where possible for dictionaries
* Fixes for AF_UNIX support on OS/2:Andrew MacIntyre2004-04-111-4/+19
| | | | | | | | | - return the full size of the sockaddr_un structure, without which bind() fails with EINVAL; - set test_socketserver to use a socket name that meets the form required by the underlying implementation; - don't bother exercising the forking AF_UNIX tests on EMX - its fork() can't handle the stress.
* M EditorWindow.pyKurt B. Kaiser2004-04-114-69/+56
| | | | | | | | | M IOBinding.py M NEWS.txt M configDialog.py - If nulls somehow got into the strings in recent-files.lst EditorWindow.update_recent_files_list() was failing. Python Bug 931336.
* atof: correct parameter nameSkip Montanaro2004-04-101-3/+3
|
* Refactor common code out of globaltrace_trackcallers() andSkip Montanaro2004-04-101-28/+56
| | | | | | | | globaltrace_countfuncs() into file_module_function_of(). In that function use Michael Hudson's suggestion of gc.get_referrers() to back up from the code object to a function, then to a class's dict and finally to a class object if one exists.
* Added --trackcalls command line arg to display crude caller/calleeSkip Montanaro2004-04-071-18/+88
| | | | | relationships at program exit. Output is a bit prettier than that for --listfuncs but won't parse as easily using downstream postprocessing tools.
* Fix comment typoAndrew M. Kuchling2004-04-061-1/+1
|
* Remove specific Python version from #!Andrew M. Kuchling2004-04-061-1/+1
|
* OS/2 has support for spawnvp() and spawnvpe() in the C libraries suppliedAndrew MacIntyre2004-04-041-2/+5
| | | | | | | with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented.
* If a file is opened with an explicit buffer size >= 1, repeatedAndrew MacIntyre2004-04-041-0/+17
| | | | | | | | 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.
* Fix support for the "prog" keyword to the OptionParser constructor, as wellFred Drake2004-04-012-3/+24
| | | | | | as directly setting the .prog attribute (which should be supported based on the class docstring). Closes SF bug #850964.
* [Bugfix candidate] Escape traceback type and value. There are probably ↵Andrew M. Kuchling2004-03-311-1/+2
| | | | additional cases where cgitb.py doesn't escape as paranoidly as it should (e.g. attribute names)
* When /tmp has certain sticky bits set, newly created subdirectoriesGuido van Rossum2004-03-311-0/+1
| | | | | inherit those bits, causing the test_mkdtemp.test_mode() test to fail. Remove those before comparing the actual mode to the expected mode.
* SF bug 924242: socket._fileobject._getclosed() returns wrong valueTim Peters2004-03-282-1/+9
| | | | | | The .closed property always returned the wrong result. Bugfix candidate!
* Revert 1.51 booleans so that sre will still run on old pythons.Raymond Hettinger2004-03-271-6/+6
|
* Simple Optimizations:Raymond Hettinger2004-03-261-73/+92
| | | | | * Factor constant expressions out of loops. * Presize a list being grown to a known length.
* Remove unnecessary test. (Thanks Skip)Raymond Hettinger2004-03-261-6/+0
|
* Fix test failure for test_tcl on OS/X and Windows if aDavid Ascher2004-03-261-7/+1
| | | | | | | | | | | version of Tcl other than ActiveTcl is installed (ActiveTcl included TclX, other Tcl distros didn't). I'm removing the package loading test because it's hard to come up with a package that is guaranteed to be in any Tcl installation. Special-casing darwin and windows is ok since that leaves the only Tk platform (X) which the test was trying to address.
* Marshal clean-up (SF patch #873224)Armin Rigo2004-03-261-0/+5
|
* Simple optimizations:Raymond Hettinger2004-03-261-47/+69
| | | | | | | | | * pre-build a single identity function for the fixup function * pre-build membership tests in dictionaries instead of in-line tuples * assign len() to a local variable * assign append() methods to a local variable * use xrange() instead of range() * replace "x<<1" with "x+x"
* make sure the default manifest generation includes files identified asFred Drake2004-03-252-0/+6
| | | | | scripts closes SF bug 796042
* Added more Windows version names (thanks to Thomas Heller).Marc-André Lemburg2004-03-251-29/+23
| | | | | | Fixed bug in platform() cache (thanks to Brett Cannon). (Restored Python 1.5.2 compatibility.)
* Fix last patch to be backwards-compatible with Python 1.5.2 .Brett Cannon2004-03-251-12/+25
| | | | Bumped version micro number.
* Fixed a caching bug in platform.platform() where the argument of 'terse' wasBrett Cannon2004-03-251-8/+8
| | | | not taken into consideration when caching value.
* Defer compilation of regular expressions until first use.Martin v. Löwis2004-03-251-3/+7
|
* Use True/False instead of 0/1 for character classes.Martin v. Löwis2004-03-251-6/+6
|
* Ensure super() lookup of descriptor from classmethod works (SF #743627)Phillip J. Eby2004-03-251-0/+14
|
* fix name in setacl method doc stringPiers Lauder2004-03-251-1/+1
|
* Enable the profiling of C functions (builtins and extensions)Nicholas Bastin2004-03-244-3/+50
|
* Add test case for unicode(somestring, "idna").Martin v. Löwis2004-03-241-1/+6
|
* Replace sequential split/join calls on strings with a single replace call.Brett Cannon2004-03-232-11/+5
| | | | Thanks Andrew Gaul.
* Convert input to a string object. Fixes #909230.Martin v. Löwis2004-03-231-0/+1
| | | | Backported 2.3.
* Replace code in urllib for basejoin (undocumented) with urlparse.urljoin .Brett Cannon2004-03-231-59/+2
| | | | | | | Test suites for urllib and urlparse run with each other's function to verify correctness of replacement and both test suites pass. Bumped urllib's __version__ attribute up a minor number.
* Add runctx to __all__.Guido van Rossum2004-03-231-1/+1
|
* Added command line options for profile.py - one for stats output fileNicholas Bastin2004-03-231-13/+27
| | | | and one for sort order when using stdout. Uses optparse.
* Basic dependency checking. setup() has two new optional argumentsAnthony Baxter2004-03-225-3/+144
| | | | | | | | | | | | | | | | | | | | | | | requires and provides. requires is a sequence of strings, of the form 'packagename-version'. The dependency checking so far merely does an '__import__(packagename)' and checks for packagename.__version__ You can also leave off the version, and any version of the package will be installed. There's a special case for the package 'python' - sys.version_info is used, so requires= ( 'python-2.3', ) just works. Provides is of the same format as requires - but if it's not supplied, a provides is generated by adding the version to each entry in packages, or modules if packages isn't there. Provides is currently only used in the PKG-INFO file. Shortly, PyPI will grow the ability to accept these lines, and register will be updated to send them. There's a new command 'checkdep' command that runs these checks. For this version, only greater-than-or-equal checking is done. We'll add the ability to specify an optional operator later.
* Patch #911176: Move test function into __main__Martin v. Löwis2004-03-221-12/+12
|
* Added global runctx function to profile to fix SF Bug #716587Nicholas Bastin2004-03-223-6/+37
|
* The fix in ceval.c 2.386 allows iteration-by-iteration line tracing even inArmin Rigo2004-03-221-0/+23
| | | | single-line loops.
* Fix (really) for tight loop line eventsNicholas Bastin2004-03-221-1/+2
|
* Test for tight loop line event fix, SF bug #765624Nicholas Bastin2004-03-221-0/+25
|
* Test for lack of implicit return line eventNicholas Bastin2004-03-221-9/+27
|
* New parser. Next up, making the current parser use this parserAnthony Baxter2004-03-221-0/+362
|
* SF bug 847019 datetime.datetime initialization needs more strict checkingTim Peters2004-03-211-0/+20
| | | | | | | | | It's possible to create insane datetime objects by using the constructor "backdoor" inserted for fast unpickling. Doing extensive range checking would eliminate the backdoor's purpose (speed), but at least a little checking can stop honest mistakes. Bugfix candidate.
* Change parse_qsl() to accept control-name's with no equal sign (e.g., "name")Brett Cannon2004-03-211-1/+5
| | | | when keep_blank_values is true.
* Normalized files in test_unicode_file to eliminate failure on OSXNicholas Bastin2004-03-211-9/+29
|
* [Part of patch #909005] Added map parameter for file_dispatcher and ↵Andrew M. Kuchling2004-03-211-4/+4
| | | | dispatcher_with_send
* [Part of patch #909005] Repeating exception changed from 'raise ↵Andrew M. Kuchling2004-03-211-5/+5
| | | | socket.error, why' to just raise. Make use of connect_ex() raise socket.error with 2-tuple instead of just error code
* [Part of patch #909005] Remove Mac code for writableAndrew M. Kuchling2004-03-211-8/+2
|