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
Matthias Klose
635edd1990
- Issue #7567 : PyCurses_setupterm: Don't call `setupterm' twice.
2010-07-30 21:40:57 +00:00
Martin v. Löwis
ce126edfd0
Import files from zlib 1.2.5.
2010-07-30 20:03:17 +00:00
Mark Dickinson
cf28b95800
Issue #9422 : Fix memory leak when re-initializing a struct.Struct object.
2010-07-29 21:41:59 +00:00
Victor Stinner
cf448832eb
Issue #8966 : ctypes: Remove implicit bytes-unicode conversion
2010-07-28 00:15:03 +00:00
Florent Xicluna
f1046ca817
Issue #4770 : Restrict binascii module to accept only bytes (as specified).
...
And fix the email package to encode to ASCII instead of ``raw-unicode-escape`` before ASCII-to-binary decoding.
2010-07-27 21:20:15 +00:00
Alexander Belopolsky
cf86e368eb
Issue #7989 : Added pure python implementation of the datetime module.
2010-07-23 19:25:47 +00:00
Ronald Oussoren
97d1119dde
Ensure that sys.prefix can reliably be found
...
on OSX. This fixes a small issue that was exposed
by running test_subprocess through regrtest (and
hence in a subdirectory).
Without this patch running python.exe from the
build tree will fail when these tree conditions
are true:
1) the CWD is not the root of build tree
2) python.exe is found through $PATH
3) the framework is not yet installed
2010-07-23 16:05:35 +00:00
Brett Cannon
f079c57c35
Rename some macros in the sha1 module to no longer conflict with termios.h.
2010-07-23 15:43:14 +00:00
Ronald Oussoren
b6ee4f5bfc
This fixes issue7900 by adding code that deals
...
with the fact that getgroups(2) might return
more that MAX_GROUPS on OSX.
See the issue (and python-dev archives) for the
gory details. Summarized: OSX behaves rather oddly
and Apple says this is intentional.
2010-07-23 13:53:51 +00:00
Martin v. Löwis
c9e1c7d97f
Issue #6095 : Make directory argument to os.listdir optional.
...
Patch by Virgil Dupras.
2010-07-23 12:16:41 +00:00
Doug Hellmann
1c524754f6
Apply patch from Ray Allen for issue 9296
2010-07-21 12:29:04 +00:00
Brian Curtin
3283973949
Fix #9316 . if/is grammar corrections.
2010-07-21 01:44:19 +00:00
Mark Dickinson
eff5d8594b
Issue #9277 : Struct module: standard bool packing was incorrect if
...
char is unsigned. Thanks Stefan Krah for the patch.
2010-07-18 07:29:02 +00:00
Alexander Belopolsky
d92f04062a
Issue #5180 : Fixed a bug that prevented loading 2.x pickles in 3.x
...
python when they contain instances of old-style classes.
2010-07-17 22:50:45 +00:00
Mark Dickinson
226f544caa
Improve docstrings for isnan, isinf and isfinite.
2010-07-11 18:13:41 +00:00
Mark Dickinson
8e0c996873
Issue #9165 : Add math.isfinite and cmath.isfinite.
2010-07-11 17:38:24 +00:00
Georg Brandl
e40ee509e3
#9184 : fix default value for "buffering" param of open().
2010-07-11 09:33:39 +00:00
Jeffrey Yasskin
d4fcdb1ea8
Issue #9189 : Allow users to set $CFLAGS, $CPPFLAGS, and $LDFLAGS when running
...
configure to append to Python's default values for those variables, and
similarly allow users to set $XXFLAGS on the make command line to append to the
values set by configure.
In the makefile, this renames the variables that used to be $XXFLAGS to
$PY_XXFLAGS, and renames the old $PY_CFLAGS to $PY_CORE_CFLAGS. To compensate,
sysconfig now aliases $XXFLAGS=$PY_XXFLAGS so that scripts using it keep
working. I see that as the right interface, not a backward-compatibility hack,
since these are logically the $XXFLAGS variables; we just use a different name
in the makefile to deal with make's semantics.
2010-07-09 16:30:58 +00:00
Brian Curtin
74e4561a3c
Re-flow several long lines from #1578269 .
2010-07-09 15:58:59 +00:00
Brian Curtin
d40e6f70a5
Implement #1578269 . Patch by Jason R. Coombs.
...
Added Windows support for os.symlink when run on Windows 6.0 or greater,
aka Vista. Previous Windows versions will raise NotImplementedError
when trying to symlink.
Includes numerous test updates and additions to test_os, including
a symlink_support module because of the fact that privilege escalation
is required in order to run the tests to ensure that the user is able
to create symlinks. By default, accounts do not have the required
privilege, so the escalation code will have to be exposed later (or
documented on how to do so). I'll be following up with that work next.
Note that the tests use ctypes, which was agreed on during the PyCon
language summit.
2010-07-08 21:39:08 +00:00
Ezio Melotti
9527afd02c
Fix typo in a comment in mathmodule.c.
2010-07-08 15:03:02 +00:00
Alexander Belopolsky
73ca440e3d
Issue #5288 : Eliminated round-trips between timdelta and int offsets
2010-07-07 23:56:38 +00:00
Benjamin Peterson
de73c4587f
don't ignore exceptions from PyObject_IsTrue
2010-07-07 18:54:59 +00:00
Mark Dickinson
be64d95169
Issue #9186 : log1p(-1.0) should raise ValueError, not OverflowError.
2010-07-07 16:21:29 +00:00
Mark Dickinson
9c91eb844c
Minor refactoring in lgamma code, for clarity.
2010-07-07 16:17:31 +00:00
Alexander Belopolsky
a11d8c03a4
Issue #9000 : datetime.timezone objects now have eval-friendly repr.
2010-07-06 23:19:45 +00:00
Mark Dickinson
6f493b7bac
Indentation and PEP 7 fixes.
2010-07-06 15:00:40 +00:00
Mark Dickinson
6c3bcb74b2
Post-detabification cleanup.
2010-07-05 20:14:26 +00:00
Mark Dickinson
feb3b75818
Issue #9130 : Validate ellipsis tokens in relative imports.
2010-07-04 18:38:57 +00:00
Mark Dickinson
2cc8a5e490
Issue #9130 : Fix validation of relative imports in parser module.
2010-07-04 18:11:51 +00:00
Mark Dickinson
2bd61a988f
Issue #9128 : Fix validation of class decorators in parser module.
2010-07-04 16:37:31 +00:00
Alexander Belopolsky
33777d4058
Issue #9152 : Removed dead code in datetime module
2010-07-04 16:28:08 +00:00
Mark Dickinson
cc588c1d37
Fix refleak in Modules/audioop.c.
2010-07-04 10:15:11 +00:00
Victor Stinner
bc5c54bca2
Merged revisions 82492 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82492 | victor.stinner | 2010-07-03 15:36:19 +0200 (sam., 03 juil. 2010) | 3 lines
Issue #7673 : Fix security vulnerability (CVE-2010-2089) in the audioop module,
ensure that the input string length is a multiple of the frame size
........
2010-07-03 13:44:22 +00:00
Alexander Belopolsky
2f194b9060
Merged revisions 82466 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82466 | alexander.belopolsky | 2010-07-02 23:27:12 -0400 (Fri, 02 Jul 2010) | 1 line
Revert r81681 (issue 8810).
........
2010-07-03 03:35:27 +00:00
Mark Dickinson
6d02d9cc6b
Style/consistency nit: make math_floor and math_ceil code look the same.
2010-07-02 16:05:15 +00:00