Christian Heimes [Tue, 4 Dec 2007 23:02:19 +0000 (23:02 +0000)]
Removed PyInt_GetMax and sys.maxint
I replaced sys.maxint with sys.maxsize in Lib/*.py. Does anybody see a problem with the change on Win 64bit platforms? Win 64's long is just 32bit but the sys.maxsize is now 2**63-1 on every 64bit platform.
Also added docs for sys.maxsize.
Martin v. Löwis [Tue, 4 Dec 2007 22:18:27 +0000 (22:18 +0000)]
Eliminate outdated usages of PyInt_GetMax.
Martin v. Löwis [Tue, 4 Dec 2007 22:10:37 +0000 (22:10 +0000)]
Remove PyInt_CheckExact. Add PyLong_AsLongAndOverflow.
Christian Heimes [Tue, 4 Dec 2007 21:55:18 +0000 (21:55 +0000)]
Removed another occurrence of PyInt_ExactCheck()
I've modified the semantic of PyTraceBack_Print and sys.tracebacklimit slightly. Overfloats or values <= 0 are replaced with a default value to avoid infinite recursion and other issues.
Martin v. Löwis [Tue, 4 Dec 2007 20:34:12 +0000 (20:34 +0000)]
Remove special-casing of integer operations, to stop
using PyInt_CheckExact.
Christian Heimes [Tue, 4 Dec 2007 19:30:01 +0000 (19:30 +0000)]
Merged revisions 59323-59332 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59324 | georg.brandl | 2007-12-04 17:10:02 +0100 (Tue, 04 Dec 2007) | 3 lines
Add "Python on Unix" document, mostly written for GHOP
by Shriphani Palakodety.
........
r59325 | facundo.batista | 2007-12-04 17:31:53 +0100 (Tue, 04 Dec 2007) | 3 lines
fma speedup by avoiding to create a Context. Thanks Mark Dickinson.
........
r59326 | christian.heimes | 2007-12-04 17:36:20 +0100 (Tue, 04 Dec 2007) | 2 lines
Added warning that make install may overwrite or masquerade the default python binary. Use make altinstall instead.
A native English speaker may want to rephrase the paragraph. ;)
........
r59327 | georg.brandl | 2007-12-04 17:50:28 +0100 (Tue, 04 Dec 2007) | 2 lines
Fix duplicate label and a typo.
........
r59329 | georg.brandl | 2007-12-04 18:46:27 +0100 (Tue, 04 Dec 2007) | 2 lines
Add tutorial and examples to logging docs, from GHOP student "oscar8thegrouch".
........
r59332 | christian.heimes | 2007-12-04 19:43:19 +0100 (Tue, 04 Dec 2007) | 1 line
These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno.
........
Christian Heimes [Tue, 4 Dec 2007 18:42:04 +0000 (18:42 +0000)]
These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno.
Georg Brandl [Tue, 4 Dec 2007 18:11:03 +0000 (18:11 +0000)]
Document nonlocal statement. Written for GHOP by "Canadabear".
Christian Heimes [Tue, 4 Dec 2007 15:54:13 +0000 (15:54 +0000)]
Merged revisions 59321-59322 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59322 | christian.heimes | 2007-12-04 16:52:14 +0100 (Tue, 04 Dec 2007) | 1 line
Added VS 2005 and VS 2008 to the search path for cabarc.exe
........
Christian Heimes [Tue, 4 Dec 2007 15:00:33 +0000 (15:00 +0000)]
Merged revisions 59313-59320 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59317 | martin.v.loewis | 2007-12-04 09:37:59 +0100 (Tue, 04 Dec 2007) | 2 lines
Fix chflags issue on Tru64, from #
1490190.
........
r59318 | martin.v.loewis | 2007-12-04 09:39:16 +0100 (Tue, 04 Dec 2007) | 2 lines
Move nt.access change into the right section.
........
r59320 | christian.heimes | 2007-12-04 15:57:30 +0100 (Tue, 04 Dec 2007) | 2 lines
Added self generated UUID for msvcr90.dll to msi.py
Readded a missing line.
........
Nick Coghlan [Tue, 4 Dec 2007 12:22:52 +0000 (12:22 +0000)]
Manual merge of PEP 366 implementation from trunk (the automatic merge choked on the PyString->PyUnicode changes)
Alexandre Vassalotti [Tue, 4 Dec 2007 06:20:30 +0000 (06:20 +0000)]
Fix issue #1553: An errornous __length_hint__ can make list() raise a
SystemError.
Alexandre Vassalotti [Tue, 4 Dec 2007 05:56:11 +0000 (05:56 +0000)]
Remove a few tab characters introduced by r59314.
Alexandre Vassalotti [Tue, 4 Dec 2007 05:51:13 +0000 (05:51 +0000)]
Issue #1283: Allow any iterable of integers to be passed to
bytearray.extend().
Guido van Rossum [Tue, 4 Dec 2007 01:13:14 +0000 (01:13 +0000)]
Merged revisions 59304-59312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59306 | andrew.kuchling | 2007-12-03 13:28:41 -0800 (Mon, 03 Dec 2007) | 1 line
Grammar fix
........
r59307 | guido.van.rossum | 2007-12-03 14:02:10 -0800 (Mon, 03 Dec 2007) | 2 lines
Shut up a compiler warning.
........
r59312 | martin.v.loewis | 2007-12-03 15:09:04 -0800 (Mon, 03 Dec 2007) | 3 lines
Forward-port r59310:
os.access now returns True on Windows for any existing directory.
........
Guido van Rossum [Mon, 3 Dec 2007 22:54:21 +0000 (22:54 +0000)]
Add an errors parameter to open() and TextIOWrapper() to specify error handling.
Georg Brandl [Mon, 3 Dec 2007 21:07:25 +0000 (21:07 +0000)]
Fix merging glitch.
Christian Heimes [Mon, 3 Dec 2007 21:02:03 +0000 (21:02 +0000)]
Merged revisions 59275-59303 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTE: The merge does NOT contain the modified file Python/import.c from
r59288. I can't get it running. Nick, please check in the PEP 366
manually.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
........
r59279 | georg.brandl | 2007-12-02 19:17:50 +0100 (Sun, 02 Dec 2007) | 2 lines
Fix a sentence I missed before. Do not merge to 3k.
........
r59281 | georg.brandl | 2007-12-02 22:58:54 +0100 (Sun, 02 Dec 2007) | 3 lines
Add documentation for PySys_* functions.
Written by Charlie Shepherd for GHOP. Also fixes #1245.
........
r59288 | nick.coghlan | 2007-12-03 13:55:17 +0100 (Mon, 03 Dec 2007) | 1 line
Implement PEP 366
........
r59290 | christian.heimes | 2007-12-03 14:47:29 +0100 (Mon, 03 Dec 2007) | 3 lines
Applied my patch #1455 with some extra fixes for VS 2005
The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
........
r59291 | christian.heimes | 2007-12-03 14:55:16 +0100 (Mon, 03 Dec 2007) | 1 line
Added comment to Misc/NEWS for r59290
........
r59292 | christian.heimes | 2007-12-03 15:28:04 +0100 (Mon, 03 Dec 2007) | 1 line
I followed MA Lemberg's suggestion and added comments to the late initialization of the type slots.
........
r59293 | facundo.batista | 2007-12-03 17:29:52 +0100 (Mon, 03 Dec 2007) | 3 lines
Speedup and cleaning of __str__. Thanks Mark Dickinson.
........
r59294 | facundo.batista | 2007-12-03 18:55:00 +0100 (Mon, 03 Dec 2007) | 4 lines
Faster _fix function, and some reordering for a more elegant
coding. Thanks Mark Dickinson.
........
r59295 | martin.v.loewis | 2007-12-03 20:20:02 +0100 (Mon, 03 Dec 2007) | 5 lines
Issue #
1727780: Support loading pickles of random.Random objects created
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
in Python 2.5.
........
r59297 | facundo.batista | 2007-12-03 20:49:54 +0100 (Mon, 03 Dec 2007) | 3 lines
Two small fixes. Issue 1547.
........
r59299 | georg.brandl | 2007-12-03 20:57:02 +0100 (Mon, 03 Dec 2007) | 2 lines
#1548: fix apostroph placement.
........
r59300 | christian.heimes | 2007-12-03 21:01:02 +0100 (Mon, 03 Dec 2007) | 3 lines
Patch #1537 from Chad Austin
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
........
r59302 | georg.brandl | 2007-12-03 21:03:46 +0100 (Mon, 03 Dec 2007) | 3 lines
Add examples to the xmlrpclib docs.
Written for GHOP by Josip Dzolonga.
........
Christian Heimes [Mon, 3 Dec 2007 19:53:57 +0000 (19:53 +0000)]
Reverting last commit. I had some staled data from an attempted svnmerge in my local sandbox
Christian Heimes [Mon, 3 Dec 2007 19:47:54 +0000 (19:47 +0000)]
Patch #1537 from Chad Austin
Change GeneratorExit's base class from Exception to BaseException
Georg Brandl [Sun, 2 Dec 2007 23:15:43 +0000 (23:15 +0000)]
Remove a few merged versionadded/changed.
Georg Brandl [Sun, 2 Dec 2007 23:11:00 +0000 (23:11 +0000)]
Remove mentions of "long integer" in the API docs.
Georg Brandl [Sun, 2 Dec 2007 23:08:39 +0000 (23:08 +0000)]
Remove PyInt API from the docs. Extend PyLong docs to cover all public functions in longobject.c.
Georg Brandl [Sun, 2 Dec 2007 22:48:17 +0000 (22:48 +0000)]
Remove all definitions of raw_input() that were still scattered throughout the docs
from the time where there was neither input() nor raw_input().
Christian Heimes [Sun, 2 Dec 2007 22:43:00 +0000 (22:43 +0000)]
Fixed a problem found by Bill Janssen on Mac OS X
There was one occurence of PyInt_FromLong left in Parser/asdl_c.py. The files creates some C code.
Georg Brandl [Sun, 2 Dec 2007 18:20:12 +0000 (18:20 +0000)]
Fix some 2.xisms in merged docs.
Christian Heimes [Sun, 2 Dec 2007 16:52:32 +0000 (16:52 +0000)]
I've moved the remains of PyInt_ to the longobject.h header file and removed the inclusing of intobject.h from Python.h. Now the intobject.h exists only to provide some aliases for porters from Python 2.x.
Christian Heimes [Sun, 2 Dec 2007 16:50:20 +0000 (16:50 +0000)]
Fixed merge accident. Next time I'm going to run the entire test suite ...
Christian Heimes [Sun, 2 Dec 2007 15:27:38 +0000 (15:27 +0000)]
The bz2 codec isn't supported any more. I've also commented out several codecs which were removed in the past.
Christian Heimes [Sun, 2 Dec 2007 15:22:16 +0000 (15:22 +0000)]
Merged revisions 59259-59274 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59260 | lars.gustaebel | 2007-12-01 22:02:12 +0100 (Sat, 01 Dec 2007) | 5 lines
Issue #1531: Read fileobj from the current offset, do not seek to
the start.
(will backport to 2.5)
........
r59262 | georg.brandl | 2007-12-01 23:24:47 +0100 (Sat, 01 Dec 2007) | 4 lines
Document PyEval_* functions from ceval.c.
Credits to Michael Sloan from GHOP.
........
r59263 | georg.brandl | 2007-12-01 23:27:56 +0100 (Sat, 01 Dec 2007) | 2 lines
Add a few refcount data entries.
........
r59264 | georg.brandl | 2007-12-01 23:38:48 +0100 (Sat, 01 Dec 2007) | 4 lines
Add test suite for cmd module.
Written by Michael Schneider for GHOP.
........
r59265 | georg.brandl | 2007-12-01 23:42:46 +0100 (Sat, 01 Dec 2007) | 3 lines
Add examples to the ElementTree documentation.
Written by h4wk.cz for GHOP.
........
r59266 | georg.brandl | 2007-12-02 00:12:45 +0100 (Sun, 02 Dec 2007) | 3 lines
Add "Using Python on Windows" document, by Robert Lehmann.
Written for GHOP.
........
r59271 | georg.brandl | 2007-12-02 15:34:34 +0100 (Sun, 02 Dec 2007) | 3 lines
Add example to mmap docs.
Written for GHOP by Rafal Rawicki.
........
r59272 | georg.brandl | 2007-12-02 15:37:29 +0100 (Sun, 02 Dec 2007) | 2 lines
Convert bdb.rst line endings to Unix style.
........
r59274 | georg.brandl | 2007-12-02 15:58:50 +0100 (Sun, 02 Dec 2007) | 4 lines
Add more entries to the glossary.
Written by Jeff Wheeler for GHOP.
........
Christian Heimes [Sun, 2 Dec 2007 14:44:17 +0000 (14:44 +0000)]
Changed #ifdef 0 to #if 0.
Christian Heimes [Sun, 2 Dec 2007 14:31:20 +0000 (14:31 +0000)]
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
Georg Brandl [Sun, 2 Dec 2007 09:40:06 +0000 (09:40 +0000)]
#1535: rename __builtin__ module to builtins.
Christian Heimes [Sat, 1 Dec 2007 15:42:08 +0000 (15:42 +0000)]
Empty svnmerge from trunk to skip the versionadded tags.
Georg Brandl [Sat, 1 Dec 2007 13:31:39 +0000 (13:31 +0000)]
Remove merged versionadded tags from os docs.
Christian Heimes [Sat, 1 Dec 2007 12:22:32 +0000 (12:22 +0000)]
Merged revisions 59245-59254 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59245 | georg.brandl | 2007-11-30 23:04:45 +0100 (Fri, 30 Nov 2007) | 2 lines
Move lchmod() docs to correct place, and add versionadded tags.
........
r59249 | christian.heimes | 2007-11-30 23:36:10 +0100 (Fri, 30 Nov 2007) | 2 lines
Backport of -r59242:59246 from py3k
Fixed problem with regrtest caused by the additional of objects to _abcoll.
........
r59253 | christian.heimes | 2007-12-01 02:03:20 +0100 (Sat, 01 Dec 2007) | 1 line
Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro.
........
r59254 | christian.heimes | 2007-12-01 12:20:10 +0100 (Sat, 01 Dec 2007) | 3 lines
Feature #1534
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API.
Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
........
Amaury Forgeot d'Arc [Fri, 30 Nov 2007 23:45:17 +0000 (23:45 +0000)]
Correct a failing test after merge from trunk.
Christian Heimes [Fri, 30 Nov 2007 23:34:21 +0000 (23:34 +0000)]
Marc-Andre Lemburg has found the culprit of the problem in r57142.
Guido van Rossum [Fri, 30 Nov 2007 23:30:40 +0000 (23:30 +0000)]
Rename the internal name of dictproxy -> dict_proxy,
in analogy with dict_keys etc.
Christian Heimes [Fri, 30 Nov 2007 22:29:24 +0000 (22:29 +0000)]
Cleanups and documentation updates related to the removal of unbound methods.
Christian Heimes [Fri, 30 Nov 2007 22:12:06 +0000 (22:12 +0000)]
Merged revisions 59239-59244 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59240 | amaury.forgeotdarc | 2007-11-30 21:37:22 +0100 (Fri, 30 Nov 2007) | 2 lines
Add a NEWS entry for r59231
........
r59241 | amaury.forgeotdarc | 2007-11-30 21:51:40 +0100 (Fri, 30 Nov 2007) | 5 lines
Issue #1521: on 64bit platforms, str.decode fails on very long strings.
The t# and w# formats were not correctly handled.
Will backport.
........
r59242 | christian.heimes | 2007-11-30 22:11:28 +0100 (Fri, 30 Nov 2007) | 3 lines
Fix for feature request #1528 Add os.fchmod
Georg Brandl has added fchmod() and fchown(). I've contributed lchown but I'm not able to test it on Linux. However it should be available on Mac and some other flavors of Unix.
I've made a quick test of fchmod() and fchown() on my system. They are working as expected.
........
Christian Heimes [Fri, 30 Nov 2007 22:09:59 +0000 (22:09 +0000)]
abc's are subclasses of _Abstract, not instances.
Christian Heimes [Fri, 30 Nov 2007 21:53:03 +0000 (21:53 +0000)]
Fixed problem with regrtest caused by the additional of objects to _abcoll.
Christian Heimes [Fri, 30 Nov 2007 19:27:20 +0000 (19:27 +0000)]
Merged revisions 59234-59238 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59237 | facundo.batista | 2007-11-30 18:15:25 +0100 (Fri, 30 Nov 2007) | 4 lines
Reordering of __new__ to minimize isinstance() calls to most
used types. Thanks Mark Dickinson.
........
r59238 | christian.heimes | 2007-11-30 20:18:08 +0100 (Fri, 30 Nov 2007) | 6 lines
Removed or replaced some more deprecated preprocessor macros.
Moved the _DEBUG and NDEBUG macros to two new property files.
Fixed #1527 Problem with static libs on Windows
Updated README.txt
........
Christian Heimes [Fri, 30 Nov 2007 15:13:13 +0000 (15:13 +0000)]
Backmerge -r59233:59232
Guido said:
Please roll this back. The error message you added is inappropriate
when the parameter to a legitimate register() call is omitted, e.g.
collections.Sequence.register()
Christian Heimes [Fri, 30 Nov 2007 14:35:04 +0000 (14:35 +0000)]
Merged revisions 59226-59233 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59228 | amaury.forgeotdarc | 2007-11-29 21:24:36 +0100 (Thu, 29 Nov 2007) | 4 lines
vc2008: Move python.vcproj first in the solution file, so that
it becomes the default startup project when opening the file
for the first time.
........
r59230 | georg.brandl | 2007-11-30 00:00:03 +0100 (Fri, 30 Nov 2007) | 3 lines
Add more examples to the wsgiref docs.
From GHOP by Josip Dzolonga.
........
r59231 | amaury.forgeotdarc | 2007-11-30 00:35:25 +0100 (Fri, 30 Nov 2007) | 7 lines
Issue #1402: PyInterpreterState_Clear() may still invoke user code
(in deallocation of running threads, for example), so the PyGILState_Release()
function must still be functional.
On the other hand, _PyGILState_Fini() only frees memory, and can be called later.
Backport candidate, but only after some experts comment on it.
........
Christian Heimes [Fri, 30 Nov 2007 14:32:41 +0000 (14:32 +0000)]
Fix for bug #1109
Warning required when calling register() on an ABCMeta subclass.
Christian Heimes [Fri, 30 Nov 2007 10:18:26 +0000 (10:18 +0000)]
Partial fix for bug #1306
Multiple reinitializations of Python 3.0 failed on a system without a hardcoded default fs encoding. The patch makes sure that the default fs encoding is freed and reset to NULL on e.g. Linux.
I've also taken the liberty to increase the debugging in Objects/object.c:_Py_ForgetReference(). The method is used to validate the reference chain.
Reinitialization still fails in the 3rd round of my test suite:
* ob
object : <refcnt 0 at 0x821c840>
type : str
refcount: 0
address : 0x821c840
* op->_ob_prev->_ob_next
object : <refcnt 0 at 0x821c840>
type : str
refcount: 0
address : 0x821c840
* op->_ob_next->_ob_prev
object : bytearray(b'')
type : bytearray
refcount: 1
address : 0x826b838
Fatal Python error: UNREF invalid object
Christian Heimes [Thu, 29 Nov 2007 22:35:39 +0000 (22:35 +0000)]
Added all PyTypeObjects to the appropriate header files.
Before the patch a lot of internal types weren't available in the header files. The patch exposes the new iterators, views and some other types to all C modules. I've also renamed some of the types and tp_names.
Georg Brandl [Thu, 29 Nov 2007 18:48:53 +0000 (18:48 +0000)]
long integer -> integer.
Guido van Rossum [Thu, 29 Nov 2007 18:43:05 +0000 (18:43 +0000)]
Merged revisions 59212-59225 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59218 | georg.brandl | 2007-11-29 09:01:20 -0800 (Thu, 29 Nov 2007) | 2 lines
Fix reference target.
........
r59219 | georg.brandl | 2007-11-29 09:02:34 -0800 (Thu, 29 Nov 2007) | 4 lines
Add examples to the ConfigParser documentation.
Credits go to Thomas Lamb, who wrote this as a task in the GHOP contest.
........
r59223 | guido.van.rossum | 2007-11-29 10:25:12 -0800 (Thu, 29 Nov 2007) | 2 lines
Fix bug #1517, a segfault in lookdict().
........
r59224 | georg.brandl | 2007-11-29 10:33:01 -0800 (Thu, 29 Nov 2007) | 2 lines
Spaces vs. Tabs.
........
Georg Brandl [Thu, 29 Nov 2007 17:41:05 +0000 (17:41 +0000)]
Remove further mentions of long integers.
Georg Brandl [Thu, 29 Nov 2007 17:24:34 +0000 (17:24 +0000)]
Remove mentions of "long integer" in the docs.
Credits to HappySmileMan from GHOP.
Christian Heimes [Thu, 29 Nov 2007 16:21:13 +0000 (16:21 +0000)]
Removed more types from the types module
Christian Heimes [Thu, 29 Nov 2007 15:07:49 +0000 (15:07 +0000)]
Removed iter* methods from dictproxy.
The iter methods were a non-working relict from the past.
Christian Heimes [Wed, 28 Nov 2007 12:33:51 +0000 (12:33 +0000)]
Fixed bug #1505 Changes to PyMethod_New breaks ctypes on Windows
I converted the ComError exception into a full
type.
Christian Heimes [Wed, 28 Nov 2007 10:05:53 +0000 (10:05 +0000)]
Fixed #1508 Removal of stale code in _csv.c / pyexpat.c
Credits belong to Joseph Armbruster
Christian Heimes [Wed, 28 Nov 2007 10:04:30 +0000 (10:04 +0000)]
Merged revisions 59202-59211 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59203 | guido.van.rossum | 2007-11-27 23:38:36 +0100 (Tue, 27 Nov 2007) | 4 lines
Patch # 1507 by Mark Dickinson. Make complex(x, -0) retain the sign of
the imaginary part (as long as it's not complex).
Backport candidate?
........
r59204 | christian.heimes | 2007-11-28 00:16:44 +0100 (Wed, 28 Nov 2007) | 2 lines
Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504
Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
........
r59206 | christian.heimes | 2007-11-28 00:53:14 +0100 (Wed, 28 Nov 2007) | 1 line
I forgot to fix one occurence of new in test_descr
........
r59208 | christian.heimes | 2007-11-28 09:02:36 +0100 (Wed, 28 Nov 2007) | 1 line
Added py3kwarning to the documentation of the sys module.
........
Christian Heimes [Wed, 28 Nov 2007 09:55:49 +0000 (09:55 +0000)]
I forgot to remove the tests for new *blush*
Christian Heimes [Wed, 28 Nov 2007 09:44:38 +0000 (09:44 +0000)]
Added view and iterator types to collections / _abcoll
I've also renamed several of the iterators to keep a consistent naming schema.
Christian Heimes [Wed, 28 Nov 2007 08:28:28 +0000 (08:28 +0000)]
Removed the new module
Removed a lot of types from the 'types' module that are available through builtins.
Georg Brandl [Tue, 27 Nov 2007 23:48:05 +0000 (23:48 +0000)]
#1496: revert str.translate() to the old version, and add
str.maketrans() to make a table in a more comfortable way.
Christian Heimes [Tue, 27 Nov 2007 21:50:00 +0000 (21:50 +0000)]
Merged revisions 59193-59201 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59195 | facundo.batista | 2007-11-27 19:50:12 +0100 (Tue, 27 Nov 2007) | 4 lines
Moved the errno import from inside the functions to the
module level. Fixes issue
1755179.
........
r59199 | christian.heimes | 2007-11-27 22:28:40 +0100 (Tue, 27 Nov 2007) | 1 line
Backport of changes to PCbuild9 from the py3k branch
........
r59200 | christian.heimes | 2007-11-27 22:34:01 +0100 (Tue, 27 Nov 2007) | 1 line
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
........
r59201 | christian.heimes | 2007-11-27 22:35:44 +0100 (Tue, 27 Nov 2007) | 1 line
Added a deprecation warning to the 'new' module.
........
Georg Brandl [Tue, 27 Nov 2007 20:40:22 +0000 (20:40 +0000)]
Rewrap error message.
Christian Heimes [Tue, 27 Nov 2007 13:09:25 +0000 (13:09 +0000)]
Merged revisions 59187-59192 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59190 | thomas.heller | 2007-11-27 13:22:11 +0100 (Tue, 27 Nov 2007) | 3 lines
Remove unused global variable, and remove unneeded COMError.__str__
implementation in C.
........
Christian Heimes [Tue, 27 Nov 2007 13:05:10 +0000 (13:05 +0000)]
The changes to PyMethod_New and the removal of unbound methods breaks ctypes' COMError on Windows. This patch doesn't address the problem but re-enables the import of _ctypes until somebody has time to fix it right. I've no time to dig into it. Also see http://bugs.python.org/issue1505
Georg Brandl [Tue, 27 Nov 2007 12:43:08 +0000 (12:43 +0000)]
Futher update docs after unbound method removal.
Christian Heimes [Tue, 27 Nov 2007 10:40:20 +0000 (10:40 +0000)]
Removed the API to create unbound methods and simplified the API for bound methods. The signature is PyMethod_New(func, instance).
Also removed im_class and renamed im_self to __self__ and im_func to __func__. im_class can be substituted with method.__self__.__class__.
I've also updated some parts of the documenation.
Guido van Rossum [Mon, 26 Nov 2007 23:23:18 +0000 (23:23 +0000)]
Merged revisions 59107-59186 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
(Note: some conflicts in the PCbuild9 directory reverted. Sorry Christian!)
........
r59120 | christian.heimes | 2007-11-22 03:21:16 -0800 (Thu, 22 Nov 2007) | 3 lines
Backport of the PCbuild9 directory from the py3k branch.
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
........
r59126 | brett.cannon | 2007-11-22 16:06:51 -0800 (Thu, 22 Nov 2007) | 2 lines
Fix a bug in the test for using __loader__.get_data().
........
r59131 | christian.heimes | 2007-11-22 23:05:03 -0800 (Thu, 22 Nov 2007) | 1 line
Backport of PCbuild9 fixes from py3k r59130
........
r59132 | christian.heimes | 2007-11-23 01:10:36 -0800 (Fri, 23 Nov 2007) | 2 lines
Applied patch #
1754273 and #
1754271 from Thomas Glee
The patches are adding deprecation warnings for back ticks and <>
........
r59133 | christian.heimes | 2007-11-23 04:12:02 -0800 (Fri, 23 Nov 2007) | 2 lines
Fixed problems in the last commit. Filenames and line numbers weren't reported correctly.
Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name.
........
r59134 | christian.heimes | 2007-11-23 04:16:35 -0800 (Fri, 23 Nov 2007) | 1 line
How did the comment get there?
........
r59135 | christian.heimes | 2007-11-23 05:25:31 -0800 (Fri, 23 Nov 2007) | 1 line
And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.
........
r59136 | andrew.kuchling | 2007-11-23 05:37:39 -0800 (Fri, 23 Nov 2007) | 1 line
Add item
........
r59137 | skip.montanaro | 2007-11-23 09:08:35 -0800 (Fri, 23 Nov 2007) | 2 lines
Make trace and doctest play nice together (issue
1429818). Will backport.
........
r59139 | skip.montanaro | 2007-11-23 09:12:47 -0800 (Fri, 23 Nov 2007) | 1 line
issue
1429818
........
r59144 | facundo.batista | 2007-11-23 09:59:00 -0800 (Fri, 23 Nov 2007) | 10 lines
Major change in the internal structure of the Decimal
number: now it does not store the mantissa as a tuple
of numbers, but as a string.
This avoids a lot of conversions, and achieves a
speedup of 40%. The API remains intact.
Thanks Mark Dickinson.
........
r59146 | facundo.batista | 2007-11-23 10:14:50 -0800 (Fri, 23 Nov 2007) | 3 lines
Test cases from Cowlishaw, v2.57. All are pased cleanly.
........
r59156 | christian.heimes | 2007-11-23 17:36:02 -0800 (Fri, 23 Nov 2007) | 2 lines
Added filename to compiling struct based on Martin's suggestion.
I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious.
........
r59158 | christian.heimes | 2007-11-23 17:53:59 -0800 (Fri, 23 Nov 2007) | 2 lines
Backport of fixes from py3k branch
svn merge -r59131:HEAD ../../py3k/PCbuild9/ .
........
r59159 | skip.montanaro | 2007-11-23 20:29:08 -0800 (Fri, 23 Nov 2007) | 1 line
revert change that breaks test_doctest (which I forgot to run - sorry)
........
r59162 | skip.montanaro | 2007-11-23 20:31:15 -0800 (Fri, 23 Nov 2007) | 1 line
revert
........
r59164 | georg.brandl | 2007-11-24 03:31:46 -0800 (Sat, 24 Nov 2007) | 3 lines
#1344: document that you need to open std{in,out,err} with PIPE if you want
communicate() to work as described.
........
r59165 | georg.brandl | 2007-11-24 03:39:13 -0800 (Sat, 24 Nov 2007) | 2 lines
#1467: fix documentation for TestResult.add{Error,Failure}.
........
r59166 | georg.brandl | 2007-11-24 03:42:14 -0800 (Sat, 24 Nov 2007) | 2 lines
#1355: remove mention of PyXML from xml.dom docs.
........
r59169 | amaury.forgeotdarc | 2007-11-24 05:20:22 -0800 (Sat, 24 Nov 2007) | 2 lines
Warning "<> not supported in 3.x" should be enabled only when the -3 option is set.
........
r59170 | amaury.forgeotdarc | 2007-11-24 05:44:17 -0800 (Sat, 24 Nov 2007) | 3 lines
Issue #1445: Fix a SystemError when accessing the ``cell_contents``
attribute of an empty cell object. Now a ValueError is raised.
........
r59172 | georg.brandl | 2007-11-24 05:56:09 -0800 (Sat, 24 Nov 2007) | 3 lines
#
1735632: add O_NOATIME constant to os module.
Also document a few other O_ constants that were missing from documentation.
........
r59173 | skip.montanaro | 2007-11-24 06:30:47 -0800 (Sat, 24 Nov 2007) | 1 line
back in these go - thanks to Titus Brown for the fix
........
r59176 | martin.v.loewis | 2007-11-24 10:33:40 -0800 (Sat, 24 Nov 2007) | 2 lines
Bug #1494: Document that appendChild removes first.
........
r59186 | guido.van.rossum | 2007-11-26 14:16:49 -0800 (Mon, 26 Nov 2007) | 2 lines
A thread-less variant of brownian.py, submitted by Michele Simoniato.
........
Christian Heimes [Mon, 26 Nov 2007 10:14:51 +0000 (10:14 +0000)]
Minor cleanup
Christian Heimes [Sun, 25 Nov 2007 09:39:14 +0000 (09:39 +0000)]
Patch from Georg Brandl and me for #1493
Remove unbound method objects
Christian Heimes [Sun, 25 Nov 2007 09:18:01 +0000 (09:18 +0000)]
Fixed bug in input() which broke pdb
Georg Brandl [Sun, 25 Nov 2007 00:52:21 +0000 (00:52 +0000)]
#1479: Fix refleak in csv module (from rev 59062).
Georg Brandl [Sun, 25 Nov 2007 00:45:05 +0000 (00:45 +0000)]
#1480: fix refleak in the sqlite module.
It came from rev 58682. The reason is that PyString_Concat
and PyUnicode_Concat work differently -- the equivalent to
PyString_Concat is PyUnicode_Append.
Georg Brandl [Sun, 25 Nov 2007 00:31:12 +0000 (00:31 +0000)]
Remove unused variable.
Georg Brandl [Sat, 24 Nov 2007 20:42:02 +0000 (20:42 +0000)]
Use proper API for iter.__next__().
Christian Heimes [Sat, 24 Nov 2007 12:40:29 +0000 (12:40 +0000)]
Added a simple helper script to build the dependencies of _tkinter.
Christian Heimes [Sat, 24 Nov 2007 05:50:35 +0000 (05:50 +0000)]
Updated readme.txt
Added user macro for tcltk 64bit directory
Redone some changes to the ssl project. From now on the _ssl project depends on a 32bit build of Python to aid cross compiling on a 32bit OS.
Christian Heimes [Sat, 24 Nov 2007 01:52:19 +0000 (01:52 +0000)]
Fixed a newline problem
Amaury Forgeot d'Arc [Sat, 24 Nov 2007 00:29:24 +0000 (00:29 +0000)]
fix #1409: cell variables were not initialized,
when the value comes from a keyword-only parameter.
Guido van Rossum [Fri, 23 Nov 2007 21:26:49 +0000 (21:26 +0000)]
Open output files in text mode, after all they are text files.
(Binary mode caused problems when "python" was 3.0.)
Christian Heimes [Fri, 23 Nov 2007 17:34:49 +0000 (17:34 +0000)]
Paul had the great idea to add /DNO_TCL to the pre-build step.
Christian Heimes [Fri, 23 Nov 2007 17:32:38 +0000 (17:32 +0000)]
Implemented request from Marc-Andre Lemburg
For license reasons Python must not ship with IDEA, RC5 and MDC2. The latter are disabled by default but IDEA is enabled by default.
Christian Heimes [Fri, 23 Nov 2007 07:03:16 +0000 (07:03 +0000)]
Added code to pre-generate makefiles and assembly files to build_ssl.py
Fixed bug #1488 in my way.
Christian Heimes [Fri, 23 Nov 2007 06:52:42 +0000 (06:52 +0000)]
Cleanup
Removed unreferenced variable
Amaury Forgeot d'Arc [Thu, 22 Nov 2007 21:42:04 +0000 (21:42 +0000)]
Just inline a function, and discover that it can only raise an exception.
Next step: should PyString_AsStringAndSize accept buffer objects?
Amaury Forgeot d'Arc [Thu, 22 Nov 2007 21:33:52 +0000 (21:33 +0000)]
Stream functions like read() are supposed to return bytes, not buffer.
Now multibytecodec directly works with PyStrings, and disallow PyBytes.
Amaury Forgeot d'Arc [Thu, 22 Nov 2007 20:53:01 +0000 (20:53 +0000)]
Problem found while converting from PyBytes to PyString:
Re-enable (and correct) a test for the BOM at the beginning of a code unit.
And properly "unget" characters when the BOM is incomplete.
Georg Brandl [Thu, 22 Nov 2007 14:16:00 +0000 (14:16 +0000)]
Fix, thanks to Nick.
Georg Brandl [Thu, 22 Nov 2007 11:00:28 +0000 (11:00 +0000)]
Update docs for buffer -> bytearray rename.
Christian Heimes [Thu, 22 Nov 2007 10:32:15 +0000 (10:32 +0000)]
Revert change of bz2.vcproj
Christian Heimes [Thu, 22 Nov 2007 10:25:50 +0000 (10:25 +0000)]
Fixed PGO builds
The intermediate PG instrument build now lands in Platform-pgi and the final optimized build in Platform-pgo.
Walter Dörwald [Thu, 22 Nov 2007 09:38:52 +0000 (09:38 +0000)]
Use PyString instead of PyBytes in wrap_strftime().
Christian Heimes [Thu, 22 Nov 2007 07:46:41 +0000 (07:46 +0000)]
Removed blocks from several functions in unicodeobject and stringobject where a PyString function was still checking for PyUnicode or the other way around.
PyUnicode and PyString shouldn't magically convert the other type.
Christian Heimes [Thu, 22 Nov 2007 07:43:40 +0000 (07:43 +0000)]
os.environ contains PyUnicode instances and not PyString instances
Christian Heimes [Thu, 22 Nov 2007 05:56:35 +0000 (05:56 +0000)]
Removed some leftovers from the str8 days
Amaury Forgeot d'Arc [Thu, 22 Nov 2007 02:55:35 +0000 (02:55 +0000)]
Typo in bytes.replace(): the buffer interface was always used.
Amaury Forgeot d'Arc [Thu, 22 Nov 2007 02:48:12 +0000 (02:48 +0000)]
PyString_AsString is permissive and accepts unicode strings.
Replace it with PyUnicode_AsString when the argument is known to be a str.
Amaury Forgeot d'Arc [Thu, 22 Nov 2007 01:09:33 +0000 (01:09 +0000)]
In audioop, return PyString instead of PyBytes.
Guido van Rossum [Thu, 22 Nov 2007 01:00:52 +0000 (01:00 +0000)]
Merged revisions 59105-59106 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r59106 | guido.van.rossum | 2007-11-21 16:55:51 -0800 (Wed, 21 Nov 2007) | 3 lines
Backport of _abccoll.py by Benjamin Arangueren, issue 1383.
With some changes of my own thrown in (e.g. backport of r58107).
........