Nick Coghlan
c5e4485248
Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead of '-c' while searching for the module to be executed
2010-04-28 14:51:08 +00:00
Antoine Pitrou
1dc6b08f9e
Issue #8549 : Fix compiling the _ssl extension under AIX. Patch by
...
Sridhar Ratnakumar.
2010-04-27 19:09:59 +00:00
Sean Reifscheider
ca2e61276e
Fixing obscure syslog corner-case when sys.argv = None, syslog() would call
...
openlog() for every logged message.
2010-04-25 06:31:23 +00:00
Antoine Pitrou
4d3e372ff3
The do_handshake() method of SSL objects now adjusts the blocking mode of
...
the SSL structure if necessary (as other methods already do).
2010-04-24 19:57:01 +00:00
Sean Reifscheider
04f4347de0
Small comment documentation change to clarify "ident" selection.
2010-04-23 08:38:24 +00:00
Sean Reifscheider
f6ce3cb84e
issue8451: Making syslog module use sys.argv[0] for "ident".
2010-04-23 08:31:55 +00:00
Antoine Pitrou
a5c4b5515f
Issue #8108 : Fix the unwrap() method of SSL objects when the socket has
...
a non-infinite timeout. Also make that method friendlier with applications
wanting to continue using the socket in clear-text mode, by disabling
OpenSSL's internal readahead. Thanks to Darryl Miles for guidance.
Issue #8108 : test_ftplib's non-blocking SSL server now has proper handling
of SSL shutdowns.
2010-04-22 23:33:02 +00:00
Antoine Pitrou
c715a9ed08
Issue #8484 : Load all ciphers and digest algorithms when initializing
...
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".
2010-04-21 19:28:03 +00:00
Antoine Pitrou
7c587bf53d
Issue #8438 : Remove reference to the missing "surrogateescape" encoding
...
error handler from the new IO library.
2010-04-19 18:52:43 +00:00
Antoine Pitrou
0a6373c1a9
Issue #8322 : Add a *ciphers* argument to SSL sockets, so as to change the
...
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
2010-04-17 17:10:38 +00:00
Benjamin Peterson
b7b7c77eb3
add space
2010-04-15 21:42:16 +00:00
Antoine Pitrou
bba8f2d10a
Revert temporary commit in r79937
2010-04-10 23:32:12 +00:00
Antoine Pitrou
16e026cc94
Temporary commit of fix to issue #5380 (in order to watch buildbot response)
2010-04-10 22:43:05 +00:00
Philip Jenvey
cdd98fb463
fix PYTHONWARNINGS handling to not modify the original env value and improve
...
its tests
2010-04-10 20:27:15 +00:00
Antoine Pitrou
343314a11c
Revert r79915 (temporary commit to check for buildbots -> the fix was successful)
2010-04-09 22:41:31 +00:00
Antoine Pitrou
9c6cd56e91
Temporarily commit fix to issue #8108 , to check for buildbot response
2010-04-09 21:00:36 +00:00
Antoine Pitrou
92719c546f
SSL_MODE_AUTO_RETRY has been added in OpenSSL 0.9.6. Fix compilation
...
with earlier versions.
2010-04-09 20:38:39 +00:00
Jeroen Ruigrok van der Werven
422c7423b8
FreeBSD is not a sysv platform, so use freebsd.S instead of sysv.S (as is
...
also the case in FreeBSD's port of libffi).
Reviewed by: dickinsm
2010-04-07 14:33:37 +00:00
Martin v. Löwis
16ea548f69
Issue #8314 : Fix unsigned long long bug in libffi on Sparc v8.
2010-04-07 11:01:46 +00:00
Philip Jenvey
aebbaeb962
#7301 : add the environment variable $PYTHONWARNINGS to supplement the -W
...
command line option
patch from Brian Curtin
2010-04-06 23:24:45 +00:00
Benjamin Peterson
3a1dfa21c2
remove a optimization that resulted in unexpected behavior #8929
2010-04-06 21:50:00 +00:00
Benjamin Peterson
e266d3e804
ready _sre types
2010-04-06 03:34:09 +00:00
Antoine Pitrou
f9de534c21
Issue #8321 : Give access to OpenSSL version numbers from the `ssl` module,
...
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
2010-04-05 21:35:07 +00:00
Philip Jenvey
034b0acdd3
fix escape_encode to return the correct consumed size
2010-04-05 02:51:51 +00:00
Mark Dickinson
4f185228b0
A handful of whitespace fixes in Modules/_struct.c.
2010-04-04 21:19:35 +00:00
Mark Dickinson
fdaaa9c9d8
Issue #8300 (__index__ handling in struct.pack): Remove redundant check
...
and improve test coverage. Thanks Meador Inge for the patch.
2010-04-04 08:43:04 +00:00
Raymond Hettinger
5f516edd77
Add count() method to collections.deque().
2010-04-03 18:10:37 +00:00
Mark Dickinson
4846a8e828
Issue #8300 : Let struct.pack use __index__ to convert and pack non-integers.
...
Based on a patch by Meador Inge.
2010-04-03 14:05:10 +00:00
Brian Curtin
ae509520de
Add missing return statement in an error condition.
2010-04-03 13:58:39 +00:00
Mark Dickinson
b05dc00fb7
Fix a couple of issues with the test_structmembersType class in _testcapimodule
...
- rename to _test_structmembersType to avoid the class being automatically
called by test_capi
- allow space for trailing NUL in inplace_member field of all_structmembers
- use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument
to _test_structmembersType initializer
- don't attempt to initialize inplace_member field if T_STRING_INPLACE
argument wasn't supplied.
2010-04-03 10:27:05 +00:00
Benjamin Peterson
1c7c11ef61
give TypeError when trying to set T_STRING_INPLACE
2010-04-03 01:28:57 +00:00
Brian Curtin
e5aa886b44
Implement #1220212 . Add os.kill support for Windows.
...
os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.
This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.
subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.
2010-04-02 23:26:06 +00:00
Larry Hastings
3b958e3b57
Issue #8235 : _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is
...
a socket option available on FreeBSD 7.1 and newer.
2010-04-02 11:18:17 +00:00
Thomas Heller
b102ddadcb
Revert rev. 79509; ctypes doesn't build on linux.
2010-03-30 20:57:06 +00:00
Thomas Heller
5006ba0fef
Merged revisions 79115,79424,79491 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/branch_libffi-3_0_10-win
........
r79115 | thomas.heller | 2010-03-19 22:14:47 +0100 (Fr, 19 Mrz 2010) | 7 lines
Work in progress. 2 tests fail on x86/win32 because the stack
checking code in ffi_call_win32 is not yet implemented.
Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...). Other files are used in the
cross-platform _ctypes/libffi directory.
........
r79424 | thomas.heller | 2010-03-25 19:28:02 +0100 (Do, 25 Mrz 2010) | 1 line
Build _ctypes on Win64.
........
r79491 | thomas.heller | 2010-03-29 21:30:33 +0200 (Mo, 29 Mrz 2010) | 4 lines
On Windows, ctypes does no longer check the stack before and after
calling a foreign function.
This allows to use the unmodified libffi library.
........
2010-03-30 19:46:23 +00:00
Antoine Pitrou
eee91cda80
Issue #8222 : Enable the SSL_MODE_AUTO_RETRY flag on SSL sockets, so that blocking
...
reads and writes are always retried by OpenSSL itself.
(this is a followup to issue #3890 )
2010-03-26 19:27:16 +00:00
Victor Stinner
c1f842b532
Fix a gcc warning introduced by r79397.
2010-03-25 01:18:38 +00:00
Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
...
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Victor Stinner
53ff86ea5f
Fix _curses.tiget*() functions: deny None to avoid a crash.
...
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
2010-03-25 00:51:58 +00:00
Ezio Melotti
0d0b80bc3e
Link specifically to the UCD version 5.2.0.
2010-03-23 00:38:12 +00:00
Ezio Melotti
ae735a763e
Update the version number of the Unicode Database in a few more places.
2010-03-22 23:07:32 +00:00
Florent Xicluna
eba2aca4bd
Preserve backward compatibility of the ctypes module.
...
"This file should be kept compatible with Python 2.3, see PEP 291."
2010-03-22 16:36:51 +00:00
Florent Xicluna
9e7a4c9738
Issue #7703 : ctypes supports both buffer() and memoryview(). The former is deprecated.
...
Complement of r79288.
2010-03-22 16:07:38 +00:00
Jesus Cea
6557aac599
pybsddb 4.8.4 integration. Please, comment in issue #8156
2010-03-22 14:22:26 +00:00
Matthias Klose
67e37f2ec2
update libffi to commit 59a259f4d348f593b45f452309f4d020a28051c4 from the
...
trunk (adding msvc port).
2010-03-19 18:59:20 +00:00
Matthias Klose
4854c969fb
Generate libffi's Makefiles again to be able to run the libffi testsuite
...
-- Diese und die folgenden Zeilen werden ignoriert --
M _ctypes/libffi/configure
M _ctypes/libffi/configure.ac
M _ctypes/libffi/aclocal.m4
M _ctypes/libffi.diff
2010-03-19 17:46:33 +00:00
Matthias Klose
e9fbf2b943
- Issue #1039 , #8154 : Fix os.execlp() crash with missing 2nd argument.
2010-03-19 14:45:06 +00:00
Florent Xicluna
2e0a53fdf6
Issue #8024 : Update the Unicode database to 5.2
2010-03-18 21:50:06 +00:00
Antoine Pitrou
d7b731d160
Issue #8104 : socket.recv_into() and socket.recvfrom_into() now support
...
writing into objects supporting the new buffer API, for example bytearrays
or memoryviews.
2010-03-17 22:45:39 +00:00
Matthias Klose
54cc539a2b
- Issue #6949 : Allow the _bsddb extension to be built with db-4.8.x.
2010-03-15 12:46:18 +00:00