Guido van Rossum
4402241450
Jim Fulton reported a segfault in dir(). A heavily proxied object
...
returned a proxy for __class__ whose __bases__ was also a proxy. The
merge_class_dict() helper for dir() assumed incorrectly that __bases__
would always be a tuple and used the in-line tuple API on the proxy.
I will backport this to 2.2 as well.
2002-05-13 18:29:46 +00:00
Guido van Rossum
df4dabd5d2
SF 554663. Add OpenBSD3. Bugfix candidate if anyone cares.
2002-05-13 14:58:02 +00:00
Guido van Rossum
6a1bd39d8e
SF 554073. Fix typo in error reporting of unrecognized character
...
following IAC. Bugfix candidate if anyone cares.
2002-05-13 14:55:33 +00:00
Michael W. Hudson
1755ad9b02
array_tounicode isn't defined in --disable-unicode builds...
...
I have a patch to make the test work too, but it's not pretty so
I'll submit it to sf.
2002-05-13 10:14:59 +00:00
Michael W. Hudson
e1c67d1dc0
Make StringIO work in --disable-unicode builds...
2002-05-13 09:42:16 +00:00
Walter Dörwald
775c11f07a
Add #ifdef PY_USING_UNICODE sections, so that
...
stringobject.c compiles again with --disable-unicode.
Fixes SF bug http://www.python.org/sf/554912
2002-05-13 09:00:41 +00:00
Raymond Hettinger
87f59eeb0a
Noted SF patch 552452 adding degree/radian conversions to mathmodule.c.
2002-05-13 04:17:32 +00:00
Raymond Hettinger
d6f2267a83
Added degrees() and radians() to mathmodule. Closes patch 552452 and
...
feature request 426539.
2002-05-13 03:56:10 +00:00
Raymond Hettinger
64108afa60
Adds tests for degrees() and radians() functions added to mathmodule.
...
Closes patch 552452 and feature request 426539.
2002-05-13 03:55:01 +00:00
Raymond Hettinger
c045b49633
Added degrees() and radians() to mathmodule. Closing patch 552452 and
...
feature request 426539.
2002-05-13 03:52:47 +00:00
Jack Jansen
7906634f28
- Better exception when a NULL CF object is encountered.
...
- Manually generate a routine with funny error semantics.
2002-05-12 22:04:14 +00:00
Barry Warsaw
69c9266f45
(py-execute-region): Do the blank line skipping inside the
...
save-excursion so that when the function is complete, point is
preserved.
2002-05-12 17:37:46 +00:00
Tim Peters
39a86c2188
SF bug 555042: zip() may trigger MemoryError.
...
NOT a bugfix candidate: this is a fix to an optimization introduced
in 2.3.
2002-05-12 07:19:38 +00:00
Raymond Hettinger
9b1df1db68
Noted change in ftplib 1.68 closing SF patch 553277.
2002-05-12 06:07:21 +00:00
Raymond Hettinger
e874fc304e
Closes SF patch 553277. Per GvR, reverting to original patch -- the way to
...
test if 'callable' has not been supplied is to test for None instead of
False. The previous correction to 'if callable()' was wrong because an unusable
callback would be ignored rather than raising an exception.
2002-05-12 05:53:51 +00:00
Raymond Hettinger
94153096f5
Closes SF patch: 552468.
...
Type class unification invalidated the statement: x.__getitem__[i] is not equivalent to x[i].
2002-05-12 03:09:25 +00:00
Fred Drake
59518b04d5
Fix typo: ptread --> pthread
...
Closes SF bug #554644 .
2002-05-11 03:36:26 +00:00
Jack Jansen
6d207c09aa
- Get data from CFData objects as Python strings and vv.
...
- Started on supporting CFPropertyLists.
2002-05-10 22:51:58 +00:00
Jeremy Hylton
e037665f99
Use isinstance() in preference to comparison of type by is.
2002-05-10 21:00:35 +00:00
Andrew M. Kuchling
fad2f59313
Give the enumerate() PEP a section of its own
...
Add some credits
Fill in a link
2002-05-10 21:00:05 +00:00
Greg Ward
007c04a9d3
[from Oct 2000]
...
Start fleshing out the "Examples" section.
2002-05-10 14:45:59 +00:00
Greg Ward
954ce8b4a1
[from Oct 2000]
...
The zipfile module has been in the standard library for some time now.
2002-05-10 14:42:10 +00:00
Greg Ward
58437f20f0
[from Oct 2000]
...
Clarify explanations of header file search directories.
2002-05-10 14:40:22 +00:00
Fred Drake
1f89e2abcc
Fix markup error that suppressed space.
...
Closes SF bug #554257 . Not relevant to older releases.
2002-05-10 12:37:56 +00:00
Andrew M. Kuchling
b2cb37f298
Fix typo
2002-05-09 14:33:18 +00:00
Jack Jansen
42251323b4
Fixed string and dict conversion, and implemented booleans and numbers (int and float). I think we now have enough CFType support to start on plists and CFpreferences!
...
Transparent handling of unknown CFType objects still TBD.
2002-05-08 22:13:51 +00:00
Jack Jansen
1df628ddce
Partial fix for string handling. Null byte TBD.
2002-05-08 15:29:33 +00:00
Neil Schemenauer
c9abc1de6b
Remove news about PyMalloc_*. Do we need to say anything about
...
pymalloc?
2002-05-08 14:14:41 +00:00
Andrew M. Kuchling
40df710876
Updates and rewriting
2002-05-08 13:39:03 +00:00
Martin v. Löwis
d8a20d21d7
Patch #553230 : Create LIBDIR if necessary. Bugfix candidate.
2002-05-08 08:59:59 +00:00
Martin v. Löwis
a8dd0941b8
Patch #553277 : Accept callbacks that are callable, not callbacks that are true.
2002-05-08 08:56:33 +00:00
Martin v. Löwis
09bdf72be3
Patch #553403 : Fix typo.
2002-05-08 08:51:29 +00:00
Martin v. Löwis
e452659237
Patch #551410 : Implement tp_getiter.
2002-05-08 08:49:27 +00:00
Martin v. Löwis
01f94bda38
Patch #552433 : Special-case tuples. Avoid sub-type checking for lists.
...
Avoid checks for negative indices and duplicate checks for support of
the sequence protocol.
2002-05-08 08:44:21 +00:00
Martin v. Löwis
000e37c3c4
Patch #551011 : Fix compilation problems with Cygwin.
2002-05-08 07:16:37 +00:00
Jack Jansen
5ad6f7a3a9
More support for bridging between Python and CoreFoundation objects. Still untested.
2002-05-07 23:00:03 +00:00
Jack Jansen
cb376460b7
Added pycfbridge.c
2002-05-07 22:59:06 +00:00
Jack Jansen
0627c3e371
Added enumobject.c
2002-05-07 21:42:08 +00:00
Andrew M. Kuchling
1624bc051f
Move 'Tips and Tricks' to be the last section
2002-05-07 21:03:45 +00:00
Andrew M. Kuchling
3b98dc16e9
Add section on Setup file
...
Updates for 2.2
Remove references to Makefile.pre.in build method
2002-05-07 21:02:35 +00:00
Andrew M. Kuchling
517109b11e
More filling out
2002-05-07 21:01:16 +00:00
Andrew M. Kuchling
21b23b09a2
Fix typos
2002-05-07 20:58:03 +00:00
Jack Jansen
ead4c80ac2
Fixed a mistake on my part when regenerating: removed a bogus import of Applscript_Suite.
...
Bugfix candidate (I'll move it over myself).
2002-05-07 20:16:20 +00:00
Andrew M. Kuchling
821013ef2c
Write two sections, and write some partial text for some other sections
2002-05-06 17:46:39 +00:00
Fred Drake
d05c74f42d
Add a note explaining the interaction between unbuffered input and
...
xreadlines.xreadlines().
This closes SF patch #552804 .
2002-05-06 16:02:42 +00:00
Andrew M. Kuchling
0b5c11252d
Prevent convert_path from crashing if the path is an empty string. Bugfix candidate.
2002-05-06 13:57:19 +00:00
Jack Jansen
efaffae8f6
First steps towards a generalized converter of Python object
...
hierarchies to CoreFoundation object hierarchies and vice versa.
2002-05-05 21:48:12 +00:00
Tim Peters
46c04e140c
random.gauss() uses a piece of hidden state used by nothing else,
...
and the .seed() and .whseed() methods failed to reset it. In other
words, setting the seed didn't completely determine the sequence of
results produced by random.gauss(). It does now. Programs repeatedly
mixing calls to a seed method with calls to gauss() may see different
results now.
Bugfix candidate (random.gauss() has always been broken in this way),
despite that it may change results.
2002-05-05 20:40:00 +00:00
Martin v. Löwis
2b41b0d6a7
Rename posix_WCONTINUED to posix_WIFCONTINUED, call WIFCONTINUED inside,
...
add it to the posix_methods.
2002-05-04 13:13:41 +00:00
Neil Schemenauer
b1094f0b1b
_PyGC_generation0 is now a pointer
2002-05-04 05:36:06 +00:00