Raymond Hettinger
771ed76102
Issue 4796: Add from_float methods to the decimal module.
2009-01-03 19:20:32 +00:00
Antoine Pitrou
38a66adccb
Issue #4718 : Adapt the wsgiref package so that it actually works with Python 3.x,
...
in accordance with http://www.wsgi.org/wsgi/Amendments_1.0
2009-01-03 18:41:49 +00:00
Martin v. Löwis
ffe431d8bd
Merged revisions 68203 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68203 | martin.v.loewis | 2009-01-03 18:19:26 +0100 (Sa, 03 Jan 2009) | 2 lines
Issue #4817 : Remove unused function PyOS_GetLastModificationTime.
........
2009-01-03 17:22:40 +00:00
Antoine Pitrou
c3b39245a7
Issue #4580 : slicing of memoryviews when itemsize != 1 is wrong.
...
Also fix len() to return number of items rather than length in bytes.
I'm sorry it was not possible for me to work on this without reindenting
a bit some stuff around. The indentation in memoryobject.c is a mess,
I'll open a separate bug for it.
2009-01-03 16:59:18 +00:00
Mark Dickinson
f923641b41
Merged revisions 68182 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68182 | mark.dickinson | 2009-01-02 23:07:08 +0000 (Fri, 02 Jan 2009) | 4 lines
Issue #4812 : add missing underscore prefix to some internal-use-only
constants in the decimal module. (Dec_0 becomes _Dec_0, etc.)
........
2009-01-02 23:23:21 +00:00
Martin v. Löwis
5c88d81784
Merged revisions 68172-68173 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68172 | martin.v.loewis | 2009-01-02 21:32:55 +0100 (Fr, 02 Jan 2009) | 2 lines
Issue #4075 : Use OutputDebugStringW in Py_FatalError.
........
r68173 | martin.v.loewis | 2009-01-02 21:40:14 +0100 (Fr, 02 Jan 2009) | 2 lines
Issue #4051 : Prevent conflict of UNICODE macros in cPickle.
........
2009-01-02 20:47:48 +00:00
Antoine Pitrou
31f30b17fe
Issue #4738 : finer-grained locking in the zlib module.
2009-01-02 17:34:35 +00:00
Amaury Forgeot d'Arc
374e220bcb
#4747 : on Windows, starting a module with a non-ascii filename would print a useless "SyntaxError: None"
...
when the script contains a "# coding:" declaration.
The Python API expects char* to be utf-8 encoded. wcstombs should be avoided here.
Reviewed by Benjamin. Will backport to 3.0
2009-01-01 23:05:36 +00:00
Hirokazu Yamamoto
8ed9a8069d
News fix. On py3k, `str' is unicode. should use `bytes'.
2009-01-01 16:09:52 +00:00
Hirokazu Yamamoto
0f22d69cf6
Merged revisions 68134 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68134 | hirokazu.yamamoto | 2009-01-02 00:45:39 +0900 | 2 lines
Issue #4797 : IOError.filename was not set when _fileio.FileIO failed to open
file with `str' filename on Windows.
........
2009-01-01 16:03:45 +00:00
Georg Brandl
db7b6b9582
Merged revisions 67953 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67953 | georg.brandl | 2008-12-27 19:20:04 +0100 (Sat, 27 Dec 2008) | 3 lines
Patch #4739 by David Laban: add symbols to pydoc help topics,
so that ``help('@')`` works as expected.
........
2009-01-01 15:53:14 +00:00
Antoine Pitrou
7ddda7830c
Merged revisions 68128 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68128 | antoine.pitrou | 2009-01-01 15:11:22 +0100 (jeu., 01 janv. 2009) | 3 lines
Issue #3680 : Reference cycles created through a dict, set or deque iterator did not get collected.
........
2009-01-01 15:35:33 +00:00
Tarek Ziadé
9df8ce3a8f
Merged revisions 68081 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68081 | tarek.ziade | 2008-12-31 00:03:41 +0100 (Wed, 31 Dec 2008) | 1 line
Fixed #4702 : Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found
........
2008-12-30 23:09:20 +00:00
Nick Coghlan
f1f2f686fe
Recorded merge of revisions 68051 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68051 | nick.coghlan | 2008-12-30 11:18:48 +1000 (Tue, 30 Dec 2008) | 1 line
Issue #4701 : implicitly call PyType_Ready from PyObject_Hash
........
2008-12-30 07:29:12 +00:00
Tarek Ziadé
4450dcf041
Merged revisions 68033 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68033 | tarek.ziade | 2008-12-29 23:23:53 +0100 (Mon, 29 Dec 2008) | 1 line
fixed #4646 : distutils was choking on empty options arg in the setup function.
........
2008-12-29 22:38:38 +00:00
Martin v. Löwis
05bfe1fe77
Merged revisions 68018 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68018 | martin.v.loewis | 2008-12-29 19:17:34 +0100 (Mo, 29 Dez 2008) | 2 lines
Issue #1040026 : Fix os.times result on systems where HZ is incorrect.
........
2008-12-29 18:21:47 +00:00
Martin v. Löwis
1f1620e946
Merged revisions 68010 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68010 | martin.v.loewis | 2008-12-29 17:22:25 +0100 (Mo, 29 Dez 2008) | 2 lines
Issue #3767 : Convert Tk object to string in tkColorChooser.
........
2008-12-29 16:27:13 +00:00
Martin v. Löwis
e354d78b30
Merged revisions 68006 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68006 | martin.v.loewis | 2008-12-29 16:51:01 +0100 (Mo, 29 Dez 2008) | 2 lines
Issue #3248 : Allow placing ScrolledText in a PanedWindow.
........
2008-12-29 16:03:04 +00:00
Antoine Pitrou
5acd41e0a1
Merged revisions 67979 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67979 | antoine.pitrou | 2008-12-28 15:09:36 +0100 (dim., 28 déc. 2008) | 3 lines
Issue #4444 : Allow assertRaises() to be used as a context handler.
........
2008-12-28 14:29:00 +00:00
Georg Brandl
ccc47b6eee
#4759 : allow None as first argument of bytearray.translate(), for consistency with bytes.translate().
...
Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
2008-12-28 11:44:14 +00:00
Antoine Pitrou
2a013eac6c
Merged revisions 67965 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67965 | antoine.pitrou | 2008-12-27 21:34:52 +0100 (sam., 27 déc. 2008) | 3 lines
Issue #4677 : add two list comprehension tests to pybench.
........
2008-12-27 20:39:28 +00:00
Benjamin Peterson
371ccfb5f5
Merged revisions 67954 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67954 | benjamin.peterson | 2008-12-27 12:24:11 -0600 (Sat, 27 Dec 2008) | 1 line
#4748 lambda generators shouldn't return values
........
2008-12-27 19:03:36 +00:00
Antoine Pitrou
db5fe66731
Merged revisions 67946 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67946 | antoine.pitrou | 2008-12-27 16:43:12 +0100 (sam., 27 déc. 2008) | 4 lines
Issue #4756 : zipfile.is_zipfile() now supports file-like objects.
Patch by Gabriel Genellina.
........
2008-12-27 15:50:40 +00:00
Skip Montanaro
80072cb7fa
Merged revisions 67908 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67908 | skip.montanaro | 2008-12-22 21:30:15 -0600 (Mon, 22 Dec 2008) | 4 lines
As a result of a regression that snuck into 2.5.3 add a test case that
ensures that when you try to read from a file opened for writing an IOError
is raised.
........
2008-12-23 03:51:14 +00:00
Antoine Pitrou
51f3ef9da0
Issue #3106 : Speedup some comparisons. This also removes the last call
...
to Py_CmpToRich from the codebase (in longobject.c).
2008-12-20 13:14:23 +00:00
Antoine Pitrou
3ad3a0d366
Issue #4583 : crash after resizing an array.array which has buffer exports.
2008-12-18 17:08:32 +00:00
Antoine Pitrou
f289ae6f01
Merged revisions 67818 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67818 | antoine.pitrou | 2008-12-17 01:38:28 +0100 (mer., 17 déc. 2008) | 3 lines
Issue #2183 : Simplify and optimize bytecode for list comprehensions.
........
2008-12-18 11:06:25 +00:00
Antoine Pitrou
621601a698
Merged revisions 67832 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67832 | antoine.pitrou | 2008-12-17 23:46:54 +0100 (mer., 17 déc. 2008) | 4 lines
Issue #2467 : gc.DEBUG_STATS reports invalid elapsed times.
Patch by Neil Schemenauer, very slightly modified.
........
2008-12-17 23:18:19 +00:00
Mark Dickinson
54bc1ec4c7
Forward merge of r67822 to py3k: add bit_length method to int.
2008-12-17 16:19:07 +00:00
Antoine Pitrou
180a336f1a
Issue #4574 : reading an UTF16-encoded text file crashes if \r on 64-char boundary.
2008-12-14 16:36:46 +00:00
Nick Coghlan
f088e5e6cc
Merged revisions 67750-67751 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67750 | nick.coghlan | 2008-12-14 20:54:50 +1000 (Sun, 14 Dec 2008) | 1 line
Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
........
r67751 | nick.coghlan | 2008-12-14 21:09:40 +1000 (Sun, 14 Dec 2008) | 1 line
Add file that was missed from r67750
........
2008-12-14 11:50:48 +00:00
Antoine Pitrou
7c59bc6f2f
Issue #4163 : textwrap module: allow word splitting on a hyphen preceded by a non-ASCII letter.
2008-12-13 23:20:54 +00:00
Lars Gustäbel
43fcf3a493
Merged revisions 67717 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67717 | lars.gustaebel | 2008-12-12 14:58:03 +0100 (Fri, 12 Dec 2008) | 2 lines
Issue #4616 : TarFile.utime(): Restore directory times on Windows.
........
2008-12-12 14:58:38 +00:00
Benjamin Peterson
433f32c3be
raise a SyntaxError in detect_encoding() when a codec lookup fails like the builtin parser #4021
2008-12-12 01:25:05 +00:00
Mark Dickinson
e675f08e03
Merged revisions 67707 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67707 | mark.dickinson | 2008-12-11 19:28:08 +0000 (Thu, 11 Dec 2008) | 5 lines
Issues #3167 , #3682 : tests for math.log and math.log10 were failing on
Solaris and OpenBSD. Fix this by handling special values and domain
errors directly in mathmodule.c, passing only positive nonspecial floats
to the system log/log10.
........
2008-12-11 21:56:00 +00:00
Mark Dickinson
da2706b28f
Issue #2173 : fix build failure on OS X. device_encoding was returning an
...
empty string, causing an (invisible) LookupError on any attempt to write
to sys.stdout.
2008-12-11 18:03:03 +00:00
Jeffrey Yasskin
b9083f3e30
Merged revisions 67666,67685 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67666 | jeffrey.yasskin | 2008-12-08 10:55:24 -0800 (Mon, 08 Dec 2008) | 3 lines
Issue 4597: Fix several cases in EvalFrameEx where an exception could be
"raised" without setting x, err, or why to let the eval loop know.
........
r67685 | jeffrey.yasskin | 2008-12-09 23:35:02 -0800 (Tue, 09 Dec 2008) | 2 lines
Update Misc/NEWS for r67666.
........
2008-12-11 06:18:33 +00:00
Facundo Batista
708d58179d
Issue #4084 : Fix max, min, max_mag and min_mag Decimal methods to
...
give correct results in the case where one argument is a quiet NaN
and the other is a finite number that requires rounding.
Thanks Mark Dickinson.
2008-12-11 04:20:07 +00:00
Amaury Forgeot d'Arc
10b24e87e5
Merged revisions 67688 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67688 | amaury.forgeotdarc | 2008-12-11 00:22:49 +0100 (jeu., 11 déc. 2008) | 6 lines
#4559 : When a context manager's __exit__() method returns an object whose
conversion to bool raises an exception, 'with' loses that exception.
Reviewed by Jeffrey Yasskin.
Already ported to 2.5, will port to 2.6 and 3.0
........
2008-12-10 23:49:33 +00:00
Antoine Pitrou
bc420400eb
Issue #4569 : Interpreter crash when mutating a memoryview with an item size larger than 1.
...
(together with a bit of reindenting)
2008-12-07 20:14:49 +00:00
Georg Brandl
f9734076cf
Merged revisions 67511,67536-67537,67543 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67511 | vinay.sajip | 2008-12-04 00:22:58 +0100 (Thu, 04 Dec 2008) | 1 line
Issue #4384 : Added logging integration with warnings module using captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging.
........
r67536 | gregory.p.smith | 2008-12-04 21:21:09 +0100 (Thu, 04 Dec 2008) | 3 lines
Adds a subprocess.check_call_output() function to return the output from a
process on success or raise an exception on error.
........
r67537 | vinay.sajip | 2008-12-04 21:32:18 +0100 (Thu, 04 Dec 2008) | 1 line
Took Nick Coghlan's advice about importing warnings globally in logging, to avoid the possibility of race conditions: "This could deadlock if a thread spawned as a side effect of importing a module happens to trigger a warning. warnings is pulled into sys.modules as part of the interpreter startup - having a global 'import warnings' shouldn't have any real effect on logging's import time."
........
r67543 | gregory.p.smith | 2008-12-05 03:27:01 +0100 (Fri, 05 Dec 2008) | 2 lines
rename the new check_call_output to check_output. its less ugly.
........
2008-12-07 15:30:06 +00:00
Georg Brandl
eee3116690
Merged revisions 67463,67572,67576,67628 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67463 | skip.montanaro | 2008-12-01 02:55:22 +0100 (Mon, 01 Dec 2008) | 1 line
typo in comment
........
r67572 | georg.brandl | 2008-12-05 10:23:14 +0100 (Fri, 05 Dec 2008) | 2 lines
#4458 : recognize "-" as an argument, not a malformed option in gnu_getopt().
........
r67576 | georg.brandl | 2008-12-05 13:09:41 +0100 (Fri, 05 Dec 2008) | 2 lines
#4529 : fix parser's validation for try-except-finally statements.
........
r67628 | skip.montanaro | 2008-12-07 03:16:00 +0100 (Sun, 07 Dec 2008) | 1 line
muffed the default case
........
2008-12-07 15:15:22 +00:00
Antoine Pitrou
5504e893f8
Issue #4509 : bugs in bytearray with exports (buffer protocol)
2008-12-06 21:27:53 +00:00
Skip Montanaro
c1ce286061
issue 4483 - _dbm build failures on systems with gdbm_compat lib.
2008-12-06 17:25:02 +00:00
Mark Dickinson
fd24b323f9
Issue #4445 : save 3 bytes of memory (on average) per bytes allocation.
...
(This is a forward port of r67601).
2008-12-06 15:33:31 +00:00
Christian Heimes
a872de55dc
Fixed issue #4533 : File read operation was dreadfully slow
2008-12-05 08:26:55 +00:00
Amaury Forgeot d'Arc
bc9d4749f2
#4542 : On Windows, binascii.crc32 still accepted str as binary input.
...
This fixes test_binascii.
Will backport to 3.0
2008-12-05 01:40:43 +00:00
Amaury Forgeot d'Arc
bc2ce57203
Issue #4537 : webbrowser.UnixBrowser failed because this module defines an open()
...
function which shadows the builtin.
Will backport to 3.0
2008-12-05 01:02:21 +00:00
Fred Drake
9a0a65b524
Merged revisions 67528 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67528 | fred.drake | 2008-12-04 13:25:17 -0500 (Thu, 04 Dec 2008) | 4 lines
Issue #1055234 : cgi.parse_header(): Fixed parsing of header parameters to
support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers.
........
2008-12-04 19:24:50 +00:00
Barry Warsaw
97f005d137
Prep for Python 3.1!
2008-12-03 16:46:14 +00:00
Raymond Hettinger
f5b64116cc
Issue 3689: list_reverseiterator should support __length_hint__ instead of __len__.
2008-12-02 21:33:45 +00:00
Martin v. Löwis
15b16a3ec4
Issue #4387 : binascii now refuses to accept str as binary input.
2008-12-02 06:00:15 +00:00
Alexandre Vassalotti
eae122be62
Fix docutils parsing errors in Misc/NEWS.
2008-12-02 03:34:24 +00:00
Martin v. Löwis
6178db6d55
Issue #4073 : Add 2to3 support to build_scripts, refactor that support
...
in build_py.
2008-12-01 04:38:52 +00:00
Martin v. Löwis
45a6b9f7e5
Merged revisions 67449 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67449 | martin.v.loewis | 2008-11-30 12:08:26 +0100 (So, 30 Nov 2008) | 3 lines
Issue #4389 : Add icon to the uninstall entry in
"add-and-remove-programs".
........
2008-11-30 11:12:00 +00:00
Martin v. Löwis
841edad43c
Issue #4407 : Fix source file that caused the compileall step in Windows
...
installer to fail.
2008-11-30 10:36:49 +00:00
Amaury Forgeot d'Arc
bed1710115
Fix more threading API related bugs: Thread.get_name() --> Thread.name.
...
Seen when setting RPCHandler.debugging=True
2008-11-29 01:48:47 +00:00
Amaury Forgeot d'Arc
47c2b607b8
#4455 : IDLE failed to display the windows list when two windows have the same title.
...
Windows objects cannot be compared, and it's better to have a consistent order;
so We add the window unique ID to the sort key.
Reviewed by Benjamin Peterson.
2008-11-28 23:28:42 +00:00
Christian Heimes
7ca7cb488f
Forgot to update Misc/NEWS
2008-11-28 11:24:16 +00:00
Christian Heimes
94e0772989
Merged revisions 67414 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67414 | christian.heimes | 2008-11-28 12:02:32 +0100 (Fri, 28 Nov 2008) | 1 line
Fixed issue ##3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception
........
2008-11-28 11:05:17 +00:00
Thomas Heller
60e5f5e78f
Remove the Py_TPFLAGS_HAVE_GC from the _ctypes.COMError type.
...
Fixes issue #4433 ; reviewed by Benjamin Peterson.
2008-11-26 18:40:58 +00:00
Matthias Klose
7e1b8faacc
- Fix build failure of _cursesmodule.c building with -D_FORTIFY_SOURCE=2.
2008-11-26 17:22:04 +00:00
Thomas Heller
71fb513437
Prevent UnicodeDecodeErrors in ctypes with non-ascii error messages.
...
Fixes issue #4429 .
Reviewed by Amaury Forgeot d'Arc.
2008-11-26 08:45:36 +00:00
Christian Heimes
3e7e069887
Second fix for issue #4373
2008-11-25 21:21:32 +00:00
Amaury Forgeot d'Arc
5f95257ef9
#4373 : Reference leak in the pickle module.
...
Reviewed by Brett Cannon.
2008-11-25 21:11:54 +00:00
Brett Cannon
7317c1ef7a
dbm.gnu and dbm.ndbm accept both strings and bytes as keys and values. For the
...
former they are converted to bytes before being written to the DB.
Closes issue 3799. Reviewed by Skip Montanaro.
2008-11-25 19:19:17 +00:00
Brett Cannon
2b5d6ebfe5
dbm.dumb was opening files without specifying the encoding. Caused problem on
...
at least OS X where the default is macroman.
Closes issue #4382 .
2008-11-24 21:09:58 +00:00
Amaury Forgeot d'Arc
b0c29161a2
Merged revisions 67295,67301-67302,67318,67330,67342-67343 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67295 | benjamin.peterson | 2008-11-20 05:05:12 +0100 (jeu., 20 nov. 2008) | 1 line
move useful sys.settrace information to the function's documentation from the debugger
........
r67301 | benjamin.peterson | 2008-11-20 22:25:31 +0100 (jeu., 20 nov. 2008) | 1 line
fix indentation and a sphinx warning
........
r67302 | benjamin.peterson | 2008-11-20 22:44:23 +0100 (jeu., 20 nov. 2008) | 1 line
oops! didn't mean to disable that test
........
r67318 | amaury.forgeotdarc | 2008-11-21 23:05:48 +0100 (ven., 21 nov. 2008) | 4 lines
#4363 : Let uuid.uuid1() and uuid.uuid4() run even if the ctypes module is not present.
Will backport to 2.6
........
r67330 | georg.brandl | 2008-11-22 09:34:14 +0100 (sam., 22 nov. 2008) | 2 lines
#4364 : fix attribute name on ctypes object.
........
r67342 | amaury.forgeotdarc | 2008-11-22 20:39:38 +0100 (sam., 22 nov. 2008) | 3 lines
yuvconvert.c is a part of the "sv" module, an old IRIX thing
and certainly not useful for any Windows build.
........
r67343 | amaury.forgeotdarc | 2008-11-22 21:01:18 +0100 (sam., 22 nov. 2008) | 5 lines
#3996 : On Windows, PyOS_CheckStack is supposed to protect the interpreter from
stack overflow. But doing this, it always crashes when the stack is nearly full.
Reviewed by Martin von Loewis. Will backport to 2.6.
........
2008-11-22 22:18:04 +00:00
Benjamin Peterson
44309e6b37
make FileIO.mode always include 'b'
...
#4386 Reviewed by Amaury
2008-11-22 00:41:45 +00:00
Amaury Forgeot d'Arc
efae8c499f
#4383 : UnboundLocalError when IDLE cannot connect to its subprocess.
...
Python 3.0 clears the exception variable upon exit of the "except:" clause,
and the displaying code fails miserably.
Reviewed by Benjamin.
2008-11-21 23:08:09 +00:00
Barry Warsaw
d8ccd1ce6f
post-3.0rc3
2008-11-21 15:13:37 +00:00
Barry Warsaw
43baef41fd
Bump to 3.0rc3
2008-11-21 01:18:21 +00:00
Brett Cannon
58425d3103
Make dbm.dumb encode strings as UTF-8. Also fix it so it accepts bytes and
...
strings.
Closes issue #3799 .
2008-11-21 00:17:53 +00:00
Amaury Forgeot d'Arc
836b670e89
#4338 : Fix the distutils "setup.py upload" command.
...
The code still mixed bytes and strings.
Reviewed by Martin von Loewis.
2008-11-20 23:53:46 +00:00
Martin v. Löwis
2d1ca2dbab
Issue #4354 : Fix distutils register command.
2008-11-20 16:21:55 +00:00
Martin v. Löwis
a632a75a3e
Merged revisions 67283 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67283 | martin.v.loewis | 2008-11-19 14:51:44 +0100 (Mi, 19 Nov 2008) | 1 line
Issue #4289 : Remove Cancel button from AdvancedDlg.
........
2008-11-19 13:55:07 +00:00
Martin v. Löwis
22d297be51
Merged revisions 67279 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67279 | martin.v.loewis | 2008-11-19 10:09:41 +0100 (Mi, 19 Nov 2008) | 2 lines
Issue #4116 : Resolve member name conflict in ScrolledCanvas.__init__
........
2008-11-19 09:14:30 +00:00
Benjamin Peterson
4f39d22d26
fix the Makefile so it doesn't pollute sys.path
...
#4349 reviewed by Christian
2008-11-18 22:37:15 +00:00
Martin v. Löwis
276c3718e3
Issue #3327 : Don't overallocate in the modules_by_index list.
2008-11-17 16:22:11 +00:00
Raymond Hettinger
7d99f09f89
Issue #1721812 : Binary operations and copy operations on set/frozenset
...
subclasses need to return the base type, not the subclass itself.
2008-11-16 11:44:54 +00:00
Mark Dickinson
4a1f593df5
Issue #4296 : Fix PyObject_RichCompareBool so that "x in [x]" evaluates to
...
True, even when x doesn't compare equal to itself. This was a regression
from 2.6.
Reviewed by R. Hettinger and C. Heimes.
2008-11-12 23:23:36 +00:00
Benjamin Peterson
3d4ca74bc8
change the named tuple returned by inspect.getfullargspec to have a 'kwonlydefaults' (as claimed by the docs) attribute instead of 'kwdefaults'
...
Fixes #4307
Reviewed by Christian
2008-11-12 21:39:01 +00:00
Amaury Forgeot d'Arc
9a5499b4e5
#3705 : Command-line arguments were not correctly decoded when the
...
terminal does not use UTF8.
Now the code propagates the unicode string as far as possible, and avoids
the conversion to char* which implicitely uses utf-8.
Reviewed by Benjamin.
2008-11-11 23:04:59 +00:00
Amaury Forgeot d'Arc
3e4e72f66f
#4298 : pickle.load() can segfault on invalid or truncated input.
...
Patch and test by Hirokazu Yamamoto.
2008-11-11 20:05:06 +00:00
Benjamin Peterson
06fd5f8cc8
fix the socketserver demo code for py3k
...
#4275 Thanks to Don MacMillen
2008-11-08 17:24:34 +00:00
Georg Brandl
da06606b63
#4283 : fix left-over iteritems() in distutils.
2008-11-08 15:15:57 +00:00
Martin v. Löwis
bfda544767
Merged revisions 67149 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67149 | martin.v.loewis | 2008-11-07 19:51:50 +0100 (Fr, 07 Nov 2008) | 1 line
Issue #1656675 : Register a drop handler for .py* files on Windows.
........
2008-11-07 18:54:51 +00:00
Benjamin Peterson
6570d071fa
name the release
2008-11-07 03:51:42 +00:00
Barry Warsaw
a7c373056a
post release cleanup
2008-11-07 03:46:33 +00:00
Martin v. Löwis
900646ef68
Merged revisions 67120 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67120 | martin.v.loewis | 2008-11-06 17:43:00 +0100 (Do, 06 Nov 2008) | 2 lines
Issue #4120 : Exclude manifest from extension modules in VS2008.
........
2008-11-06 17:30:03 +00:00
Barry Warsaw
1f0e67ec1f
Bumping to 3.0rc2.
2008-11-06 03:29:32 +00:00
Benjamin Peterson
93ef79cce3
period
2008-11-05 22:49:09 +00:00
Benjamin Peterson
d968e27581
fix #4211 : the __path__ of a frozen package should be a list.
...
Patch by Brett Cannon, review by Christian Heimes.
2008-11-05 22:48:33 +00:00
Christian Heimes
d395629e82
Fixed issue #3727 : poplib module broken by str to unicode conversion
...
Victor strikes again! Assisted by Barry
2008-11-05 19:48:27 +00:00
Christian Heimes
933238ad85
Issue #3714 : nntplib module broken by str to unicode conversion
...
Patch by Victor, Reviewed by Barry
2008-11-05 19:44:21 +00:00
Christian Heimes
fb5faf0285
Issue #1210 : Fixed imaplib
...
Patch by Victor Stinner, reviewed by Barry Warsaw.
2008-11-05 19:39:50 +00:00
Christian Heimes
ecc42a2b82
Fixed issue #4233 .
...
Changed semantic of _fileio.FileIO's close() method on file objects with closefd=False. The file descriptor is still kept open but the file object behaves like a closed file. The FileIO object also got a new readonly attribute closefd.
Approved by Barry
2008-11-05 19:30:32 +00:00
Martin v. Löwis
b37509b11b
Merged revisions 67098 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67098 | martin.v.loewis | 2008-11-04 21:40:09 +0100 (Di, 04 Nov 2008) | 2 lines
Issue #4204 : Fixed module build errors on FreeBSD 4.
........
2008-11-04 20:45:29 +00:00
Amaury Forgeot d'Arc
dd8059f078
#3626 : On cygwin, starting "python z" would not display any error message:
...
printf("%ls") fails if the wide string is 1 char long :-(
2008-10-30 23:03:32 +00:00
Amaury Forgeot d'Arc
424b4819be
Merged revisions 67049 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67049 | amaury.forgeotdarc | 2008-10-30 22:18:34 +0100 (jeu., 30 oct. 2008) | 8 lines
Issue #4176 : Pickle would crash the interpreter when a __reduce__ function
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)
A list is not an iterator...
Will backport to 2.6 and 2.5.
........
2008-10-30 22:25:31 +00:00
Christian Heimes
6a27efa2d3
Issue 3723: Fixed initialization of subinterpreters
...
The patch fixes several issues with Py_NewInterpreter as well as the demo for multiple subinterpreters.
Most of the patch was written by MvL with help from Benjamin, Amaury and me. Graham Dumpleton has verified that this patch fixes an issue with mod_wsgi.
2008-10-30 21:48:26 +00:00
Christian Heimes
5833a2f6fd
Issue #4213 : The file system encoding is now normalized by the codec subsystem, for example UTF-8 is turned into utf-8.
...
Patch created by Victor and reviewed by me. The change is required for proper initialization of subinterpreters.
2008-10-30 21:40:04 +00:00
Christian Heimes
9c94ba4e7d
Issue #4200 : Changed the atexit module to store its state in its PyModuleDef atexitmodule. This fixes a bug with multiple subinterpeters. The bug was found by Graham Dumpletom during his work on a 3.0 port of mod_wsgi. The patch has been reviewed by Benjamin.
2008-10-30 21:34:02 +00:00
Christian Heimes
fec925b315
Issue #4237 : io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.
2008-10-30 21:22:55 +00:00
Amaury Forgeot d'Arc
f43ee81ef2
#4170 : Fix segfault when pickling a defauldict object.
...
The 2.x dict.iteritems() returns an iterator,
whereas the 3.0 dict.items() returns a "view",
which is iterable, but not an iterator with its __next__ method.
Patch by Hirokazu Yamamoto.
2008-10-30 20:58:42 +00:00
Benjamin Peterson
08a8f5fff9
restore compilation on OpenBSD #4146
2008-10-19 14:15:00 +00:00
Amaury Forgeot d'Arc
87eee631fb
#3664 : The pickle module could segfault if a Pickler instance is not correctly initialized:
...
when a subclass forgets to call the base __init__ method,
or when __init__ is called a second time with invalid parameters
Patch by Alexandre Vassalotti.
2008-10-17 20:15:53 +00:00
Martin v. Löwis
869bad9b5a
Issue #3717 : Fix Demo/embed/demo.c.
...
Reviewed by Benjamin Peterson.
2008-10-17 15:54:44 +00:00
Martin v. Löwis
c820eaf347
Merged revisions 66958 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66958 | martin.v.loewis | 2008-10-17 15:43:01 +0200 (Fr, 17 Okt 2008) | 1 line
Issue #4091 : Install pythonxy.dll in system32 again.
........
2008-10-17 13:47:20 +00:00
Brett Cannon
da78043237
Latin-1 source code was not being properly decoded when passed through
...
compile(). This was due to left-over special-casing before UTF-8 became the
default source encoding.
Closes issue #3574 . Thanks to Victor Stinner for help with the patch.
2008-10-17 03:38:50 +00:00
Benjamin Peterson
3de7fb86fc
Victor Stinner's patch to make telnetlib use bytes 3725
2008-10-15 20:54:24 +00:00
Martin v. Löwis
33b6450d23
Issue #4072 : Restore build_py_2to3. Add a distutils demo for
...
build_py_2to3.
2008-10-15 05:58:17 +00:00
Martin v. Löwis
f63921f9d0
Merged revisions 66881 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66881 | martin.v.loewis | 2008-10-13 13:23:35 +0200 (Mo, 13 Okt 2008) | 2 lines
Issue #4018 : Disable "for me" installations on Vista.
........
2008-10-13 11:30:30 +00:00
Amaury Forgeot d'Arc
cf8016a8d6
Issues #2384 and #3975 : Tracebacks were not correctly printed when the source file
...
contains a ``coding:`` header: the wrong line was displayed, and the encoding was not respected.
Patch by Victor Stinner.
2008-10-09 23:37:48 +00:00
Martin v. Löwis
4e0630cb52
Issue #3740 : Null-initialize module state.
...
Reviewed by Benjamin Peterson.
2008-10-07 13:16:28 +00:00
Martin v. Löwis
d8506df229
Merged revisions 66814 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66814 | martin.v.loewis | 2008-10-06 17:15:40 +0200 (Mo, 06 Okt 2008) | 3 lines
Issue #4014 : Don't claim that Python has an Alpha release status, in addition
to claiming it is Mature.
........
2008-10-06 15:19:21 +00:00
Martin v. Löwis
04dc25c537
Issue #3187 : Add sys.setfilesystemencoding.
2008-10-03 16:09:28 +00:00
Guido van Rossum
f0af3e30db
Issue #3187 : Better support for "undecodable" filenames. Code by Victor
...
Stinner, with small tweaks by GvR.
2008-10-02 18:55:37 +00:00
Martin v. Löwis
601149bb8e
Merged revisions 66686 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66686 | martin.v.loewis | 2008-09-30 00:09:07 +0200 (Di, 30 Sep 2008) | 5 lines
Issue #3965 : Allow repeated calls to turtle.Screen, by making it a
true singleton object.
Reviewed by Gregor Lingl.
........
2008-09-29 22:19:08 +00:00
Benjamin Peterson
3a53fbbfcf
#3911 FTP.makeport was giving bad port numbers
...
reviewed by Benjamin and Antoine
2008-09-27 22:04:16 +00:00
Benjamin Peterson
60320cb3e4
#3946 fix PyObject_CheckBuffer on a memoryview object
...
reviewed by Antoine
2008-09-26 21:49:22 +00:00
Amaury Forgeot d'Arc
b5cf301b8e
#3929 : dbm.open() would try to raise a tuple. This does not work anymore with python 3.0.
...
Reviewed by Georg Brandl.
2008-09-25 22:27:43 +00:00
Martin v. Löwis
6fea2339d8
Merged revisions 66616 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66616 | martin.v.loewis | 2008-09-25 06:12:50 +0200 (Do, 25 Sep 2008) | 2 lines
Bug #3951 : Py_USING_MEMORY_DEBUGGER should not be enabled by default.
........
2008-09-25 04:15:27 +00:00
Thomas Heller
1308c26cf4
Merged revisions 66611 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66611 | thomas.heller | 2008-09-24 20:26:05 +0200 (Mi, 24 Sep 2008) | 3 lines
Fix issue #3547 : ctypes is confused by bitfields of varying integer types
Reviewed by Fredrik Lundh and Skip Montanaro.
........
2008-09-24 19:01:29 +00:00
Gerhard Häring
6117f423c4
Issue #3659 : Values of string subclasses were not handled correctly when used
...
as bind parameters.
Reviewed by Bejnamin Peterson.
2008-09-22 06:04:51 +00:00
Amaury Forgeot d'Arc
d0db98fcd8
#1688 : On Windows, the input() prompt was not correctly displayed if it
...
contains non-ascii characters.
Reviewed by Benjamin Peterson.
2008-09-21 21:49:01 +00:00
Martin v. Löwis
60ebb8b0aa
Bug #3884 : Make the turtle module toplevel again.
2008-09-21 07:32:10 +00:00
Barry Warsaw
1ecaf2c009
done with rc1
2008-09-18 04:28:35 +00:00
Barry Warsaw
b885480695
bumping to 3.0rc1
2008-09-18 03:00:28 +00:00
Antoine Pitrou
9cadb1b6e0
Issue #3782 : os.write() must not accept unicode strings
2008-09-15 23:02:56 +00:00
Benjamin Peterson
5e19e44413
kill memoryview.size in favor of len(view)
...
Reviewer: Antoine Pitrou #3827
2008-09-10 21:47:03 +00:00
Guido van Rossum
698280df7c
Issue #3756 : make re.escape() handle bytes as well as str.
...
Patch by Andrew McNamara, reviewed and tweaked by myself.
2008-09-10 17:44:35 +00:00
Georg Brandl
7cd67cc992
Fix formatter usage of filter(). Bug #3800 .
2008-09-09 19:31:25 +00:00
Hirokazu Yamamoto
54a1cc68a1
Issue #3812 : Failed to build python if configure --without-threads.
...
Removed itertools usage from Lib/traceback.py, because itertools
is extension module, so maybe unavailable on build process.
(Lib/_dummy_thread.py uses Lib/traceback.py)
Reviewed by Amaury Forgeot d'Arc.
2008-09-09 17:55:11 +00:00
Hirokazu Yamamoto
167b12b71c
Added News for r66338
2008-09-09 14:01:25 +00:00
Amaury Forgeot d'Arc
8530e8590f
Revert r33661, which broke all buildbots.
2008-09-09 07:28:22 +00:00
Amaury Forgeot d'Arc
14b785192b
#3705 : Fix crash when given a non-ascii value on the command line for the "-c" and "-m" parameters
...
Second part, for Windows.
Reviewed by Antoine Pitrou
2008-09-09 07:04:36 +00:00
Amaury Forgeot d'Arc
f7bfcfbb68
#3791 : Remove bsddb from the Windows msi installer,
...
And do not compile the core bsddb library.
Reviewed by Martin von Loewis.
2008-09-09 06:42:00 +00:00
Gregory P. Smith
207f2113d8
describe the change merged in r66285
2008-09-07 06:29:10 +00:00
Antoine Pitrou
5fe291f817
Issue #874900 : fix behaviour of threading module after a fork.
...
Reviewed by Gregory P. Smith.
2008-09-06 23:00:03 +00:00
Gregory P. Smith
0a608fdaac
fixes deferred/release blocker issue #3797 : Fixed the dbm, marshal, mmap,
...
ossaudiodev, & winreg modules to return bytes objects instead of bytearray
objects.
2008-09-06 21:34:51 +00:00
Antoine Pitrou
5651eaa720
Issue #3705 : py3k aborts if "-c" or "-m" is given a non-ascii value.
...
Reviewed by Benjamin Peterson.
2008-09-06 20:46:58 +00:00
Gregory P. Smith
693fc4604f
Fixes release blocker issue #3492 and #3790 .
...
Make zlib and zipimport to return bytes instead of bytearray and use bytes
rather than bytearray for their internal leftover data storages.
2008-09-06 20:13:06 +00:00
Antoine Pitrou
9e4fdf446d
Merged revisions 66240 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66240 | antoine.pitrou | 2008-09-06 01:30:23 +0200 (sam., 06 sept. 2008) | 5 lines
Issue #3535 : zipfile couldn't read some zip files larger than 2GB.
Reviewed by Amaury Forgeot d'Arc.
........
2008-09-05 23:43:02 +00:00
Benjamin Peterson
791dc2f32c
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279
...
Reviewer: Alexandre Vassalotti
2008-09-05 23:27:15 +00:00
Amaury Forgeot d'Arc
f048111403
#3660 : Correct a reference leak in PyUnicode_AsEncodedString when
...
the encoder does not return a bytes object.
Now test_unicode passes without leaking.
Reviewer: Antoine Pitrou.
2008-09-05 20:48:47 +00:00
Antoine Pitrou
d79dc6216c
Issue #3660 (part of): fix a memory leak in _pickle.
...
Patch by Amaury Forgeot d'Arc, review by me.
2008-09-05 00:03:33 +00:00
Amaury Forgeot d'Arc
1b933ed50a
#3773 : Check for errors around the use of PyTokenizer_FindEncoding().
...
reviewed by Brett Cannon.
2008-09-04 22:34:09 +00:00
Antoine Pitrou
1d6a16bf38
Issue #3160 : the "bdist_wininst" distutils command didn't work.
...
Reviewed by Trent Nelson.
2008-09-04 21:32:09 +00:00
Guilherme Polo
b212b75c22
Issue #1658 : dict size is changing during iteration in tkinter.BaseWidget and
...
tkinter.scrolledtext.ScrolledText.
Reviewed by Amaury Forgeot d'Arc
2008-09-04 11:21:31 +00:00