Michael Foord
b4a81c838a
Add test discovery to unittest. Issue 6001.
2009-05-29 20:33:46 +00:00
Martin v. Löwis
4f16d3b4ac
Issue #4873 : Fix resource leaks in error cases of pwd and grp.
2009-05-29 15:58:08 +00:00
Tarek Ziadé
3e3eace7d7
Fixed #6131 : test_modulefinder leaked when run after test_distutils
2009-05-29 08:08:07 +00:00
Raymond Hettinger
578a228ee2
Issue 5982: Classmethod and staticmethod expose wrapped function with __func__.
2009-05-29 04:58:52 +00:00
Raymond Hettinger
822b87f276
Deprecate contextlib.nested(). The with-statement now provides this functionality directly.
2009-05-29 01:46:48 +00:00
Raymond Hettinger
b4d2d31874
Issue 5150: Add rstrip() option to IDLE's format menu.
2009-05-29 01:36:26 +00:00
Tarek Ziadé
9e5d2dc6a6
Fixed #6048 : Distutils uses the tarfile module instead of the tar command now
2009-05-28 12:53:54 +00:00
R. David Murray
d67ea7d4c6
fix issue #6121 by stripping spaces from the argument in the 'help'
...
function.
2009-05-27 20:07:21 +00:00
Georg Brandl
944f684ce6
Allow multiple context managers in one with statement, as proposed
...
in http://codereview.appspot.com/53094 and accepted by Guido.
The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
2009-05-25 21:02:56 +00:00
Benjamin Peterson
1880d8b823
add a SETUP_WITH opcode
...
It speeds up the with statement and correctly looks up the special
methods involved.
2009-05-25 13:13:44 +00:00
Benjamin Peterson
176a56c69b
make class skipping decorators the same as skipping every test of the class
...
This removes ClassTestSuite and a good bit of hacks.
2009-05-25 00:48:58 +00:00
Antoine Pitrou
f2caeed9c6
Issue #3585 : Add pkg-config support.
...
It creates a python-2.7.pc file and a python.pc symlink in the
$(LIBDIR)/pkgconfig directory. Patch by Clinton Roy.
2009-05-24 20:23:57 +00:00
Martin v. Löwis
0b09c42ffe
Issue #6050 : Don't fail extracting a directory from a zipfile if
...
the directory already exists.
2009-05-24 19:30:52 +00:00
Martin v. Löwis
53b578eba1
Issue #6065 : Do not try to build a version-independent
...
installer if the package has extension modules.
Also add NEWS entry for #5311 .
2009-05-24 19:10:52 +00:00
Antoine Pitrou
d49e375eed
Issue #1309352 : fcntl now converts its third arguments to a C `long` rather
...
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).
2009-05-24 15:40:09 +00:00
Senthil Kumaran
e266f25cf1
Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.
2009-05-24 09:14:50 +00:00
Benjamin Peterson
e5afa3b24b
support building with subversion 1.7 #6094
2009-05-23 19:24:37 +00:00
Antoine Pitrou
5e858fe52b
Issue #1983 : Fix functions taking or returning a process identifier to use
...
the dedicated C type `pid_t` instead of a C `int`. Some platforms have
a process identifier type wider than the standard C integer type.
2009-05-23 15:37:45 +00:00
R. David Murray
ad3058e0b8
Fix Issue #4066 : smtplib.SMTP_SSL._get_socket now correctly returns
...
the socket. Patch by Farhan Ahmad, test by Marcin Bachry.
2009-05-23 00:48:58 +00:00
Mark Dickinson
a4e0efa4b1
Issue #5829 : don't raise OverflowError for complex('1e500'). Backport of r72803.
2009-05-20 18:43:07 +00:00
Tarek Ziadé
7d7127dd84
fixed the 'package' option of build_ext
2009-05-19 16:17:21 +00:00
Tarek Ziadé
07bbfcc5e2
Fixed #6053 - win32 fixes for distutils tests
2009-05-18 12:21:26 +00:00
Tarek Ziadé
fcc7f039ec
Fixed the library extension when distutils build_ext is used inplace
2009-05-18 08:03:37 +00:00
Hirokazu Yamamoto
a4f90184dc
Added NEWS for r72698.
2009-05-17 02:58:36 +00:00
Benjamin Peterson
0c3b4c6e70
typo
2009-05-16 23:34:19 +00:00
Benjamin Peterson
eb9fb2c495
update
2009-05-16 22:46:11 +00:00
Tarek Ziadé
cb76804b17
#6041 : sdist and register now use the check command. No more duplicate code for metadata checking
2009-05-16 16:37:06 +00:00
Antoine Pitrou
775fd66d7b
Issue #2116 : Weak references and weak dictionaries now support copy()ing and deepcopy()ing.
2009-05-15 16:54:52 +00:00
Antoine Pitrou
52035a04ab
Issue #1655 : Make imaplib IPv6-capable. Patch by Derek Morr.
2009-05-15 11:50:29 +00:00
Antoine Pitrou
42b5bcf048
Issue #5918 : Fix a crash in the parser module.
...
Patch by Amaury.
2009-05-14 21:48:09 +00:00
Antoine Pitrou
eed30d830b
Issue #1664 : Make nntplib IPv6-capable. Patch by Derek Morr.
...
(Unfortunately, nntplib doesn't have a test suite)
2009-05-14 21:22:08 +00:00
Tarek Ziadé
cbb4f9ef58
#6022 fixed test_get_outputs so it doesn't leaves a test file in the cwd
2009-05-14 20:14:13 +00:00
R. David Murray
996ba02602
Issue #4050 : inspect.findsource/getsource now raise an IOError if the 'source'
...
file is a binary. Patch by Brodie Rao, test by Daniel Diniz.
2009-05-13 17:14:11 +00:00
R. David Murray
525cffcd7e
Move news item to correct section, remove spurious 'see below'
...
from docstring.
2009-05-13 13:07:14 +00:00
R. David Murray
a3ec697cbd
Issue 5994: add docstrings to marshal.
2009-05-13 00:30:29 +00:00
Tarek Ziadé
972480d999
fixed #5977 : distutils build_ext.get_outputs was not using the inplace option
2009-05-12 17:07:14 +00:00
Michael Foord
5471a77687
Add missing # to NEWS
2009-05-11 18:01:45 +00:00
Michael Foord
5d31e057c5
Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
...
from the command line.
Closes issue 5995.
Michael Foord
2009-05-11 17:59:43 +00:00
Mark Dickinson
b1d45856c2
Issue #5981 : Fix some float.fromhex bugs related to inf and nan handling.
2009-05-11 15:33:08 +00:00
Tarek Ziadé
d5d83424d2
fixed #5984 and improved test coverage
2009-05-10 10:12:08 +00:00
Vinay Sajip
f9b01fe692
Issue #5971 : StreamHandler.handleError now swallows IOErrors which occur when trying to print a traceback.
2009-05-09 12:07:17 +00:00
Tarek Ziadé
812d77152e
#5976 : fixed distutils test_check_environ
2009-05-09 10:06:00 +00:00
Tarek Ziadé
e2be83def8
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
2009-05-09 08:28:53 +00:00
Jeffrey Yasskin
f7f858d141
Issue 5954, PyFrame_GetLineNumber:
...
Most uses of PyCode_Addr2Line
(http://www.google.com/codesearch?q=PyCode_Addr2Line ) are just trying to get
the line number of a specified frame, but there's no way to do that directly.
Forcing people to go through the code object makes them know more about the
guts of the interpreter than they should need.
The remaining uses of PyCode_Addr2Line seem to be getting the line from a
traceback (for example,
http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line ),
which is replaced by the tb_lineno field. So we may be able to deprecate
PyCode_Addr2Line entirely for external use.
2009-05-08 22:23:21 +00:00
Jeffrey Yasskin
1aa4700234
PyCode_NewEmpty:
...
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Jeroen Ruigrok van der Werven
b87b33462c
Update the Windows locale mapping with the ones introduced with Vista.
2009-05-08 14:11:23 +00:00
Tarek Ziadé
99f660af3f
Fixed #5941 : added ARFLAGS for the archiver command.
2009-05-07 21:20:34 +00:00
R. David Murray
d3bf34cd4b
News item for Issue5955.
2009-05-07 16:29:19 +00:00
Walter Dörwald
726ba8e1c3
Add NEWS entry about issue #3739 .
2009-05-06 14:32:35 +00:00
Thomas Heller
a57773e483
Fix Issue #4875 : find_library can return directories instead of files
...
(on win32)
2009-05-05 18:55:47 +00:00
Eric Smith
a985a3aee4
Issue #5920 : Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
2009-05-05 18:26:08 +00:00
Martin v. Löwis
588b54b646
Issue #5847 : Remove -n switch on "Edit with IDLE" menu item.
2009-05-05 16:10:16 +00:00
Georg Brandl
4d4313d59d
#5142 : add module skipping feature to pdb.
2009-05-05 08:54:11 +00:00
Georg Brandl
e3869c41f2
Add a news entry for r72319.
2009-05-05 08:30:28 +00:00
R. David Murray
7ba8e1cbfd
Fix issue 5890: (property subclass shadows __doc__ string) by inserting
...
the __doc__ into the subclass instance __dict__. The fix refactors
property_copy to call property_init in such a way that the __doc__
logic is re-executed correctly when getter_doc is 1, thus simplifying
property_copy.
2009-05-04 22:16:24 +00:00
Antoine Pitrou
97377bf566
Issue #5692 : In :class:`zipfile.Zipfile`, fix wrong path calculation when extracting a file to the root directory.
2009-05-04 21:17:17 +00:00
Antoine Pitrou
653dece278
Issue #4426 : The UTF-7 decoder was too strict and didn't accept some legal sequences.
...
Patch by Nick Barnes and Victor Stinner.
2009-05-04 18:32:32 +00:00
Hirokazu Yamamoto
406d7aaee7
Issue #5913 : os.listdir() should fail for empty path on windows.
2009-05-04 05:28:39 +00:00
Gregory P. Smith
d02eedacab
Issue #4751 : For hashlib algorithms provided by OpenSSL, the Python
...
GIL is now released during computation on data lengths >= 2048 bytes.
2009-05-04 00:16:49 +00:00
Walter Dörwald
ed960ac404
Issue #5108 : Handle %s like %S and %R in PyUnicode_FromFormatV(): Call
...
PyUnicode_DecodeUTF8() once, remember the result and output it in a second
step. This avoids problems with counting UTF-8 bytes that ignores the effect
of using the replace error handler in PyUnicode_DecodeUTF8().
2009-05-03 22:36:33 +00:00
Michael Foord
07ef487a96
2009-05-02 22:43:34 +00:00
Antoine Pitrou
7430989cda
Isue #5084 : unpickling now interns the attribute names of pickled objects,
...
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
2009-05-02 21:13:23 +00:00
Antoine Pitrou
3fd4ea9dab
Issue #5726 : Make Modules/ld_so_aix return the actual exit code of the linker, rather than always exit successfully.
...
Patch by Floris Bruynooghe.
2009-05-01 21:16:14 +00:00
Antoine Pitrou
1fc0231a22
Issue #3002 : `shutil.copyfile()` and `shutil.copytree()` now raise an
...
error when a named pipe is encountered, rather than blocking infinitely.
2009-05-01 20:55:35 +00:00
Gregory P. Smith
1d499265e0
Adds the ipaddr module to the standard library. Issue #3959 .
...
Based off of subversion r69 from http://code.google.com/p/ipaddr-py/
This code is 2to3 safe, I'll merge it into py3k later this afternoon.
2009-05-01 19:59:52 +00:00
Eric Smith
9139cc6a3b
Issue #1588 : Add complex.__format__.
2009-04-30 00:58:58 +00:00
Mark Dickinson
92fcc9c991
Issue #5864 : format(1234.5, '.4') gives misleading result
...
(Backport of r72109 from py3k.)
2009-04-29 20:41:00 +00:00
Matthias Klose
10cbe4886e
- Issue #4587 : Add configure option --with-dbmliborder=db1:db2:... to specify
...
the order that backends for the dbm extension are checked.
2009-04-29 17:18:19 +00:00
R. David Murray
25b4add5b0
Fix issue 2245. aifc now skips any chunk type it doesn't actually
...
process instead of throwing errors for anything not in an explicit
skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt .
Spec reference and test sound file provided by Santiago Peresón, fix
based on patch by Hiroaki Kawai.
2009-04-29 13:17:37 +00:00
Tarek Ziadé
a1b91d944b
Fixed #5874 : distutils.tests.test_config_cmd is not locale-sensitive anymore
2009-04-29 08:03:46 +00:00
Thomas Heller
90c61a2e09
Issue #4305 : ctypes fails to build on mipsel-linux-gnu (detects mips
...
instead of mipsel)
2009-04-28 19:23:41 +00:00
Antoine Pitrou
e988e286b2
Issue #1734234 : Massively speedup `unicodedata.normalize()` when the
...
string is already in normalized form, by performing a quick check beforehand.
Original patch by Rauli Ruohonen.
2009-04-27 21:53:26 +00:00
Antoine Pitrou
f2651e193c
Issue #5853 : calling a function of the mimetypes module from several threads
...
at once could hit the recursion limit if the mimetypes database hadn't been
initialized before.
2009-04-27 20:50:20 +00:00
Eric Smith
cac7af6863
Issue #5793 : rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors.
2009-04-27 19:04:37 +00:00
Vinay Sajip
e34d6aa86f
Issue #5854 : Updated __all__ to include some missing names and remove some names which should not be exported.
2009-04-27 13:44:27 +00:00
Martin v. Löwis
99f277933e
Issue #4971 : Fix titlecase for characters that are their own
...
titlecase, but not their own uppercase.
2009-04-26 00:53:18 +00:00
Eric Smith
068f06568b
Issue #5835 , deprecate PyOS_ascii_formatd.
...
If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great.
Will port to py3k with a different strategy.
2009-04-25 21:40:15 +00:00
Walter Dörwald
5d98ec76bb
Issue #5828 (Invalid behavior of unicode.lower): Fixed bogus logic in
...
makeunicodedata.py and regenerated the Unicode database (This fixes
u'\u1d79'.lower() == '\x00').
2009-04-25 14:03:16 +00:00
Tarek Ziadé
bcddf6777a
#5810 : Fixed Distutils test_build_scripts
2009-04-25 12:51:59 +00:00
Tarek Ziadé
d567c38ef2
Issue #4951 : Fixed failure in test_httpservers
2009-04-25 12:38:08 +00:00
Walter Dörwald
a145317be9
Issue #5837 : Certain sequences of calls to set() and unset() for
...
support.EnvironmentVarGuard objects restored the environment variables
incorrectly on __exit__.
Fix this by recording the initial value of each environment variable on the
first access in set() or unset().
2009-04-25 12:15:07 +00:00
Benjamin Peterson
5083dc552b
fix a segfault when setting __class__ in __del__ #5283
2009-04-25 00:41:22 +00:00
Thomas Heller
5c6af808f7
Issue #3102 : All global symbols that the _ctypes extension defines are
...
now prefixed with 'Py' or '_ctypes'.
2009-04-24 20:31:47 +00:00
Thomas Heller
ec21ccde12
Issue 5041: ctypes unwilling to allow pickling wide character.
2009-04-24 20:00:41 +00:00
Mark Dickinson
4af8e745c4
Issue #5812 : The two-argument form of the Fraction constructor
...
now accepts arbitrary Rational instances.
2009-04-24 13:56:07 +00:00
Mark Dickinson
95bc980d9e
Issue #5816 :
...
- simplify parsing and printing of complex numbers
- make complex(repr(z)) round-tripping work for complex
numbers involving nans, infs, or negative zeros
- don't accept some of the stranger complex strings
that were previously allowed---e.g., complex('1..1j')
2009-04-24 12:46:53 +00:00
Mark Dickinson
8100bd8431
Issue #5812 : make Fraction('1e-6') valid. Backport of r71806.
2009-04-22 18:15:25 +00:00
Nick Coghlan
5533ff6a2e
Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation)
2009-04-22 15:26:04 +00:00
Eric Smith
aca19e6a74
Backport of some of the work in r71665 to trunk. This reworks much of
...
int, long, and float __format__(), and it keeps their implementation
in sync with py3k.
Also added PyOS_double_to_string. This is the "fallback" version
that's also available in trunk, and should be kept in sync with that
code. I'll add an issue to document PyOS_double_to_string in the C
API.
There are many internal cleanups. Externally visible changes include:
- Implement PEP 378, Format Specifier for Thousands Separator, for
floats, ints, and longs.
- Issue #5515 : 'n' formatting for ints, longs, and floats handles
leading zero formatting poorly.
- Issue #5772 : For float.__format__, don't add a trailing ".0" if
we're using no type code and we have an exponent.
2009-04-22 13:29:05 +00:00
Mark Dickinson
6736cf8d20
Issue #3166 : Make long -> float (and int -> float) conversions
...
correctly rounded, using round-half-to-even. This ensures that the
value of float(n) doesn't depend on whether we're using 15-bit digits
or 30-bit digits for Python longs.
2009-04-20 21:13:33 +00:00
Tarek Ziadé
31559b6123
adding a NEWS note for #5795 (previously checked via the buildbot)
2009-04-20 14:29:42 +00:00
Benjamin Peterson
d4d400cb8a
try to initalize all builtin types with PyType_Ready to avoid problems like #5787
2009-04-18 20:12:47 +00:00
Mark Dickinson
1bdf7e9cab
Issue #1869 : Fix a couple of minor round() issues.
2009-04-18 14:59:42 +00:00
Vinay Sajip
22aa4bbdc5
Issue #5768 : Change to Unicode output logic and test case for same.
2009-04-16 19:15:49 +00:00
Benjamin Peterson
99d36f1563
call __float__ on str subclasses #5759
...
tests by R. David Murray
2009-04-15 21:26:36 +00:00
R. David Murray
abc26603a4
Add missing NEWS item for issue1161031 fix.
2009-04-13 16:56:32 +00:00
Tarek Ziadé
156c31a7be
Fixed #5607 : Distutils test_get_platform was failing fo Mac OS X fat binaries.
2009-04-13 12:34:01 +00:00
Georg Brandl
21cf5ee6fd
#5741 : dont disallow double percent signs in SafeConfigParser.set() keys.
2009-04-12 17:24:11 +00:00
Georg Brandl
3c4a5463b2
#5704 : let python -3 imply -t as well.
2009-04-12 12:08:12 +00:00
Tarek Ziadé
942825f7de
#5732 : added the check command into Distutils
2009-04-11 14:55:07 +00:00
R. David Murray
0374a82f75
Issue #2170 : refactored xml.dom.minidom.normalize, increasing both
...
its clarity and its speed.
2009-04-09 21:54:50 +00:00
Tarek Ziadé
ad95826c33
Fixed #5731 : Distutils bdist_wininst no longer worked on non-Windows platforms
2009-04-09 21:36:44 +00:00
Andrew M. Kuchling
5963185b23
Typo fixes
2009-04-09 11:23:36 +00:00
Gregory P. Smith
923ba361d8
- Issue #2254 : Fix CGIHTTPServer information disclosure. Relative paths are
...
now collapsed within the url properly before looking in cgi_directories.
2009-04-06 06:33:26 +00:00
Gregory P. Smith
2b3eb37f92
news entry for r71299.
2009-04-05 23:48:26 +00:00
Tarek Ziadé
64408fb4c5
Fixed #5095 : msi missing from Distutils bdist formats
2009-04-05 22:51:09 +00:00
Tarek Ziadé
faa6b121fb
Fixed #1491431 : distutils.filelist.glob_to_re was broken for some edge cases (detailed in the test
2009-04-05 21:44:08 +00:00
Matthias Klose
91a3b9e4f0
Issue #1113244 : Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
...
to avoid compiler warnings.
2009-04-05 21:19:13 +00:00
Matthias Klose
a5d58c831f
- Issue #2703 : SimpleXMLRPCDispatcher.__init__: Provide default values for
...
new arguments introduced in 2.5.
2009-04-05 21:00:48 +00:00
Georg Brandl
29c6a281b1
Normalize issue referencing style.
2009-04-05 20:23:13 +00:00
Michael Foord
f2dfef1637
Adding assertIs and assertIsNot methods to unittest.TestCase
...
Issue #2578
2009-04-05 19:19:28 +00:00
Tarek Ziadé
453d953f3e
Fixed 5694: removed spurious test output in Distutils
2009-04-05 18:31:24 +00:00
Georg Brandl
3f0ef20269
#5471 : fix expanduser() for $HOME set to "/".
2009-04-05 14:48:49 +00:00
Georg Brandl
1956d5c15f
Add NEWS entry for r71237.
2009-04-05 14:25:41 +00:00
Matthias Klose
0610e0808b
- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
...
(avoiding brown paper typo this time)
2009-04-05 12:43:08 +00:00
Georg Brandl
50ba6e1b50
#1726172 : dont raise an unexpected IndexError if a voidresp() call has an empty response.
2009-04-05 10:48:47 +00:00
Benjamin Peterson
ea0d7444c8
revert r71159 since it broke the build
2009-04-04 16:05:51 +00:00
Matthias Klose
8212a82371
- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
2009-04-04 15:51:23 +00:00
Matthias Klose
edb5e1e09e
- Issue #3845 : In PyRun_SimpleFileExFlags avoid invalid memory access with
...
short file names.
2009-04-04 14:18:13 +00:00
Antoine Pitrou
789be0c0a0
Issue #2396 : backport the memoryview object.
2009-04-02 21:18:34 +00:00
Georg Brandl
d3f03fa715
PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject
...
call on hitting the recursion limit into just assigning it to the arguments provided.
2009-04-02 18:09:04 +00:00
R. David Murray
52720c5455
Add missing iteritems() call to the for loop in mailbox.MH.get_message().
...
Fixes issue2625.
2009-04-02 14:05:35 +00:00
Jesse Noller
7152f6d915
Add custom initializer argument to multiprocess.Manager*, courtesy of lekma
2009-04-02 05:17:26 +00:00
Jesse Noller
5053fbbb38
Issue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES
2009-04-02 04:22:09 +00:00
Michael Foord
345b2fe21e
Better exception messages for unittest assert methods.
...
- unittest.assertNotEqual() now uses the inequality operator (!=) instead
of the equality operator.
- Default assertTrue and assertFalse messages are now useful.
- TestCase has a longMessage attribute. This defaults to False, but if set to True
useful error messages are shown in addition to explicit messages passed to assert methods.
Issue #5663
2009-04-02 03:20:38 +00:00
Brett Cannon
c4f90ebea7
PyImport_AppendInittab() took a char * as a first argument even though that
...
string was stored beyond the life of the call. Changed the signature to be
const char * to help make this point.
Closes issue #1419652 .
2009-04-02 03:17:39 +00:00
Jesse Noller
b502bc7a1a
Issue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin Loewis
2009-04-02 02:32:55 +00:00
Georg Brandl
58b8b95cdb
In Pdb, stop assigning values to __builtin__._ which interferes with the one commonly installed by gettext.
2009-04-01 21:54:21 +00:00
Georg Brandl
5942b91759
Add NEWS item.
2009-04-01 21:05:44 +00:00
Brett Cannon
ce3d221447
test_warnings ironically had a single test that was not protecting the warnings
...
filter and was resetting it.
2009-04-01 20:25:48 +00:00
Brett Cannon
2da4d628a5
test_logging was blindly clearing the warnings filter. This caused
...
PendingDeprecationWarnings to be spewed all over by unittest.failIf*(). Fix
moves over to using warnings.catch_warning to protect the warnings filter.
2009-04-01 19:57:10 +00:00
Raymond Hettinger
66c4a6b51c
Issue #5647 : MutableSet.__iand__() no longer mutates self during iteration.
2009-04-01 18:50:56 +00:00
Brett Cannon
15ba4dae5a
_warnings was importing itself to get an attribute. That's bad if warnings gets
...
called in a thread that was spawned by an import itself.
Last part to close #1665206 .
2009-04-01 18:03:59 +00:00
Brett Cannon
ad078a0d7a
The cgitb module had imports in its functions. This can cause deadlock with the
...
import lock if called from within a thread that was triggered by an import.
Partially fixes issue #1665206 .
2009-04-01 16:00:34 +00:00
Georg Brandl
e92d4b6f57
The SimpleXMLRPCServer's CGI handler now runs like a pony.
2009-04-01 04:21:14 +00:00
R. David Murray
a83da3507f
Fix issue 2522. locale.format now checks that it is passed
...
exactly one pattern, which avoids mysterious errors where it
had seemed to fail to do localization.
2009-04-01 03:21:43 +00:00
Georg Brandl
d8fb6ac9da
Issue #5635 : Fix running test_sys with tracing enabled.
2009-04-01 00:04:33 +00:00
Jack Diederich
d60c29ed8b
#5228 : add pickle support to functools.partial
2009-03-31 23:46:48 +00:00
Tarek Ziadé
9e47ce49a0
#5583 Added optional Extensions in Distutils
2009-03-31 22:27:23 +00:00
Jesse Noller
42f9b4e5b4
Issue 5619: Pass MS CRT debug flags into subprocesses
2009-03-31 22:20:35 +00:00
Benjamin Peterson
d906ea62c8
fix Thread.ident when it is the main thread or a dummy thread #5632
2009-03-31 21:34:42 +00:00
R. David Murray
41448c58d2
Add NEWS entry for regrtest change.
2009-03-31 19:57:24 +00:00
Jesse Noller
1f0a55523f
missed the news/acks for netbsd patch
2009-03-31 18:27:14 +00:00
Gregory P. Smith
2839985c7e
The unittest.TestCase.assertEqual() now displays the differences in lists,
...
tuples, dicts and sets on failure.
Many new handy type and comparison specific assert* methods have been added
that fail with error messages actually useful for debugging. Contributed in
by Google and completed with help from mfoord and GvR at PyCon 2009 sprints.
Discussion lives in http://bugs.python.org/issue2578 .
2009-03-31 16:54:10 +00:00
Hirokazu Yamamoto
9d2ee5ded2
Issue #5387 : Fixed mmap.move crash by integer overflow.
2009-03-31 13:13:05 +00:00
Jesse Noller
82eb5902ce
merge in patch from tim golden to fix contextmanager support for mp.Lock()
2009-03-30 23:29:31 +00:00
Ronald Oussoren
e0154ed7ff
Fix issue #4865 : add /Library/Python/2.7/site-packages to
...
sys.path on OSX, to make it easier to share (some) installed
packages between the system install and a user install.
2009-03-30 23:10:35 +00:00
Jesse Noller
459a648166
Issue 5177: use socket.SO_REUSEADDR on multiprocessing SocketManager sockets
2009-03-30 15:50:42 +00:00
Guilherme Polo
1972d16230
Adjusted _tkinter to compile without warnings when WITH_THREAD is not
...
defined (part of issue #5035 )
2009-03-27 21:43:08 +00:00
Marc-André Lemburg
cbdf15b0e7
News item for the platform.py fix (r70594).
2009-03-25 19:45:33 +00:00
Benjamin Peterson
692428e77f
implement test skipping and expected failures
...
patch by myself #1034053
2009-03-23 21:50:21 +00:00
Antoine Pitrou
f8387af262
Issue #4688 : Add a heuristic so that tuples and dicts containing only
...
untrackable objects are not tracked by the garbage collector. This can
reduce the size of collections and therefore the garbage collection overhead
on long-running programs, depending on their particular use of datatypes.
(trivia: this makes the "binary_trees" benchmark from the Computer Language
Shootout 40% faster)
2009-03-23 18:41:45 +00:00
Mark Dickinson
0b666bfdf9
Issue #5512 : speed up the long division algorithm for Python longs.
...
The basic algorithm remains the same; the most significant speedups
come from the following three changes:
(1) normalize by shifting instead of multiplying and dividing
(2) the old algorithm usually did an unnecessary extra iteration of
the outer loop; remove this. As a special case, this means that
long divisions with a single-digit result run twice as fast as
before.
(3) make inner loop much tighter.
Various benchmarks show speedups of between 50% and 150% for long
integer divisions and modulo operations.
2009-03-23 18:25:13 +00:00
Lars Gustäbel
2020a59563
Issue #5068 : Fixed the tarfile._BZ2Proxy.read() method that would loop
...
forever on incomplete input. That caused tarfile.open() to hang when used
with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or
partial bzip2 compressed data.
2009-03-22 20:09:33 +00:00
Benjamin Peterson
b364bfe2f4
close the file even if an exception occurs #5536
2009-03-22 17:45:11 +00:00
Mark Dickinson
efc82f7e8e
Issue #4258 : Use 30-bit digits for Python longs, on 64-bit platforms.
...
Backport of r70459.
2009-03-20 15:51:55 +00:00
Raymond Hettinger
91852ca673
Issue 5381: Add object_pairs_hook to the json module.
2009-03-19 19:19:03 +00:00
Benjamin Peterson
6ffe852f90
fix strange errors when setting attributes on tracebacks #4034
2009-03-18 20:52:15 +00:00
Mark Dickinson
6b265f1bf8
Issue 4474: On platforms with sizeof(wchar_t) == 4 and
...
sizeof(Py_UNICODE) == 2, PyUnicode_FromWideChar now converts
each character outside the BMP to the appropriate surrogate pair.
Thanks Victor Stinner for the patch.
(backport of r70452 from py3k to trunk)
2009-03-18 16:07:26 +00:00
Mark Dickinson
277859d591
Issue #2110 : Add support for thousands separator and 'n' format specifier
...
to Decimal __format__ method.
2009-03-17 23:03:46 +00:00
Mark Dickinson
b065e52bc2
Fix bug in Decimal __format__ method that swapped left and right
...
alignment.
2009-03-17 18:01:03 +00:00
Eric Smith
6f42edb682
Issue 5237, Allow auto-numbered replacement fields in str.format() strings.
...
For simple uses for str.format(), this makes the typing easier. Hopfully this
will help in the adoption of str.format().
For example:
'The {} is {}'.format('sky', 'blue')
You can mix and matcth auto-numbering and named replacement fields:
'The {} is {color}'.format('sky', color='blue')
But you can't mix and match auto-numbering and specified numbering:
'The {0} is {}'.format('sky', 'blue')
ValueError: cannot switch from manual field specification to automatic field numbering
Will port to 3.1.
2009-03-14 11:57:26 +00:00
Antoine Pitrou
feeafff052
Issue #1222 : locale.format() bug when the thousands separator is a space character.
2009-03-14 00:07:21 +00:00
Tarek Ziadé
61585c260c
Issue #5472 : Fixed distutils.test_util tear down
2009-03-11 12:48:04 +00:00
Brett Cannon
6c4cff0f32
Require implementations for warnings.showwarning() support the 'line' argument.
...
Was a DeprecationWarning for not supporting it since Python 2.6.
Closes issue #3652 .
2009-03-11 04:51:06 +00:00
Raymond Hettinger
56411aac79
For collections.deque() objects, expose the maxlen parameter as a read-only attribute.
2009-03-10 12:50:59 +00:00
Guilherme Polo
15d57653f1
Fixed issue #2638 : Show a window constructed with tkSimpleDialog.Dialog only
...
after it is has been populated and properly configured in order to prevent
window flashing.
2009-03-07 02:14:38 +00:00
Guilherme Polo
3768b2f4ce
Fixed issue #4792 : Prevent a segfault in _tkinter by using the
...
guaranteed to be safe interp argument given to the PythonCmd in place
of the Tcl interpreter taken from a PythonCmd_ClientData.
2009-03-07 01:47:49 +00:00
Guilherme Polo
6d6c1fd04e
Fixed issue #5193 : Guarantee that Tkinter.Text.search returns a string.
2009-03-07 01:19:12 +00:00
Tarek Ziadé
943b24e7e4
Issue #5394 : removed > 2.3 syntax from distutils.msvc9compiler
2009-03-07 00:32:45 +00:00
Hirokazu Yamamoto
264fc12fbf
Issue #5385 : Fixed mmap crash after resize failure on windows.
...
Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle
because CreateFileMapping returns NULL when error occurs.
2009-03-05 14:21:12 +00:00
Hirokazu Yamamoto
eacbbdfb73
Issue #5179 : Fixed subprocess handle leak on failure on windows.
2009-03-03 22:18:14 +00:00
Raymond Hettinger
e89b8e9832
Backport 70111: Let configparser use ordered dicts by default.
2009-03-03 05:00:37 +00:00
Raymond Hettinger
88a9164cdb
Backport 70106: Add OrderedDict support to collections.namedtuple().
2009-03-03 04:51:24 +00:00
Raymond Hettinger
bc512d3abd
Backport PEP 372: OrderedDict()
2009-03-03 04:45:34 +00:00
Benjamin Peterson
7d49bba969
give httplib.IncompleteRead a more sane repr #4308
2009-03-02 22:41:42 +00:00
Gregory P. Smith
ae91d0907d
Adds an optional flags argument to re.split, re.sub and re.subn to be
...
consistent with the other re module functions.
2009-03-02 05:13:57 +00:00
Benjamin Peterson
ad58b7c9da
fix a silly problem of caching gone wrong #5401
2009-03-02 03:35:12 +00:00
Hirokazu Yamamoto
b0e10c760c
Issue #1733986 : Fixed mmap crash in accessing elements of second map object
...
with same tagname but larger size than first map. (Windows)
2009-02-28 12:13:07 +00:00
Hirokazu Yamamoto
f2dc885780
Issue #5386 : mmap.write_byte didn't check map size, so it could cause buffer
...
overrun.
2009-02-28 10:31:54 +00:00
Tarek Ziadé
7334735ee1
Issues #1533164 and #5378 : Added quiet and force-optimize options to Distutils bdist_rpm command
2009-02-28 10:08:02 +00:00
Tarek Ziadé
dda92f7f02
Issue #5052 : make Distutils compatible with 2.3 again.
2009-02-27 12:53:34 +00:00
Benjamin Peterson
b3dd5485da
remove deprecated symtable.Symbol methods
2009-02-26 19:07:18 +00:00
Tarek Ziadé
e3bc0eff25
Fixed #5316 : test failure in test_site
2009-02-25 22:29:27 +00:00
Matthias Klose
8ad554fdbe
- Link the shared python library with $(MODLIBS).
2009-02-22 23:14:26 +00:00
Mark Dickinson
3e4caeb3bf
Issue #5341 : Fix a variety of spelling errors.
2009-02-21 20:27:01 +00:00
Eric Smith
e9fb6863da
Issue #5247 : Improve error message when unknown format codes are used when using str.format() with str, unicode, long, int, and float arguments.
2009-02-20 14:02:36 +00:00
Vinay Sajip
1a0d2befea
#5287 : Add exception handling around findCaller() call to help out IronPython.
2009-02-19 12:31:32 +00:00
Raymond Hettinger
08259e8f25
Py3k warnings now automatically include -Qwarn for division.
2009-02-18 23:10:19 +00:00
Hirokazu Yamamoto
17a837e4db
Issue #5282 : Fixed mmap resize on 32bit windows and unix. When offset > 0,
...
The file was resized to wrong size.
2009-02-17 13:17:26 +00:00
Hirokazu Yamamoto
f6bbd0e71d
Issue #5292 : Fixed mmap crash on its boundary access m[len(m)].
2009-02-17 10:12:10 +00:00
Tarek Ziadé
7dd533963f
Fixed #2279 : distutils.sdist.add_defaults now add files listed in package_data and data_files
2009-02-16 21:38:01 +00:00
Benjamin Peterson
5781f32b4f
remove some PyBytes_* aliases that are not in 3.x
2009-02-16 21:09:09 +00:00
Mark Dickinson
2ffb26fb83
Issue #5260 : Various portability and standards compliance fixes, optimizations
...
and cleanups in Objects/longobject.c. The most significant change is that
longs now use less memory: average savings are 2 bytes per long on 32-bit
systems and 6 bytes per long on 64-bit systems. (This memory saving already
exists in py3k.)
2009-02-15 10:13:41 +00:00
Tarek Ziadé
1369900619
Fix for #5257 : refactored all tests in distutils, so they use a temporary directory.
2009-02-14 14:10:23 +00:00
Tarek Ziadé
2432b0b367
Fixed #4524 : distutils build_script command failed with --with-suffix=3
2009-02-13 23:00:43 +00:00
Tarek Ziadé
275958aacf
Issue #2461 : added tests for distutils.util
2009-02-13 22:22:03 +00:00
Antoine Pitrou
76a4b896c4
Issue #5186 : Reduce hash collisions for objects with no __hash__ method by
...
rotating the object pointer by 4 bits to the right.
2009-02-13 13:52:33 +00:00
Gregory P. Smith
ea38826ab2
- Issue #3745 : Fix hashlib to always reject unicode and non buffer-api
...
supporting objects as input no matter how it was compiled (built in
implementations or external openssl library).
(backported from a py3k branch)
2009-02-13 03:00:00 +00:00
Mark Dickinson
39c6f7f123
Typo fix.
2009-02-12 17:55:42 +00:00
Raymond Hettinger
31c769ca89
Issue 5032: added a step argument to itertools.count() and allowed non-integer arguments.
2009-02-12 05:39:46 +00:00
Gregory P. Smith
3605b5cee3
Issue #1008086 : Fixes socket.inet_aton() to always return 4 bytes even
...
on LP64 platforms (most 64-bit Linux, bsd, unix systems).
2009-02-11 23:45:25 +00:00
Thomas Heller
3689ae256e
Issue#5203: ctypes segfaults when passing a unicode string to a
...
function without argtypes, if HAVE_USABLE_WCHAR_T is false.
2009-02-10 18:43:01 +00:00
Mark Dickinson
4015f62e39
Issue #5175 : PyLong_AsUnsignedLongLong now raises OverflowError for
...
negative arguments. Previously, it raised TypeError.
Thanks Lisandro Dalcin.
2009-02-10 15:46:50 +00:00
Martin v. Löwis
a3e3cb7ee0
Issue #5134 : Silence compiler warnings when compiling sqlite with VC++.
2009-02-10 13:09:19 +00:00
Tarek Ziadé
74fbf60e8c
Fixed #3386 : the optional prefix argument was ignored under OS2 and NT in distutils.sysconfig.get_python_lib
2009-02-10 12:31:09 +00:00
Brett Cannon
28d108893c
compileall used the ctime of bytecode and source to determine if the bytecode
...
should be recreated. This created a timing hole. Fixed by just doing what
import does; check the mtime and magic number.
2009-02-10 02:07:38 +00:00
Raymond Hettinger
322daea7c3
Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames.
2009-02-10 01:24:05 +00:00
Guilherme Polo
a66cf5bd04
Fixed issue #5122 : Synchronize tk load failure check to prevent a
...
potential deadlock.
2009-02-09 20:50:27 +00:00
Guilherme Polo
d2ea0332ab
Fixed issue #4890 : Handle empty text search pattern in
...
Tkinter.Text.search
2009-02-09 16:41:09 +00:00
Mark Dickinson
c97c9096ed
Issue #4575 : fix Py_IS_INFINITY macro to work correctly on x87 FPUs.
...
It now forces its argument to double before testing for infinity.
2009-02-09 14:18:43 +00:00
Vinay Sajip
b20af944d2
Issue #5170 : Fixed Unicode output bug in logging and added test case. This is a regression which did not occur in 2.5.
2009-02-08 19:06:08 +00:00
Nick Coghlan
0194f5bc98
Issue #4512 closeout: Make ZipImport.get_filename() a public method
2009-02-08 03:17:00 +00:00
Nick Coghlan
c3623b1849
Mention patch submitter in NEWS entry for r69419
2009-02-08 01:46:01 +00:00
Nick Coghlan
d39600e69f
Issue 4195: Restore the ability to execute packages with the -m switch (but this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda)
2009-02-08 01:26:34 +00:00
Neil Schemenauer
92c3b2190b
Issue #999042 : The Python compiler now handles explict global statements
...
correctly (should be assigned using STORE_GLOBAL opcode). This was done by
having the system table differentiate between explict and implicit globals.
2009-02-07 00:54:41 +00:00
Guilherme Polo
363161a418
Issue #1731706 : Call Tcl_ConditionFinalize for Tcl_Conditions that will
...
not be used again (this requires Tcl/Tk 8.3.1), also fix a memory
leak in Tkapp_Call when calling from a thread different than the one that
created the Tcl interpreter.
2009-02-06 22:48:07 +00:00
Guilherme Polo
14ff18d211
Partial fix to issue #1731706 : memory leak in Tkapp_Call when calling
...
from a thread different than the one that created the Tcl interpreter.
2009-02-06 22:26:22 +00:00
Tarek Ziadé
05adf073cc
fixed #1520877 : now distutils reads Read from the environment/Makefile
2009-02-06 01:15:51 +00:00
Eric Smith
81fe09344c
Implement issue #4285 , convert sys.version_info to a named
...
tuple. Patch by Ross Light.
2009-02-06 00:48:26 +00:00
Tarek Ziadé
d5eb985492
Fixed #1276768 : verbose option was not used in the code.
2009-02-06 00:31:59 +00:00
Tarek Ziadé
0d4fd3493e
Fixed #5132 : enable extensions to link on Solaris
2009-02-05 22:52:52 +00:00
Raymond Hettinger
b516370bcb
Issue 1242657: list(obj) can swallow KeyboardInterrupt.
2009-02-02 21:50:13 +00:00
Guilherme Polo
d7bb4d484f
NEWS entry for issue #1581476
2009-02-02 21:14:14 +00:00
Martin v. Löwis
fee1c7f4c9
Issue #4494 : Fix build with Py_NO_ENABLE_SHARED on Windows.
2009-02-02 14:23:16 +00:00
Gregory P. Smith
de1a8b720a
- Issue #5104 : The socket module now raises OverflowError when 16-bit port and
...
protocol numbers are supplied outside the allowed 0-65536 range on bind()
and getservbyport().
2009-01-31 22:57:30 +00:00
Antoine Pitrou
707c593761
Issue #2047 : shutil.move() could believe that its destination path was
...
inside its source path if it began with the same letters (e.g. "src" vs.
"src.new").
2009-01-29 20:19:34 +00:00
Raymond Hettinger
f779e6f51b
Issue 4920: Fixed next() vs __next__() issues in the ABCs
...
for Iterator and MutableSet. Also added thorough test for
required abstractmethods.
2009-01-28 23:02:26 +00:00
Guilherme Polo
b1a98de25e
Issue #5083 : New 'gui' resource for regrtest.
2009-01-28 20:03:26 +00:00
Guilherme Polo
4eae078448
Demos for ttk added.
2009-01-28 15:56:01 +00:00
Guilherme Polo
cda93aafde
Added the ttk module. See issue #2983 : Ttk support for Tkinter.
2009-01-28 13:09:03 +00:00
Raymond Hettinger
ecf252abac
Issue 5021: doctest.testfile should set __name__
2009-01-27 10:03:04 +00:00
Raymond Hettinger
d081abc8be
Promote combinations_with_replacement() from a recipe to a regular itertool.
2009-01-27 02:58:49 +00:00
Brett Cannon
93881c6c58
Backport importlib in the form of providing importlib.import_module(). This has
...
been done purely to help transitions from 2.7 to 3.1.
2009-01-26 01:16:50 +00:00
Tarek Ziadé
aaedcef578
Fixed #1885 : --formats=tar,gztar was not working properly in the sdist command
2009-01-25 23:34:00 +00:00
Raymond Hettinger
2bcb8e9b0d
Promote compress() from a recipe to being a regular itertool.
2009-01-25 21:04:14 +00:00
Tarek Ziadé
ef249b13eb
Fixed #4863 : removed distutils.mwerkscompiler
2009-01-25 18:19:25 +00:00
Jesse Noller
b5a4b0abed
Properly document multiprocessing's logging support, resolve outstanding issues with the custom levels
2009-01-25 03:36:13 +00:00
Mark Dickinson
a3ecd2c668
Issue #1672332 : Fix unpickling of subnormal floats, which was raising
...
ValueError on some platforms as a result of the platform strtod setting
errno on underflow.
2009-01-24 16:40:29 +00:00
Martin v. Löwis
f081e1c9d9
Issue #3881 : Help Tcl to load even when started through the
...
unreadable local symlink to "Program Files" on Vista.
2009-01-24 15:47:27 +00:00
Martin v. Löwis
0dfcfc8b59
Issue #4710 : Extract directories properly in the zipfile module;
...
allow adding directories to a zipfile.
2009-01-24 14:00:33 +00:00
Jesse Noller
f6da8d1495
Issue 3807: multiprocessing fails to compile under --without-threads
2009-01-23 14:04:41 +00:00
Antoine Pitrou
e741cc607c
Issue #5008 : When a file is opened in append mode with the new IO library,
...
do an explicit seek to the end of file (so that e.g. tell() returns the
file size rather than 0). This is consistent with the behaviour of the
traditional 2.x file object.
2009-01-21 00:45:36 +00:00
Vinay Sajip
5fb11b2b85
Issue 5013: Fixed bug in FileHandler when delay was set.
2009-01-20 22:43:17 +00:00
Raymond Hettinger
933d3a7a54
Issue 4998: __slots__ on Fractions was useless.
2009-01-20 20:34:19 +00:00
Benjamin Peterson
e18ef194d9
allow unicode keyword arguments for the ** syntax #4978
2009-01-20 14:21:16 +00:00
Benjamin Peterson
596d306950
add a note about the ftruncate change
2009-01-19 15:42:23 +00:00
Jesse Noller
9a5b2ad38d
Resolve issue 3321: (segfault) _multiprocessing.Connection() doesn't check handle
2009-01-19 15:12:22 +00:00
Benjamin Peterson
5848d1ff35
raise an OSError for invalid fds #4991
2009-01-19 00:08:08 +00:00
Jesse Noller
438195fc11
issue 4301: patch logging to add processName, remove the old _check_logger_class code
2009-01-18 21:04:36 +00:00
Jesse Noller
6ab22154dd
Resolve issue 4449: AssertionError in mp_benchmarks.py
2009-01-18 02:45:38 +00:00
Benjamin Peterson
5e5fbb612d
fix inspect.isclass() on instances with a custom __getattr__ #1225107
2009-01-17 22:27:54 +00:00
Amaury Forgeot d'Arc
d25f87ae36
#3997 : zipfiles generated with more than 65536 files could not be opened
...
with other applications.
Reviewed by Martin, will backport to 2.6 and 3.0
2009-01-17 16:40:17 +00:00
Mark Dickinson
a200dd5584
Another typo fix.
2009-01-15 15:17:43 +00:00
Mark Dickinson
e82cdae58f
Issue #4397 . Fix occasional test_socket failure on OS X.
2009-01-15 14:54:37 +00:00
Amaury Forgeot d'Arc
b54447f31c
#1162154 : inspect.getmembers() now skips attributes that raise AttributeError,
...
e.g. a __slots__ attribute which has not been set.
2009-01-13 23:39:22 +00:00
Amaury Forgeot d'Arc
a18392a324
#4807 : Remove a wrong usage of wsprintf in the winreg module
...
("windows sprintf", different than swprintf)
Needed for the windows CE port.
2009-01-13 23:19:08 +00:00
Antoine Pitrou
c2f02216b6
Issue #4935 : The overflow checking code in the expandtabs() method common
...
to str, bytes and bytearray could be optimized away by the compiler, letting
the interpreter segfault instead of raising an error.
2009-01-13 23:13:52 +00:00
Amaury Forgeot d'Arc
a40d573664
#3720 : Interpreter crashes when an evil iterator removes its own next function.
...
Now the slot is filled with a function that always raises.
Will not backport: extensions compiled with 2.6.x would not run on 2.6.0.
2009-01-12 23:36:55 +00:00
Raymond Hettinger
f94d7fa5fb
Issue 1696199: Add collections.Counter().
2009-01-12 22:58:41 +00:00
Kristján Valur Jónsson
c22ab18e91
Misc/NEWS for issue 4293
2009-01-12 09:24:04 +00:00
Kristján Valur Jónsson
6220e41cb1
Update Misc/NEWS for issue 3582
2009-01-12 09:20:34 +00:00
Martin v. Löwis
e3422fae8a
Issue #4893 : Use NT threading on CE.
2009-01-12 08:11:24 +00:00
Martin v. Löwis
1b3bef21b0
Issue #4915 : Port sysmodule to Windows CE.
2009-01-12 07:57:11 +00:00
Martin v. Löwis
eefda27e97
Issue #4895 : Use _strdup on Windows CE.
2009-01-11 09:43:55 +00:00
Martin v. Löwis
b3b7d859b3
Issue #4279 : Fix build of parsermodule under Cygwin.
2009-01-11 09:26:54 +00:00
Matthias Klose
43723e2ad8
- Issue #4861 : ctypes.util.find_library(): Robustify. Fix library detection on
...
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
2009-01-10 17:00:42 +00:00
Antoine Pitrou
bd4b5f2b87
Add NEWS entry for r68484.
2009-01-10 16:15:24 +00:00
Antoine Pitrou
4c5ecb7cbb
Issue #4074 : Change the criteria for doing a full garbage collection (i.e.
...
collecting the oldest generation) so that allocating lots of objects without
destroying them does not show quadratic performance. Based on a proposal by
Martin von Löwis at http://mail.python.org/pipermail/python-dev/2008-June/080579.html .
2009-01-09 21:40:55 +00:00
Martin v. Löwis
b90304acb9
Issue #4850 : Change COUNT_ALLOCS variables to Py_ssize_t.
2009-01-07 18:40:40 +00:00
Antoine Pitrou
e96d4ea4e2
Issue #1180193 : When importing a module from a .pyc (or .pyo) file with
...
an existing .py counterpart, override the co_filename attributes of all
code objects if the original filename is obsolete (which can happen if the
file has been renamed, moved, or if it is accessed through different paths).
Patch by Ziga Seilnacht and Jean-Paul Calderone.
2009-01-06 18:10:47 +00:00
Antoine Pitrou
f0d2c3f730
Issue #4272 : Add an optional argument to the GzipFile constructor to override the timestamp in the gzip stream.
2009-01-04 21:29:23 +00:00
Mark Dickinson
514d483a7d
Misc/NEWS entry for r68317
2009-01-04 21:25:40 +00:00
Tarek Ziadé
85d6fb5022
fixed #1702551 : distutils sdist was not pruning VCS directories under win32
2009-01-04 00:04:49 +00:00
Georg Brandl
fe427895b5
Manually merge r68095,68186,68187,68188,68190 from 2.6 branch.
2009-01-03 22:03:11 +00:00
Guilherme Polo
e7f140355b
The _tkinter module functions "createfilehandler", "deletefilehandler",
...
"createtimerhandler", "mainloop", "dooneevent" and "quit" have been
deprecated for removal in 3.x (part of issue #3638 ).
2009-01-03 21:51:09 +00:00
Raymond Hettinger
f4d8597a59
Issue 4796: Add from_float methods to the decimal module.
2009-01-03 19:02:23 +00:00
Martin v. Löwis
0fa10b3cd5
Issue #4817 : Remove unused function PyOS_GetLastModificationTime.
2009-01-03 17:19:26 +00:00
Mark Dickinson
c5de0969ca
Issue #4812 : add missing underscore prefix to some internal-use-only
...
constants in the decimal module. (Dec_0 becomes _Dec_0, etc.)
2009-01-02 23:07:08 +00:00
Martin v. Löwis
9ac4927125
Issue #4051 : Prevent conflict of UNICODE macros in cPickle.
2009-01-02 20:40:14 +00:00
Martin v. Löwis
5344c99734
Issue #4075 : Use OutputDebugStringW in Py_FatalError.
2009-01-02 20:32:55 +00:00
Ronald Oussoren
072bb405f3
Fix for issues #841800 and #900506
2009-01-02 15:25:36 +00:00
Ronald Oussoren
abcc168c69
Fix for issue 1149804
2009-01-02 15:00:05 +00:00
Ronald Oussoren
919697cefe
Fix for issue r1737832
2009-01-02 14:52:09 +00:00
Ronald Oussoren
7f8cbf0e73
Fix for issue 1627952
2009-01-02 14:48:17 +00:00
Ronald Oussoren
63b74feb51
Fix for issue 900949
2009-01-02 14:46:19 +00:00
Ronald Oussoren
0238497e93
Fix for issue1594
2009-01-02 14:10:20 +00:00
Ronald Oussoren
f7d5405d57
Forgot to add a NEWS item in my previous checkin
2009-01-02 10:48:31 +00:00
Hirokazu Yamamoto
99a1b20bbf
Issue #4797 : IOError.filename was not set when _fileio.FileIO failed to open
...
file with `str' filename on Windows.
2009-01-01 15:45:39 +00:00
Antoine Pitrou
aa687902f2
Issue #3680 : Reference cycles created through a dict, set or deque iterator did not get collected.
2009-01-01 14:11:22 +00:00
Georg Brandl
6269fec171
#4228 : Pack negative values the same way as 2.4
...
in struct's L format.
2009-01-01 12:15:31 +00:00
Benjamin Peterson
8ad09a4f2e
#4795 inspect.isgeneratorfunction() should return False instead of None
2008-12-31 23:48:39 +00:00
Tarek Ziadé
b1a85413b1
Fixed #4702 : Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found
2008-12-30 23:03:41 +00:00
Nick Coghlan
180e400766
Issue #4701 : implicitly call PyType_Ready from PyObject_Hash
2008-12-30 01:18:48 +00:00
Tarek Ziadé
c13acb18bc
fixed #4646 : distutils was choking on empty options arg in the setup function.
2008-12-29 22:23:53 +00:00
Martin v. Löwis
03824e45f6
Issue #1040026 : Fix os.times result on systems where HZ is incorrect.
2008-12-29 18:17:34 +00:00
Benjamin Peterson
7af65568ff
#4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms
2008-12-29 17:56:58 +00:00
Benjamin Peterson
fe231b07e4
#4764 set IOError.filename when trying to open a directory on POSIX platforms
2008-12-29 17:47:42 +00:00
Martin v. Löwis
732479f50b
Issue #3767 : Convert Tk object to string in tkColorChooser.
2008-12-29 16:22:25 +00:00
Martin v. Löwis
e2eb2b4bc3
Issue #3248 : Allow placing ScrolledText in a PanedWindow.
2008-12-29 15:51:01 +00:00