]> granicus.if.org Git - python/log
python
13 years agoMerge 3.2: test_httplib removes temporary files
Victor Stinner [Tue, 20 Sep 2011 23:09:29 +0000 (01:09 +0200)]
Merge 3.2: test_httplib removes temporary files

13 years agotest_httplib removes temporary files
Victor Stinner [Tue, 20 Sep 2011 23:09:04 +0000 (01:09 +0200)]
test_httplib removes temporary files

13 years agoHead merge
Barry Warsaw [Tue, 20 Sep 2011 18:58:19 +0000 (14:58 -0400)]
Head merge

13 years ago- Issue #13021: Missing decref on an error path. Thanks to Suman Saha for
Barry Warsaw [Tue, 20 Sep 2011 18:58:01 +0000 (14:58 -0400)]
- Issue #13021: Missing decref on an error path.  Thanks to Suman Saha for
  finding the bug and providing a patch.

13 years ago- Issue #13021: Missing decref on an error path. Thanks to Suman Saha for
Barry Warsaw [Tue, 20 Sep 2011 18:45:44 +0000 (14:45 -0400)]
- Issue #13021: Missing decref on an error path.  Thanks to Suman Saha for
  finding the bug and providing a patch.

13 years agoIssue #12981: test_multiprocessing: catch ImportError when importing
Charles-François Natali [Tue, 20 Sep 2011 18:36:51 +0000 (20:36 +0200)]
Issue #12981: test_multiprocessing: catch ImportError when importing
multiprocessing.reduction, which may not be available (e.g. if the OS doesn't
support FD passing over Unix domain sockets).

13 years agoIssue #12996: multiprocessing.connection: transmit the header in network byte
Charles-François Natali [Tue, 20 Sep 2011 17:27:39 +0000 (19:27 +0200)]
Issue #12996: multiprocessing.connection: transmit the header in network byte
order (endpoints machines can have different endianness).

13 years agoos.statvfs() encodes the filename to the filesystem encoding
Victor Stinner [Tue, 20 Sep 2011 02:04:33 +0000 (04:04 +0200)]
os.statvfs() encodes the filename to the filesystem encoding

13 years agoMerge issue #12973 list_repeat fix.
Mark Dickinson [Mon, 19 Sep 2011 18:19:50 +0000 (19:19 +0100)]
Merge issue #12973 list_repeat fix.

13 years agoIssue #12973: Fix undefined-behaviour-inducing overflow check in list_repeat.
Mark Dickinson [Mon, 19 Sep 2011 18:18:37 +0000 (19:18 +0100)]
Issue #12973: Fix undefined-behaviour-inducing overflow check in list_repeat.

13 years agoClose #13007: whichdb should recognize gdbm 1.9 magic numbers
Jesus Cea [Mon, 19 Sep 2011 15:11:26 +0000 (17:11 +0200)]
Close #13007: whichdb should recognize gdbm 1.9 magic numbers

13 years agoClose #13007: whichdb should recognize gdbm 1.9 magic numbers
Jesus Cea [Mon, 19 Sep 2011 15:08:18 +0000 (17:08 +0200)]
Close #13007: whichdb should recognize gdbm 1.9 magic numbers

13 years agoAvoid matching '' or 'yn' when asking for 'y' or 'n' in interactive code
Éric Araujo [Mon, 19 Sep 2011 14:21:37 +0000 (16:21 +0200)]
Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive code

13 years agoBranch merge
Éric Araujo [Mon, 19 Sep 2011 14:10:26 +0000 (16:10 +0200)]
Branch merge

13 years agoClose issue 12958 by flagging expected failures in test_socket on Mac OS X
Nick Coghlan [Mon, 19 Sep 2011 10:26:31 +0000 (20:26 +1000)]
Close issue 12958 by flagging expected failures in test_socket on Mac OS X

13 years agoIssue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).
Ross Lagerwall [Mon, 19 Sep 2011 06:30:43 +0000 (08:30 +0200)]
Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa).

13 years agoMake regrtest look at internal dicts in sysconfig.
Éric Araujo [Mon, 19 Sep 2011 03:10:45 +0000 (05:10 +0200)]
Make regrtest look at internal dicts in sysconfig.

