- 07 Şub, 2003 16 kayıt (commit)
-
-
Tim Peters yazdı
__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().
-
Guido van Rossum yazdı
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. """
-
Guido van Rossum yazdı
-
Neal Norwitz yazdı
Fix pydoc when doing help for: and, or, not, UNICODE. Will backport.
-
Andrew M. Kuchling yazdı
-
Neal Norwitz yazdı
Make length an int so we get the right value from PyArg_ParseTuple(args, "s#", &str, &length) Will backport.
-
Guido van Rossum yazdı
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.
-
Guido van Rossum yazdı
Rewrote copy() and deepcopy() without avoidable try/except statements; getattr(x, name, None) or dict.get() are much faster than try/except.
-
Jack Jansen yazdı
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).
-
Guido van Rossum yazdı
(Yes, this is an incompatibility. I'll document it in PEP 307.)
-
Fred Drake yazdı
off-line readers - fix some minor typos and markup errors
-
Raymond Hettinger yazdı
too hard to read. * Simplified previous changes to izip() to make it easier to read.
-
Raymond Hettinger yazdı
* 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()
-
Neal Norwitz yazdı
Even with the extra work to cleanup the env, *BSD still leaks. Add a note. Will backport.
-
Fred Drake yazdı
Closes SF bug #680797.
-
Tim Peters yazdı
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.
-
- 06 Şub, 2003 24 kayıt (commit)
-
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Jack Jansen yazdı
-
Guido van Rossum yazdı
pickle.py, where it makes save_newobj() unnecessary. Tests pass.
-
Jack Jansen yazdı
used everywhere).
-
Guido van Rossum yazdı
-
Neal Norwitz yazdı
-
Andrew M. Kuchling yazdı
Use re module instead of regex
-
Guido van Rossum yazdı
- subclasses of list or dict - __reduce__ returning a 4-tuple or 5-tuple - slots
-
Andrew M. Kuchling yazdı
now crash because two arguments are expected. Add a default value to keep those scripts running.
-
Andrew M. Kuchling yazdı
Fix use of GetoptError, so demo() now works
-
Guido van Rossum yazdı
-
Michael W. Hudson yazdı
-
Michael W. Hudson yazdı
Backport candidate.
-
Guido van Rossum yazdı
-
Andrew M. Kuchling yazdı
-
Guido van Rossum yazdı
coverage.
-
Andrew M. Kuchling yazdı
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?
-
Andrew M. Kuchling yazdı
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?
-
Tim Peters yazdı
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.
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
-
Guido van Rossum yazdı
-