Antoine Pitrou
19467d27ff
Clean some 64-bit issues. Also, always spell "ssize_t" "Py_ssize_t".
2010-08-17 19:33:30 +00:00
Antoine Pitrou
554f33407c
Fix <deque iterator>.__length_hint__() under 64-bit Windows.
2010-08-17 18:30:06 +00:00
Giampaolo Rodolà
ccfb91c89f
fix issue #8866 : parameters passed to socket.getaddrinfo can now be specified as single keyword arguments.
2010-08-17 15:30:23 +00:00
Nick Coghlan
d26c18adcc
Issue #8202 : Set sys.argv[0] to -m rather than -c while searching for the module to execute. Also updates all the cmd_line_script tests to validate the setting of sys.path[0] and the current working directory
2010-08-17 13:06:11 +00:00
Victor Stinner
028dd97dfb
Issue #9425 : zipimporter_repr() uses unicode
2010-08-17 00:04:48 +00:00
Victor Stinner
60fe8d902d
Issue #9425 : get_data() uses an unicode path
2010-08-16 23:48:11 +00:00
Amaury Forgeot d'Arc
844807ead2
r82659 reintroduced some tab characters. Untabify again.
2010-08-16 22:16:51 +00:00
Alexander Belopolsky
977a684c94
Issue #8983 : Corrected docstrings.
2010-08-16 20:17:07 +00:00
Alexander Belopolsky
e29e6bffb5
Issue #665761 : functools.reduce() will no longer mask exceptions other
...
than TypeError raised by the iterator argument. Also added a test to
check that zip() already behaves similarly.
2010-08-16 18:55:46 +00:00
Victor Stinner
2460a43a65
Issue #9425 : read_directory() is fully unicode compliant
...
zipimport is now able to load a module with an unencodable filename.
2010-08-16 17:54:28 +00:00
Antoine Pitrou
4045575dd5
Fix more 64-bit warnings.
2010-08-15 18:51:10 +00:00
Antoine Pitrou
22e4155706
Fix other warnings under 64-bit Windows.
2010-08-15 18:07:50 +00:00
Victor Stinner
e039ffe41d
Issue #9605 : posix.getlogin() decodes the username with file filesystem
...
encoding and surrogateescape error handler. Patch written by David Watson.
Reindent also posix_getlogin(), and fix a typo in the NEWS file.
2010-08-15 09:33:08 +00:00
Victor Stinner
61ec5dca2b
Issue #9604 : posix.initgroups() encodes the username using the fileystem
...
encoding and surrogateescape error handler. Patch written by David Watson.
2010-08-15 09:22:44 +00:00
Victor Stinner
5fe6de8c72
Issue #9603 : posix.ttyname() and posix.ctermid() decode the terminal name
...
using the filesystem encoding and surrogateescape error handler. Patch
written by David Watson.
2010-08-15 09:12:51 +00:00
Senthil Kumaran
64d010c990
Removing the comment lines for the modules which were made to build statically.
2010-08-15 03:59:07 +00:00
Victor Stinner
2b8dab7050
Issue #9425 : zipimporter_init() is fully unicode compliant
2010-08-14 14:54:10 +00:00
Antoine Pitrou
99773acf38
Fix indentation in Modules/getpath.c
2010-08-14 12:34:41 +00:00
Antoine Pitrou
eba57b6f3a
Add comments about Windows in Modules/getpath.c
2010-08-14 12:33:18 +00:00
Victor Stinner
e406ef41b1
Kill a gcc warning introduced by r83988
2010-08-14 00:07:14 +00:00
Victor Stinner
f2e08b34f1
Create _Py_wchar2char() function, reverse of _Py_char2wchar()
...
* Use _Py_wchar2char() in _wstat() and _Py_wfopen()
* Document _Py_char2wchar()
2010-08-13 23:29:08 +00:00
Antoine Pitrou
e9b428f997
Reimplement addbuilddir() in C inside getpath.c, so as to execute it
...
at interpreter startup before importing any non-builtin modules.
Should fix #9589 .
2010-08-13 22:25:01 +00:00
Benjamin Peterson
d4efbf90d2
use pep 383 decoding for mknod and mkfifo #9570
...
Patch by David Watson.
2010-08-11 19:20:42 +00:00
Alexander Belopolsky
f0f45142d5
Issue #2443 : Added a new macro, Py_VA_COPY, which is equivalent to C99
...
va_copy, but available on all python platforms. Untabified a few
unrelated files.
2010-08-11 17:31:17 +00:00
Antoine Pitrou
32cfedeb1c
Issue #9550 : a BufferedReader could issue an additional read when the
...
original read request had been satisfied, which can block indefinitely
when the underlying raw IO channel is e.g. a socket. Report and original
patch by Jason V. Miller.
2010-08-11 13:31:33 +00:00
Antoine Pitrou
b73caab436
Issue #6915 : Under Windows, os.listdir() didn't release the Global
...
Interpreter Lock around all system calls. Original patch by Ryan Kelly.
2010-08-09 23:39:31 +00:00
Antoine Pitrou
5af4f4b983
Issue #3757 : thread-local objects now support cyclic garbage collection.
...
Thread-local objects involved in reference cycles will be deallocated
timely by the cyclic GC, even if the underlying thread is still running.
2010-08-09 22:38:19 +00:00
Antoine Pitrou
6e451df800
Followup to r83869 and issue #8524 : rename socket.forget() to socket.detach()
...
and make it return the file descriptor.
2010-08-09 20:39:54 +00:00
Senthil Kumaran
5c87c1a5a8
Fix Issue9545 - Adding _collections to static build.
2010-08-09 07:24:50 +00:00
Antoine Pitrou
e43f9d0ed6
Issue #8524 : Add a forget() method to socket objects, so as to put the
...
socket into the closed state without closing the underlying file
descriptor.
2010-08-08 23:24:50 +00:00
Antoine Pitrou
696e03553b
Issue #477863 : Print a warning at shutdown if gc.garbage is not empty.
2010-08-08 22:18:46 +00:00
Thomas Heller
bf4cc5d469
Fix issue6869: refcount problem in the _ctypes extension.
2010-08-08 18:16:20 +00:00
Thomas Heller
864cc6703a
Fix issue5504: ctypes does now work with systems where mmap can't be
...
PROT_WRITE and PROT_EXEC.
2010-08-08 17:58:53 +00:00
Benjamin Peterson
4e7f285252
remove dead code #9292
2010-08-08 16:54:58 +00:00
Victor Stinner
0a3ddad666
Issue #9425 : Create run_file() subfunction
...
* Call Py_MakePendingCalls() before converting the filename from
wchar_t* to char*
* Use PyUnicode_AsUTF8String() instead of _PyUnicode_AsString()
2010-08-07 16:34:25 +00:00
Victor Stinner
a62207c584
Issue #9425 : Create run_command() subfunction
...
Use PyUnicode_AsUTF8String() instead of _PyUnicode_AsString()
2010-08-07 10:57:17 +00:00
Brian Curtin
ef9efbd69c
Fix #9324 : Add parameter validation to signal.signal on Windows in order
...
to prevent crashes.
2010-08-06 19:27:32 +00:00
Mark Dickinson
346f0af4f6
Issue #9526 : Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB.
2010-08-06 09:36:57 +00:00
Alexander Belopolsky
6fc4ade2bb
Issue #9079 : Added _PyTime_gettimeofday(_PyTime_timeval *tp) to C API
...
exposed in Python.h. This function is similar to POSIX
gettimeofday(struct timeval *tp), but available on platforms without
gettimeofday().
2010-08-05 17:34:27 +00:00
Mark Dickinson
ee55df5c85
Fix memory leak in ssl module.
2010-08-03 18:31:54 +00:00
Mark Dickinson
6b54e1f782
Issue #8065 : Fix another memory leak in readline module, from failure to free
...
the result of a call to history_get_history_state.
2010-08-03 16:49:49 +00:00
Mark Dickinson
29b238e0dc
Issue #9450 : Fix memory leaks in readline.remove/replace_history_entry.
2010-08-03 16:08:16 +00:00
Georg Brandl
222569dc1d
#6867 : epoll.register() returns None.
2010-08-02 20:47:56 +00:00
Georg Brandl
c8284cfc57
#9087 : update json docstrings -- unicode and long do not exist anymore.
2010-08-02 20:16:18 +00:00
Raymond Hettinger
0291c9ffa2
Issue 9445: Fix undefined symbols on VS8.0 build.
2010-08-01 21:10:35 +00:00
Antoine Pitrou
7ffa196dce
Issue #8397 : Raise an error when attempting to mix iteration and regular
...
reads on a BZ2File object, rather than returning incorrect results.
2010-08-01 20:08:46 +00:00
Antoine Pitrou
c881f1592f
Issue #9448 : Fix a leak of OS resources (mutexes or semaphores) when
...
re-initializing a buffered IO object by calling its `__init__` method.
2010-08-01 16:53:42 +00:00
Brian Curtin
ea47eaa395
Fix #8105 . Add validation to mmap.mmap so invalid file descriptors
...
don't cause a crash on Windows.
2010-08-01 15:26:26 +00:00
Georg Brandl
0bccc185b4
#8046 : add context manager protocol support to mmap objects. Also add closed property.
2010-08-01 14:50:00 +00:00
Georg Brandl
ca9400f051
Copy Sun-specific inclusion of <alloca.h> from 2.7 maint to trunk; it seems to not have been merged to py3k.
2010-07-31 09:37:03 +00:00