Commit Graph

43717 Commits

Author SHA1 Message Date
Gregory P. Smith 9d3252154f issue3972: HTTPConnection and HTTPSConnection now support a
source_address parameter.

Also cleans up an annotation in the socket documentation.
2010-01-03 02:06:07 +00:00
Gregory P. Smith 79a3eb1058 Adds an optional source_address parameter to socket.create_connection().
For use by issue3972.
2010-01-03 01:29:44 +00:00
Andrew M. Kuchling 7f8ebdbad5 Add a few items 2010-01-03 01:15:21 +00:00
Gregory P. Smith ffd5d886c2 make setup.py similar to py3k's when reporting on _hashlib as missing or not. 2010-01-03 00:43:02 +00:00
Gregory P. Smith 6dcdcde2a8 Import all implementations of the hash algorithms (OpenSSL & builtin) and run
the test suite across all that are available.  Warns about extension modules
that could not be imported when python was compiled with Py_DEBUG.

That warning could be made fatal but I didn't want to do that initially as
I suspect non setup.py based build processes (windows, any others?) won't
compile them all conditionally based on the Py_DEBUG setting today.
2010-01-03 00:19:04 +00:00
Georg Brandl 92c58ae384 Fix typo. 2010-01-02 22:55:55 +00:00
Gregory P. Smith fe32d3010c mention the r77252 change 2010-01-02 22:42:50 +00:00
Gregory P. Smith 443ec6875f Issue #3745: Undo the requirement for new buffer API only objects to be passed
to hashlib functions in python 2.x.  The module now uses the 's*' for argument
parsing which auto encodes unicode objects to the system default encoding for
us.
2010-01-02 22:28:48 +00:00
Gregory P. Smith c2fa18ca20 Always compile the all versions of the hashlib algorithm modules when Python
was compiled with Py_DEBUG defined.  Otherwise the builtins are not compiled by
default for many developers due to OpenSSL being present, making it easier for
bugs to slip by.  A future commit will add test code compare the behaviors of
all implementations when they are all available.
2010-01-02 22:25:29 +00:00
Antoine Pitrou b538d546da Remove silly conditional. 2010-01-02 21:53:44 +00:00
Antoine Pitrou 83f86e8e98 Add tests for issue #7458: str.rfind() would crash when called with an invalid
start value.  The offending code itself was removed as part of #7462.
This patch by Victor Stinner.
2010-01-02 21:47:10 +00:00
Gregory P. Smith b56fb12b74 Correct documentation for s* z* and w*, the argument that should be passed
is the address of a Py_buffer, not a Py_buffer *.
2010-01-02 21:29:54 +00:00
Antoine Pitrou 5b7139aab4 Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,
`rindex`, `rsplit` and `rpartition` methods.  Patch by Florent Xicluna.
2010-01-02 21:12:58 +00:00
Mark Dickinson d3e323215c Refactor some longobject internals: PyLong_AsDouble and _PyLong_AsScaledDouble
(the latter renamed to _PyLong_Frexp) now use the same core code.  The
exponent produced by _PyLong_Frexp now has type Py_ssize_t instead of the
previously used int, and no longer needs scaling by PyLong_SHIFT.  This
frees the math module from having to know anything about the PyLong
implementation.  This closes issue #5576.
2010-01-02 14:45:40 +00:00
Mark Dickinson 5a485c188e Clarify that the rect, phase and polar functions work with radians. 2010-01-02 14:29:52 +00:00
Georg Brandl 36f4214255 Fix casing. 2010-01-02 12:35:01 +00:00
Martin v. Löwis 4b2c064ed8 Make script work with 2.5. 2010-01-02 09:53:18 +00:00
Martin v. Löwis f477b93d9d Update Windows build to sqlite 3.6.21. 2010-01-02 09:25:21 +00:00
Benjamin Peterson 1a635e4663 remove use of deprecated os.popen #7619 2010-01-02 02:43:04 +00:00
Mark Dickinson 1b34d2552c Issue #5080: turn the DeprecationWarning from float arguments passed
to integer PyArg_Parse* format codes into a TypeError.  Add a
DeprecationWarning for floats passed with the 'L' format code, which
didn't previously have a warning.
2010-01-01 17:27:30 +00:00
Benjamin Peterson edfe72f66f allow --with-dbmliborder to specify that no dbm modules will be built #6491 2010-01-01 15:21:13 +00:00
Benjamin Peterson 6c99b4e0d6 fix indentation 2010-01-01 15:20:06 +00:00
Benjamin Peterson b4abef6d42 add note 2010-01-01 15:18:38 +00:00
Benjamin Peterson 1c335e63c9 use pkg-config to find the libffi headers when --with-system-ffi is used #6943 2010-01-01 15:16:29 +00:00
Georg Brandl 8cdc9bc901 More yearly updates. 2010-01-01 13:07:05 +00:00
Ezio Melotti 9db77468bc more copyright year updates 2010-01-01 04:16:42 +00:00
Benjamin Peterson 71380c3dfe update copyright year 2010-01-01 04:00:55 +00:00
Brett Cannon f31d1a0577 Add some missing command-line options to the main list. All but -V were already
documented. Left -V undocumented for now (and -U was already undocumented).
2010-01-01 01:44:57 +00:00
Mark Dickinson 0ef0b910ce More configure fixes: avoid sh 'integer argument expected' error when 'long long' type doesn't exist. 2009-12-31 21:11:48 +00:00
Mark Dickinson 5ce8474cc7 Add missing quotes. 2009-12-31 20:48:04 +00:00
Benjamin Peterson ae9a0a0f27 add another advancement 2009-12-31 16:49:37 +00:00
Andrew M. Kuchling a7f594712e Add various items 2009-12-31 16:38:53 +00:00
Benjamin Peterson 2fd2e86787 update expat comment 2009-12-31 16:28:24 +00:00
Andrew M. Kuchling 91e0db8404 Add some items 2009-12-31 16:17:05 +00:00
Ezio Melotti aac4df68d8 #7613: missing ) in flmodule.c 2009-12-31 13:47:24 +00:00
Ezio Melotti 763f1e8d32 indentation and further alignment with py3k 2009-12-31 13:27:41 +00:00
Ezio Melotti 6d6b53cab8 cleanup and refactoring 2009-12-31 13:00:43 +00:00
Benjamin Peterson 2c19674b51 add a --with-system-expat option to build pyexpat against the system's lib #7609 2009-12-31 03:17:18 +00:00
Benjamin Peterson df6f963f15 Merged revisions 77158 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77158 | benjamin.peterson | 2009-12-30 13:41:03 -0600 (Wed, 30 Dec 2009) | 1 line

  clean up logging's global state after the test finishes
