summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix SF bug #642168, help() fails for some builtin topicsNeal Norwitz2003-02-071-2/+2
| | | | | | Fix pydoc when doing help for: and, or, not, UNICODE. Will backport.
* Update URLAndrew M. Kuchling2003-02-071-1/+1
|
* SF patch #682514, mmapmodule.c write fix for LP64 executablesNeal Norwitz2003-02-071-1/+1
| | | | | | | Make length an int so we get the right value from PyArg_ParseTuple(args, "s#", &str, &length) Will backport.
* Somehow, copy() of a classic class object was handledGuido van Rossum2003-02-072-1/+2
| | | | | | atomically, but deepcopy() didn't support this at all. I don't see any reason for this, so I'm adding ClassType to the set of types that are deep-copied atomically.
* Add support for copy_reg.dispatch_table.Guido van Rossum2003-02-072-48/+77
| | | | | Rewrote copy() and deepcopy() without avoidable try/except statements; getattr(x, name, None) or dict.get() are much faster than try/except.
* Made AskFile* dialogs movable-modal by default, by providing a dummyJack Jansen2003-02-071-10/+26
| | | | | | | eventProc (which simply drops all events on the floor). Also added a method SetDefaultEventProc through which frameworks can set a global event handler (which can still be overridden on a per-call basis with the eventProc argument).
* Add __getnewargs__ method to classes that need it.Guido van Rossum2003-02-071-0/+4
| | | | (Yes, this is an incompatibility. I'll document it in PEP 307.)
* - make some links into the reference documentation relative forFred Drake2003-02-071-30/+32
| | | | | off-line readers - fix some minor typos and markup errors
* * Eliminated tuple re-use in imap(). Doing it correctly made the codeRaymond Hettinger2003-02-071-62/+30
| | | | | too hard to read. * Simplified previous changes to izip() to make it easier to read.
* 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.