Mark Dickinson
71adc9328d
Style/consistency/nano-optimization nit: replace occurrences of
...
(high_bits << PyLong_SHIFT) + low_bits with
(high_bits << PyLong_SHIFT) | low_bits
in Objects/longobject.c. Motivation:
- shouldn't unnecessarily mix bit ops with arithmetic ops (style)
- this pattern should be spelt the same way thoughout (consistency)
- it's very very very slightly faster: no need to worry about
carries to the high digit (nano-optimization).
2009-09-28 16:52:40 +00:00
Kristján Valur Jónsson
b331802f97
http://bugs.python.org/issue6836
...
A missing 'const' wasn't detected by Visual Studio.
2009-09-28 15:56:25 +00:00
Kristján Valur Jónsson
02ca57ce4c
http://bugs.python.org/issue6836
...
The debug memory api now keeps track of which external API (PyMem_* or PyObject_*) was used to allocate each block and treats any API violation as an error. Added separate _PyMem_DebugMalloc functions for the Py_Mem API instead of having it use the _PyObject_DebugMalloc functions.
2009-09-28 13:12:38 +00:00
Kristján Valur Jónsson
d12f86ce96
http://bugs.python.org/issue6836
...
A memory block allocated with one API was being handed over to an object that used another API to release it.
2009-09-28 13:08:48 +00:00
Skip Montanaro
b4fd4d37a1
Patch from Thomas Barr so that csv.Sniffer will set doublequote property.
...
Closes issue 6606.
2009-09-28 02:12:27 +00:00
Michael Foord
17565e5b7b
Documentation improvement for load_tests protocol in unittest. Issue 6515.
2009-09-27 20:08:23 +00:00
Michael Foord
d6aabcfe2f
Test creation moved from TestProgram.parseArgs to TestProgram.createTests exclusively. Issue 6956.
2009-09-27 19:15:41 +00:00
Mark Dickinson
716a9ccd3d
Eliminate unnecessary get_wrapped_(u)long defines in struct module.
2009-09-27 16:39:28 +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
Vinay Sajip
4780c9a0e0
Tidied up name of parameter in StreamHandler
2009-09-26 14:53:32 +00:00
Ezio Melotti
9aac2455ab
#7000 : document "sep" in capwords. Add a few tests
2009-09-26 11:20:53 +00:00
Benjamin Peterson
afdbe3d661
comment out ugly xxx
2009-09-26 02:57:59 +00:00
Andrew M. Kuchling
b49e53ee16
#6243 : fix segfault when keyname() returns a NULL pointer.
...
Bug noted by Trundle, patched by Trundle and Jerry Chen.
2009-09-25 22:23:54 +00:00
Ezio Melotti
a9a7611fb6
#6994 : fix typo in enumerate docstring
2009-09-25 16:07:55 +00:00
Kristján Valur Jónsson
2fcd03bb77
http://bugs.python.org/issue6971
...
Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
2009-09-25 15:19:51 +00:00
Mark Dickinson
143d433896
Issue #6982 : Add generated Lib/lib2to3/*.pickle files to 'make clean' target.
...
Thanks egreen.
2009-09-24 19:21:07 +00:00
Ezio Melotti
2fd3592e70
improved phrasing, markup and example
2009-09-23 21:36:39 +00:00
Benjamin Peterson
ca66cb5ce0
fix typos/rephrase
2009-09-22 22:15:28 +00:00
Brett Cannon
2f75572f44
Fix a minor doc syntax typo.
2009-09-22 20:04:24 +00:00
Ronald Oussoren
68776dbd3c
Half of the fix for issue 6957: ensure that distutils
...
ignores the '-isysroot' option on OSX when the
corresponding SDK is not installed.
This ensures that the user can compile extensions
on OSX 10.6 using the Python.org installer and a
default installation of Xcode.
2009-09-22 19:27:44 +00:00
Brett Cannon
6ef9fd7c97
Fix whitespace.
2009-09-22 19:13:27 +00:00
Vinay Sajip
f778bec8ed
Fixed a typo, and added sections on optimization and using arbitrary objects as messages.
2009-09-22 17:23:41 +00:00
Ronald Oussoren
e50a9fdd2a
The 'Navigation Toolbox' is not available at all for 64-bit
...
code, make this explicit in the C code to avoid confusing
error messages during the build.
2009-09-22 14:24:57 +00:00
Georg Brandl
ac87077b37
Fix encoding name.
2009-09-22 10:55:08 +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
Mark Dickinson
40ee861c0a
Silence MSVC compiler warnings.
2009-09-21 16:16:44 +00:00
Tarek Ziadé
0cfef2c3a4
forgot to commit a file in previous commit (r74994, issue #6954 )
2009-09-21 13:49:57 +00:00
Tarek Ziadé
9977335984
#6954 : Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
2009-09-21 13:41:08 +00:00
Tarek Ziadé
ccaf380fab
improving distutils coverage
2009-09-21 13:23:35 +00:00
Tarek Ziadé
6d2db3784a
improved distutils test coverage: now the DEBUG mode is covered too (will help fix the issue #6954 in py3k branch)
2009-09-21 12:19:07 +00:00
Doug Hellmann
1d18b5b929
Fix markup for external links.
2009-09-20 20:44:13 +00:00
Ronald Oussoren
c66ced30be
* Make it easier to build custom installers (such as a 3-way universal build)
...
* Upgrade bzip dependency to 1.0.5
2009-09-20 20:16:11 +00:00
Ronald Oussoren
a9cfbded4b
Fix typo in error message
2009-09-20 20:05:44 +00:00
Ronald Oussoren
16766d7cd6
Merge a newer version of libffi_osx, based on the
...
version of libffi in OSX 10.6.1.
This fixes issue6918
2009-09-20 18:54:16 +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
956f4b2520
For for issue 6934: failures in postflight script in OSX installer
2009-09-20 11:19:00 +00:00
Ronald Oussoren
809073bee1
Followup for r74962
2009-09-20 10:54:07 +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
Ezio Melotti
4b017bbac0
#6881 - fixed wrong return type; improved the formatting
2009-09-20 07:10:39 +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
f4da666880
Fix references to threading.enumerate().
2009-09-19 12:04:16 +00:00
Georg Brandl
592c58d356
#6946 : fix duplicate index entries for datetime classes.
2009-09-19 10:42:34 +00:00
Thomas Heller
d25fb2ff1f
Remove unused variable and static function to fix compiler warnings.
2009-09-19 10:04:54 +00:00
Georg Brandl
52c1794b98
Update bug tracker reference.
2009-09-19 08:43:16 +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
dc782b55f2
backport keyword argument support for bytearray.decode
2009-09-18 21:46:21 +00:00
Georg Brandl
579a358e61
#6930 : clarify description about byteorder handling in UTF decoder routines.
2009-09-18 21:35:59 +00:00