Mark Dickinson
2fc9263df5
Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN
...
raise InvalidOperation (and return False if InvalidOperation is trapped).
2008-02-06 22:10:50 +00:00
Christian Heimes
5b970ad483
Unified naming convention for free lists and their limits. All free lists
...
in Object/ are named ``free_list``, the counter ``numfree`` and the upper
limit is a macro ``PyName_MAXFREELIST`` inside an #ifndef block.
The chances should make it easier to adjust Python for platforms with
less memory, e.g. mobile phones.
2008-02-06 13:33:44 +00:00
Christian Heimes
6075a82243
Limit free list of method and builtin function objects to 256 entries each.
2008-02-06 12:44:34 +00:00
Georg Brandl
b70907796a
* Use the same code to profile for test_profile and test_cprofile.
...
* Convert both to unittest.
* Use the same unit testing code.
* Include the expected output in both test files.
* Make it possible to regenerate the expected output by running
the file as a script with an '-r' argument.
2008-02-05 19:58:17 +00:00
Lars Gustäbel
0192e43d64
Issue #2004 : Use mode 0700 for temporary directories and default
...
permissions for missing directories.
(will backport to 2.5)
2008-02-05 11:51:40 +00:00
Skip Montanaro
dc6d9e1f5e
sync with most recent version from python-mode sf project
2008-02-05 02:32:16 +00:00
Amaury Forgeot d'Arc
6fd03bb607
#1750076 : Debugger did not step on every iteration of a while statement.
...
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.
Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.
The lnotab seems to be exactly the same as with python2.4.
2008-02-04 21:45:05 +00:00
Amaury Forgeot d'Arc
578a8caf43
Correct quotes in NEWS file
2008-02-04 20:53:14 +00:00
Christian Heimes
422051a367
Patch #1953
...
I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers.
The patch also renames sys._cleartypecache to sys._clear_type_cache
2008-02-04 18:00:12 +00:00
Amaury Forgeot d'Arc
cab3d98ca1
Ensure that PySet_Add() operates on a newly created frozenset, like PyTuple_SetItem does.
...
Add PyFrozenSet_Check(), which was not needed before; The list of Py*Set_Check* macros seems to be complete now.
Add missing NEWS entries about all this.
2008-02-03 22:51:43 +00:00
Neal Norwitz
c4b7d4e810
Ignore leaky warnings from test_asynchat
2008-02-03 16:53:09 +00:00
Brett Cannon
70c0c02691
Add an entry for r60537.
2008-02-03 09:59:21 +00:00
Gregory P. Smith
eeed5b7c22
Merge this fix from the pybsddb tree:
...
r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines
Solved memory leak when using cursors with
databases without environment.
2008-02-03 07:20:53 +00:00
Skip Montanaro
ee29c3f2a8
Split the refleak mail body into two parts, the first being those failing
...
tests which are deemed more important issues, the second those which are
known to have difficult to solve problems and are generally expected to
leak. Hopefully this doesn't break the script...
2008-02-02 19:11:57 +00:00
Neal Norwitz
332ec6c2f6
Update the leaky tests (ie, ignore these tests if they report leaks). This version has been running for a while.
2008-02-02 18:52:51 +00:00
Georg Brandl
d22b4661fd
Rewrite test_queue as unittest. Written for GHOP by Ian Seyer.
2008-02-02 11:39:29 +00:00
Georg Brandl
593b77cb5a
Add GHOP contributor.
2008-02-02 11:05:34 +00:00
Christian Heimes
951cc0f474
Fixed bug #1983 : Return from fork() is pid_t, not int
2008-01-31 23:08:23 +00:00
Mark Dickinson
105be7725b
Issue #1678380 . Fix a bug that identifies 0j and -0j when they appear
...
in the same code unit. The fix is essentially the same as the fix for a
previous bug identifying 0. and -0.
2008-01-31 22:17:37 +00:00
Christian Heimes
cba36bbe65
Bug #1234 : Fixed semaphore errors on AIX 5.2
2008-01-30 22:54:18 +00:00
Christian Heimes
4d4f270941
Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and linebreak detection. The speedup is about 25% for split() (571 / 457 usec) and 35% (175 / 127 usec )for splitlines()
2008-01-30 11:32:37 +00:00
Brett Cannon
8fff20f950
Update Vim syntax highlighting to specify what revision was used to generate
...
the file.
2008-01-29 04:18:04 +00:00
Christian Heimes
908caac52e
Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
2008-01-27 23:34:59 +00:00
Georg Brandl
6caad7d2cb
Move C API entries to the corresponding section.
2008-01-26 14:19:22 +00:00
Georg Brandl
0cdf9a36ec
#1473257 : add generator.gi_code attribute that refers to
...
the original code object backing the generator. Patch by Collin Winter.
2008-01-26 14:14:20 +00:00
Georg Brandl
29604a1b4c
#1940 : make it possible to use curses.filter() before curses.initscr()
...
as the documentation says.
2008-01-26 14:03:47 +00:00
Christian Heimes
7f39c9fcbb
Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0.
...
First chapter of the Python 3.0 io framework back port: _fileio
The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
2008-01-25 12:18:43 +00:00
Amaury Forgeot d'Arc
31eaafef4a
News entry for r60265 (Issue 1920).
2008-01-24 22:59:25 +00:00
Guido van Rossum
eead05fdd6
News about recently fixed crashers:
...
- A few crashers fixed: weakref_in_del.py (issue #1377858 );
loosing_dict_ref.py (issue #1303614 , test67.py);
borrowed_ref_[34].py (not in tracker).
2008-01-24 18:21:02 +00:00
Vinay Sajip
d7cf32e668
Updated for optional delay argument to FileHandler and subclasses.
2008-01-24 12:43:33 +00:00
Christian Heimes
b2302ba977
Applied #1069410
...
The "can't load dll" message box on Windows is suppressed while an extension is loaded by calling SetErrorMode in dynload_win.c. The error is still reported properly.
2008-01-23 17:15:06 +00:00
Christian Heimes
082c9b0267
Fixed bug #1915 : Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support.
2008-01-23 14:20:50 +00:00
Raymond Hettinger
c226c31139
Let pprint() support sets and frozensets (suggested by David Mertz).
2008-01-23 00:04:40 +00:00
Gregory P. Smith
95cd5c0b72
- Fix Issue #1703448 : A joined thread could show up in the
...
threading.enumerate() list after the join() for a brief period until
it actually exited.
2008-01-22 01:20:42 +00:00
Gregory P. Smith
c64386b595
accepts and closes issue #1221598 : adds an optional callback to ftplib.FTP
...
storbinary() and storlines() methods.
2008-01-22 00:19:41 +00:00
Georg Brandl
32a3fb5ec9
Patch #1720595 : add T_BOOL to the range of structmember types.
...
Patch by Angelo Mottola, reviewed by MvL, tests by me.
2008-01-21 21:23:15 +00:00
Georg Brandl
f2dae0e14a
#1715 : include sub-extension modules in pydoc text output.
2008-01-21 21:05:49 +00:00
Georg Brandl
26543b1dfa
Add NEWS entry for #1882 .
2008-01-21 18:36:51 +00:00
Vinay Sajip
2bdc48c6e0
Updated to include news on recent logging fixes and documentation changes.
2008-01-21 18:16:05 +00:00
Georg Brandl
501601591b
#1530959 : change distutils build dir for --with-pydebug python builds.
2008-01-21 17:42:40 +00:00
Georg Brandl
864de8274c
#1555501 : document plistlib and move it to the general library.
2008-01-21 16:34:07 +00:00
Georg Brandl
5ca3fd8d39
mmap is an extension module.
2008-01-21 14:18:14 +00:00
Georg Brandl
845c403c08
#1087741 : make mmap.mmap the type of mmap objects, not a
...
factory function. Allow it to be subclassed.
2008-01-21 14:16:46 +00:00
Georg Brandl
66e7363c10
#1269 : fix a bug in pstats.add_callers() and add a unit test file for pstats.
2008-01-21 10:24:59 +00:00
Georg Brandl
5235398323
#1669 : don't allow shutil.rmtree() to be called on a symlink.
2008-01-20 14:17:42 +00:00
Georg Brandl
56112895d6
#1648 : add sys.gettrace() and sys.getprofile().
2008-01-20 13:59:46 +00:00
Georg Brandl
d5e6cf2b15
#1664522 : in urllib, don't read non-existing directories in ftp mode,
...
returning a 0-byte file -- raise an IOError instead.
Original patch from Phil Knirsch.
2008-01-20 12:18:17 +00:00
Georg Brandl
2235011d49
#856047 : respect the ``no_proxy`` env var when checking for proxies
...
in urllib and using the other ``_proxy`` env vars.
Original patch by Donovan Baarda.
2008-01-20 12:05:43 +00:00
Georg Brandl
9b0d46db11
#1178141 : add addinfourl.code to get http status code from urllib.
2008-01-20 11:43:03 +00:00
Gregory P. Smith
f25680afd0
note for r60121
2008-01-20 01:26:04 +00:00