summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #681003: itertools issuesRaymond Hettinger2003-02-073-6/+91
| | | | | | | | | | | * Fixed typo in exception message for times() * Filled in missing times_traverse() * Document reasons that imap() did not adopt a None fill-in feature * Document that count(sys.maxint) will wrap-around on overflow * Add overflow test to islice() * Check that starmap()'s argument returns a tuple * Verify that imap()'s tuple re-use is safe * Make a similar tuple re-use (with safety check) for izip()
* Fix SF bug #675259, os.environ leaks under FreeBSD and Mac OS XNeal Norwitz2003-02-071-1/+7
| | | | | | Even with the extra work to cleanup the env, *BSD still leaks. Add a note. Will backport.
* Integrate the patch from expat.h 1.51; needed for some C compilers.Fred Drake2003-02-071-21/+24
| | | | Closes SF bug #680797.
* SF bug 666444: 'help' makes linefeed only under Win32.Tim Peters2003-02-071-2/+2
| | | | | | Reverting one of those irritating "security fixes". fdopen() opens files in binary mode. That makes pydoc skip the \r\n on Windows that's need to make the output readable in the shell. Screw it.
* Got rid of macfs.Jack Jansen2003-02-061-5/+4
|
* Got rid of macfs and FSSpecs.Jack Jansen2003-02-061-4/+3
|
* Added a note about getting rid of macfs usage (MacPython).Jack Jansen2003-02-061-0/+4
|
* Got rid of FSSpecs.Jack Jansen2003-02-061-29/+28
|
* Move _better_reduce from copy.py to copy_reg.py, and also use it inGuido van Rossum2003-02-063-163/+83
| | | | pickle.py, where it makes save_newobj() unnecessary. Tests pass.
* Got rid of macfs and FSSpecs in general (pathnames or FSRefs are nowJack Jansen2003-02-069-68/+55
| | | | used everywhere).
* Fix a bug in the way __getnewargs__ was handled.Guido van Rossum2003-02-062-1/+19
|
* Update doc to reflect code changes for obsoleting use_statcache parameterNeal Norwitz2003-02-061-8/+3
|
* Use new name for GetoptError, and pass it two argumentsAndrew M. Kuchling2003-02-061-5/+5
| | | | Use re module instead of regex
* Support all the new stuff supported by the new pickle code:Guido van Rossum2003-02-062-13/+109
| | | | | | - subclasses of list or dict - __reduce__ returning a 4-tuple or 5-tuple - slots
* A few naughty external scripts do 'raise getopt.error, "blah"', andAndrew M. Kuchling2003-02-061-1/+1
| | | | | now crash because two arguments are expected. Add a default value to keep those scripts running.
* Add DeprecationWarning when use_statcache argument is suppliedAndrew M. Kuchling2003-02-061-4/+12
| | | | Fix use of GetoptError, so demo() now works
* Remove a debug print statement.Guido van Rossum2003-02-061-1/+0
|
* Remove another lie.Michael W. Hudson2003-02-061-4/+2
|
* Correct lie about METH_NOARGS functions.Michael W. Hudson2003-02-061-5/+5
| | | | Backport candidate.
* Support __reduce__ returning a 4-tuple or 5-tuple.Guido van Rossum2003-02-062-1/+56
|
* Typo fixesAndrew M. Kuchling2003-02-061-2/+2
|
* A test suite for the copy module. This should provide full codeGuido van Rossum2003-02-061-0/+384
| | | | coverage.
* [Bug #680494] filecmp.py uses obsolete statcache module.Andrew M. Kuchling2003-02-061-17/+9
| | | | | | | Simply replace all uses of statcache with os.stat. Should I add a DeprecationWarning triggered if the use_statcache argument is supplied, so we can remove it in 2.4?
* Add test suite for filecmp.py, after some discussion on bug #680494.Andrew M. Kuchling2003-02-061-0/+128
| | | | | | Right now the test cases create a files and a directory in the temp. directory. Raymond suggested checking files in to the test/ directory, simplifying the setup/teardown methods; is that worth doing?
* SF bug 680864: test_datetime fails for non-unix epochTim Peters2003-02-061-12/+11
| | | | | | Apparently MAC OS 9 doesn't have POSIX-conforming timestamps. A test fails as a result, but at least for this specific test it's easy enough to get the POSIX epoch out of it.
* No need for a continuation line.Jeremy Hylton2003-02-061-2/+1
|
* Replace hasattr() + getattr() with single getattr() and default value.Jeremy Hylton2003-02-061-2/+1
|
* Clarify that __module__ applies to various type of functions.Guido van Rossum2003-02-061-6/+7
|
* Add news item about __module__ attribute on functions.Jeremy Hylton2003-02-061-0/+8
|
* Comment typo fixAndrew M. Kuchling2003-02-061-1/+1
|
* Mention FutureWarning for large intsAndrew M. Kuchling2003-02-061-0/+5
|
* Fix description of filterwarnings() parameters (error noted by Richard Jones atAndrew M. Kuchling2003-02-061-4/+5
| | | | http://mechanicalcat.net/cgi-bin/log/python/turning_warnings_off.html)
* Provide version changed infoNeal Norwitz2003-02-061-0/+1
|
* Updated version of [ 558544 ] cmd.py: add instance-specific stdin/outAnthony Baxter2003-02-062-25/+42
| | | | | | | | | | This patch adds stdin, stdout as optional arguments to the cmd.Cmd constructor (defaulting to sys.stdin, sys.stdout), and changes the Cmd methods throughout to use self.stdout.write() and self.stdin.foo for output and input. This allows much greater flexibility for using cmd - for instance, hooking it into a telnet server. Patch for library module and for documentation.
* Small function call optimization and special build option for call stats.Jeremy Hylton2003-02-056-14/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | -DCALL_PROFILE: Count the number of function calls executed. When this symbol is defined, the ceval mainloop and helper functions count the number of function calls made. It keeps detailed statistics about what kind of object was called and whether the call hit any of the special fast paths in the code. Optimization: When we take the fast_function() path, which seems to be taken for most function calls, and there is minimal frame setup to do, avoid call PyEval_EvalCodeEx(). The eval code ex function does a lot of work to handle keywords args and star args, free variables, generators, etc. The inlined version simply allocates the frame and copies the arguments values into the frame. The optimization gets a little help from compile.c which adds a CO_NOFREE flag to code objects that don't have free variables or cell variables. This change allows fast_function() to get into the fast path with fewer tests. I measure a couple of percent speedup in pystone with this change, but there's surely more that can be done.
* Got rid of macfs and made a bit more OSX-friendly.Jack Jansen2003-02-051-7/+10
|
* removing old junkJust van Rossum2003-02-051-60/+0
|
* Removed unused import of macfs.Jack Jansen2003-02-051-1/+0
|
* I don't think this script serves a useful purpose anymore, and I can'tJack Jansen2003-02-051-0/+0
| | | | be bothered to fix it.
* Fix for SF #668433. I'm not explaining it here; ample comments are inGuido van Rossum2003-02-051-0/+93
| | | | the code.
* Refactor the logic for setting f_builtins.Jeremy Hylton2003-02-051-24/+31
| | | | | | | For the case where the current globals match the previous frame's globals, eliminates three tests in two if statements. For the case where we just get __builtins__ from a module, eliminate a couple of tests.
* [Patch #654421 from Matthew Mueller]Andrew M. Kuchling2003-02-051-2/+2
| | | | | | | | | gzip shouldn't raise ValueError on corrupt files Currently the gzip module will raise a ValueError if the file was corrupt (bad crc or bad size). I can't see how that applies to reading a corrupt file. IOError seems better, and it's what code will likely be looking for.
* Markup fixes; in particular, the tables are now reasonable widthAndrew M. Kuchling2003-02-051-104/+117
|
* dis(): Added an optional memo argument, so that multiple pickles in aTim Peters2003-02-051-2/+38
| | | | | file can be dumped without (bogus) complaint if the the pickles were created using a single pickle memo.
* SF bug 681122: Built-in function dir() causes refcount leak in baseclasses.Tim Peters2003-02-051-1/+4
| | | | | | merge_class_dict(): This was missing a decref. Bugfix candidate.
* [680789] Debug with long array takes foreverTim Peters2003-02-053-0/+33
| | | | | Added array.array to the types repr.py knows about, after a suggestion from Jurjen N.E. Bos.
* Patch #551977: Regression exceptions for cygwinJason Tishler2003-02-051-0/+1
| | | | Applied the skip test_ossaudiodev patch.
* Getting rid of macfs and FSSpecs.Jack Jansen2003-02-051-7/+5
|
* Got rid of macfsJack Jansen2003-02-051-5/+3
|
* Added "Open File by Name" command which presens a filename dialog. IfJack Jansen2003-02-051-0/+17
| | | | the clipboard contains a filename that filename is used as the default.