Christian Heimes
3305c52de7
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.
2007-12-03 13:47:29 +00:00
Nick Coghlan
ef01d822aa
Implement PEP 366
2007-12-03 12:55:17 +00:00
Georg Brandl
f19b951126
Add documentation for PySys_* functions.
...
Written by Charlie Shepherd for GHOP. Also fixes #1245 .
2007-12-02 21:58:54 +00:00
Georg Brandl
968a3e570d
Fix a sentence I missed before. Do not merge to 3k.
2007-12-02 18:17:50 +00:00
Georg Brandl
584265b001
Add more entries to the glossary.
...
Written by Jeff Wheeler for GHOP.
2007-12-02 14:58:50 +00:00
Georg Brandl
b15a8df519
Convert bdb.rst line endings to Unix style.
2007-12-02 14:37:29 +00:00
Georg Brandl
fefcd4ec40
Add example to mmap docs.
...
Written for GHOP by Rafal Rawicki.
2007-12-02 14:34:34 +00:00
Georg Brandl
87983f24cf
Add "Using Python on Windows" document, by Robert Lehmann.
...
Written for GHOP.
2007-12-01 23:12:45 +00:00
Georg Brandl
39bd059e42
Add examples to the ElementTree documentation.
...
Written by h4wk.cz for GHOP.
2007-12-01 22:42:46 +00:00
Georg Brandl
e4317fade8
Add test suite for cmd module.
...
Written by Michael Schneider for GHOP.
2007-12-01 22:38:48 +00:00
Georg Brandl
ebb035ef29
Add a few refcount data entries.
2007-12-01 22:27:56 +00:00
Georg Brandl
16f1df91ce
Document PyEval_* functions from ceval.c.
...
Credits to Michael Sloan from GHOP.
2007-12-01 22:24:47 +00:00
Lars Gustäbel
77b2d63b40
Issue #1531 : Read fileobj from the current offset, do not seek to
...
the start.
(will backport to 2.5)
2007-12-01 21:02:12 +00:00
Christian Heimes
3e76d9346b
Added one more missing versionadded tag
2007-12-01 15:40:22 +00:00
Georg Brandl
861320d5a7
Add versionadded tags missing in r59254. Do NOT merge to Py3k.
2007-12-01 13:23:04 +00:00
Christian Heimes
dfdfaab1c5
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.
2007-12-01 11:20:10 +00:00
Christian Heimes
9f6d4ceb43
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.
2007-12-01 01:03:20 +00:00
Christian Heimes
6b29dd05c8
Backport of -r59242:59246 from py3k
...
Fixed problem with regrtest caused by the additional of objects to _abcoll.
2007-11-30 22:36:10 +00:00
Georg Brandl
81ddc1a69b
Move lchmod() docs to correct place, and add versionadded tags.
2007-11-30 22:04:45 +00:00
Christian Heimes
3628187b66
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.
2007-11-30 21:11:28 +00:00
Amaury Forgeot d'Arc
dafd32b730
Issue #1521 : on 64bit platforms, str.decode fails on very long strings.
...
The t# and w# formats were not correctly handled.
Will backport.
2007-11-30 20:51:40 +00:00
Amaury Forgeot d'Arc
be49a90eb3
Add a NEWS entry for r59231
2007-11-30 20:37:22 +00:00
Christian Heimes
3971f6b8fb
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
2007-11-30 19:18:08 +00:00
Facundo Batista
0d157a0154
Reordering of __new__ to minimize isinstance() calls to most
...
used types. Thanks Mark Dickinson.
2007-11-30 17:15:25 +00:00
Amaury Forgeot d'Arc
025c347d61
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.
2007-11-29 23:35:25 +00:00
Georg Brandl
82225b7737
Add more examples to the wsgiref docs.
...
From GHOP by Josip Dzolonga.
2007-11-29 23:00:03 +00:00
Amaury Forgeot d'Arc
59c1b41f54
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.
2007-11-29 20:24:36 +00:00
Georg Brandl
ede3a3218e
Spaces vs. Tabs.
2007-11-29 18:33:01 +00:00
Guido van Rossum
31645ba4a0
Fix bug #1517 , a segfault in lookdict().
2007-11-29 18:25:12 +00:00
Georg Brandl
430e3620b6
Add examples to the ConfigParser documentation.
...
Credits go to Thomas Lamb, who wrote this as a task in the GHOP contest.
2007-11-29 17:02:34 +00:00
Georg Brandl
9d83daa03d
Fix reference target.
2007-11-29 17:01:20 +00:00
Christian Heimes
d7b333779a
Added py3kwarning to the documentation of the sys module.
2007-11-28 08:02:36 +00:00
Christian Heimes
636afc52c0
I forgot to fix one occurence of new in test_descr
2007-11-27 23:53:14 +00:00
Christian Heimes
28104c58d2
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.
2007-11-27 23:16:44 +00:00
Guido van Rossum
715ec1818d
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?
2007-11-27 22:38:36 +00:00
Christian Heimes
b61a1f5219
Added a deprecation warning to the 'new' module.
2007-11-27 21:35:44 +00:00
Christian Heimes
c756d00cf2
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
2007-11-27 21:34:01 +00:00
Christian Heimes
8b01140d2c
Backport of changes to PCbuild9 from the py3k branch
2007-11-27 21:28:40 +00:00
Facundo Batista
2ffd780858
Moved the errno import from inside the functions to the
...
module level. Fixes issue 1755179.
2007-11-27 18:50:12 +00:00
Thomas Heller
8fc2a34014
Remove unused global variable, and remove unneeded COMError.__str__
...
implementation in C.
2007-11-27 12:22:11 +00:00
Guido van Rossum
41f039292f
A thread-less variant of brownian.py, submitted by Michele Simoniato.
2007-11-26 22:16:49 +00:00
Martin v. Löwis
c8dfd588c2
Bug #1494 : Document that appendChild removes first.
2007-11-24 18:33:40 +00:00
Skip Montanaro
58a6f446db
back in these go - thanks to Titus Brown for the fix
2007-11-24 14:30:47 +00:00
Georg Brandl
b67da6ed2b
#1735632 : add O_NOATIME constant to os module.
...
Also document a few other O_ constants that were missing from documentation.
2007-11-24 13:56:09 +00:00
Amaury Forgeot d'Arc
ce7d10ccc4
Issue #1445 : Fix a SystemError when accessing the ``cell_contents``
...
attribute of an empty cell object. Now a ValueError is raised.
2007-11-24 13:44:17 +00:00
Amaury Forgeot d'Arc
6dae85f409
Warning "<> not supported in 3.x" should be enabled only when the -3 option is set.
2007-11-24 13:20:22 +00:00
Georg Brandl
f8b6abd972
#1355 : remove mention of PyXML from xml.dom docs.
2007-11-24 11:42:14 +00:00
Georg Brandl
586edab279
#1467 : fix documentation for TestResult.add{Error,Failure}.
2007-11-24 11:39:13 +00:00
Georg Brandl
439f250c00
#1344 : document that you need to open std{in,out,err} with PIPE if you want
...
communicate() to work as described.
2007-11-24 11:31:46 +00:00
Skip Montanaro
98f4079fa0
revert
2007-11-24 04:31:15 +00:00