Neal Norwitz
e152aab977
Convert docstrings to comments so regrtest -v prints method names
2006-06-02 04:45:53 +00:00
Tim Peters
d770ebd286
Armin committed his patch while I was reviewing it (I'm sure
...
he didn't know this), so merged in some changes I made during
review. Nothing material apart from changing a new `mask` local
from int to Py_ssize_t. Mostly this is repairing comments that
were made incorrect, and adding new comments. Also a few
minor code rewrites for clarity or helpful succinctness.
2006-06-01 15:50:44 +00:00
Tim Peters
80a18f0f9c
Re-enable a new empty-string test added during the NFS sprint,
...
but disabled then because str and unicode strings gave different
results. The implementations were repaired later during the
sprint, but the new test remained disabled.
2006-06-01 13:56:26 +00:00
Tim Peters
44bd9861d3
Record bugs 1275608 and 1456209 as being fixed.
2006-06-01 13:49:23 +00:00
Tim Peters
5535da0303
Whitespace normalization.
2006-06-01 13:41:46 +00:00
Armin Rigo
35f6d36951
[ 1497053 ] Let dicts propagate the exceptions in user __eq__().
...
[ 1456209 ] dictresize() vulnerability ( <- backport candidate ).
2006-06-01 13:19:12 +00:00
Georg Brandl
e08940ef6c
Some code style tweaks, and remove apply.
2006-06-01 13:00:49 +00:00
Georg Brandl
b9120e772b
Correctly dispatch Faults in loads (patch #1498627 )
2006-06-01 12:30:46 +00:00
Georg Brandl
6b50c63a23
Correctly allocate complex types with tp_alloc. (bug #1498638 )
2006-06-01 08:27:32 +00:00
Georg Brandl
85ac850834
Correctly unpickle 2.4 exceptions via __setstate__ (patch #1498571 )
2006-06-01 06:39:19 +00:00
Neal Norwitz
b16e4e7860
Remove ; at end of macro. There was a compiler recently that warned
...
about extra semi-colons. It may have been the HP C compiler.
This file will trigger a bunch of those warnings now.
2006-06-01 05:32:49 +00:00
Tim Peters
72270c220e
Repaired error in new comment.
2006-05-31 15:34:37 +00:00
Tim Peters
d6a6f023c8
_range_error(): Speed and simplify (there's no real need for
...
loops here). Assert that size_t is actually big enough, and
that f->size is at least one. Wrap a long line.
2006-05-31 15:33:22 +00:00
Tim Peters
c2b550e16e
Trimmed trailing whitespace.
2006-05-31 14:28:07 +00:00
Andrew M. Kuchling
07cf0722b3
Mention SimpleXMLRPCServer change
2006-05-31 14:12:47 +00:00
Andrew M. Kuchling
622f144175
[Bug #1473048 ]
...
SimpleXMLRPCServer and DocXMLRPCServer don't look at
the path of the HTTP request at all; you can POST or
GET from / or /RPC2 or /blahblahblah with the same results.
Security scanners that look for /cgi-bin/phf will therefore report
lots of vulnerabilities.
Fix: add a .rpc_paths attribute to the SimpleXMLRPCServer class,
and report a 404 error if the path isn't on the allowed list.
Possibly-controversial aspect of this change: the default makes only
'/' and '/RPC2' legal. Maybe this will break people's applications
(though I doubt it). We could just set the default to an empty tuple,
which would exactly match the current behaviour.
2006-05-31 14:08:48 +00:00
Kristján Valur Jónsson
bc09e1086e
Fixup the PCBuild8 project directory. exceptions.c have moved to Objects, and the functionalmodule.c has been replaced with _functoolsmodule.c. Other minor changes to .vcproj files and .sln to fix compilation
2006-05-31 13:35:41 +00:00
Andrew M. Kuchling
0d272bbccf
'functional' module was renamed to 'functools'
2006-05-31 13:18:56 +00:00
Thomas Heller
bd16bce81f
PyTuple_Pack is not available in Python 2.3, but ctypes must stay
...
compatible with that.
2006-05-31 11:37:58 +00:00
Neal Norwitz
9f16dd026c
On 64-bit platforms running test_struct after test_tarfile would fail
...
since the deprecation warning wouldn't be raised.
2006-05-31 09:02:44 +00:00
Neal Norwitz
377f54e85f
Revert last checkin, it is better to do make distclean
2006-05-31 08:01:08 +00:00
Neal Norwitz
971ea11e4c
Calculate smallest properly (it was off by one) and use proper ssize_t types for Win64
2006-05-31 07:43:27 +00:00
Brett Cannon
14a0952a1f
Clarify wording on default values for strptime(); defaults are used when better
...
values cannot be inferred.
Closes bug #1496315 .
2006-05-31 02:19:54 +00:00
Tim Peters
dd55b0a32c
Whitespace normalization.
2006-05-30 23:28:02 +00:00
Fredrik Lundh
9e9ef9fa5a
changed count to return 0 for slices outside the source string
2006-05-30 17:39:58 +00:00
Bob Ippolito
4182a75571
Change wrapping terminology to overflow masking
2006-05-30 17:37:54 +00:00
Fredrik Lundh
93eff6fecd
changed find/rfind to return -1 for matches outside the source string
2006-05-30 17:11:48 +00:00
Tim Peters
9faa3eda6b
PyLong_FromString(): Continued fraction analysis (explained in
...
a new comment) suggests there are almost certainly large input
integers in all non-binary input bases for which one Python digit
too few is initally allocated to hold the final result. Instead
of assert-failing when that happens, allocate more space. Alas,
I estimate it would take a few days to find a specific such case,
so this isn't backed up by a new test (not to mention that such
a case may take hours to run, since conversion time is quadratic
in the number of digits, and preliminary attempts suggested that
the smallest such inputs contain at least a million digits).
2006-05-30 15:53:34 +00:00
Andrew M. Kuchling
69fe4055a3
Add SoC name, and reorganize this section a bit
2006-05-30 12:52:01 +00:00
Georg Brandl
cdcede62c0
Convert test_exceptions to unittest.
2006-05-30 08:47:19 +00:00
Georg Brandl
b0432bc032
Do the check for no keyword arguments in __init__ so that
...
subclasses of Exception can be supplied keyword args
2006-05-30 08:17:00 +00:00
Neal Norwitz
5b72cd321d
I'm impatient. I think this will fix a few more problems with the buildbots.
...
I'm not sure this is the best approach, but I can't think of anything better.
If this creates problems, feel free to revert, but I think it's safe and
should make things a little better.
2006-05-30 07:36:54 +00:00
Georg Brandl
861089fc49
Disallow keyword args for exceptions.
2006-05-30 07:34:45 +00:00
Neal Norwitz
008b861bf0
Don't fail if the (sub)pkgname already exist.
2006-05-30 07:21:10 +00:00
Georg Brandl
05f97bffac
Add a test case for exception pickling. args is never NULL.
2006-05-30 07:13:29 +00:00
Georg Brandl
ddba473e26
Restore exception pickle support. #1497319 .
2006-05-30 07:04:55 +00:00
Tim Peters
33f4a6a31a
dict_print(): So that Neal & I don't spend the rest of
...
our lives taking turns rewriting code that works ;-),
get rid of casting illusions by declaring a new variable
with the obvious type.
2006-05-30 05:23:59 +00:00
Tim Peters
638144305c
dict_print(): Explicitly narrow the return value
...
from a (possibly) wider variable.
2006-05-30 05:04:59 +00:00
Neal Norwitz
5e1b45dc21
No DOWNCAST is required since sizeof(Py_ssize_t) >= sizeof(int) and Py_ReprEntr returns an int
2006-05-30 04:43:23 +00:00
Neal Norwitz
d3881b026c
Use Py_SAFE_DOWNCAST for safety. Fix format strings. Remove 2 more stray | in comment
2006-05-30 04:25:05 +00:00
Neal Norwitz
80af59cbd4
Remove stray | in comment
2006-05-30 04:19:21 +00:00
Tim Peters
9b10f7e0cb
Convert relevant dict internals to Py_ssize_t.
...
I don't have a box with nearly enough RAM, or an OS,
that could get close to tickling this, though (requires
a dict w/ at least 2**31 entries).
2006-05-30 04:16:25 +00:00
Neal Norwitz
1e44ca94ac
Simplify further by using AddStringConstant
2006-05-30 03:18:50 +00:00
Tim Peters
f0d55aca5d
Set a binary svn:mime-type property on this UTF-8 encoded file.
2006-05-30 02:30:30 +00:00
Tim Peters
27c70598a8
Whitespace normalization.
2006-05-30 02:26:46 +00:00
Tim Peters
aba19bc45f
deprecated_err(): Stop bizarre warning messages when the tests
...
are run in the order:
test_genexps (or any other doctest-based test)
test_struct
test_doctest
The `warnings` module needs an advertised way to save/restore
its internal filter list.
2006-05-30 02:25:25 +00:00
Bob Ippolito
6067f20172
Add a length check to aifc to ensure it doesn't write a bogus file
2006-05-30 00:26:01 +00:00
Bob Ippolito
2fd3977a9d
struct: modulo math plus warning on all endian-explicit formats for compatibility with older struct usage (ugly)
2006-05-29 22:55:48 +00:00
Fredrik Lundh
b51b470eb8
fixed "abc".count("", 100) == -96 error (hopefully, nobody's relying on
...
the current behaviour ;-)
2006-05-29 22:42:07 +00:00
Georg Brandl
a355c14fa1
Whoops.
2006-05-29 22:00:30 +00:00