Just van Rossum
ba20533d82
[ 683376 ] Adding NotImplementedType to types.py
2003-02-10 19:38:33 +00:00
Michael W. Hudson
f163d10fbe
Make comments agree with code (I think).
2003-02-10 19:36:46 +00:00
Michael W. Hudson
065f5facea
Sundry very picky changes.
2003-02-10 19:24:50 +00:00
Michael W. Hudson
aab0260682
Remove erroneous period.
2003-02-10 19:21:16 +00:00
Michael W. Hudson
1e71b04258
Update advice about __module__ and __name__ and tp_name wrt. new types.
...
Add \refs to GC section that were XXXed out.
2003-02-10 19:18:21 +00:00
Michael W. Hudson
bbe17f50eb
A typo, and desist from inaccurately describing some things as lists.
2003-02-10 19:12:42 +00:00
Walter Dörwald
4f046e2e21
Add a few tests to test_count() to increase coverage in
...
Object/unicodeobject.c::unicode_count().
2003-02-10 17:51:03 +00:00
Walter Dörwald
74640247d4
Fix copy&paste error: call title instead of count
2003-02-10 17:44:16 +00:00
Walter Dörwald
8dd19321bb
Change filtertuple() to use tp_as_sequence->sq_item
...
instead of PyTuple_GetItem, so an overwritten __getitem__
in a tuple subclass works. SF bug #665835 .
2003-02-10 17:36:40 +00:00
Jack Jansen
8d326b8581
Punctuation fixes in docstrings.
2003-02-10 16:08:17 +00:00
Guido van Rossum
f6c9ba8457
Fold long lines.
2003-02-10 16:05:43 +00:00
Jack Jansen
6a600aba2d
Added docstrings.
2003-02-10 15:55:51 +00:00
Andrew M. Kuchling
72df65ac0e
Add Neil's suggestions for avoiding this warning
2003-02-10 15:08:16 +00:00
Tim Peters
2c646c9fc1
Squashed compiler wng about signed/unsigned clash in comparison.
2003-02-10 14:48:29 +00:00
Jack Jansen
26bf3acf42
- Better exception when the database isn't found.
...
- Allow for "manual:" pseudo-scheme in downloadURL to signal that
the download should be done manually.
2003-02-10 14:19:14 +00:00
Jack Jansen
4f82a513ca
Pick up Makefile variable BASECFLAGS too. This is needed since OPT was
...
split into OPT and BASECFLAGS (Makefile.pre.in rev. 1.108), because
now there are essential CFLAGS in BASECFLAGS.
2003-02-10 14:02:33 +00:00
Jack Jansen
c4b217dd18
Use MD5 checksums to check archive integrity and forestall downloads.
2003-02-10 13:38:44 +00:00
Walter Dörwald
1918f7755e
Change filterstring() and filterunicode(): If the
...
object is not a real str or unicode but an instance
of a subclass, construct the output via looping
over __getitem__. This guarantees that the result
is the same for function==None and function==lambda x:x
This doesn't happen for tuples, because filtertuple()
uses PyTuple_GetItem().
(This was discussed on SF bug #665835 ).
2003-02-10 13:19:13 +00:00
Jack Jansen
b4bb64e288
Added preInstall and postInstall commands to packages. PIL needs this
...
(preInstall, at least).
2003-02-10 13:08:04 +00:00
Just van Rossum
e1ebd80b04
mention unicode file name support on OSX
2003-02-10 10:06:18 +00:00
Just van Rossum
73ffb4aa4e
mention unicode support in compile, eval and exec
2003-02-10 09:57:08 +00:00
Just van Rossum
b9b8e9cf6d
My previous checkin caused compile() to no longer accept buffers, as noted
...
my MAL. Fixed. (Btw. eval() still doesn't take buffers, but that was so
even before my patch.)
2003-02-10 09:22:01 +00:00
Just van Rossum
3aaf42c613
patch #683515 : "Add unicode support to compile(), eval() and exec"
...
Incorporated nnorwitz's comment re. Py__USING_UNICODE.
2003-02-10 08:21:10 +00:00
Neal Norwitz
4adc9abc32
Fix memory leak of newstr when putenv() fails
2003-02-10 03:10:43 +00:00
Neal Norwitz
de8b94c3e1
Fix SF bug #683467 , 'int' ability to generate longs not inherited
...
When subclassing from an int but not overriding __new__,
long values were not converted properly. Try to convert
longs into an int.
2003-02-10 02:12:43 +00:00
Neal Norwitz
9caf9c040e
Add tests and news entry about parser errors from bug #678518 .
2003-02-10 01:54:06 +00:00
Neal Norwitz
573e033488
Alphabetize some names
...
Add Grant Olson for patch provided to fix bug #678518
2003-02-10 01:09:49 +00:00
Neal Norwitz
e4b5500e54
Remove duplicate code introduced by fixing bug #678518
2003-02-10 01:08:50 +00:00
Walter Dörwald
f6b56aecad
Fix two refcounting bugs
2003-02-09 23:42:56 +00:00
Jack Jansen
95839b8af9
Strawman for a Package Install Manager for Python. It isn't CPAN yet, but at
...
less than 500 lines it already manages to test whether Numeric is installed,
and can install it if it isn't, including any prerequisites.
2003-02-09 23:10:20 +00:00
Just van Rossum
f032f86e9e
patch 680474 that fixes bug 679880: compile/eval/exec refused utf-8 bom
...
mark. Added unit test.
2003-02-09 20:38:48 +00:00
Guido van Rossum
cf117b0b40
Rename 'proto' keyword arg to 'protocol' . Greg Ward's suggestion.
2003-02-09 17:19:41 +00:00
Guido van Rossum
d58f3fce3d
Remove unused variable.
2003-02-09 17:19:18 +00:00
Raymond Hettinger
60eca9331a
C Code:
...
* Removed the ifilter flag wart by splitting it into two simpler functions.
* Fixed comment tabbing in C code.
* Factored module start-up code into a loop.
Documentation:
* Re-wrote introduction.
* Addede examples for quantifiers.
* Simplified python equivalent for islice().
* Documented split of ifilter().
Sets.py:
* Replace old ifilter() usage with new.
2003-02-09 06:40:58 +00:00
Neal Norwitz
cb3319f61e
SF patch #683187 , fix universal newline problems on error
2003-02-09 01:10:02 +00:00
Michael W. Hudson
df1252dec9
Apply logistix's patch from
...
[ 678518 ] Another parsermodule validation error
2003-02-08 18:05:10 +00:00
Tim Peters
68124bb771
The Python implementation of datetime was changed in ways that no longer
...
tickle the 2.2.2 __cmp__ bug test_datetime used to tickle, so the
workarounds for that bug no longer make sense in the test suite (which I'm
still trying to keep as closely in synch as possible with Zope3's
version).
2003-02-08 03:46:31 +00:00
Tim Peters
aa7d849c7a
timedelta comparison and datetime addition: as the Python implementation
...
of datetime does, accept instances of subclasses too.
2003-02-08 03:28:59 +00:00
Barry Warsaw
9914227caa
Fix compatibility for earlier versions of Python (than 2.3), which
...
doesn't have UserDict.DictMixin.
2003-02-08 03:18:58 +00:00
Tim Peters
07534a607b
Comparison for timedelta, time, date and datetime objects: __eq__ and
...
__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().
2003-02-07 22:50:28 +00:00
Guido van Rossum
275666fd50
Merge the test part of the below checkin to the sandbox and Zope3, so
...
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.
"""
2003-02-07 21:49:01 +00:00
Guido van Rossum
cef9db6db5
Reserve a range for Zope, not specifically for Zope 3.
2003-02-07 20:56:38 +00:00
Neal Norwitz
f98159c376
Fix SF bug #642168 , help() fails for some builtin topics
...
Fix pydoc when doing help for: and, or, not, UNICODE.
Will backport.
2003-02-07 20:49:40 +00:00
Andrew M. Kuchling
b8a3905112
Update URL
2003-02-07 20:22:33 +00:00
Neal Norwitz
4d933fe392
SF patch #682514 , mmapmodule.c write fix for LP64 executables
...
Make length an int so we get the right value from
PyArg_ParseTuple(args, "s#", &str, &length)
Will backport.
2003-02-07 19:44:56 +00:00
Guido van Rossum
1dca482dbd
Somehow, copy() of a classic class object was handled
...
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.
2003-02-07 17:53:23 +00:00
Guido van Rossum
c06e3acc73
Add support for copy_reg.dispatch_table.
...
Rewrote copy() and deepcopy() without avoidable try/except statements;
getattr(x, name, None) or dict.get() are much faster than try/except.
2003-02-07 17:30:18 +00:00
Jack Jansen
2731c5cf46
Made AskFile* dialogs movable-modal by default, by providing a dummy
...
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).
2003-02-07 15:45:40 +00:00
Guido van Rossum
f631859409
Add __getnewargs__ method to classes that need it.
...
(Yes, this is an incompatibility. I'll document it in PEP 307.)
2003-02-07 14:59:13 +00:00
Fred Drake
693aea2eb4
- make some links into the reference documentation relative for
...
off-line readers
- fix some minor typos and markup errors
2003-02-07 14:52:18 +00:00