Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Got rid of FSSpecs. | Jack Jansen | 2003-02-06 | 1 | -29/+28 |
| | |||||
* | Move _better_reduce from copy.py to copy_reg.py, and also use it in | Guido van Rossum | 2003-02-06 | 3 | -163/+83 |
| | | | | pickle.py, where it makes save_newobj() unnecessary. Tests pass. | ||||
* | Got rid of macfs and FSSpecs in general (pathnames or FSRefs are now | Jack Jansen | 2003-02-06 | 9 | -68/+55 |
| | | | | used everywhere). | ||||
* | Fix a bug in the way __getnewargs__ was handled. | Guido van Rossum | 2003-02-06 | 2 | -1/+19 |
| | |||||
* | Update doc to reflect code changes for obsoleting use_statcache parameter | Neal Norwitz | 2003-02-06 | 1 | -8/+3 |
| | |||||
* | Use new name for GetoptError, and pass it two arguments | Andrew M. Kuchling | 2003-02-06 | 1 | -5/+5 |
| | | | | Use re module instead of regex | ||||
* | Support all the new stuff supported by the new pickle code: | Guido van Rossum | 2003-02-06 | 2 | -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"', and | Andrew M. Kuchling | 2003-02-06 | 1 | -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 supplied | Andrew M. Kuchling | 2003-02-06 | 1 | -4/+12 |
| | | | | Fix use of GetoptError, so demo() now works | ||||
* | Remove a debug print statement. | Guido van Rossum | 2003-02-06 | 1 | -1/+0 |
| | |||||
* | Remove another lie. | Michael W. Hudson | 2003-02-06 | 1 | -4/+2 |
| | |||||
* | Correct lie about METH_NOARGS functions. | Michael W. Hudson | 2003-02-06 | 1 | -5/+5 |
| | | | | Backport candidate. | ||||
* | Support __reduce__ returning a 4-tuple or 5-tuple. | Guido van Rossum | 2003-02-06 | 2 | -1/+56 |
| | |||||
* | Typo fixes | Andrew M. Kuchling | 2003-02-06 | 1 | -2/+2 |
| | |||||
* | A test suite for the copy module. This should provide full code | Guido van Rossum | 2003-02-06 | 1 | -0/+384 |
| | | | | coverage. | ||||
* | [Bug #680494] filecmp.py uses obsolete statcache module. | Andrew M. Kuchling | 2003-02-06 | 1 | -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. Kuchling | 2003-02-06 | 1 | -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 epoch | Tim Peters | 2003-02-06 | 1 | -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 Hylton | 2003-02-06 | 1 | -2/+1 |
| | |||||
* | Replace hasattr() + getattr() with single getattr() and default value. | Jeremy Hylton | 2003-02-06 | 1 | -2/+1 |
| | |||||
* | Clarify that __module__ applies to various type of functions. | Guido van Rossum | 2003-02-06 | 1 | -6/+7 |
| | |||||
* | Add news item about __module__ attribute on functions. | Jeremy Hylton | 2003-02-06 | 1 | -0/+8 |
| | |||||
* | Comment typo fix | Andrew M. Kuchling | 2003-02-06 | 1 | -1/+1 |
| | |||||
* | Mention FutureWarning for large ints | Andrew M. Kuchling | 2003-02-06 | 1 | -0/+5 |
| | |||||
* | Fix description of filterwarnings() parameters (error noted by Richard Jones at | Andrew M. Kuchling | 2003-02-06 | 1 | -4/+5 |
| | | | | http://mechanicalcat.net/cgi-bin/log/python/turning_warnings_off.html) | ||||
* | Provide version changed info | Neal Norwitz | 2003-02-06 | 1 | -0/+1 |
| | |||||
* | Updated version of [ 558544 ] cmd.py: add instance-specific stdin/out | Anthony Baxter | 2003-02-06 | 2 | -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 Hylton | 2003-02-05 | 6 | -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 Jansen | 2003-02-05 | 1 | -7/+10 |
| | |||||
* | removing old junk | Just van Rossum | 2003-02-05 | 1 | -60/+0 |
| | |||||
* | Removed unused import of macfs. | Jack Jansen | 2003-02-05 | 1 | -1/+0 |
| | |||||
* | I don't think this script serves a useful purpose anymore, and I can't | Jack Jansen | 2003-02-05 | 1 | -0/+0 |
| | | | | be bothered to fix it. | ||||
* | Fix for SF #668433. I'm not explaining it here; ample comments are in | Guido van Rossum | 2003-02-05 | 1 | -0/+93 |
| | | | | the code. | ||||
* | Refactor the logic for setting f_builtins. | Jeremy Hylton | 2003-02-05 | 1 | -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. Kuchling | 2003-02-05 | 1 | -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 width | Andrew M. Kuchling | 2003-02-05 | 1 | -104/+117 |
| | |||||
* | dis(): Added an optional memo argument, so that multiple pickles in a | Tim Peters | 2003-02-05 | 1 | -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 Peters | 2003-02-05 | 1 | -1/+4 |
| | | | | | | merge_class_dict(): This was missing a decref. Bugfix candidate. | ||||
* | [680789] Debug with long array takes forever | Tim Peters | 2003-02-05 | 3 | -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 cygwin | Jason Tishler | 2003-02-05 | 1 | -0/+1 |
| | | | | Applied the skip test_ossaudiodev patch. | ||||
* | Getting rid of macfs and FSSpecs. | Jack Jansen | 2003-02-05 | 1 | -7/+5 |
| | |||||
* | Got rid of macfs | Jack Jansen | 2003-02-05 | 1 | -5/+3 |
| | |||||
* | Added "Open File by Name" command which presens a filename dialog. If | Jack Jansen | 2003-02-05 | 1 | -0/+17 |
| | | | | the clipboard contains a filename that filename is used as the default. | ||||
* | Cast various floats to ints so we don't get warnings. | Jack Jansen | 2003-02-05 | 2 | -1/+3 |
| | |||||
* | This patch reverts the following: | Jason Tishler | 2003-02-05 | 1 | -5/+6 |
| | | | | | | | | It also prevents building against the real X headers, if installed. After discussions with the Cygwin project lead, I believe that building against the real X headers is OK. Especially, since the psuedo-X headers are *not* installed by the Cygwin Tcl/Tk binary package. | ||||
* | This patch enables Cygwin Python to build _tkinter against Tcl/Tk 8.4. | Jason Tishler | 2003-02-05 | 1 | -12/+4 |
| | | | | | | Note that this patch just reverts the lib_prefix (i.e., "cyg") portion of my Tcl/Tk 8.3 patch. It seems that Cygwin Tcl/Tk is using a more normal file naming convention again. | ||||
* | Fixed a few typos, and changed FSCreateResourceFile filename argument to ↵ | Jack Jansen | 2003-02-05 | 1 | -3/+3 |
| | | | | unicode. | ||||
* | Added itertools module. | Jack Jansen | 2003-02-05 | 3 | -0/+2 |
| | |||||
* | Use os.path.realpath() in stead of abspath(), so the tests don't fail if | Jack Jansen | 2003-02-05 | 2 | -4/+4 |
| | | | | we have a symlink somewhere in the TESTFN path. | ||||
* | SF patch #674396: Apply UserDict.DictMixin to expand dbshelve and dbojb | Raymond Hettinger | 2003-02-05 | 2 | -2/+4 |
| | | | | to have a full dictionary interface. |