summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused variable.Guido van Rossum2003-02-092-2/+1
|
* C Code:Raymond Hettinger2003-02-094-199/+360
| | | | | | | | | | | | | | | * Removed the ifilter flag wart by splitting it into two simpler functions. * Fixed comment tabbing in C code. * Factored module start-up code into a loop. Documentation: * Re-wrote introduction. * Addede examples for quantifiers. * Simplified python equivalent for islice(). * Documented split of ifilter(). Sets.py: * Replace old ifilter() usage with new.
* SF patch #683187, fix universal newline problems on errorNeal Norwitz2003-02-091-1/+4
|
* Apply logistix's patch fromMichael W. Hudson2003-02-081-3/+43
| | | | [ 678518 ] Another parsermodule validation error
* The Python implementation of datetime was changed in ways that no longerTim Peters2003-02-081-31/+10
| | | | | | | tickle the 2.2.2 __cmp__ bug test_datetime used to tickle, so the workarounds for that bug no longer make sense in the test suite (which I'm still trying to keep as closely in synch as possible with Zope3's version).
* timedelta comparison and datetime addition: as the Python implementationTim Peters2003-02-081-4/+4
| | | | of datetime does, accept instances of subclasses too.
* Fix compatibility for earlier versions of Python (than 2.3), whichBarry Warsaw2003-02-082-5/+15
| | | | doesn't have UserDict.DictMixin.
* Comparison for timedelta, time, date and datetime objects: __eq__ andTim Peters2003-02-074-58/+155
| | | | | | | | | | | | | | | | | __ne__ no longer complain if they don't know how to compare to the other thing. If no meaningful way to compare is known, saying "not equal" is sensible. This allows things like if adatetime in some_sequence: and somedict[adatetime] = whatever to work as expected even if some_sequence contains non-datetime objects, or somedict non-datetime keys, because they only call __eq__. It still complains (raises TypeError) for mixed-type comparisons in contexts that require a total ordering, such as list.sort(), use as a key in a BTree-based data structure, and cmp().
* Merge the test part of the below checkin to the sandbox and Zope3, soGuido van Rossum2003-02-071-0/+8
| | | | | | | | | | | | the tests will remain in sync: """ Tres discovered a weird bug when a datetime is pickled, caused by the shadowing of __year, __month, __day and the use of proxies. Here's a quick fix and a quick unit test. I don't quite understand why this wasn't caught by the pickling unit tests. """
* Reserve a range for Zope, not specifically for Zope 3.Guido van Rossum2003-02-071-1/+1
|
* 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
|