This reveals problems in the packaging test suite, which I’ll look
into after the regrtest checks are made more usable (see #12314).

13 years agoFinal bag of small changes coming from distutils2.
Éric Araujo [Mon, 19 Sep 2011 13:12:23 +0000 (15:12 +0200)]
Final bag of small changes coming from distutils2.

- minor cleanup in Metadata
- trigger creation of the sysconfig._CONFIG_VARS dict
- home_page is used over home-page: it’s not a compound word, it’s an
  escaped space

Distutils2 is now synchronized with Packaging.

13 years agoA few style changes originally done in the distutils2 repo
Éric Araujo [Sun, 18 Sep 2011 21:12:30 +0000 (23:12 +0200)]
A few style changes originally done in the distutils2 repo

13 years agoReplace cmp function with key function
Éric Araujo [Sun, 18 Sep 2011 19:03:24 +0000 (21:03 +0200)]
Replace cmp function with key function

13 years agoFix typo and wording
Éric Araujo [Sun, 18 Sep 2011 18:36:19 +0000 (20:36 +0200)]
Fix typo and wording

13 years agoBranch merge
Éric Araujo [Sun, 18 Sep 2011 18:24:27 +0000 (20:24 +0200)]
Branch merge

13 years agoMake a number of small changes to ease the backport to distutils2
Éric Araujo [Sun, 18 Sep 2011 18:11:48 +0000 (20:11 +0200)]
Make a number of small changes to ease the backport to distutils2

13 years agoFix fallback base class when tests run without threading
Éric Araujo [Sun, 18 Sep 2011 15:00:38 +0000 (17:00 +0200)]
Fix fallback base class when tests run without threading

13 years agoMerge example fix from 3.2.
Georg Brandl [Sun, 18 Sep 2011 05:40:20 +0000 (07:40 +0200)]
Merge example fix from 3.2.

13 years agoFix bug in heapq priority queue example.
Georg Brandl [Sun, 18 Sep 2011 05:40:05 +0000 (07:40 +0200)]
Fix bug in heapq priority queue example.

13 years agomerge doc fixes from 3.2
Georg Brandl [Sat, 17 Sep 2011 18:40:35 +0000 (20:40 +0200)]
merge doc fixes from 3.2

13 years agoAdd info from the docstring for random.gammavariate() to the docs.
Georg Brandl [Sat, 17 Sep 2011 18:36:28 +0000 (20:36 +0200)]
Add info from the docstring for random.gammavariate() to the docs.

13 years agoFix typo.
Georg Brandl [Sat, 17 Sep 2011 18:20:04 +0000 (20:20 +0200)]
Fix typo.

13 years agoUse a local name (it was intended to be used but overlooked).
Éric Araujo [Sat, 17 Sep 2011 01:35:57 +0000 (03:35 +0200)]
Use a local name (it was intended to be used but overlooked).

This was caught in the distutils2 repo by pyflakes.

13 years agoPackaging cleanup: remove conditionals for < 2.6 support.
Éric Araujo [Sat, 17 Sep 2011 01:31:51 +0000 (03:31 +0200)]
Packaging cleanup: remove conditionals for < 2.6 support.

PEP 370 features and sys.dont_write_bytecode are always available
in 3.3; the distutils2 backport still has the conditionals.

I also renamed an internal misnamed method and fixed a few things
(“packaging2” name, stray print, unused import, fd leak).

13 years agoIssue #12765: Fix packaging.test.test_database failures on OS X due
Ned Deily [Thu, 15 Sep 2011 22:09:23 +0000 (15:09 -0700)]
Issue #12765: Fix packaging.test.test_database failures on OS X due
to unwarranted assumption about absolute paths: on OS X /var is a
symlink to /private/var.  (Also true for /etc and /tmp).

13 years agoimport.c: remove now useless arbitrary limit
Victor Stinner [Thu, 15 Sep 2011 17:50:01 +0000 (19:50 +0200)]
import.c: remove now useless arbitrary limit

13 years agoMerge 3.2: Fix the import machinery if there is an error on sys.path or sys.meta_path
Victor Stinner [Thu, 15 Sep 2011 17:38:54 +0000 (19:38 +0200)]
Merge 3.2: Fix the import machinery if there is an error on sys.path or sys.meta_path

find_module() now raises a RuntimeError, instead of ImportError, on an error on
sys.path or sys.meta_path because load_package() and import_submodule() returns
None and clear the exception if a ImportError occurred.

13 years agoFix the import machinery if there is an error on sys.path or sys.meta_path
Victor Stinner [Thu, 15 Sep 2011 17:28:05 +0000 (19:28 +0200)]
Fix the import machinery if there is an error on sys.path or sys.meta_path

find_module() now raises a RuntimeError, instead of ImportError, on an error on
sys.path or sys.meta_path because load_package() and import_submodule() returns
None and clear the exception if a ImportError occurred.

13 years agoFix packaging.database.Distribution.list_distinfo_files (#12785).
Éric Araujo [Thu, 15 Sep 2011 16:18:51 +0000 (18:18 +0200)]
Fix packaging.database.Distribution.list_distinfo_files (#12785).

This method was supposed to return only the file under the dist-info
directory, but it actually returned all installed files.

The tests didn’t catch this because they were flawed; I updated them.
Thanks to Nadeem Vawda and Jeremy Kloth for testing.

As a bonus, the removal of os.path.relpath use should also fix the
Windows buildbots.

13 years agoIssue #9871: Prevent IDLE 3 crash when given byte stings
Ned Deily [Wed, 14 Sep 2011 21:56:32 +0000 (14:56 -0700)]
Issue #9871: Prevent IDLE 3 crash when given byte stings
with invalid hex escape sequences, like b'\x0'.
(Original patch by Claudiu Popa.)

13 years agoIssue #9871: Prevent IDLE 3 crash when given byte stings
Ned Deily [Wed, 14 Sep 2011 21:49:14 +0000 (14:49 -0700)]
Issue #9871: Prevent IDLE 3 crash when given byte stings
with invalid hex escape sequences, like b'\x0'.
(Original patch by Claudiu Popa.)

13 years agomerge heads
Benjamin Peterson [Wed, 14 Sep 2011 15:46:17 +0000 (11:46 -0400)]
merge heads

13 years agoonly compile xattrs on glibc (closes #12720)
Benjamin Peterson [Wed, 14 Sep 2011 15:45:52 +0000 (11:45 -0400)]
only compile xattrs on glibc (closes #12720)

13 years agoMerge fix for issue #11149.
Stefan Krah [Wed, 14 Sep 2011 13:17:12 +0000 (15:17 +0200)]
Merge fix for issue #11149.

13 years agoIssue #11149: recent versions of clang require the -fwrapv flag.
Stefan Krah [Wed, 14 Sep 2011 13:14:08 +0000 (15:14 +0200)]
Issue #11149: recent versions of clang require the -fwrapv flag.

13 years agoUse xattr functions from sys/xattr.h instead of attr/xattr.h (closes #12720)
Benjamin Peterson [Tue, 13 Sep 2011 21:20:47 +0000 (17:20 -0400)]
Use xattr functions from sys/xattr.h instead of attr/xattr.h (closes #12720)

sys/xattr.h is glibc while attr/xattr.h is a separate library.

13 years agoThe value is the dotted module name to the command class.
Jeremy Kloth [Tue, 13 Sep 2011 14:26:25 +0000 (08:26 -0600)]
The value is the dotted module name to the command class.

13 years agomerge from 3.2
Senthil Kumaran [Mon, 12 Sep 2011 23:14:39 +0000 (07:14 +0800)]
merge from 3.2

13 years agoFix issue12938 - Update the docstring of html.escape. Include the information on...
Senthil Kumaran [Mon, 12 Sep 2011 23:14:13 +0000 (07:14 +0800)]
Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.

13 years agomerge from 3.2 - Add the missing quote_plus call. Fix closes Issue12924
Senthil Kumaran [Mon, 12 Sep 2011 22:41:43 +0000 (06:41 +0800)]
merge from 3.2 - Add the missing quote_plus call. Fix closes Issue12924

13 years agoAdd the quote_plus call in the test.
Senthil Kumaran [Mon, 12 Sep 2011 22:40:27 +0000 (06:40 +0800)]
Add the quote_plus call in the test.

13 years agoRemove trailing spaces
Amaury Forgeot d'Arc [Mon, 12 Sep 2011 19:17:09 +0000 (21:17 +0200)]
Remove trailing spaces

13 years agoMerge 3.2: Issue #12483: ctypes: Fix a crash when the destruction of a callback
Amaury Forgeot d'Arc [Mon, 12 Sep 2011 19:09:12 +0000 (21:09 +0200)]
Merge 3.2: Issue #12483: ctypes: Fix a crash when the destruction of a callback
  object triggers the garbage collector.

13 years agoIssue #12483: ctypes: Fix a crash when the destruction of a callback
Amaury Forgeot d'Arc [Mon, 12 Sep 2011 19:03:36 +0000 (21:03 +0200)]
Issue #12483: ctypes: Fix a crash when the destruction of a callback
object triggers the garbage collector.

13 years agoFactor out the distribution file-system safe name functions from install_distinfo...
Jeremy Kloth [Mon, 12 Sep 2011 17:12:42 +0000 (11:12 -0600)]
Factor out the distribution file-system safe name functions from install_distinfo to allow all metadata consumers access to them.

13 years agoMerge 3.2
Éric Araujo [Mon, 12 Sep 2011 15:41:24 +0000 (17:41 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Mon, 12 Sep 2011 15:34:40 +0000 (17:34 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Mon, 12 Sep 2011 15:15:26 +0000 (17:15 +0200)]
Branch merge

13 years agoRemove unneeded --all option of “pysetup list”.
Éric Araujo [Mon, 12 Sep 2011 14:45:38 +0000 (16:45 +0200)]
Remove unneeded --all option of “pysetup list”.

The command without arguments already prints all installed distributions
found.

In addition, change “releases” for “projects” in the description of the
list action.  Strictly speaking, one installed distribution satisfies
the requirement for a release (i.e. version) of a project, but as
currently only one release per project can be installed at a time, the
two are somewhat equivalent, and “project” is more understandable in
help texts (which call their argument “dist”, by the way..)

13 years agoMerge fix for issue #12963.
Stefan Krah [Mon, 12 Sep 2011 14:24:48 +0000 (16:24 +0200)]
Merge fix for issue #12963.

13 years agoIssue #12963: PyLong_AsSize_t() now returns (size_t)-1 in all error cases.
Stefan Krah [Mon, 12 Sep 2011 14:22:47 +0000 (16:22 +0200)]
Issue #12963: PyLong_AsSize_t() now returns (size_t)-1 in all error cases.

13 years agoOops, zlib.ZLIB_VERSION isn't new in 3.3 - just newly-documented...
Nadeem Vawda [Sun, 11 Sep 2011 22:09:27 +0000 (00:09 +0200)]
Oops, zlib.ZLIB_VERSION isn't new in 3.3 - just newly-documented...

13 years agoTerminology fix: .gz and .bz2 are not archive formats.
Nadeem Vawda [Sun, 11 Sep 2011 22:06:49 +0000 (00:06 +0200)]
Terminology fix: .gz and .bz2 are not archive formats.

13 years agoIssue #12306: Add ZLIB_RUNTIME_VERSION to the zlib module.
Nadeem Vawda [Sun, 11 Sep 2011 22:04:13 +0000 (00:04 +0200)]
Issue #12306: Add ZLIB_RUNTIME_VERSION to the zlib module.

While we're at it, also document ZLIB_VERSION.

Patch by Torsten Landschoff.

13 years agoBZ2File now uses the compresslevel argument given by the caller,
Nadeem Vawda [Sun, 11 Sep 2011 20:38:11 +0000 (22:38 +0200)]
BZ2File now uses the compresslevel argument given by the caller,
instead of ignoring it and always using a compression level of 9.

13 years agoadd ChainMap to __all__ (closes #12959)
Benjamin Peterson [Sun, 11 Sep 2011 16:55:34 +0000 (12:55 -0400)]
add ChainMap to __all__ (closes #12959)

Thanks July Tikhonov.

13 years agoWrap pydoc output under 80 characters
Éric Araujo [Sat, 10 Sep 2011 22:43:20 +0000 (00:43 +0200)]
Wrap pydoc output under 80 characters

13 years agoRemove obsolete comment (yes, build_ext supports C++)
Éric Araujo [Sat, 10 Sep 2011 16:22:31 +0000 (18:22 +0200)]
Remove obsolete comment (yes, build_ext supports C++)

13 years agoDon’t let invalid line in setup.cfg pass silently
Éric Araujo [Sat, 10 Sep 2011 16:22:04 +0000 (18:22 +0200)]
Don’t let invalid line in setup.cfg pass silently

13 years agoFix usage of bytes in packaging's bdist_wininst.
Éric Araujo [Sat, 10 Sep 2011 16:14:08 +0000 (18:14 +0200)]
Fix usage of bytes in packaging's bdist_wininst.

This is copied from the namesake distutils command; there is no
automated test, so buildbots won’t call for my head this time, but it
should be okay as Python 3 users have tested the distutils command.

13 years agoUse bytes regex instead of decoding whole pages
Éric Araujo [Sat, 10 Sep 2011 16:10:58 +0000 (18:10 +0200)]
Use bytes regex instead of decoding whole pages

13 years agoFix usage of dry-run in packaging bdist_wininst and install_distinfo.
Éric Araujo [Sat, 10 Sep 2011 16:10:23 +0000 (18:10 +0200)]
Fix usage of dry-run in packaging bdist_wininst and install_distinfo.

In dry-run mode, packaging commands should log the same info as in real
operation and should collect the same files in self.outputs, so that
users can run a command in verbose and dry-run mode to see exactly what
operations will be done in the real run.

13 years ago#12940: merge with 3.2.
Ezio Melotti [Sat, 10 Sep 2011 07:08:13 +0000 (10:08 +0300)]
#12940: merge with 3.2.

13 years ago#12940: fix cmd example. Patch by Tim Chase.
Ezio Melotti [Sat, 10 Sep 2011 07:06:01 +0000 (10:06 +0300)]
#12940: fix cmd example.  Patch by Tim Chase.

13 years agoFix determination of Metadata version in packaging (#8933).
Éric Araujo [Sat, 10 Sep 2011 03:22:48 +0000 (05:22 +0200)]
Fix determination of Metadata version in packaging (#8933).

Original patch by Filip Gruszczyński.

13 years agoConsolidate tests for packaging.metadata.
Éric Araujo [Sat, 10 Sep 2011 03:18:20 +0000 (05:18 +0200)]
Consolidate tests for packaging.metadata.

New tests were added in test_metadata and old tests inherited from
distutils were still in test_dist, so I moved them into test_metadata
(except for one which was more at home in test_run) and merged
duplicates.

I also added some skips to lure contributors <wink>, optimized the
Metadata.update method a trifle, and added notes about a number of
issues.

A note: The tests in test_dist used to dump the Metadata objects to a
file in the METADATA format and look for strings in its contents; I
updated them to use the mapping API of Metadata instead.  For some
fields with special writing rules, I have added tests to ensure my
conversion did not lose anything.

13 years agoMerge fix for #8933 from 3.2
Éric Araujo [Sat, 10 Sep 2011 02:56:44 +0000 (04:56 +0200)]
Merge fix for #8933 from 3.2

13 years agoNEWS
Jesus Cea [Sat, 10 Sep 2011 02:40:13 +0000 (04:40 +0200)]
NEWS

13 years agoNEWS
Jesus Cea [Sat, 10 Sep 2011 02:37:07 +0000 (04:37 +0200)]
NEWS

13 years agoMERGE: Close #12950: multiprocessing "test_fd_transfer" fails under OpenIndiana
Jesus Cea [Sat, 10 Sep 2011 02:14:04 +0000 (04:14 +0200)]
MERGE: Close #12950: multiprocessing "test_fd_transfer" fails under OpenIndiana

13 years agoClose #12950: multiprocessing "test_fd_transfer" fails under OpenIndiana
Jesus Cea [Sat, 10 Sep 2011 02:04:09 +0000 (04:04 +0200)]
Close #12950: multiprocessing "test_fd_transfer" fails under OpenIndiana

13 years agoClose #12950: multiprocessing "test_fd_transfer" fails under OpenIndiana
Jesus Cea [Sat, 10 Sep 2011 02:04:09 +0000 (04:04 +0200)]
Close #12950: multiprocessing "test_fd_transfer" fails under OpenIndiana

13 years agoTypo
Jesus Cea [Fri, 9 Sep 2011 23:53:19 +0000 (01:53 +0200)]
Typo

13 years agoFix determination of Metadata version (#8933). Patch by Filip Gruszczyński.
Éric Araujo [Fri, 9 Sep 2011 23:51:40 +0000 (01:51 +0200)]
Fix determination of Metadata version (#8933).  Patch by Filip Gruszczyński.

13 years agoYet another fix for #12763: test_posix failure on OpenIndiana
Jesus Cea [Fri, 9 Sep 2011 23:40:52 +0000 (01:40 +0200)]
Yet another fix for #12763: test_posix failure on OpenIndiana

13 years agoSlight cleanup in distutils test_dist.
Éric Araujo [Fri, 9 Sep 2011 23:34:44 +0000 (01:34 +0200)]
Slight cleanup in distutils test_dist.

I have tests to add in this file and it’s always nice to start from a
clean base.

13 years agoBetter fix for #12763: test_posix failure on OpenIndiana
Jesus Cea [Fri, 9 Sep 2011 23:16:55 +0000 (01:16 +0200)]
Better fix for #12763: test_posix failure on OpenIndiana

13 years agoClose issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies
Jesus Cea [Fri, 9 Sep 2011 21:55:42 +0000 (23:55 +0200)]
Close issue 12952: Solaris/Illumos (OpenIndiana) Scheduling policies

13 years agoFix issue #12948: multiprocessing test failures can hang the buildbots
Jesus Cea [Fri, 9 Sep 2011 20:16:57 +0000 (22:16 +0200)]
Fix issue #12948: multiprocessing test failures can hang the buildbots

13 years agoFix issue #12948: multiprocessing test failures can hang the buildbots
Jesus Cea [Fri, 9 Sep 2011 20:15:16 +0000 (22:15 +0200)]
Fix issue #12948: multiprocessing test failures can hang the buildbots

13 years agoClose issue #12948: multiprocessing test failures can hang the buildbots
Jesus Cea [Fri, 9 Sep 2011 18:29:01 +0000 (20:29 +0200)]
Close issue #12948: multiprocessing test failures can hang the buildbots

13 years agoClose issue #12948: multiprocessing test failures can hang the buildbots
Jesus Cea [Fri, 9 Sep 2011 18:26:57 +0000 (20:26 +0200)]
Close issue #12948: multiprocessing test failures can hang the buildbots

13 years agoMerge 3.2
Éric Araujo [Fri, 9 Sep 2011 17:11:04 +0000 (19:11 +0200)]
Merge 3.2

13 years agoFix current name of the Python 3 binary on Unix (#12896).
Éric Araujo [Fri, 9 Sep 2011 17:03:41 +0000 (19:03 +0200)]
Fix current name of the Python 3 binary on Unix (#12896).

Also fix some markup and typos.

13 years agoIssue #12904: os.utime, os.futimes, os.lutimes, and os.futimesat now write
Larry Hastings [Fri, 9 Sep 2011 02:29:07 +0000 (19:29 -0700)]
Issue #12904: os.utime, os.futimes, os.lutimes, and os.futimesat now write
atime and mtime with nanosecond precision on modern POSIX platforms.

13 years agoIssue #12852: Set _POSIX_C_SOURCE to 200809 to get POSIX 2008
Victor Stinner [Wed, 7 Sep 2011 22:56:17 +0000 (00:56 +0200)]
Issue #12852: Set _POSIX_C_SOURCE to 200809 to get POSIX 2008

configure.in: Set _POSIX_C_SOURCE to 200809L, instead of 200112L, to activate
features from IEEE Stds 1003.1-2008.

13 years agoIssue #12852: Set _XOPEN_SOURCE to 700 to get POSIX 2008
Victor Stinner [Wed, 7 Sep 2011 20:29:43 +0000 (22:29 +0200)]
Issue #12852: Set _XOPEN_SOURCE to 700 to get POSIX 2008

configure: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008
functions on OpenBSD (e.g. fdopendir).

13 years agoIssue #12909: Make PyLong_As* functions consistent in their use of exceptions.
Nadeem Vawda [Wed, 7 Sep 2011 19:40:26 +0000 (21:40 +0200)]
Issue #12909: Make PyLong_As* functions consistent in their use of exceptions.

PyLong_AsDouble() and PyLong_AsUnsignedLongLong() now raise TypeError (rather
than SystemError) when passed a non-integer argument, matching the behavior of
all the other PyLong_As*() functions.

13 years agoIssue #12929: faulthandler now uses char* for arithmetic on pointers
Victor Stinner [Wed, 7 Sep 2011 14:18:56 +0000 (16:18 +0200)]
Issue #12929: faulthandler now uses char* for arithmetic on pointers

instead of void*

13 years agoIssue #12871: sched_get_priority_(min|max) might not be defined even though
Charles-François Natali [Tue, 6 Sep 2011 17:03:35 +0000 (19:03 +0200)]
Issue #12871: sched_get_priority_(min|max) might not be defined even though
<sched.h> is available (most notably on OpenBSD when built without pthread):
add an explicit configure check.

13 years agoCloses #12906: Merged fix from 3.2.
Vinay Sajip [Tue, 6 Sep 2011 13:08:24 +0000 (14:08 +0100)]
Closes #12906: Merged fix from 3.2.

13 years agoCloses #12906: Fixed bug in YAML configuration.
Vinay Sajip [Tue, 6 Sep 2011 13:07:23 +0000 (14:07 +0100)]
Closes #12906: Fixed bug in YAML configuration.

13 years agomerge 3.2
Benjamin Peterson [Tue, 6 Sep 2011 11:57:43 +0000 (07:57 -0400)]
merge 3.2