Tim Peters
e9ef203ea6
Added a simple NEWOBJ test. This is in the pickle-only part of the
...
test for now (cPickle can't yet produce NEWOBJ).
2003-02-13 18:42:00 +00:00
Andrew M. Kuchling
c1eea67d93
Remove filecmp
2003-02-13 18:36:22 +00:00
Walter Dörwald
7585229bbf
Port test_userlist to PyUnit and add a few tests to increase code
...
coverage. From SF patch #662807
2003-02-13 18:07:43 +00:00
Guido van Rossum
298e421453
SF patch #685738 by Michael Stone.
...
This changes the default __new__ to refuse arguments iff tp_init is the
default __init__ implementation -- thus making it a TypeError when you
try to pass arguments to a constructor if the class doesn't override at
least __init__ or __new__.
2003-02-13 16:30:16 +00:00
Guido van Rossum
0c016a9590
Re-enable compiling ossaudiodev now that it seems to work again.
2003-02-13 16:12:21 +00:00
Tim Peters
8587b3c073
Added a HIGHEST_PROTOCOL module attribute to pickle and cPickle.
2003-02-13 15:44:41 +00:00
Neal Norwitz
bb1844148a
SF patch #682432 , add lookbehind tests
2003-02-13 03:01:18 +00:00
Walter Dörwald
3ea7cc3cbe
Fix typo.
2003-02-12 23:49:57 +00:00
Neal Norwitz
7cbd247af6
Add test to ensure files (fds) don't leak
2003-02-12 23:09:53 +00:00
Neal Norwitz
2294c0d4ec
Cleanup from patch #683257 :
...
Add missing INCREFs and re-indent returns to be consistent.
Add \n\ for lines in docstring
Add a pathetic test
Add docs
2003-02-12 23:02:21 +00:00
Guido van Rossum
3288f592cb
Expect test_ossaudiodev to skip on Linux, too. (It's broken.
...
Volunteers wanted to fix it!)
2003-02-12 20:40:08 +00:00
Guido van Rossum
9c00f42870
Systematic testing of hex/oct constants.
2003-02-12 17:09:17 +00:00
Guido van Rossum
66b1259dbc
SF #660455 : patch by NNorwitz.
...
"Unsigned" (i.e., positive-looking, but really negative) hex/oct
constants with a leading minus sign are once again properly negated.
The micro-optimization for negated numeric constants did the wrong
thing for such hex/oct constants. The patch avoids the optimization
for all hex/oct constants.
This needs to be backported to Python 2.2!
2003-02-12 16:57:47 +00:00
Jack Jansen
e71b9f830b
- Use distutils to find site-python (suggested by Thomas Heller, thanks!)
...
- Fixed a bug for packages without MD5 checksum.
2003-02-12 16:37:00 +00:00
Just van Rossum
c96d6ce3c2
Thank you sir, can I have another.
2003-02-12 16:19:39 +00:00
Jack Jansen
f59c6fa125
When in MacPython-OSX use bundlebuilder to create .app bundles.
2003-02-12 15:37:26 +00:00
Jack Jansen
53b341ff67
- Better way to find site-packages
...
- Catch stderr as well as stdout
- Fixed a bug with non-installable packages
- Parse .pth files after installing, so you don't have to restart Python (or
the IDE) after installing.
2003-02-12 15:36:25 +00:00
Guido van Rossum
a89d10edc9
Implement another useful feature for proxies: in super(X, x), x may
...
now be a proxy for an X instance, as long as issubclass(x.__class__, X).
2003-02-12 03:58:38 +00:00
Guido van Rossum
03bc7d3c4d
SF #532767 : isinstance(x, X) should work when x is a proxy for an X
...
instance, as long as x.__class__ is X or a subclass thereof.
Did a little cleanup of PyObject_IsInstance() too.
2003-02-12 03:32:58 +00:00
Tim Peters
42f08ac1e3
Implemented batching for dicts in cPickle. This is after two failed
...
attempts to merge the C list-batch and dict-batch code -- they worked, but
it was a godawful mess to read.
2003-02-11 22:43:24 +00:00
Jack Jansen
e7b33db22d
Changed database format to make fields adhere to PEP 241 where
...
applicable, and use a similar naming scheme for other fields. This
has drastically changed the structure, as the PEP241 names aren't
identifiers.
2003-02-11 22:40:59 +00:00
Tim Peters
1092d64002
Implemented list batching in cPickle.
2003-02-11 21:06:20 +00:00
Guido van Rossum
b6e5a0c658
Put proper tests in classmethod_get(). Remove the type argument to
...
descr_check(); it wasn't useful. Change the type argument of the
various _get() methods to PyObject * because the call signature of
tp_descr_get doesn't guarantee its type.
2003-02-11 18:44:42 +00:00
Tim Peters
8d2613adbe
Added tests to ensure that list and dict "chunking" are actually
...
getting done. Since this isn't yet implemented in cPickle, the
new tests are in TempAbstractPickleTests (which cPickle doesn't
run).
2003-02-11 16:40:16 +00:00
Guido van Rossum
3f50cdc05e
Get rid of the "bozo" __getstate__ that was inserted when __slots__
...
was used. This simplifies some logic in copy_reg.py (used by
pickling). It also broke a test, but this was rewritten to test the
new feature. :-)
2003-02-10 21:31:27 +00:00