Amaury Forgeot d'Arc
d728871ee1
#7419 : Fix a crash on Windows in locale.setlocale() when the category
...
is outside the allowed range.
2009-12-01 21:51:04 +00:00
Ronald Oussoren
7072f74dc8
Fix for issue #7416 : SIZEOF_UINTPTR_T can be invalid when configuring a
...
multi-architecture build (in particular when the architectures don't share
a common pointer size).
Fixed the same issue for SIZEOF_PTHREAD_T.
(No update to the NEWS file because this is a bugfix for an as yet unreleased
feature)
2009-12-01 15:54:01 +00:00
Mark Dickinson
117a899e4d
Add dtoa.c and dtoa.h to the relevant project files.
2009-11-30 21:51:30 +00:00
Raymond Hettinger
2ef9e8ce00
Update project file for new file: dtoa.c
2009-11-30 21:14:25 +00:00
Raymond Hettinger
9b4197ba53
Handle step values other than one.
2009-11-30 21:13:52 +00:00
Raymond Hettinger
e09f45a2e3
Issue 7410: deepcopy of itertools.count resets the count
2009-11-30 19:44:40 +00:00
Benjamin Peterson
d46430bd81
now that deepcopy can handle instance methods, this hack can be removed #7409
...
Thanks Robert Collins
2009-11-29 22:26:26 +00:00
Tarek Ziadé
a5076a2543
Fixed #7408 : dropped group ownership checking because it relies on os-specific rules
2009-11-29 22:20:30 +00:00
Eric Smith
c4ab8339e9
Issue #3382 : Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.
2009-11-29 17:40:57 +00:00
Mark Dickinson
ccc690d650
Issue #1678380 : When distinguishing between -0.0 and 0.0 in
...
compiler_add_o, use copysign instead of examining the first and last
bytes of the double. The latter method fails for little-endian
ARM, OABI, where doubles are little-endian but with the words swapped.
2009-11-28 16:32:27 +00:00
Antoine Pitrou
d16f57bf4d
Issue #1515 : Enable use of deepcopy() with instance methods. Patch by Robert Collins.
2009-11-28 15:55:58 +00:00
Mark Dickinson
c63392c152
Multiprocessing configure checks don't need LIBM
2009-11-28 13:13:13 +00:00
Mark Dickinson
31f0cfef0e
Include ieeefp.h (when available) in pyport.h instead of individually in
...
Objects/floatobject.c and Objects/complexobject.c. This should silence
compiler warnings about implicit declaration of the 'finite' function
on Solaris.
2009-11-28 12:30:36 +00:00
Georg Brandl
8d8f874c19
Fix versions and spacing.
2009-11-28 11:11:50 +00:00
Mark Dickinson
5afa6d4dcf
Issue #7272 , continued: don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
...
to indicate that semaphores aren't available; define a new variable
POSIX_SEMAPHORES_NOT_ENABLED instead.
2009-11-28 10:44:20 +00:00
Gregory P. Smith
761ae0b8cc
fix typo
2009-11-27 17:51:12 +00:00
Vinay Sajip
01801d1f08
Issue #7403 : Fixed possible race condition in lock creation.
2009-11-27 14:03:36 +00:00
Martin v. Löwis
50ea4565bd
Issue #6508 : Add posix.{getresuid,getresgid,setresuid,setresgid}.
2009-11-27 13:56:01 +00:00
Antoine Pitrou
bf4a5fc8d8
Add ACKS entry for Pablo Mouzo
2009-11-27 13:24:29 +00:00
Antoine Pitrou
acbe3bdbab
Issue #6845 : Add restart support for binary upload in ftplib. The
...
`storbinary()` method of FTP and FTP_TLS objects gains an optional `rest`
argument. Patch by Pablo Mouzo.
(note: the patch also adds a test for the rest argument in retrbinary())
2009-11-27 13:18:34 +00:00
Georg Brandl
2600a33219
#7400 : typo.
2009-11-26 20:48:25 +00:00
Antoine Pitrou
2dab865ff1
When open_urlresource() fails, HTTPException is another possible error
2009-11-26 12:36:30 +00:00
Martin v. Löwis
0306894fb1
Fix typo.
2009-11-26 08:42:05 +00:00
Antoine Pitrou
e236c3c8c2
Forgot to add a `versionadded` tag
2009-11-25 23:03:22 +00:00
Antoine Pitrou
bcfaf8007d
Issue #5788 : `datetime.timedelta` objects get a new `total_seconds()` method returning
...
the total number of seconds in the duration. Patch by Brian Quinlan.
2009-11-25 22:59:36 +00:00
Barry Warsaw
0d9f61a543
Add mktime_tz to __all__. It's documented as being available in email.utils.
2009-11-25 18:38:32 +00:00
Benjamin Peterson
42d26d94cc
Merged revisions 76160-76161,76250,76252,76447,76506 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r76160 | benjamin.peterson | 2009-11-08 18:53:48 -0600 (Sun, 08 Nov 2009) | 1 line
undeprecate the -p option; it's useful for converting python3 sources
........
r76161 | benjamin.peterson | 2009-11-08 19:05:37 -0600 (Sun, 08 Nov 2009) | 1 line
simplify condition
........
r76250 | benjamin.peterson | 2009-11-13 16:56:48 -0600 (Fri, 13 Nov 2009) | 1 line
fix handling of a utf-8 bom #7313
........
r76252 | benjamin.peterson | 2009-11-13 16:58:36 -0600 (Fri, 13 Nov 2009) | 1 line
remove pdb turd
........
r76447 | benjamin.peterson | 2009-11-22 18:17:40 -0600 (Sun, 22 Nov 2009) | 1 line
#7375 fix nested transformations in fix_urllib
........
r76506 | benjamin.peterson | 2009-11-24 18:34:31 -0600 (Tue, 24 Nov 2009) | 1 line
use generator expressions in any()
........
2009-11-25 18:16:46 +00:00
Vinay Sajip
2ed8813f22
logging: Issue 6615: Changed handler prepend to append.
2009-11-25 14:12:03 +00:00
Vinay Sajip
17e94e052f
logging: made _handlers a WeakValueDictionary.
2009-11-25 09:22:47 +00:00
Vinay Sajip
c470d68d39
Issue #6615 : logging: Used weak references in internal handler list. Thanks to flox (Florent Xicluna) for the patch.
2009-11-25 09:03:30 +00:00
Mark Dickinson
889d96455a
Issue #7228 : Fix format mismatch when printing something of type off_t.
...
(Should silence some compiler warnings.)
2009-11-24 20:51:48 +00:00
Alexandre Vassalotti
8b2d713d32
Issue 7128: Removed reference to the non-existent copyreg module.
...
The reference to copyreg was a unnoticed leftover from the compatibility
support for the grand renaming of the standard library in Python 3. The
compatibility support was reverted in r63493, but not completely as this
patch shows.
Based on a patch by Amaury Forgeot d'Arc.
2009-11-24 17:53:23 +00:00
Vinay Sajip
1d2c16db7e
Made logging classes new-style and added name property to handlers.
2009-11-24 15:53:25 +00:00
Mark Dickinson
3e5354934e
Issue #7117 : Update float formatting testcases to match those in py3k.
2009-11-24 15:12:20 +00:00
Mark Dickinson
6b87f117ca
Fix some documentation examples involving the repr of a float.
2009-11-24 14:27:02 +00:00
Jesse Noller
9a03f2fd03
comment out test added in r76438, which caused refleaks
2009-11-24 14:17:29 +00:00
Mark Dickinson
bce783757f
round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.
2009-11-24 10:54:58 +00:00
Mark Dickinson
9dd5e16c5d
Issue #7117 , continued: Remove substitution of %g-style formatting for
...
%f-style formatting, which used to occur at high precision. Float formatting
should now be consistent between 2.7 and 3.1.
2009-11-23 20:54:09 +00:00
Georg Brandl
faa25999a3
#7345 : fix arguments of formatyear().
2009-11-23 19:53:19 +00:00
Mark Dickinson
18cfada1ea
Remove restriction on precision when formatting floats. This is the
...
first step towards removing the %f -> %g switch (see issues 7117,
5859).
2009-11-23 18:46:41 +00:00
Senthil Kumaran
5c456e6f45
Fix for issue1488943 - difflib.Differ() doesn't always add hints for tab
...
characters.
2009-11-23 18:41:31 +00:00
Mark Dickinson
f058d2dc08
Issue #7369 : Fibonacci series should start at 0 in tutorial example.
2009-11-23 16:39:05 +00:00
Mark Dickinson
e13dc3e6d5
Issue #7379 : Fix incorrect doctest for Fraction.limit_denominator.
2009-11-23 16:23:43 +00:00
Lars Gustäbel
12adc655c8
Add a testcase that checks if the TarFile constructor successfully
...
closes the internal file object in case of an error (issue #7341 ).
2009-11-23 15:46:19 +00:00
Lars Gustäbel
dd866d57af
Issue #6123 : Fix opening empty archives and files.
...
(Note that an empty archive is not the same as an empty file. An
empty archive contains no members and is correctly terminated with an
EOF block full of zeros. An empty file contains no data at all.)
The problem was that although tarfile was able to create empty
archives, it failed to open them raising a ReadError. On the other
hand, tarfile opened empty files without error in most read modes and
presented them as empty archives. (However, some modes still raised
errors: "r|gz" raised ReadError, but "r:gz" worked, "r:bz2" even
raised EOFError.)
In order to get a more fine-grained control over the various internal
error conditions I now split up the HeaderError exception into a
number of meaningful sub-exceptions. This makes it easier in the
TarFile.next() method to react to the different conditions in the
correct way.
The visible change in its behaviour now is that tarfile will open
empty archives correctly and raise ReadError consistently for empty
files.
2009-11-22 18:30:53 +00:00
Jesse Noller
814d02dcd1
issue6615: Additional test for logging support in multiprocessing
2009-11-21 14:38:23 +00:00
Jesse Noller
7bdd8d946b
revert unintended change to multiprocessing/queues.py
2009-11-21 14:06:24 +00:00
Jesse Noller
6c3767445c
issue5738: The distribution example was confusing, and out of date. It's too large to include inline in the docs as well. It belongs in an addons module outside the stdlib. Removing.
2009-11-21 14:01:56 +00:00
Mark Dickinson
c4920e86ef
Issue #7272 : Add configure test to detect whether sem_open works
...
properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal. This should fix some FreeBSD buildbot
failures for test_multiprocessing.
2009-11-20 19:30:22 +00:00
Mark Dickinson
ab44226198
Regenerate configure with GNU autoconf 2.61.
2009-11-20 19:27:43 +00:00