Victor Stinner
9802b39c12
PYTHONFSENCODING is not available on Windows or Mac OS X
2010-08-19 11:36:43 +00:00
Martin v. Löwis
5ea823cf55
Decode NIS data to fs encoding, using the surrogate error handler.
2010-08-19 09:11:51 +00:00
Andrew M. Kuchling
4ea04a306f
#7647 : add ST_RDONLY, ST_NOSUID constants to os module.
...
(Also fix a name ordering in the ACKS file.)
2010-08-18 22:30:34 +00:00
Victor Stinner
398356baaa
Improve error message if the command is not decodable
2010-08-18 22:23:22 +00:00
Victor Stinner
94908bbc15
Issue #8622 : Add PYTHONFSENCODING environment variable to override the
...
filesystem encoding.
initfsencoding() displays also a better error message if get_codeset() failed.
2010-08-18 21:23:25 +00:00
Antoine Pitrou
b85e165635
Issue #5737 : Add Solaris-specific mnemonics in the errno module. Patch by
...
Matthew Ahrens.
2010-08-18 21:05:19 +00:00
Martin v. Löwis
dfaf9ec93a
Restore GIL in nis_cat in case of error.
2010-08-18 16:12:23 +00:00
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
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
Benjamin Peterson
f751bc9c01
fix lookup of __ceil__
2010-07-02 13:46:42 +00:00
Benjamin Peterson
b0125892e6
account for different ref counting semantics of _PyObject_LookupSpecial
2010-07-02 13:35:17 +00:00
Benjamin Peterson
8bb9cde6c0
correctly lookup __trunc__ and __floor__
2010-07-01 15:16:55 +00:00
Alexander Belopolsky
311d2a93a1
Added missing white space
2010-06-28 14:36:55 +00:00
Benjamin Peterson
e0edb8b3cd
Merged revisions 79894-79895,80098,80120 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79894 | jeroen.ruigrok | 2010-04-07 09:33:37 -0500 (Wed, 07 Apr 2010) | 5 lines
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
........
r79895 | jeroen.ruigrok | 2010-04-07 11:34:08 -0500 (Wed, 07 Apr 2010) | 2 lines
Document the libffi FreeBSD fix.
........
r80098 | benjamin.peterson | 2010-04-15 16:42:16 -0500 (Thu, 15 Apr 2010) | 1 line
add space
........
r80120 | antoine.pitrou | 2010-04-16 16:34:02 -0500 (Fri, 16 Apr 2010) | 3 lines
Ignore jinja2
........
2010-06-27 23:49:45 +00:00
Benjamin Peterson
d7c3ed54ef
Merged revisions 80605-80609,80642-80646,80651-80652,80674,80684-80686,80748,80852,80854,80870,80872-80873,80907,80915-80916,80951-80952,80976-80977,80985,81038-81040,81042,81053,81070,81104-81105,81114,81125,81245,81285,81402,81463,81516,81562-81563,81567,81593,81635,81680-81681,81684,81801,81888,81931-81933,81939-81942,81963,81984,81991,82120,82188,82264-82267 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80605 | andrew.kuchling | 2010-04-28 19:22:16 -0500 (Wed, 28 Apr 2010) | 1 line
Add various items
........
r80606 | andrew.kuchling | 2010-04-28 20:44:30 -0500 (Wed, 28 Apr 2010) | 6 lines
Fix doubled 'the'.
Markup fixes to use :exc:, :option: in a few places.
(Glitch: unittest.main's -c ends up a link to the Python
interpreter's -c option. Should we skip using :option: for that
switch, or disable the auto-linking somehow?)
........
r80607 | andrew.kuchling | 2010-04-28 20:45:41 -0500 (Wed, 28 Apr 2010) | 1 line
Add various unittest items
........
r80608 | benjamin.peterson | 2010-04-28 22:18:05 -0500 (Wed, 28 Apr 2010) | 1 line
update pypy description
........
r80609 | benjamin.peterson | 2010-04-28 22:30:59 -0500 (Wed, 28 Apr 2010) | 1 line
update pypy url
........
r80642 | andrew.kuchling | 2010-04-29 19:49:09 -0500 (Thu, 29 Apr 2010) | 1 line
Always add space after RFC; reword paragraph
........
r80643 | andrew.kuchling | 2010-04-29 19:52:31 -0500 (Thu, 29 Apr 2010) | 6 lines
Reword paragraph to make its meaning clearer.
Antoine Pitrou: is my version of the paragraph still correct?
R. David Murray: is this more understandable than the previous version?
........
r80644 | andrew.kuchling | 2010-04-29 20:02:15 -0500 (Thu, 29 Apr 2010) | 1 line
Fix typos
........
r80645 | andrew.kuchling | 2010-04-29 20:32:47 -0500 (Thu, 29 Apr 2010) | 1 line
Markup fix; clarify by adding 'in that order'
........
r80646 | andrew.kuchling | 2010-04-29 20:33:40 -0500 (Thu, 29 Apr 2010) | 1 line
Add various items; rearrange unittest section a bit
........
r80651 | andrew.kuchling | 2010-04-30 08:46:55 -0500 (Fri, 30 Apr 2010) | 1 line
Minor grammar re-wording
........
r80652 | andrew.kuchling | 2010-04-30 08:47:34 -0500 (Fri, 30 Apr 2010) | 1 line
Add item
........
r80674 | andrew.kuchling | 2010-04-30 20:19:16 -0500 (Fri, 30 Apr 2010) | 1 line
Add various items
........
r80684 | andrew.kuchling | 2010-05-01 07:05:52 -0500 (Sat, 01 May 2010) | 1 line
Minor grammar fix
........
r80685 | andrew.kuchling | 2010-05-01 07:06:51 -0500 (Sat, 01 May 2010) | 1 line
Describe memoryview
........
r80686 | antoine.pitrou | 2010-05-01 07:16:39 -0500 (Sat, 01 May 2010) | 4 lines
Fix attribution. Travis didn't do much and he did a bad work.
(yes, this is a sensitive subject, sorry)
........
r80748 | andrew.kuchling | 2010-05-03 20:24:22 -0500 (Mon, 03 May 2010) | 1 line
Add some more items; the urlparse change is added twice
........
r80852 | andrew.kuchling | 2010-05-05 20:09:47 -0500 (Wed, 05 May 2010) | 1 line
Reword paragraph; fix filename, which should be pyconfig.h
........
r80854 | andrew.kuchling | 2010-05-05 20:10:56 -0500 (Wed, 05 May 2010) | 1 line
Add various items
........
r80870 | andrew.kuchling | 2010-05-06 09:14:09 -0500 (Thu, 06 May 2010) | 1 line
Describe ElementTree 1.3; rearrange new-module sections; describe dict views as sets; small edits and items
........
r80872 | andrew.kuchling | 2010-05-06 12:21:59 -0500 (Thu, 06 May 2010) | 1 line
Add 2 items; record ideas for two initial sections; clarify wording
........
r80873 | andrew.kuchling | 2010-05-06 12:27:57 -0500 (Thu, 06 May 2010) | 1 line
Change section title; point to unittest2
........
r80907 | andrew.kuchling | 2010-05-06 20:45:14 -0500 (Thu, 06 May 2010) | 1 line
Add a new section on the development plan; add an item
........
r80915 | antoine.pitrou | 2010-05-07 05:15:51 -0500 (Fri, 07 May 2010) | 3 lines
Fix some markup and a class name. Also, wrap a long line.
........
r80916 | andrew.kuchling | 2010-05-07 06:30:47 -0500 (Fri, 07 May 2010) | 1 line
Re-word text
........
r80951 | andrew.kuchling | 2010-05-07 20:15:26 -0500 (Fri, 07 May 2010) | 1 line
Add two items
........
r80952 | andrew.kuchling | 2010-05-07 20:35:55 -0500 (Fri, 07 May 2010) | 1 line
Get accents correct
........
r80976 | andrew.kuchling | 2010-05-08 08:28:03 -0500 (Sat, 08 May 2010) | 1 line
Add logging.dictConfig example; give up on writing a Ttk example
........
r80977 | andrew.kuchling | 2010-05-08 08:29:46 -0500 (Sat, 08 May 2010) | 1 line
Markup fixes
........
r80985 | andrew.kuchling | 2010-05-08 10:39:46 -0500 (Sat, 08 May 2010) | 7 lines
Write summary of the 2.7 release; rewrite the future section some more;
mention PYTHONWARNINGS env. var; tweak some examples for readability.
And with this commit, the "What's New" is done... except for a
complete read-through to polish the text, and fixing any reported errors,
but those tasks can easily wait until after beta2.
........
r81038 | benjamin.peterson | 2010-05-09 16:09:40 -0500 (Sun, 09 May 2010) | 1 line
finish clause
........
r81039 | andrew.kuchling | 2010-05-10 09:18:27 -0500 (Mon, 10 May 2010) | 1 line
Markup fix; re-word a sentence
........
r81040 | andrew.kuchling | 2010-05-10 09:20:12 -0500 (Mon, 10 May 2010) | 1 line
Use title case
........
r81042 | andrew.kuchling | 2010-05-10 10:03:35 -0500 (Mon, 10 May 2010) | 1 line
Link to unittest2 article
........
r81053 | florent.xicluna | 2010-05-10 14:59:22 -0500 (Mon, 10 May 2010) | 2 lines
Add a link on maketrans().
........
r81070 | andrew.kuchling | 2010-05-10 18:13:41 -0500 (Mon, 10 May 2010) | 1 line
Fix typo
........
r81104 | andrew.kuchling | 2010-05-11 19:38:44 -0500 (Tue, 11 May 2010) | 1 line
Revision pass: lots of edits, typo fixes, rearrangements
........
r81105 | andrew.kuchling | 2010-05-11 19:40:47 -0500 (Tue, 11 May 2010) | 1 line
Let's call this done
........
r81114 | andrew.kuchling | 2010-05-12 08:56:07 -0500 (Wed, 12 May 2010) | 1 line
Grammar fix
........
r81125 | andrew.kuchling | 2010-05-12 13:56:48 -0500 (Wed, 12 May 2010) | 1 line
#8696 : add documentation for logging.config.dictConfig (PEP 391)
........
r81245 | andrew.kuchling | 2010-05-16 18:31:16 -0500 (Sun, 16 May 2010) | 1 line
Add cross-reference to later section
........
r81285 | vinay.sajip | 2010-05-18 03:16:27 -0500 (Tue, 18 May 2010) | 1 line
Fixed minor typo in ReST markup.
........
r81402 | vinay.sajip | 2010-05-21 12:41:34 -0500 (Fri, 21 May 2010) | 1 line
Updated logging documentation with more dictConfig information.
........
r81463 | georg.brandl | 2010-05-22 03:17:23 -0500 (Sat, 22 May 2010) | 1 line
#8785 : less confusing description of regex.find*.
........
r81516 | andrew.kuchling | 2010-05-25 08:34:08 -0500 (Tue, 25 May 2010) | 1 line
Add three items
........
r81562 | andrew.kuchling | 2010-05-27 08:22:53 -0500 (Thu, 27 May 2010) | 1 line
Rewrite wxWidgets section
........
r81563 | andrew.kuchling | 2010-05-27 08:30:09 -0500 (Thu, 27 May 2010) | 1 line
Remove top-level 'General Questions' section, pushing up the questions it contains
........
r81567 | andrew.kuchling | 2010-05-27 16:29:59 -0500 (Thu, 27 May 2010) | 1 line
Add item
........
r81593 | georg.brandl | 2010-05-29 03:46:18 -0500 (Sat, 29 May 2010) | 1 line
#8616 : add new turtle demo "nim".
........
r81635 | georg.brandl | 2010-06-01 02:25:23 -0500 (Tue, 01 Jun 2010) | 1 line
Put docs for RegexObject.search() before RegexObject.match() to mirror re.search() and re.match() order.
........
r81680 | vinay.sajip | 2010-06-03 17:34:42 -0500 (Thu, 03 Jun 2010) | 1 line
Issue #8890 : Documentation changed to avoid reference to temporary files.
........
r81681 | sean.reifschneider | 2010-06-03 20:51:26 -0500 (Thu, 03 Jun 2010) | 2 lines
Issue8810: Clearing up docstring for tzinfo.utcoffset.
........
r81684 | vinay.sajip | 2010-06-04 08:41:02 -0500 (Fri, 04 Jun 2010) | 1 line
Issue #8890 : Documentation changed to avoid reference to temporary files - other cases covered.
........
r81801 | andrew.kuchling | 2010-06-07 08:38:40 -0500 (Mon, 07 Jun 2010) | 1 line
#8875 : Remove duplicated paragraph
........
r81888 | andrew.kuchling | 2010-06-10 20:54:58 -0500 (Thu, 10 Jun 2010) | 1 line
Add a few more items
........
r81931 | georg.brandl | 2010-06-12 01:26:54 -0500 (Sat, 12 Jun 2010) | 1 line
Fix punctuation.
........
r81932 | georg.brandl | 2010-06-12 01:28:58 -0500 (Sat, 12 Jun 2010) | 1 line
Document that an existing directory raises in mkdir().
........
r81933 | georg.brandl | 2010-06-12 01:45:33 -0500 (Sat, 12 Jun 2010) | 1 line
Update version in README.
........
r81939 | georg.brandl | 2010-06-12 04:45:01 -0500 (Sat, 12 Jun 2010) | 1 line
Use newer toctree syntax.
........
r81940 | georg.brandl | 2010-06-12 04:45:28 -0500 (Sat, 12 Jun 2010) | 1 line
Add document on how to build.
........
r81941 | georg.brandl | 2010-06-12 04:45:58 -0500 (Sat, 12 Jun 2010) | 1 line
Fix gratuitous indentation.
........
r81942 | georg.brandl | 2010-06-12 04:46:03 -0500 (Sat, 12 Jun 2010) | 1 line
Update README.
........
r81963 | andrew.kuchling | 2010-06-12 15:00:55 -0500 (Sat, 12 Jun 2010) | 1 line
Grammar fix
........
r81984 | georg.brandl | 2010-06-14 10:58:39 -0500 (Mon, 14 Jun 2010) | 1 line
#8993 : fix reference.
........
r81991 | andrew.kuchling | 2010-06-14 19:38:58 -0500 (Mon, 14 Jun 2010) | 1 line
Add another bunch of items
........
r82120 | andrew.kuchling | 2010-06-20 16:45:45 -0500 (Sun, 20 Jun 2010) | 1 line
Note that Python 3.x isn't covered; add forward ref. for UTF-8; note error in 2.5 and up
........
r82188 | benjamin.peterson | 2010-06-23 19:02:46 -0500 (Wed, 23 Jun 2010) | 1 line
remove reverted changed
........
r82264 | georg.brandl | 2010-06-27 05:47:47 -0500 (Sun, 27 Jun 2010) | 1 line
Confusing punctuation.
........
r82265 | georg.brandl | 2010-06-27 05:49:23 -0500 (Sun, 27 Jun 2010) | 1 line
Use designated syntax for optional grammar element.
........
r82266 | georg.brandl | 2010-06-27 05:51:44 -0500 (Sun, 27 Jun 2010) | 1 line
Fix URL.
........
r82267 | georg.brandl | 2010-06-27 05:55:38 -0500 (Sun, 27 Jun 2010) | 1 line
Two typos.
........
2010-06-27 22:32:30 +00:00
Mark Dickinson
d19052c161
Issue #9089 : Remove references to intobject.c and intobject.h from comments.
2010-06-27 18:19:09 +00:00
Ronald Oussoren
7adeed324c
Merged revisions 82150 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82150 | ronald.oussoren | 2010-06-22 11:32:22 +0200 (Tue, 22 Jun 2010) | 12 lines
The code in _scproxy (a mac specific helper module to
detect proxy settings) had the wrong logic for detecting
if the checkbox 'Exclude simple hostnames' is checked. This
checkin fixes that.
As a result the test failure 'Issue8455' goes away on systems
where the checkbox is not checked.
I'm carefully avoiding saying that is fixes that issue,
test_urllib2_localnet assumes that system proxy settings are
empty (not just on OSX, see Issue8455 for details).
........
2010-06-27 12:51:31 +00:00
Mark Dickinson
fdb0accc31
Merged revisions 82221 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82221 | mark.dickinson | 2010-06-25 21:19:48 +0100 (Fri, 25 Jun 2010) | 1 line
Fix indentation of Python code example in C comment.
........
2010-06-25 20:22:24 +00:00
Antoine Pitrou
6186bfb735
Merged revisions 82210 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82210 | antoine.pitrou | 2010-06-25 02:03:21 +0200 (ven., 25 juin 2010) | 4 lines
Issue #9075 : In the ssl module, remove the setting of a `debug` flag
on an OpenSSL structure.
........
2010-06-25 00:07:34 +00:00
Victor Stinner
25e8ec4724
Issue #8850 : Remove "w" and "w#" formats from PyArg_Parse*() functions, use
...
"w*" format instead. Add tests for "w*" format.
2010-06-25 00:02:38 +00:00
Antoine Pitrou
8bae4ec622
Issue #8682 : The ssl module now temporary increments the reference count of
...
a socket object got through `PyWeakref_GetObject`, so as to avoid possible
deallocation while the object is still being used.
2010-06-24 22:34:04 +00:00
Alexander Belopolsky
1b7046b99e
Issue #9051 : Instances of timezone class can now be pickled.
2010-06-23 21:40:15 +00:00
Thomas Heller
b00697e67c
Merged revisions 82126-82127 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82126 | thomas.heller | 2010-06-21 16:00:24 +0200 (Mo, 21 Jun 2010) | 1 line
Fix #8959 by reverting revision 80761.
........
r82127 | thomas.heller | 2010-06-21 17:01:18 +0200 (Mo, 21 Jun 2010) | 2 lines
Add tests for problems reported in issue 8959.
........
2010-06-21 16:00:31 +00:00
Alexander Belopolsky
75f94c210a
Issue #9005 : Prevent utctimetuple() from producing year 0 or year 10,000.
2010-06-21 15:21:14 +00:00
Jean-Paul Calderone
6ed7ac48ec
Revert r82089. Commit was intended for a branch.
2010-06-19 19:58:37 +00:00
Jean-Paul Calderone
867c435460
merge forward from the python 2.x branch
2010-06-19 19:54:48 +00:00
Alexander Belopolsky
f568218e7e
Issue #6641 : Original commit for this issue, r82053, introduced a
...
regression making datetime subclass' strptime return datetime rather
than subclass instances. Fixed this bug and a few typos.
2010-06-18 18:44:37 +00:00
Alexander Belopolsky
3fe3e12de6
Fixed a typo in a comment.
2010-06-18 16:22:00 +00:00
Alexander Belopolsky
ca94f55758
Issue #6641 : The datetime.strptime method now supports the %z directive.
2010-06-17 18:30:34 +00:00
Senthil Kumaran
684760a148
Merged revisions 82047 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82047 | senthil.kumaran | 2010-06-17 22:08:34 +0530 (Thu, 17 Jun 2010) | 3 lines
Fix Issue4452 - Incorrect docstring of os.setpgrp
........
2010-06-17 16:48:06 +00:00
Alexander Belopolsky
d95a586d77
Issue #9012 : "Separate compilation of time and datetime modules."
...
Segregated code shared between time and datetime modules into
Modules/_time.c. Added a new header file, Modules/_time.h, which
will be used instead of Include/timefuncs.h for declarations shared
between time and datetime modules.
2010-06-16 22:38:15 +00:00
Alexander Belopolsky
b39a0c242d
Issue 5094: minor documentation fixes
2010-06-15 19:24:52 +00:00
Alexander Belopolsky
4e749a1113
Issue #5094 : The ``datetime`` module now has a simple concrete class
...
implementing ``datetime.tzinfo`` interface.
2010-06-14 14:15:50 +00:00
Victor Stinner
06e49dd029
Issue #8592 : PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z"
...
formats if the string contains a null byte/character. Write unit tests for
string formats.
2010-06-13 18:21:50 +00:00
Mark Dickinson
bcdf9da265
Merged revisions 81967 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81967 | mark.dickinson | 2010-06-13 11:50:29 +0100 (Sun, 13 Jun 2010) | 4 lines
Issue #8986 : erfc was raising OverflowError on Linux for arguments in
the (approximate) range (-27.3, 30.0), as a result of an escaped errno
value.
........
2010-06-13 10:52:38 +00:00
Mark Dickinson
c6f1396be0
Remove unnecessary brackets from docstring optional arguments.
2010-06-13 09:17:13 +00:00
Alexander Belopolsky
0bd003a55e
Issue #8973 : Expanded Struct.__doc__.
2010-06-12 19:36:28 +00:00
Mark Dickinson
fdb99f1563
More struct module docs and docstring tweaks.
2010-06-12 16:30:53 +00:00
Mark Dickinson
aacfa95d2e
Issue #8973 : Improve struct module docstrings.
2010-06-12 15:43:45 +00:00
Mark Dickinson
d80a8eefe6
Remove accidental (yet-to-be-reviewed) docstring changes included in r81947.
2010-06-12 15:19:23 +00:00
Mark Dickinson
4b80ef5432
Issue #8973 : Add __all__ to struct module, so that help(struct) correctly
...
displays information for the struct.Struct class.
2010-06-12 15:17:02 +00:00
Mark Dickinson
0681785d09
Remove unused variable.
2010-06-12 09:25:13 +00:00
Mark Dickinson
bfd57618b5
Issue #8981 : Remove _struct.__version__.
2010-06-12 09:24:01 +00:00
Victor Stinner
19e65a3563
readline: use PyUnicode_FSConverter() to parse filenames
2010-06-11 22:27:14 +00:00
Victor Stinner
9e19ca42d3
locale.bindtextdomain(): use PyUnicode_FSConverter() to parse the filename
2010-06-11 22:09:51 +00:00
Victor Stinner
da0eca427a
Issue #8966 : If a ctypes structure field is an array of c_char, convert its
...
value to bytes instead of str (as done for c_char and c_char_p).
2010-06-11 21:50:30 +00:00
Mark Dickinson
b72e6860d8
Fix more undefined-behaviour inducing overflow checks in struct module.
2010-06-11 19:50:30 +00:00
Mark Dickinson
eac0e68c10
Fix an incorrect return type.
2010-06-11 19:05:08 +00:00
Mark Dickinson
ab4096f2f9
Avoid possible undefined behaviour from signed overflow.
2010-06-11 16:56:34 +00:00
Alexander Belopolsky
177e8530cb
Issue #3129 : Trailing digits in format string are no longer ignored.
2010-06-11 16:04:59 +00:00
Ezio Melotti
bfd73faf86
Merged revisions 81889 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81889 | ezio.melotti | 2010-06-11 05:21:25 +0300 (Fri, 11 Jun 2010) | 1 line
Remove extra ] from itertools.count docstring.
........
2010-06-11 02:26:42 +00:00
Antoine Pitrou
d118856049
Merged revisions 81860 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81860 | antoine.pitrou | 2010-06-09 18:24:00 +0200 (mer., 09 juin 2010) | 3 lines
Issue #8930 : fix some C code indentation
........
2010-06-09 16:38:55 +00:00
Victor Stinner
3dcb5acdb0
Issue #8838 , #8339 : Remove codecs.charbuffer_encode() and "t#" parsing format
...
Remove last references to the "char buffer" of the buffer protocol from
Python3.
2010-06-08 22:54:19 +00:00
Victor Stinner
7eeb5b5e50
Issue #8848 : U / U# formats of Py_BuildValue() are just alias to s / s#
2010-06-07 19:57:46 +00:00
Mark Dickinson
fa68a6188a
Fix naming inconsistency.
2010-06-07 18:47:09 +00:00
Alexander Belopolsky
69f3fd000d
Merged revisions 81756 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81756 | alexander.belopolsky | 2010-06-05 10:54:26 -0400 (Sat, 05 Jun 2010) | 1 line
Issue #8899 : time.struct_time now has class and atribute docstrings.
........
2010-06-05 15:04:51 +00:00
Martin v. Löwis
ec78d0ae0e
Merged revisions 81692 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81692 | martin.v.loewis | 2010-06-04 19:18:42 +0200 (Fr, 04 Jun 2010) | 3 lines
Issue #8864 : Define _XOPEN_SOURCE on Solaris for the
multiprocessing module.
........
2010-06-04 17:20:56 +00:00
Sean Reifscheider
deda8cb835
Issue8810: Clearing up docstring for tzinfo.utcoffset.
2010-06-04 01:51:38 +00:00
R. David Murray
d35251dc19
#8845 : expose sqlite3 inTransaction as RO in_transaction Connection attribute.
...
Patch by R. David Murray, unit tests by Shashwat Anand.
2010-06-01 01:32:12 +00:00
Alexander Belopolsky
1790bc43bf
Issue #1289118 : datetime.timedelta objects can now be multiplied by float
...
and divided by float and int objects.
2010-05-31 17:33:47 +00:00
Mark Dickinson
57bd2bae9c
Merged revisions 81602 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81602 | mark.dickinson | 2010-05-29 22:00:52 +0100 (Sat, 29 May 2010) | 1 line
Untabify Modules/config.c.in.
........
2010-05-29 21:05:27 +00:00
Alexander Belopolsky
f03a616432
Merged revisions 81566 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81566 | alexander.belopolsky | 2010-05-27 16:55:27 -0400 (Thu, 27 May 2010) | 3 lines
Issue #7150 : Raise OverflowError if the result of adding or subtracting
timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
........
2010-05-27 21:42:58 +00:00
Antoine Pitrou
b52187710e
Issue #4870 : Add an `options` attribute to SSL contexts, as well as
...
several ``OP_*`` constants to the `ssl` module. This allows to selectively
disable protocol versions, when used in combination with `PROTOCOL_SSLv23`.
2010-05-21 09:56:06 +00:00
Victor Stinner
9ca9c25bcd
Issue #8589 : Decode PYTHONWARNINGS environment variable with the file system
...
encoding and surrogateespace error handler instead of the locale encoding to be
consistent with os.environ. Add PySys_AddWarnOptionUnicode() function.
2010-05-19 16:53:30 +00:00
Victor Stinner
8699950b04
Issue #6697 : Check that _PyUnicode_AsString() result is not NULL in _sqlite
...
Strip also some trailing spaces
2010-05-19 01:27:23 +00:00
Victor Stinner
f6c578328c
Issue #6697 : Check that _PyUnicode_AsString() result is not NULL in textio.c
...
The bug may occurs if locale.getpreferredencoding() returns an encoding with a
surrogate (very unlikely!).
2010-05-19 01:17:01 +00:00