- 30 Dec, 2003 7 commits
-
-
Barry Warsaw authored
-
Fred Drake authored
-
Fred Drake authored
- fix minor typo in comment
-
Fred Drake authored
presentation work right (and didn't work anyway) - fix minor typo
-
Fred Drake authored
-
Fred Drake authored
- remove spurious blank lines
-
Martin v. Löwis authored
-
- 29 Dec, 2003 1 commit
-
-
Hye-Shik Chang authored
-
- 28 Dec, 2003 1 commit
-
-
Andrew MacIntyre authored
-
- 26 Dec, 2003 7 commits
-
-
Jeremy Hylton authored
The special-case code that was removed could return a value indicating success but leave an exception set. test_fileinput failed in a debug build as a result.
-
Jeremy Hylton authored
-
Andrew MacIntyre authored
semantics to include subtypes. Most concrete object APIs then had a Py<type>_CheckExact() macro added to test for an object's type not including subtypes. The PyDict_CheckExact() macro wasn't created at that time, so I've added it for API completeness/symmetry - even though nobody has complained about its absence in the time since 2.2 was released. Not a backport candidate.
-
Andrew MacIntyre authored
-
Andrew MacIntyre authored
-
Andrew MacIntyre authored
semantics to include subtypes. Most concrete object APIs then had a Py<type>_CheckExact() macro added to test for an object's type not including subtypes. The PyDict_CheckExact() macro wasn't created at that time, so I've added it for API completeness/symmetry - even though nobody has complained about its absence in the time since 2.2 was released. Not a backport candidate.
-
Andrew MacIntyre authored
with most other concrete object checks, but the docs weren't brought into line. PyList_CheckExact() was added at 2.2 but never documented. backport candidate.
-
- 25 Dec, 2003 3 commits
-
-
Andrew MacIntyre authored
with most other concrete object checks, but the docs weren't brought into line. PyList_CheckExact() was added at 2.2 but never documented. backport candidate.
-
Andrew MacIntyre authored
which can be reviewed via http://coding.derkeiler.com/Archive/Python/comp.lang.python/2003-12/1011.html Duncan Booth investigated, and discovered that an "optimisation" was in fact a pessimisation for small numbers of elements in a source list, compared to not having the optimisation, although with large numbers of elements in the source list the optimisation was quite beneficial. He posted his change to comp.lang.python (but not to SF). Further research has confirmed his assessment that the optimisation only becomes a net win when the source list has more than 100 elements. I also found that the optimisation could apply to tuples as well, but the gains only arrive with source tuples larger than about 320 elements and are nowhere near as significant as the gains with lists, (~95% gain @ 10000 elements for lists, ~20% gain @ 10000 elements for tuples) so I haven't proceeded with this. The code as it was applied the optimisation to list subclasses as well, and this also appears to be a net loss for all reasonable sized sources (~80-100% for up to 100 elements, ~20% for more than 500 elements; I tested up to 10000 elements). Duncan also suggested special casing empty lists, which I've extended to all empty sequences. On the basis that list_fill() is only ever called with a list for the result argument, testing for the source being the destination has now happens before testing source types.
-
Andrew MacIntyre authored
-
- 23 Dec, 2003 7 commits
-
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
directory name with a single dot fails. The patch skips creating directories named os.curdir. (Patch by Bram Moolenaar) 2.3 bugfix candidate.
-
Hye-Shik Chang authored
using specialized splitter for 1 char sep.
-
- 22 Dec, 2003 4 commits
-
-
Tim Peters authored
about "characters", we assume something about C's char type (which is an integral type).
-
Skip Montanaro authored
bit by checking the value of UCHAR_MAX in Include/Python.h. There was a check in Objects/stringobject.c. Remove that. (Note that we don't define UCHAR_MAX if it's not defined as the old test did.)
-
Hye-Shik Chang authored
Previous revision was a fix for a problem by not 2.204 but 2.205.
-
Hye-Shik Chang authored
(Pointy hat goes to perky)
-
- 21 Dec, 2003 1 commit
-
-
Raymond Hettinger authored
dictionary as the original. This parallels MvL's change to Lib/os.py 1.56. Backport candidate.
-
- 20 Dec, 2003 2 commits
-
-
Thomas Heller authored
-
Raymond Hettinger authored
-
- 19 Dec, 2003 3 commits
-
-
Walter Dörwald authored
Backport candidate.
-
Hye-Shik Chang authored
-
Hye-Shik Chang authored
test__locale: add typical POSIX-style full locale names. test_locale: use en_US.US-ASCII on FreeBSD.
-
- 18 Dec, 2003 4 commits
-
-
Skip Montanaro authored
* in py-checker-run, fall back to read-string if read-shell-command (XEmacs-specific) is not available. * highlight variables would mask builtins as if they were keywords.
-
Fred Drake authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-