summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* mention unicode file name support on OSXJust van Rossum2003-02-101-0/+4
|
* mention unicode support in compile, eval and execJust van Rossum2003-02-101-0/+3
|
* Fix SF bug #683467, 'int' ability to generate longs not inheritedNeal Norwitz2003-02-101-0/+3
| | | | | | When subclassing from an int but not overriding __new__, long values were not converted properly. Try to convert longs into an int.
* Add tests and news entry about parser errors from bug #678518.Neal Norwitz2003-02-101-0/+2
|
* Alphabetize some namesNeal Norwitz2003-02-101-2/+3
| | | | Add Grant Olson for patch provided to fix bug #678518
* Comparison for timedelta, time, date and datetime objects: __eq__ andTim Peters2003-02-071-1/+16
| | | | | | | | | | | | | | | | | __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().
* Added a note about getting rid of macfs usage (MacPython).Jack Jansen2003-02-061-0/+4
|
* 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
|
* Small function call optimization and special build option for call stats.Jeremy Hylton2003-02-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | -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.
* [680789] Debug with long array takes foreverTim Peters2003-02-051-0/+3
| | | | | Added array.array to the types repr.py knows about, after a suggestion from Jurjen N.E. Bos.
* If a float is passed where a int is expected, issue a DeprecationWarningNeil Schemenauer2003-02-041-3/+4
| | | | instead of raising a TypeError. Closes #660144 (again).
* Fix typo.Walter Dörwald2003-02-031-1/+1
|
* - Thanks to Scott David Daniels, a subtle bug in how the zlibGuido van Rossum2003-02-032-0/+6
| | | | | | | | extension implemented flush() was fixed. Scott also rewrite the zlib test suite using the unittest module. (SF bug #640230 and patch #678531.) Backport candidate I think.
* brainoSkip Montanaro2003-02-031-2/+2
|
* add note about new db2pickle.py and pickle2db.py scriptsSkip Montanaro2003-02-031-2/+19
|
* Add some notes that got python to work on the snake farmNeal Norwitz2003-02-021-0/+16
|
* long(string, base) now takes time linear in len(string) when base is aTim Peters2003-02-021-0/+3
| | | | | power of 2. Enabled the tail end of test_long() in pickletester.py because it no longer takes forever when run from test_pickle.py.
* There's no good reason for datetime objects to expose __getstate__()Tim Peters2003-02-011-2/+2
| | | | | | anymore either, so don't. This also allows to get rid of obscure code making __getnewargs__ identical to __getstate__ (hmm ... hope there wasn't more to this than I realize!).
* Move itertools module from the sandbox and into production.Raymond Hettinger2003-02-011-0/+3
|
* The various datetime object __setstate__() methods are no longer publicTim Peters2003-01-311-1/+6
| | | | | | | | (pickling no longer needs them, and immutable objects shouldn't have visible __setstate__() methods regardless). Rearranged the code to put the internal setstate functions in the constructor sections. Repaired the timedelta reduce() method, which was still producing stuff that required a public timedelta.__setstate__() when unpickling.
* Patch #669198: Add cflags to RC compile.Thomas Heller2003-01-311-0/+3
|
* Fix SF bug# 676155, RuntimeWarning with tp_compareNeal Norwitz2003-01-281-0/+4
| | | | Check return value of PyLong_AsDouble(), it can return an error.
* Support socket timeout in SSL, by Geoff Talvola.Guido van Rossum2003-01-272-0/+4
| | | | (SF patch #675750, to fix SF bug #675552.)
* Moving pickletools.py from the sandbox into the std library. I startedTim Peters2003-01-271-2/+6
| | | | | this over the weekend, and it made faster & better progress than I expected -- it's already useful <wink>.
* Attempting to keep the Mac section of the NEWS file up-to-date, in steadJack Jansen2003-01-271-1/+5
| | | | of the usual frantic editing at the last moment:-)
* Patch #670715: Universal Unicode Codec for POSIX iconv.Martin v. Löwis2003-01-261-0/+3
|
* Part 3 of Py2.3 updateRaymond Hettinger2003-01-261-49/+93
|
* SF #642974, logging SysLogHandler proto type wrongNeal Norwitz2003-01-261-0/+3
| | | | Syslog uses UDP (SOCK_DGRAM)
* Patch #636005: Filter unicode into unicode.Martin v. Löwis2003-01-251-0/+2
|
* Part II of Python2.3 updateRaymond Hettinger2003-01-251-12/+24
|
* Part I of an update for Python 2.3.Raymond Hettinger2003-01-251-60/+67
|
* date and datetime comparison: when we don't know how toTim Peters2003-01-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | compare against "the other" argument, we raise TypeError, in order to prevent comparison from falling back to the default (and worse than useless, in this case) comparison by object address. That's fine so far as it goes, but leaves no way for another date/datetime object to make itself comparable to our objects. For example, it leaves Marc-Andre no way to teach mxDateTime dates how to compare against Python dates. Discussion on Python-Dev raised a number of impractical ideas, and the simple one implemented here: when we don't know how to compare against "the other" argument, we raise TypeError *unless* the other object has a timetuple attr. In that case, we return NotImplemented instead, and Python will give the other object a shot at handling the comparison then. Note that comparisons of time and timedelta objects still suffer the original problem, though.
* Add news about getargs change.Neil Schemenauer2003-01-241-1/+4
|
* Bump the Windows build to use Sleepycat's 4.1.25.NC release (theTim Peters2003-01-241-3/+6
| | | | latest bsddb release without strong cryptography).
* SF bug 660872: datetimetz constructors behave counterintuitively (2.3a1).Tim Peters2003-01-231-0/+4
| | | | | | This gives much the same treatment to datetime.fromtimestamp(stamp, tz) as the last batch of checkins gave to datetime.now(tz): do "the obvious" thing with the tz argument instead of a senseless thing.
* Reimplemented datetime.now() to be useful.Tim Peters2003-01-231-0/+11
|
* add support for Python's bool type to xmlrpclib - patch # 559288Skip Montanaro2003-01-221-0/+2
|
* "Premature" doc changes, for new astimezone() rules, and the newTim Peters2003-01-221-3/+19
| | | | | | | | | tzinfo.fromutc() method. The C code doesn't implement any of this yet (well, not the C code on the machine I'm using now), nor does the test suite reflect it. The Python datetime.py implementation and test suite in the sandbox do match these doc changes. The C implementation probably won't catch up before Thursday (Wednesday is a scheduled "black hole" day this week <0.4 wink>).
* SF patch #670423: Add missing identity tests to operator.cRaymond Hettinger2003-01-181-2/+5
|
* Gyro Func for patch #661719.Martin v. Löwis2003-01-151-1/+2
|
* Patch #661719: Expose compilation errors as exceptions on request.Martin v. Löwis2003-01-151-0/+3
|
* Patch #473586: Implement CGIXMLRPCRequestHandler.Martin v. Löwis2003-01-151-0/+3
|
* Explicitly raise an exception in __cmp__ -- this clarifies that cmp()Guido van Rossum2003-01-141-0/+4
| | | | | | is not supported on sets. (Unfortunately, sorting a list of sets may still return random results because it uses < exclusively, but for sets that inly implements a partial ordering. Oh well.)
* Fix SF bug #667147, Segmentation fault printing str subclassNeal Norwitz2003-01-131-0/+3
| | | | | | | Fix infinite recursion which occurred when printing an object whose __str__() returned self. Will backport
* SF #639945 was fixed in alpha 1Neal Norwitz2003-01-101-0/+2
|
* Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragtoNeal Norwitz2003-01-101-0/+3
| | | | Add the optional gain parameter and pass it to Tk.
* SF #665913, Fix mmap module core dump with unixNeal Norwitz2003-01-101-0/+3
| | | | Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
* Utterly minimal changes to collapse datetimetz into datetime, and timetzTim Peters2003-01-081-1/+8
| | | | | | | | | into time. This is little more than *exporting* the datetimetz object under the name "datetime", and similarly for timetz. A good implementation of this change requires more work, but this is fully functional if you don't stare too hard at the internals (e.g., right now a type named "datetime" shows up as a base class of the type named "datetime"). The docs also need extensive revision, not part of this checkin.
* Made "ascii" the default encoding for MacPython, as suggested by MvL, and ↵Jack Jansen2003-01-081-0/+5
| | | | ripped out my previous changes to test_unicode. Doing this for 2.3a1 should give people enough time to complain, if they want to, and then we can see whether we want to do anything about it.