Vinay Sajip
03d5c346c0
Issue #7120 : logging: Removed import of multiprocessing which is causing crash in GAE.
2009-10-16 14:06:44 +00:00
Benjamin Peterson
196b0925ca
only clear a module's __dict__ if the module is the only one with a reference to it #7140
2009-10-15 15:44:46 +00:00
Benjamin Peterson
c63457b18e
make inspect.isabstract() always return a boolean; add a test for it, too #7069
2009-10-15 03:06:55 +00:00
Neil Schemenauer
e6039f0978
Add support to the ihooks module for relative imports.
2009-10-14 19:23:53 +00:00
Neil Schemenauer
7fdd1cb583
Issue #1754094 : Improve the stack depth calculation in the compiler.
...
There should be no other effect than a small decrease in memory use.
Patch by Christopher Tur Lesniewski-Laas.
2009-10-14 17:17:14 +00:00
R. David Murray
14dcd43d0b
Enhanced Issue 7058 patch, which will not be backported. Refactors the
...
code, adds checks for stdin/out/err, cwd, and sys.path, and adds a new
section in the summary for tests that modify the environment (thanks to
Ezio Melotti for that suggestion).
2009-10-14 13:58:07 +00:00
Georg Brandl
65e50555f8
Update Misc/README.
2009-10-11 21:17:14 +00:00
Georg Brandl
2bd92a5961
Move find_recursionlimit.py to Tools/scripts; it is out of place in Misc.
2009-10-11 21:10:07 +00:00
Antoine Pitrou
beaf6a02f4
Issue #7084 : Fix a (very unlikely) crash when printing a list from one
...
thread, and mutating it from another one. Patch by Scott Dial.
2009-10-11 21:03:26 +00:00
Senthil Kumaran
274686631a
Fixed Issue6894, urllib2 doesn't respect "no_proxy" environment
2009-10-11 02:00:07 +00:00
Antoine Pitrou
58d2f2689a
Issue #7055 : test___all__ now greedily detects all modules which have an
...
__all__ attribute, rather than using a hardcoded and incomplete list.
2009-10-10 20:52:11 +00:00
Vinay Sajip
1c77b7f84c
Issue #7086 : Added TCP support to SysLogHandler and tidied up some anachronisms in the code.
2009-10-10 20:32:36 +00:00
R. David Murray
0c8bee6393
Issue #7082 : When falling back to the MIME 'name' parameter, the
...
correct place to look for it is the Content-Type header.
Patch by Darren Worrall.
2009-10-09 21:50:54 +00:00
Mark Dickinson
3d830828de
Issue #7078 : _struct.__doc__ was being ignored. Import it into struct.
...
Also add description of '?' struct format character. Thanks Gabriel
Genellina for the patch.
2009-10-08 15:54:10 +00:00
Mark Dickinson
15ae41c2db
Issue #7048 : logb should round its result when that result doesn't fit
...
into the available precision. (Tests for this change are included in
the most recent set of testcases from the Decimal Specification site;
those testcases will be updated shortly.)
2009-10-07 19:22:05 +00:00
Amaury Forgeot d'Arc
590ecf34ff
Add Anders Chrigstrom to Misc/ACKS for his work on unicodedata.
2009-10-06 20:02:09 +00:00
Amaury Forgeot d'Arc
d0052d17b1
#1571184 : makeunicodedata.py now generates the functions _PyUnicode_ToNumeric,
...
_PyUnicode_IsLinebreak and _PyUnicode_IsWhitespace.
It now also parses the Unihan.txt for numeric values.
2009-10-06 19:56:32 +00:00
R. David Murray
abe3d3ec85
Issue #7058 : Added save/restore for argv and os.environ to runtest_inner
...
in regrtest, with warnings if the called test modifies them.
2009-10-05 17:03:09 +00:00
Mark Dickinson
245d915e3e
Issue #7042 : Fix test_signal failure on OS X 10.6 64-bit builds
...
(and also, with luck, on the x86 FreeBSD buildbot), by making sure
that some user time is used in test_itimer_virtual.
2009-10-04 18:38:39 +00:00
Benjamin Peterson
7adbb5a35d
#7050 fix a SystemError when using tuple unpacking and augmented assignment
2009-10-03 20:23:24 +00:00
Tarek Ziadé
1b48671ef1
#6516 added owner/group support for tarfiles in Distutils
2009-10-02 23:49:48 +00:00
Georg Brandl
12fafe6936
Add NEWS entry for r75180.
2009-10-01 21:02:39 +00:00
Philip Jenvey
8b9020458a
#5329 : fix os.popen* regression from 2.5: don't execute commands as a sequence
...
through the shell. also document the correct subprocess replacement for this
case
patch from Jean-Paul Calderone and Jani Hakala
2009-09-29 19:10:15 +00:00
Mark Dickinson
7e7a3ec901
Issue #7019 : Unmarshalling of bad long data could produce unnormalized
...
PyLongs. Raise ValueError instead.
2009-09-29 19:01:06 +00:00
Antoine Pitrou
7248178cd9
Issue #6790 : Make it possible again to pass an `array.array` to
...
`httplib.HTTPConnection.send`. Patch by Kirk McDonald.
2009-09-29 17:48:18 +00:00
Philip Jenvey
dbf3b258e7
#6990 : clear threading.local's key only after its thread state is removed:
...
fixes local subclasses leaving old state around after a ref cycle GC which
could be recycled by new locals
2009-09-29 04:32:44 +00:00
Mark Dickinson
b93fff0a57
Issue #3366 : Add gamma function to math module.
...
(lgamma, erf and erfc to follow).
2009-09-28 18:54:55 +00:00
Mark Dickinson
4b9d473d0a
Issue #6713 : Improve decimal int -> string conversions. Thanks Gawain
...
Bolton for the suggestion and original patches.
2009-09-27 16:05:21 +00:00
Brett Cannon
4d94743c28
When range checking was added to time.strftime() a check was placed on tm_isdst
...
to make sure it fell within [-1, 1] just in case someone implementing
strftime() in libc was stupid enough to assume this. Turns out, though, some
OSs (e.g. zOS) are stupid enough to use values outside of this range for time
structs created by the system itself. So instead of throwing a ValueError,
tm_isdst is now normalized before being passed to strftime().
Fixes issue #6823 . Thanks Robert Shapiro for diagnosing the problem and
contributing an initial patch.
2009-09-22 00:29:48 +00:00
Antoine Pitrou
2a46658bee
Issue #6236 , #6348 : Fix various failures in the io module under AIX
...
and other platforms, when using a non-gcc compiler. Patch by egreen.
In addition, I made explicit the signedness of all bitfields in the
IO library.
2009-09-21 21:17:48 +00:00
Tarek Ziadé
9977335984
#6954 : Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
2009-09-21 13:41:08 +00:00
Ronald Oussoren
9f20d9d0ee
Issue 6877: this patch makes it possible to link the readline extension
...
to the libedit emulation of the readline API on OSX 10.5 or later.
This also adds a minimal testsuite for readline to check that the
history manipuation functions have the same interface with both
C libraries.
2009-09-20 14:18:15 +00:00
Ronald Oussoren
51f0633efd
Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6
2009-09-20 10:31:22 +00:00
Georg Brandl
14a2e2f614
Add Mark Summerfield.
2009-09-19 13:20:49 +00:00
Georg Brandl
c231d31c21
Add Doug.
2009-09-19 13:13:56 +00:00
Georg Brandl
ab849891ef
#6944 : the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple.
2009-09-19 07:35:07 +00:00
Benjamin Peterson
9db5540ec4
typo
2009-09-18 21:47:27 +00:00
Benjamin Peterson
332d721750
add keyword arguments support to str/unicode encode and decode #6300
2009-09-18 21:14:55 +00:00
Thomas Heller
6be522bfc2
Issue #4606 : Passing 'None' if ctypes argtype is set to POINTER(...)
...
does now always result in NULL.
2009-09-18 20:05:44 +00:00
Thomas Heller
7a352c0ed8
Issue #5042 : Structure sub-subclass does now initialize correctly with
...
base class positional arguments.
2009-09-18 18:55:17 +00:00
Mark Dickinson
db9925a56b
Add Gawain Bolton to Misc/ACKS for his work on base 10 integer -> string optimizations.
2009-09-18 18:35:42 +00:00
Georg Brandl
c40e60e5e5
#6938 : "ident" is always a string, so use a format code which works.
2009-09-18 09:18:27 +00:00
Georg Brandl
e9741f3ed8
Issue #6922 : Fix an infinite loop when trying to decode an invalid
...
UTF-32 stream with a non-raising error handler like "replace" or "ignore".
2009-09-17 11:28:09 +00:00
Mark Dickinson
aa2adc828a
Issue #6713 : Improve performance of str(n) and repr(n) for integers n
...
(up to 3.1 times faster in tests), by special-casing base 10 in
_PyLong_Format. (Backport of r74851 from py3k.)
2009-09-16 22:10:56 +00:00
Thomas Wouters
2920adb4df
Add news entry for r74841.
2009-09-16 20:36:34 +00:00
Georg Brandl
0674d3fb5f
#6844 : do not emit DeprecationWarnings on access if Exception.message has been set by the user.
...
This works by always setting it in __dict__, except when it's implicitly set in __init__.
2009-09-16 20:30:09 +00:00
Georg Brandl
480b455e46
Add Armin Ronacher.
2009-09-15 20:26:59 +00:00
Matthias Klose
924eab64a3
Issue #6635 : Fix profiler printing usage message.
2009-09-13 15:09:24 +00:00
Benjamin Peterson
3d85454bca
update urls
2009-09-13 01:59:31 +00:00
Lars Gustäbel
21121e64b4
Issue #6856 : Add a filter keyword argument to TarFile.add().
...
The filter argument must be a function that takes a TarInfo
object argument, changes it and returns it again. If the
function returns None the TarInfo object will be excluded
from the archive.
The exclude argument is deprecated from now on, because it
does something similar but is not as flexible.
2009-09-12 10:28:15 +00:00
Tarek Ziadé
bed26a3ce3
Issue #6163 : Fixed HP-UX runtime library dir options in distutils.unixcompiler
2009-09-09 08:14:20 +00:00
Benjamin Peterson
7f6d0834f9
#6865 fix ref counting in initialization of pwd module
2009-09-08 23:04:22 +00:00
Mark Dickinson
5cfa8044ff
Issue #6857 : Fix Decimal formatting to be consistent with existing float
...
formatting: both are now right-aligned by default.
2009-09-08 20:20:19 +00:00
Mark Dickinson
968f1690d3
#Issue 6795: Fix infinite recursion in long(Decimal('nan')); change int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext.
2009-09-07 18:04:58 +00:00
Mark Dickinson
491ea55f28
Issue #6850 : Fix bug in Decimal._parse_format_specifier for formats
...
with no type specifier.
2009-09-07 16:17:41 +00:00
Mark Dickinson
6b3f1ef190
Issue #6848 : Fix curses module build failure on OS X 10.6.
2009-09-06 21:21:05 +00:00
Ronald Oussoren
626faeb77b
Fix for issue 4937
2009-09-06 12:23:18 +00:00
Mark Dickinson
c8a7c7c3b9
Issue #6846 : bytearray.pop was returning ints in the range [-128, 128)
...
instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
2009-09-06 10:03:31 +00:00
Ronald Oussoren
2596758cb4
Fix build issues on OSX 10.6 (issue 6802)
2009-09-06 10:00:26 +00:00
Chris Withers
7f3ea6a5e5
news entry matching r74655
2009-09-04 16:32:22 +00:00
Georg Brandl
d22b9519d1
Issue #5275 : In Cookie's Cookie.load(), properly handle non-string arguments as documented.
2009-09-04 08:17:04 +00:00
Georg Brandl
2e1308f520
Issue #2666 : Handle BROWSER environment variable properly for unknown browser names in the webbrowser module.
2009-09-04 06:59:20 +00:00
Brett Cannon
e7e941e7f7
test_platform fails on OS X Snow Leopard because the UNIX command to get the
...
canonical version, sw_vers, leaves off trailing zeros in the version number
(e.g. 10.6 instead of 10.6.0). Test now compensates by tacking on extra zeros
for the test comparison.
Fixes issue #6806 .
2009-09-03 21:25:21 +00:00
Benjamin Peterson
6fcf9b50bc
remove the check that classmethod's argument is a callable
2009-09-01 22:27:57 +00:00
Amaury Forgeot d'Arc
fff896b309
#6750 : TextIOWrapped could duplicate output when several threads write to it.
...
this affect text files opened with io.open(), and the print() function of py3k
2009-08-29 18:14:40 +00:00
Tarek Ziadé
3092ed977f
fixed #6801 : symmetric_difference_update also accepts pipe
2009-08-29 13:33:21 +00:00
Lars Gustäbel
f7cda5287d
Issue #6054 : Do not normalize stored pathnames.
...
No longer use tarfile.normpath() on pathnames. Store pathnames
unchanged, i.e. do not remove "./", "../" and "//" occurrences.
However, still convert absolute to relative paths.
2009-08-28 19:23:44 +00:00
Mark Dickinson
7a7739d75e
Issue #6794 : Fix handling of NaNs in Decimal.compare_total and
...
Decimal.compare_total_mag.
2009-08-28 13:25:02 +00:00
Georg Brandl
1a46267bd2
Restore alphabetic order.
2009-08-23 21:28:56 +00:00
Tarek Ziadé
c4a4aebe60
fixed misplaced Issue line
2009-08-21 14:28:38 +00:00
Tarek Ziadé
f721666d33
Fixed #6556 : Corrected doc on how Distutils looks for its user configuration file under Windows
2009-08-21 14:11:26 +00:00
Tarek Ziadé
764fc235a6
#6693 : New functions in site.py to get user/global site packages paths.
2009-08-20 21:23:13 +00:00
Gregory P. Smith
4e63d54b36
Add weakref support to the thread.lock type.
2009-08-20 09:39:38 +00:00
Guilherme Polo
7b50c4fa7c
Issue #1356969 : Add missing info methods in Tix.HList.
2009-08-18 14:46:57 +00:00
Guilherme Polo
6b3c7098f3
Issue #1522587 : New constants and methods for the Tix.Grid widget.
2009-08-18 14:23:00 +00:00
Guilherme Polo
6c823f8720
Issue #1250469 : Fix the return value of Tix.PanedWindow.panes.
2009-08-18 13:29:20 +00:00
Guilherme Polo
d3e6e4bb8f
Issue #1119673 : Do not override Tkinter.Text methods when creating a ScrolledText.
2009-08-18 13:23:08 +00:00
Benjamin Peterson
fe8745d1e4
typos
2009-08-17 13:39:41 +00:00
Gregory P. Smith
b98d6b2cbc
Issue 6665: Fix fnmatch to properly match filenames with newlines in them.
2009-08-16 18:52:58 +00:00
Guilherme Polo
1ce2d5305a
Wrong place for issue #6244 .
2009-08-16 14:38:57 +00:00
Guilherme Polo
fb118351a1
Issue #6244 : Allow detect_tkinter to look for Tcl/Tk 8.6.
2009-08-16 14:34:26 +00:00
Benjamin Peterson
c0ba828857
better col_offsets for "for" statements with tuple unpacking #6704
...
Patch from Frank Wierzbicki.
2009-08-15 22:59:21 +00:00
Benjamin Peterson
4c6e8088f5
#6707 fix a crash with dir() on an uninitialized module
2009-08-15 13:16:38 +00:00
Guilherme Polo
e45f017023
Issue #1135 : Add the XView and YView mix-ins to avoid duplicating
...
the xview* and yview* methods.
2009-08-14 14:36:45 +00:00
Brett Cannon
764465f315
Expat could crash if given the wrong kind of input by never stopping its
...
tokenizing step.
Thanks to Ivan Krstić for the patch.
2009-08-13 19:27:12 +00:00
Gregory P. Smith
c4ad0345cf
Fix issue1628205: Socket file objects returned by socket.socket.makefile() now
...
properly handles EINTR within the read, readline, write & flush methods.
The socket.sendall() method now properly handles interrupted system calls.
2009-08-13 18:54:50 +00:00
Antoine Pitrou
20e1f932fa
Issue #6629 : Fix a data corruption issue in the new `io` package, which could
...
occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or
"wb+" mode) after having buffered a certain amount of data for reading. This
bug was not present in the pure Python implementation.
Yes, this is a serious issue.
2009-08-06 20:18:29 +00:00
Jesse Noller
8497efeb40
Fix issue 4660: spurious task_done errors in multiprocessing, remove doc note for from_address
2009-08-06 02:05:56 +00:00
Mark Dickinson
9a6d6c93b4
Issue #6619 : Remove duplicate 'isgenerator' function from inspect module.
...
Thanks Vincent Legoll.
2009-08-02 15:40:11 +00:00
Mark Dickinson
4326ad8f72
Issue #6595 : Allow Decimal constructor to accept non-European decimal
...
digits, as recommended by the specification. (Backport of r74279 from
py3k.)
2009-08-02 10:59:36 +00:00
Sean Reifscheider
9279e7d177
- Issue #6624 : yArg_ParseTuple with "s" format when parsing argument with
...
NUL: Bogus TypeError detail string.
2009-08-01 23:54:55 +00:00
Amaury Forgeot d'Arc
3e5b027a64
#6511 : ZipFile will now raise BadZipfile when opening an empty or tiny file,
...
like it does for larger invalid files.
2009-07-28 22:15:30 +00:00
Mark Dickinson
fe67bd9168
Issue #6561 : '\d' regular expression should not match characters of
...
category [No]; only those of category [Nd]. (Backport of r74237
from py3k.)
2009-07-28 20:35:03 +00:00
Raymond Hettinger
c2b9e1a134
Issue 6573: Fix set.union() for cases where self is in the argument chain.
2009-07-27 20:32:04 +00:00
Kurt B. Kaiser
794b2a78d0
1. Clean workspace more thoughly before build.
...
2. Add url of branch we are building to 'results' webpage.
(url is now available in $repo_path, could be added to failure email.)
3. Adjust permissions to improve upload reliability.
2009-07-27 16:09:28 +00:00
Amaury Forgeot d'Arc
74b3016783
#6553 : crash in cPickle.load(), when given a StringIO with incomplete data.
...
Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
2009-07-23 19:26:02 +00:00
Georg Brandl
beca49953d
Fix the "pylocals" gdb command.
2009-07-23 09:17:09 +00:00
Georg Brandl
ec812caf5d
Issue #6540 : Fixed crash for bytearray.translate() with invalid parameters.
2009-07-22 11:57:15 +00:00
Tarek Ziadé
af2406f215
Issue #6545 : Removed assert statements in distutils.Extension, so the behavior is similar when used with -O
2009-07-22 08:55:19 +00:00
Thomas Heller
d8431ae3bd
Revert rev 74134, as it does not completely fixx issue #6493 .
2009-07-21 19:04:02 +00:00
Thomas Heller
6adda9641d
Issue #6493 : Fix a ctypes problem setting bitfields more than 31 bits
...
wide.
2009-07-21 06:27:14 +00:00
Benjamin Peterson
4879c907ce
the Slice in x[::] has to have step as None to help the interpreter
2009-07-20 20:28:08 +00:00
Benjamin Peterson
d7b0eebcae
split unittest.py into a package
2009-07-19 20:18:21 +00:00
Mark Dickinson
5215875a95
Add Case Van Horsen to Misc/ACKS, for fractions module patches and other work
2009-07-18 16:01:57 +00:00
Mark Dickinson
88a0a2e47f
Issue #6431 : Fix Fraction comparisons with unknown types, and with
...
float infinities and nans. Backport of r74078 from py3k.
2009-07-18 15:18:18 +00:00
Hirokazu Yamamoto
1a3d085008
NEWS about r74040.
2009-07-17 06:26:54 +00:00
Tarek Ziadé
a99dedfce2
#6466 refactored distutils duplicate get_versions() functions (used to get gcc/ld/dllwrap versions)
2009-07-16 15:35:45 +00:00
Jesse Noller
7530e47948
Issue 6433: multiprocessing.pool.map hangs on empty list
2009-07-16 14:23:04 +00:00
Alexandre Vassalotti
999ecc0eaf
Issue #2389 : Pickle array objects using a list representation for portability
...
across different machine architectures and compatibility with Python 3.x.
2009-07-15 18:19:47 +00:00
Amaury Forgeot d'Arc
9d11fefe1b
NEWS entry for r74000.
2009-07-13 20:03:21 +00:00
Vinay Sajip
cbb24b35a0
Issue #6314 : logging: Extra checks on the "level" argument in more places.
2009-07-13 11:21:05 +00:00
Benjamin Peterson
d50a5d5deb
fix umlaut
2009-07-13 00:03:20 +00:00
Benjamin Peterson
95e5ebe3e3
change encoding to utf-8
2009-07-12 23:56:18 +00:00
Benjamin Peterson
1944d7e724
fix another name
2009-07-12 23:49:23 +00:00
Benjamin Peterson
dd116c2ea5
change encoding to utf-8
2009-07-12 23:44:43 +00:00
Benjamin Peterson
36a81381c6
fix Tarek's name
2009-07-12 23:40:33 +00:00
Benjamin Peterson
6736530df0
add Joe
2009-07-12 21:18:55 +00:00
Tarek Ziadé
51f32c00e8
reverted changes for #6459 (doesn't apply on 2.x)
2009-07-11 17:21:00 +00:00
Amaury Forgeot d'Arc
74b8d333b7
#2622 Import errors in email.message, from a py2app standalone application.
...
Patch by Mads Kiilerich, Reviewed by Barry Warsaw.
2009-07-11 14:33:51 +00:00
Tarek Ziadé
23a3775cc8
fixed #6459 : distutils.command.build_ext.get_export_symbols now uses 'PyInit'
2009-07-11 10:55:27 +00:00
Tarek Ziadé
8c40001175
Fixed #6455 (the test shall use pyd files under win32, rather than so files)
2009-07-10 09:10:33 +00:00
Mark Dickinson
5fd3af24a2
Issue #1523 : Remove deprecated overflow masking in struct module, and
...
make sure that out-of-range values consistently raise struct.error.
2009-07-07 15:08:28 +00:00
R. David Murray
23a736a4f0
Issue 6070: when creating a compiled file, after copying the mode bits, on
...
posix zap the execute bit in case it was set on the .py file, since the
compiled files are not directly executable on posix. Patch by Marco N.
2009-07-07 01:06:13 +00:00
Tarek Ziadé
e670e5ad5b
Fixed #6377 : distutils compiler switch ignored (and added a deprecation warning if compiler is not used as supposed = a string option)
2009-07-06 12:50:46 +00:00
Mark Dickinson
463dc4bf26
Issues #1530559 , #1741130 : Fix various inconsistencies in struct.pack
...
integer packing, and reenable some previously broken tests.
2009-07-05 10:01:24 +00:00
Tarek Ziadé
63f1738d4b
Fixed #6413 : fixed log level in distutils.dist.announce
2009-07-04 02:02:41 +00:00
Gregory P. Smith
c197d0ada2
news entry for r73825
2009-07-04 01:55:11 +00:00
Tarek Ziadé
65ec61ed06
Fixed #6403 : package path usage for build_ext
2009-07-03 08:22:56 +00:00
Benjamin Peterson
753d16234f
when print() gets unicode arguments, sep and end should be unicode by default #4618
2009-07-02 18:16:45 +00:00
Benjamin Peterson
1bf4765369
only order comparisons are removed in py3k #6119
2009-07-02 17:06:17 +00:00
Jesse Noller
1b90efbdc5
Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes
2009-06-30 17:11:52 +00:00
Mark Dickinson
2f865b962c
Issue #6347 : Add inttypes.h to the pyport.h #includes; fixes a build
...
failure on HP-UX 11.00.
2009-06-30 15:32:30 +00:00
Tarek Ziadé
3fbcc60eb8
Fixed 6365: wrong inplace location for build_ext if the extension had dots
2009-06-29 16:13:39 +00:00
Hirokazu Yamamoto
99ebc63f49
Fixed NEWS.
2009-06-29 14:29:31 +00:00
Hirokazu Yamamoto
8839fd7372
Issue #6344 : Fixed a crash of mmap.read() when passed a negative argument.
...
Reviewed by Amaury Forgeot d'Arc.
2009-06-29 13:25:16 +00:00
Hirokazu Yamamoto
a3c5609079
Issue #4856 : Remove checks for win NT.
2009-06-28 10:23:00 +00:00
Martin v. Löwis
ecb4f953dd
Issue 5390: Add uninstall icon independent of whether file
...
extensions are installed.
2009-06-28 09:32:39 +00:00
Amaury Forgeot d'Arc
595f7a5bf9
#2016 Fix a crash in function call when the **kwargs dictionary is mutated
...
during the function call setup.
This even gives a slight speedup, probably because tuple allocation
is faster than PyMem_NEW.
2009-06-25 22:29:29 +00:00
Georg Brandl
5a85d5c4f2
#6332 : fix word dupes throughout the source.
2009-06-24 06:41:19 +00:00
Raymond Hettinger
6c860f97d7
Add procedural note.
2009-06-23 22:20:04 +00:00
Amaury Forgeot d'Arc
14fc673d4f
Remove the ipaddr module per discussion on python-dev
2009-06-23 21:09:09 +00:00
Raymond Hettinger
62641e9534
Issue 6329: Fix iteration for memoryviews.
2009-06-23 20:59:43 +00:00
R. David Murray
ef087da9e7
Fix issue 5230 by having pydoc's safeimport check to see if the import
...
error was thrown from itself in order to decide if the module can't be
found. Thanks to Lucas Prado Melo for collaborating on the fix and tests.
2009-06-23 18:02:46 +00:00
Vinay Sajip
603fb6d667
Issue #6314 : logging.basicConfig() performs extra checks on the "level" argument.
2009-06-21 17:37:27 +00:00
Guilherme Polo
7f146ab0ca
Issue #5450 : Moved tests involving loading tk from Lib/test/test_tcl to
...
Lib/lib-tk/test/test_tkinter/test_loadtk in order to follow the behaviour of
test_ttkguionly.
2009-06-21 17:22:50 +00:00
Tarek Ziadé
439bf93f8c
Fixed #6164 AIX specific linker argument in Distutils unixcompiler
2009-06-20 13:57:20 +00:00
Facundo Batista
8c826b77e0
Issue #6274 . Fixed a potential FD leak in subprocess.py.
2009-06-19 18:02:28 +00:00
Amaury Forgeot d'Arc
5fe420e34c
#6189 : The subprocess.py module should be kept compatible with python 2.2
...
(On windows, you still have to change one line to use pywin32
instead of the _subprocess helper module)
2009-06-18 22:32:50 +00:00
Tarek Ziadé
fdefc0a5a1
Fixed #6287 : documentation for the license field in distutils
2009-06-16 07:29:52 +00:00
Benjamin Peterson
08a0bbc846
don't mask encoding errors when decoding a string #6289
2009-06-16 00:29:31 +00:00
Tarek Ziadé
a1cc040828
Issue #6286 : distutils upload command now uses urllib2
2009-06-15 23:30:13 +00:00
Hirokazu Yamamoto
983a46543c
Issue #6271 : mmap tried to close invalid file handle (-1) when annonymous.
...
(On Unix) Patch by STINNER Victor.
2009-06-14 03:53:55 +00:00
Benjamin Peterson
a72be3b325
when no module is given in a 'from' relative import, make ImportFrom.module NULL
2009-06-13 20:23:33 +00:00
Benjamin Peterson
565e1b6bb7
prevent import statements from assigning to None
2009-06-13 03:46:30 +00:00
Benjamin Peterson
4afbba3d34
keep the slice.step field as NULL if no step expression is given
2009-06-13 01:40:00 +00:00
Antoine Pitrou
1969059327
Issue #6215 : backport the 3.1 io lib
2009-06-12 20:14:08 +00:00
Martin v. Löwis
2dcd7a0d52
Support AMD64 in msilib. Set Win64 on reglocator.
...
Fixes #6258 .
2009-06-12 17:28:31 +00:00
Vinay Sajip
83da034c9a
Issue #5262 : Fixed bug in next roll over time computation in TimedRotatingFileHandler.
2009-06-11 09:23:41 +00:00
Tarek Ziadé
c7498f5aab
#6263 fixed syntax error in distutils.cygwinccompiler
2009-06-11 09:13:36 +00:00
Tarek Ziadé
25d2bae1c9
Fixed #5201 : now distutils.sysconfig.parse_makefile() understands '53264' in Makefiles
2009-06-11 08:12:20 +00:00
Ronald Oussoren
450d561028
This is a fix for Issue5809: you shouldn't specify both --enable-framework and
...
--enable-shared
2009-06-08 21:12:41 +00:00
Georg Brandl
1e44447014
Add Ezio.
2009-06-07 20:37:52 +00:00
Georg Brandl
e6632b47bb
#5767 : remove sgmlop support from xmlrpclib; the sgmlop parser does not do much validation and is no longer much faster than e.g. the cElementTree XMLParser.
2009-06-04 08:58:32 +00:00
Amaury Forgeot d'Arc
b02ceda3a5
#4547 : When debugging a very large function, it was not always
...
possible to update the lineno attribute of the current frame.
2009-06-01 20:53:18 +00:00
Antoine Pitrou
4698d9928e
Issue #6152 : New option '-j'/'--multiprocess' for regrtest allows running
...
regression tests in parallel, shortening the total runtime.
2009-05-31 14:20:14 +00:00
Antoine Pitrou
a3e8f30eab
Update ACKS
2009-05-30 21:45:40 +00:00
Antoine Pitrou
46dbe27f7e
Issue #5330 : C functions called with keyword arguments were not reported by
...
the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.
2009-05-30 21:27:00 +00:00
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
40748f362b
reorder name
2009-05-23 19:31:02 +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
Collin Winter
f03c42f0ab
Issue 6032: fix refleaks in test_urllib2_localnet.
2009-05-18 21:35:40 +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
2aabce7348
Add Nick Barnes to ACKS.
2009-05-04 18:32:50 +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