Benjamin Peterson
83251c1ecd
try to always use the old API
14 years ago
Benjamin Peterson
95c16629d3
fix for old kernels which don't have epoll_create1
14 years ago
Benjamin Peterson
2fb9ae9dfc
add a flags parameter to select.epoll
14 years ago
Charles-François Natali
8b759655d0
Issue #8623 : Fix some strict-aliasing warnings. Patch by David Watson.
14 years ago
Antoine Pitrou
0e576f1f50
Issue #13626 : Add support for SSL Diffie-Hellman key exchange, through the
SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.
14 years ago
Ross Lagerwall
667d75d059
Don't redefine _GNU_SOURCE if it's already defined.
14 years ago
Ross Lagerwall
031bf95d32
Issue #11006 : Don't issue low level warning in subprocess when pipe2() fails.
14 years ago
Antoine Pitrou
501da61671
Fix ssl module compilation if ECDH support was disabled in the OpenSSL build.
(followup to issue #13627 )
14 years ago
Antoine Pitrou
0831676962
Issue #13637 : "a2b" functions in the binascii module now accept ASCII-only unicode strings.
14 years ago
Antoine Pitrou
8abdb8abd8
Issue #13634 : Add support for querying and disabling SSL compression.
14 years ago
Antoine Pitrou
923df6f22a
Issue #13627 : Add support for SSL Elliptic Curve-based Diffie-Hellman
key exchange, through the SSLContext.set_ecdh_curve() method and the
ssl.OP_SINGLE_ECDH_USE option.
14 years ago
Antoine Pitrou
6db4944cc5
Issue #13635 : Add ssl.OP_CIPHER_SERVER_PREFERENCE, so that SSL servers
choose the cipher based on their own preferences, rather than on the
client's.
14 years ago
Victor Stinner
bd206e27a4
Handle correctly _Py_fopen() error: don't replace the exception
14 years ago
Victor Stinner
bd0850b857
import.c now catchs _Py_stat() exceptions
_Py_stat() now returns -2 if an exception was raised.
14 years ago
Victor Stinner
e83f899364
Issue #13530 : Document os.lseek() result
Patch written by Jérémy Anger.
14 years ago
Victor Stinner
136ea49b39
Issue #10951 : Fix a compiler warning in timemodule.c
14 years ago
Charles-François Natali
564a42c8de
Issue #12809 : Expose IP_TRANSPARENT in the socket module. Patch by Michael
Farrell.
14 years ago
Victor Stinner
1b57967b96
Issue #13560 : Locale codec functions use the classic "errors" parameter,
instead of surrogateescape
So it would be possible to support more error handlers later.
14 years ago
Victor Stinner
1f33f2b0c3
Issue #13560 : os.strerror() now uses the current locale encoding instead of UTF-8
14 years ago
Victor Stinner
f2ea71fcc8
Issue #13560 : Add PyUnicode_EncodeLocale()
* Use PyUnicode_EncodeLocale() in time.strftime() if wcsftime() is not
available
* Document my last changes in Misc/NEWS
14 years ago
Victor Stinner
af02e1c85a
Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
* PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string
from the current locale encoding
* _Py_char2wchar() writes an "error code" in the size argument to indicate
if the function failed because of memory allocation failure or because of a
decoding error. The function doesn't write the error message directly to
stderr.
* Fix time.strftime() (if wcsftime() is missing): decode strftime() result
from the current locale encoding, not from the filesystem encoding.
14 years ago
Victor Stinner
94ba691ed3
main() now displays an error message before exiting if a command line argument
cannot be decoded
14 years ago
Antoine Pitrou
6ec29e299b
Issue #8373 : The filesystem path of AF_UNIX sockets now uses the filesystem
encoding and the surrogateescape error handler, rather than UTF-8. Patch
by David Watson.
14 years ago
Antoine Pitrou
c345ce1a69
Issue #10350 : Read and save errno before calling a function which might overwrite it.
Original patch by Hallvard B Furuseth.
14 years ago
Antoine Pitrou
093ce9cd8c
Issue #6695 : Full garbage collection runs now clear the freelist of set objects.
Initial patch by Matthias Troffaes.
14 years ago
Charles-François Natali
10db4dec61
Issue #4028 : Make multiprocessing build on SunOS.
14 years ago
Alexandre Vassalotti
3bfc65a25b
Issue #13505 : Make pickling of bytes object compatible with Python 2.
Initial patch by sbt.
14 years ago
Florent Xicluna
aa6c1d240f
Issue #13575 : there is only one class type.
14 years ago
Benjamin Peterson
2122cf717f
alias resource.error to OSError
14 years ago
Florent Xicluna
0e686cbb7d
Fix docstring typo.
14 years ago
Victor Stinner
e3b47152a4
Write tests for invalid characters (U+00110000)
Test the following functions:
* codecs.raw_unicode_escape_decode()
* PyUnicode_FromWideChar()
* PyUnicode_FromUnicode()
* "unicode_internal" and "unicode_escape" decoders
14 years ago
Victor Stinner
720f34a3e8
Issue #5905 : time.strftime() is now using the locale encoding, instead of
UTF-8, if the wcsftime() function is not available.
14 years ago
Victor Stinner
b37b17423b
Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
Create an empty string with the new Unicode API.
14 years ago
Victor Stinner
08b523a194
MultibyteCodec_Decode() catchs PyUnicode_AS_UNICODE() failures
14 years ago
Nadeem Vawda
59bb0e077f
Credit Per Øyvind Karlsen for the initial implementation of the lzma module (issue #6715 ).
14 years ago
Nadeem Vawda
3ff069ebc6
Issue #6715 : Add module for compression using the LZMA algorithm.
14 years ago
Charles-François Natali
6613c18ea2
Issue #13415 : Test in configure if unsetenv() has a return value or not.
15 years ago
Victor Stinner
0fdfceb782
Issue #12567 : The curses module uses Unicode functions for Unicode arguments
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
15 years ago
Victor Stinner
984890fcbb
Close #13415 : Test in configure if unsetenv() has a return value or not.
Patch written by Charles-François Natali.
15 years ago
Benjamin Peterson
06403cff16
decref correct object
15 years ago
Benjamin Peterson
4bb867d3ec
plug refleak
15 years ago
Antoine Pitrou
116d6b98bf
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
Patch by Robert Xiao.
15 years ago
Victor Stinner
60b385e813
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
15 years ago
Victor Stinner
63ab875cfe
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
15 years ago
Victor Stinner
f8facacf30
Fix compiler warnings
15 years ago
Victor Stinner
9d3b93ba30
Use the new Unicode API
* Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0)
* Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len)
* Replace Py_UNICODE by wchar_t
* posix_putenv() uses PyUnicode_FromFormat() to create the string, instead
of PyUnicode_FromUnicode() + _snwprintf()
15 years ago
Victor Stinner
ab1d16b456
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
* Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII()
* Remove the unused "e" variable in replace()
15 years ago
Victor Stinner
42bf77537e
Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API
Add tests for PyUnicode_EncodeDecimal() and
PyUnicode_TransformDecimalToASCII().
15 years ago
Antoine Pitrou
6dd381eb62
Issue #12328 : Under Windows, refactor handling of Ctrl-C events and
make _multiprocessing.win32.WaitForMultipleObjects interruptible when
the wait_flag parameter is false. Patch by sbt.
15 years ago
Antoine Pitrou
58fcf9f801
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
15 years ago