........
2009-12-30 19:44:23 +00:00
Benjamin Peterson 0f02d3933b check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)
Also, add a note to the docs about the better behavior of T_OBJECT_EX as
compared to T_OBJECT.
2009-12-30 19:34:10 +00:00
Georg Brandl b7953f00b1 We only support Windows NT derivatives now. 2009-12-30 19:03:00 +00:00
Georg Brandl e5ee7e38e8 #7602: improve "clean" and "checkout" targets now that all tools are in externals. 2009-12-30 18:36:09 +00:00
Georg Brandl 5a5fee8ce3 #7487: update Pygments version. 2009-12-30 18:32:50 +00:00
Georg Brandl 95049f2561 Use new Pygments version. 2009-12-30 16:21:26 +00:00
Mark Dickinson 9b02e85e8d Add Marcos Donolo for work on issue 7534 patch. 2009-12-30 12:22:49 +00:00
Mark Dickinson 99d652ef66 Issue #7534: Fix handling of nans, infinities, and negative zero in **
operator, on IEEE 754 platforms.  Thanks Marcos Donolo for original patch.
2009-12-30 12:12:23 +00:00
Ezio Melotti 569e61f351 #5511: Added the ability to use ZipFile as a context manager. Patch by Brian Curtin. 2009-12-30 06:14:51 +00:00
Benjamin Peterson eb74da8e67 wrap long line 2009-12-30 03:02:34 +00:00
Benjamin Peterson 500ce23384 only build the nis module when the headers are found #7589 2009-12-30 02:58:50 +00:00
Andrew M. Kuchling 3c8a24e6d9 Add various items 2009-12-29 23:41:04 +00:00