Benjamin Peterson
8e234c6e30
fix markup
2008-07-24 02:31:28 +00:00
Benjamin Peterson
415ce062bc
fix spacing
2008-07-24 02:27:46 +00:00
Raymond Hettinger
723ba3049a
Parse to the correct datatype.
2008-07-24 00:53:49 +00:00
Raymond Hettinger
33fcf9db74
Finish-up the partial conversion from int to Py_ssize_t for deque indices and length.
2008-07-24 00:08:18 +00:00
Georg Brandl
8c81fdad33
Use correct indentation.
2008-07-23 16:00:44 +00:00
Georg Brandl
d4c7e636a9
Move opcode handling to Python's extension.
2008-07-23 15:17:09 +00:00
Georg Brandl
f9efabb6d2
3k-warn about parser's "ast" aliases.
2008-07-23 15:16:45 +00:00
Benjamin Peterson
c6ad794051
use isinstance
2008-07-23 13:25:06 +00:00
Jesus Cea
c5a11fabdb
bsddb module updated to version 4.7.2devel9.
...
This patch publishes the work done until now
for Python 3.0 compatibility. Still a lot
to be done.
When possible, we use 3.0 features in Python 2.6,
easing development and testing, and exposing internal
changes to a wider audience, for better test coverage.
Some mode details:
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
2008-07-23 11:38:42 +00:00
Benjamin Peterson
30e208d525
remove unneeded import
2008-07-22 23:44:37 +00:00
Raymond Hettinger
d8dd86cc26
One more attribution.
2008-07-22 19:18:50 +00:00
Raymond Hettinger
5d4d16e44d
Fix credits for math.sum()
2008-07-22 19:03:05 +00:00
Raymond Hettinger
340383ce70
Tuples now have both count() and index().
2008-07-22 19:00:47 +00:00
Raymond Hettinger
9973ee86ed
Remove out-of-date section on Exact/Inexact.
2008-07-22 18:54:02 +00:00
Ronald Oussoren
5aa0b4d766
Fix build issue on OSX 10.4, somehow this wasn't committed before.
2008-07-22 07:06:33 +00:00
Ronald Oussoren
5a849d4911
Fix buglet in fix for issue3381
2008-07-22 07:06:00 +00:00
Gregory P. Smith
0470bab697
Issue #2620 : Overflow checking when allocating or reallocating memory
...
was not always being done properly in some python types and extension
modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
all been updated to perform better checks and places in the code that
would previously leak memory on the error path when such an allocation
failed have been fixed.
2008-07-22 04:46:32 +00:00
Benjamin Peterson
f5574a0c29
don't use assert statement
2008-07-21 22:05:34 +00:00
Amaury Forgeot d'Arc
e4921fec01
Issue2378: pdb would delete free variables when stepping into a class statement.
...
The problem was introduced by r53954, the correction is to restore the symmetry between
PyFrame_FastToLocals and PyFrame_LocalsToFast
2008-07-21 22:00:38 +00:00
Amaury Forgeot d'Arc
90d0717163
Increment version number in NEWS file, and move items that were added after 2.6b2.
...
(I thought there was a script to automate this kind of updates)
2008-07-21 21:36:24 +00:00
Amaury Forgeot d'Arc
74bd40d85c
On Windows, silence a Purify warning and initialize the memory passed to CryptGenRandom.
...
Since python doesn't provide any particular random data, it seems more reasonable anyway.
2008-07-21 21:06:46 +00:00
Georg Brandl
be44991baa
nonlocal is not in 2.6.
2008-07-21 18:26:21 +00:00
Facundo Batista
f3f67599fe
Issue 3396. Fixed the autocompletion of 'int.', and worked
...
a little that part of the code, fixing a detail and enhancing
a bit others.
2008-07-21 14:28:17 +00:00
Georg Brandl
fa267829e7
Save the whole of sys.modules instead of using an import tracker.
...
This, when merged to py3k, will fix the spurious buildbot failure
in test_urllib2 ("<urlopen error unknown url type: do>").
2008-07-20 23:18:55 +00:00
Neal Norwitz
be3ff9cdc9
Fix misspeeld method name (negative)
2008-07-20 20:39:36 +00:00
Neal Norwitz
c86b54cb03
Fix a couple of names in error messages that were wrong
2008-07-20 19:35:23 +00:00
Georg Brandl
e64f738507
#926501 : add info where to put the docstring.
2008-07-20 11:50:29 +00:00
Georg Brandl
61d5c43011
Remove exception indexing in asyncore.
2008-07-20 07:29:58 +00:00
Gregory P. Smith
b90f4e8730
fix issue3120 - don't truncate handles on 64-bit Windows.
...
This is still messy, realistically PC/_subprocess.c should never cast pointers
to python numbers and back at all.
I don't have a 64-bit windows build environment because microsoft apparently
thinks that should cost money. Time to watch the buildbots. It builds and
passes tests on 32-bit windows.
2008-07-20 00:22:08 +00:00
Raymond Hettinger
f1f46f0350
Clean-up itertools docs and recipes.
2008-07-19 23:58:47 +00:00
Raymond Hettinger
39e0eb766f
Fix compress() recipe in docs to use itertools.
2008-07-19 23:21:57 +00:00
Bob Ippolito
d648f64a53
#3322 : bounds checking for _json.scanstring
2008-07-19 21:59:50 +00:00
Benjamin Peterson
0147a761b1
Merged revisions 65137 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r65137 | georg.brandl | 2008-07-19 08:32:57 -0500 (Sat, 19 Jul 2008) | 2 lines
#3334 : correctly set prefix of imports.
........
2008-07-19 14:14:06 +00:00
Georg Brandl
b46d6ff279
Add ordering info for findall and finditer.
2008-07-19 13:48:44 +00:00
Georg Brandl
3de1e69dc7
#3323 : mention that if inheriting from a class without __slots__,
...
the subclass will have a __dict__ available too.
2008-07-19 13:09:42 +00:00
Georg Brandl
59ec315b04
#3319 : don't raise ZeroDivisionError if number of rounds is so
...
low that benchtime is zero.
2008-07-19 13:00:22 +00:00
Georg Brandl
278fc50c07
#3303 : fix crash with invalid Py_DECREF in strcoll().
2008-07-19 12:46:12 +00:00
Georg Brandl
6b41a8e156
#3302 : fix segfaults when passing None for arguments that can't
...
be NULL for the C functions.
2008-07-19 12:39:10 +00:00
Georg Brandl
1ad108db05
#3378 : in case of no memory, don't leak even more memory. :)
2008-07-19 10:08:55 +00:00
Raymond Hettinger
3369167089
Add recipe to the itertools docs.
2008-07-19 00:43:00 +00:00
Raymond Hettinger
3c212163ec
Improve accuracy of gamma test function
2008-07-19 00:42:03 +00:00
Eric Smith
f032a00271
Fix issue 3411: default float format spec fails on negative numbers.
2008-07-19 00:24:05 +00:00
Brett Cannon
1e8fba729e
Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality.
2008-07-18 19:30:22 +00:00
Georg Brandl
56af5fcab7
#3390 : replace a remaining has_key().
2008-07-18 19:30:10 +00:00
Georg Brandl
74bbc79d10
Replace all map(None, a) with list(a).
2008-07-18 19:06:13 +00:00
Benjamin Peterson
e2886fd3ca
now that test_lib2to3 actually works and isn't extremely slow, we don't need the lib2to3 resource
2008-07-18 14:26:35 +00:00
Benjamin Peterson
0e3a6cf2cb
backport test_fileio
2008-07-18 14:14:41 +00:00
Georg Brandl
bf89981839
Document the different meaning of precision for {:f} and {:g}.
...
Also document how inf and nan are formatted. #3404 .
2008-07-18 11:15:06 +00:00
Georg Brandl
730c8185b9
Correct attribute name.
2008-07-18 10:29:30 +00:00
Georg Brandl
9334d02ff5
Remove duplicate entry in __all__.
2008-07-18 10:20:59 +00:00