]> granicus.if.org Git - python/log
python
18 years agoUpdated the sqlite3 module to the external pysqlite 2.2.2 version.
Gerhard Häring [Sun, 23 Apr 2006 15:24:26 +0000 (15:24 +0000)]
Updated the sqlite3 module to the external pysqlite 2.2.2 version.

18 years agoUpdate contextlib documentation to use the same terminology as the module implementation
Nick Coghlan [Sun, 23 Apr 2006 15:14:37 +0000 (15:14 +0000)]
Update contextlib documentation to use the same terminology as the module implementation

18 years agoAdd a Context Types section to parallel the Iterator Types section (uses the same...
Nick Coghlan [Sun, 23 Apr 2006 15:13:32 +0000 (15:13 +0000)]
Add a Context Types section to parallel the Iterator Types section (uses the same terminology as the 2.5a1 implementation)

18 years agoPatch 1471761 - test for broken poll at runtime
Ronald Oussoren [Sun, 23 Apr 2006 12:36:23 +0000 (12:36 +0000)]
Patch 1471761 - test for broken poll at runtime

This patch checks if poll is broken when the select module is loaded instead
of doing so at configure-time. This functionality is only active on Mac OS X.

18 years agoPatch 1471925 - Weak linking support for OSX
Ronald Oussoren [Sun, 23 Apr 2006 11:59:25 +0000 (11:59 +0000)]
Patch 1471925 - Weak linking support for OSX

This patch causes several symbols in the socket and posix module to be weakly
linked on OSX and disables usage of ftime on OSX. These changes make it possible
to use a binary build on OSX 10.4 on a 10.3 system.

18 years agowrap SyntaxError with \exception{}
George Yoshida [Sun, 23 Apr 2006 09:27:10 +0000 (09:27 +0000)]
wrap SyntaxError with \exception{}

18 years agoUpdate optparse to Optik 1.5.1.
Greg Ward [Sun, 23 Apr 2006 03:47:58 +0000 (03:47 +0000)]
Update optparse to Optik 1.5.1.

18 years agoRemove $CJKCodecs$ RCS tags. The CJKCodecs isn't maintained outside
Hye-Shik Chang [Sat, 22 Apr 2006 15:48:15 +0000 (15:48 +0000)]
Remove $CJKCodecs$ RCS tags.  The CJKCodecs isn't maintained outside
anymore.

18 years ago- add versionadded tag
George Yoshida [Sat, 22 Apr 2006 15:27:14 +0000 (15:27 +0000)]
- add versionadded tag
- make arbitrary arguments come last

18 years agoPort to Python 2.5. Drop .DEF file. Change output file names to .pyd.
Martin v. Löwis [Sat, 22 Apr 2006 15:19:54 +0000 (15:19 +0000)]
Port to Python 2.5. Drop .DEF file. Change output file names to .pyd.

18 years agoTypo fixes
George Yoshida [Sat, 22 Apr 2006 15:10:49 +0000 (15:10 +0000)]
Typo fixes

18 years agoFix more ssize_t issues.
Martin v. Löwis [Sat, 22 Apr 2006 11:40:03 +0000 (11:40 +0000)]
Fix more ssize_t issues.

18 years agoFix more ssize_t problems.
Martin v. Löwis [Sat, 22 Apr 2006 11:15:41 +0000 (11:15 +0000)]
Fix more ssize_t problems.

18 years agoAdd libctypes as a dep
Neal Norwitz [Sat, 22 Apr 2006 06:07:46 +0000 (06:07 +0000)]
Add libctypes as a dep

18 years agoWhitespace normalization.
Tim Peters [Sat, 22 Apr 2006 05:52:59 +0000 (05:52 +0000)]
Whitespace normalization.

18 years agoAdd Gregory K. Johnson's revised version of mailbox.py (funded by
Andrew M. Kuchling [Sat, 22 Apr 2006 02:32:43 +0000 (02:32 +0000)]
Add Gregory K. Johnson's revised version of mailbox.py (funded by
the 2005 Summer of Code).

The revision adds a number of new mailbox classes that support adding
and removing messages; these classes also support mailbox locking and
default to using email.Message instead of rfc822.Message.

The old mailbox classes are largely left alone for backward compatibility.
The exception is the Maildir class, which was present in the old module
and now inherits from the new classes.  The Maildir class's interface
is pretty simple, though, so I think it'll be compatible with existing
code.

(The change to the NEWS file also adds a missing word to a different
news item, which unfortunately required rewrapping the line.)

18 years agoMake copy of test_mailbox.py. We'll still want to check the backward
Andrew M. Kuchling [Sat, 22 Apr 2006 02:06:03 +0000 (02:06 +0000)]
Make copy of test_mailbox.py.  We'll still want to check the backward
compatibility classes in the new mailbox.py that I'll be committing in
a few minutes.

One change has been made: the tests use len(mbox) instead of len(mbox.boxes).
The 'boxes' attribute was never documented and contains some internal state
that seems unlikely to have been useful.

18 years agoFix comment typo
Andrew M. Kuchling [Sat, 22 Apr 2006 01:58:40 +0000 (01:58 +0000)]
Fix comment typo

18 years agoTypo fixes
Andrew M. Kuchling [Sat, 22 Apr 2006 01:51:41 +0000 (01:51 +0000)]
Typo fixes

18 years agoGuido wrote contextlib, not me, but thanks anyway. ;)
Phillip J. Eby [Fri, 21 Apr 2006 21:53:37 +0000 (21:53 +0000)]
Guido wrote contextlib, not me, but thanks anyway.  ;)

18 years agoSF bug #1473760 TempFile can hang on Windows.
Tim Peters [Fri, 21 Apr 2006 21:18:10 +0000 (21:18 +0000)]
SF bug #1473760 TempFile can hang on Windows.

Python 2.4 changed ntpath.abspath to do an import
inside the function.  As a result, due to Python's
import lock, anything calling abspath on Windows
(directly, or indirectly like tempfile.TemporaryFile)
hung when it was called from a thread spawned as a
side effect of importing a module.

This is a depressingly frequent problem, and
deserves a more general fix.  I'm settling for
a micro-fix here because this specific one accounts
for a report of Zope Corp's ZEO hanging on Windows,
and it was an odd way to change abspath to begin
with (ntpath needs a different implementation
depending on whether we're actually running on
Windows, and the _obvious_ way to arrange for that
is not to bury a possibly-failing import _inside_
the function).

Note that if/when other micro-fixes of this kind
get made, the new Lib/test/threaded_import_hangers.py
is a convenient place to add tests for them.

18 years agoDocumentation for ctypes.
Thomas Heller [Fri, 21 Apr 2006 18:29:17 +0000 (18:29 +0000)]
Documentation for ctypes.
I think that 'generic operating system services' is the best category.
Note that the Doc/lib/libctypes.latex file is generated from reST sources.
You are welcome to make typo fixes, and I'll try to keep the reST sources
in sync, but markup changes would be lost - they should be fixed in the tool
that creates the latex file.
The conversion script is external/ctypes/docs/manual/mkpydoc.py.

18 years agoMerge in changes from ctypes 0.9.9.6 upstream version.
Thomas Heller [Fri, 21 Apr 2006 16:51:04 +0000 (16:51 +0000)]
Merge in changes from ctypes 0.9.9.6 upstream version.

18 years agoMerge in changes from ctypes 0.9.9.6 upstream version.
Thomas Heller [Fri, 21 Apr 2006 16:48:56 +0000 (16:48 +0000)]
Merge in changes from ctypes 0.9.9.6 upstream version.

18 years agoWhitespace normalization.
Tim Peters [Fri, 21 Apr 2006 16:34:54 +0000 (16:34 +0000)]
Whitespace normalization.

18 years agoCorrect the grammar
George Yoshida [Fri, 21 Apr 2006 16:34:17 +0000 (16:34 +0000)]
Correct the grammar

18 years agoBackport p3yk r45619:
Hye-Shik Chang [Fri, 21 Apr 2006 16:28:34 +0000 (16:28 +0000)]
Backport p3yk r45619:

Add empty __init__ methods for stateful multibytecodec instances.
This resolves a problem found by Thomas Wouters:
http://mail.python.org/pipermail/python-dev/2006-April/064051.html

18 years agoFix a markup.
George Yoshida [Fri, 21 Apr 2006 16:21:12 +0000 (16:21 +0000)]
Fix a markup.
This generated a ugly code, "P>".

18 years agoPy_ssize_t issue; repr()'ing a very large string would result in a teensy
Thomas Wouters [Fri, 21 Apr 2006 13:54:43 +0000 (13:54 +0000)]
Py_ssize_t issue; repr()'ing a very large string would result in a teensy
string, because of a cast to int.

18 years agoUpgrade to vsextcomp 0.8 (and thus the SDK for W2k3SP1)
Martin v. Löwis [Fri, 21 Apr 2006 13:48:26 +0000 (13:48 +0000)]
Upgrade to vsextcomp 0.8 (and thus the SDK for W2k3SP1)

18 years agoAdd item
Andrew M. Kuchling [Fri, 21 Apr 2006 13:26:42 +0000 (13:26 +0000)]
Add item

18 years agoAdd \label to make better HTML filenames
Andrew M. Kuchling [Fri, 21 Apr 2006 13:08:02 +0000 (13:08 +0000)]
Add \label to make better HTML filenames

18 years agoAdd two items; typographical improvement for the 'with' statement; minor edits
Andrew M. Kuchling [Fri, 21 Apr 2006 13:01:45 +0000 (13:01 +0000)]
Add two items; typographical improvement for the 'with' statement; minor edits

18 years agoTypo, grammar fixes. This file could use another proofreading pass.
Andrew M. Kuchling [Fri, 21 Apr 2006 12:58:30 +0000 (12:58 +0000)]
Typo, grammar fixes.  This file could use another proofreading pass.

18 years agoAdd TODO item
Andrew M. Kuchling [Fri, 21 Apr 2006 12:57:58 +0000 (12:57 +0000)]
Add TODO item

18 years agoAdd explanatory message
Andrew M. Kuchling [Fri, 21 Apr 2006 12:57:35 +0000 (12:57 +0000)]
Add explanatory message

18 years agoTypo fixes
Andrew M. Kuchling [Fri, 21 Apr 2006 12:38:41 +0000 (12:38 +0000)]
Typo fixes

18 years agoFix variable/format-char discrepancy in new-style class __getitem__,
Thomas Wouters [Fri, 21 Apr 2006 11:26:56 +0000 (11:26 +0000)]
Fix variable/format-char discrepancy in new-style class __getitem__,
__delitem__, __setslice__ and __delslice__ hooks. This caused test_weakref
and test_userlist to fail in the p3yk branch (where UserList, like all
classes, is new-style) on amd64 systems, with open-ended slices: the
sys.maxint value for empty-endpoint was transformed into -1.

18 years agoPackage setuptools
Martin v. Löwis [Fri, 21 Apr 2006 10:00:46 +0000 (10:00 +0000)]
Package setuptools

18 years agoAllow pstats.Stats creator to specify an alternate to stdout.
Skip Montanaro [Fri, 21 Apr 2006 02:31:07 +0000 (02:31 +0000)]
Allow pstats.Stats creator to specify an alternate to stdout.

18 years agoThis is a long-ago patch I submitted to SF (1100924) to time the gc passes.
Skip Montanaro [Fri, 21 Apr 2006 01:33:40 +0000 (01:33 +0000)]
This is a long-ago patch I submitted to SF (1100924) to time the gc passes.
Barry approved it awhile ago.  Been sitting in my sandbox for awhile as
well.

18 years ago- tp_init shouldn't call base class tp_init by default
Jack Jansen [Thu, 20 Apr 2006 21:38:17 +0000 (21:38 +0000)]
- tp_init shouldn't call base class tp_init by default
- tp_new (which was apparently always overridden:-) called base class
  tp_init in stead of tp_new.

18 years agoChange a footnote to a parenthetical (in two senses) paragraph
Andrew M. Kuchling [Thu, 20 Apr 2006 13:43:21 +0000 (13:43 +0000)]
Change a footnote to a parenthetical (in two senses) paragraph

18 years agoArgh, make another markup fix
Andrew M. Kuchling [Thu, 20 Apr 2006 13:39:40 +0000 (13:39 +0000)]
Argh, make another markup fix

18 years agoMarkup fix
Andrew M. Kuchling [Thu, 20 Apr 2006 13:38:36 +0000 (13:38 +0000)]
Markup fix

18 years agoAdd some items; add "New module" consistently; make contextlib.closing example more...
Andrew M. Kuchling [Thu, 20 Apr 2006 13:36:06 +0000 (13:36 +0000)]
Add some items; add "New module" consistently; make contextlib.closing example more interesting and more correct (thanks Gustavo!); add a name

18 years agoAddress issues brought up by MvL on python-checkins.
Neal Norwitz [Thu, 20 Apr 2006 06:56:05 +0000 (06:56 +0000)]
Address issues brought up by MvL on python-checkins.
I tested this with valgrind on amd64.

The man pages I found for diff architectures are inconsistent on this.
I'm not entirely sure this change is correct for all architectures either.

Perhaps we should just over-allocate and not worry about it?

18 years agoWhitespace, fix indentation
Neal Norwitz [Thu, 20 Apr 2006 06:44:42 +0000 (06:44 +0000)]
Whitespace, fix indentation

18 years agoDocument r43622.
Martin v. Löwis [Thu, 20 Apr 2006 04:54:23 +0000 (04:54 +0000)]
Document r43622.

18 years agoCorrect implementation and documentation of os.confstr. Add a simple test
Skip Montanaro [Thu, 20 Apr 2006 01:29:48 +0000 (01:29 +0000)]
Correct implementation and documentation of os.confstr.  Add a simple test
case.  I've yet to figure out how to provoke a None return I can test.

18 years agoAdd news item for pybench addition.
Marc-André Lemburg [Wed, 19 Apr 2006 15:48:59 +0000 (15:48 +0000)]
Add news item for pybench addition.

18 years agoMake s.replace() work with explicit counts exceeding 2Gb.
Thomas Wouters [Wed, 19 Apr 2006 15:38:01 +0000 (15:38 +0000)]
Make s.replace() work with explicit counts exceeding 2Gb.

18 years agoAdding pybench 1.3 to the Tools/ directory.
Marc-André Lemburg [Wed, 19 Apr 2006 15:27:33 +0000 (15:27 +0000)]
Adding pybench 1.3 to the Tools/ directory.

18 years agoTeach Python/ceval.c's inlining of 'str += str' about Py_ssize_t sizes; this
Thomas Wouters [Wed, 19 Apr 2006 15:09:44 +0000 (15:09 +0000)]
Teach Python/ceval.c's inlining of 'str += str' about Py_ssize_t sizes; this
was having funny effects when called on >2Gb strings ;P

18 years agoUse Py_ssize_t to hold the 'width' argument to the ljust, rjust, center and
Thomas Wouters [Wed, 19 Apr 2006 14:50:15 +0000 (14:50 +0000)]
Use Py_ssize_t to hold the 'width' argument to the ljust, rjust, center and
zfill stringmethods, so they can create strings larger than 2Gb on 64bit
systems (even win64.) The unicode versions of these methods already did this
right.

18 years agoWrite datetime.strptime() item; show use of @contextmanager in defining __context__...
Andrew M. Kuchling [Wed, 19 Apr 2006 12:55:39 +0000 (12:55 +0000)]
Write datetime.strptime() item; show use of @contextmanager in defining __context__ methods; minor edits; add two names

18 years agoSF Patch #1062014: AF_UNIX sockets under Linux have a special
Armin Rigo [Wed, 19 Apr 2006 11:50:27 +0000 (11:50 +0000)]
SF Patch #1062014: AF_UNIX sockets under Linux have a special
abstract namespace that is now fully supported.

18 years agoAdded a pycremoval rule. Called by clean, it removes all .pyc and .pyo files.
Brett Cannon [Tue, 18 Apr 2006 23:58:52 +0000 (23:58 +0000)]
Added a pycremoval rule.  Called by clean, it removes all .pyc and .pyo files.
Handy to have as a separate rule from clean when mucking around with bytecode
generation.

18 years agoAdd proper svn magic to ignore .pyc/.pyo files in Lib/setuptools (and
Thomas Wouters [Tue, 18 Apr 2006 23:04:00 +0000 (23:04 +0000)]
Add proper svn magic to ignore .pyc/.pyo files in Lib/setuptools (and
subdirs) like it already exists for the other Lib subdirs.

18 years agoRename remaining StgDictObject's ffi_type fields to ffi_type_pointer.
Thomas Heller [Tue, 18 Apr 2006 20:09:27 +0000 (20:09 +0000)]
Rename remaining StgDictObject's ffi_type fields to ffi_type_pointer.

18 years agoC++ compiler cleanup: the typical few casts, and ... C++ didn't like that
Skip Montanaro [Tue, 18 Apr 2006 19:45:17 +0000 (19:45 +0000)]
C++ compiler cleanup: the typical few casts, and ...  C++ didn't like that
the StgDictObject's ffi_type member had the same name as its type.  I
changed that to ffi_type_pointer.  Feel free to change it to something else
more meaningful, just not ffi_type.

18 years agoC++ compiler cleanup: a cast here, a cast there... still does not compile under C...
Skip Montanaro [Tue, 18 Apr 2006 19:39:48 +0000 (19:39 +0000)]
C++ compiler cleanup: a cast here, a cast there... still does not compile under C++ though...

18 years agoC++ compiler cleanup: "typename" is a C++ keyword
Skip Montanaro [Tue, 18 Apr 2006 19:35:04 +0000 (19:35 +0000)]
C++ compiler cleanup: "typename" is a C++ keyword

18 years agoChange those parts of the Python-api that were functions in 2.4, and
Thomas Heller [Tue, 18 Apr 2006 18:51:06 +0000 (18:51 +0000)]
Change those parts of the Python-api that were functions in 2.4, and
are now macros to exported functions again.

Fixes [ 1465834 ] bdist_wininst preinstall script support is broken in 2.5a1.

18 years agoWhilespace normalization (reindint.py).
Tim Peters [Tue, 18 Apr 2006 17:32:12 +0000 (17:32 +0000)]
Whilespace normalization (reindint.py).

18 years agoadd info re: pydoc, pkgutil, and setuptools additions
Phillip J. Eby [Tue, 18 Apr 2006 16:45:14 +0000 (16:45 +0000)]
add info re: pydoc, pkgutil, and setuptools additions

18 years agofix typo
George Yoshida [Tue, 18 Apr 2006 16:18:15 +0000 (16:18 +0000)]
fix typo

18 years agoSplit ``get_platform()`` into ``get_supported_platform()`` and
Phillip J. Eby [Tue, 18 Apr 2006 15:30:05 +0000 (15:30 +0000)]
Split ``get_platform()`` into ``get_supported_platform()`` and
``get_build_platform()`` to work around a Mac versioning problem that caused
the behavior of ``compatible_platforms()`` to be platform specific.

18 years agoFix refcounting.
Thomas Heller [Tue, 18 Apr 2006 14:57:39 +0000 (14:57 +0000)]
Fix refcounting.
This makes 'import ctypes; reload(ctypes)' no longer leak reference counts.

18 years agoRefactor: Move code that uses co_lnotab from ceval to codeobject
Jeremy Hylton [Tue, 18 Apr 2006 14:47:00 +0000 (14:47 +0000)]
Refactor: Move code that uses co_lnotab from ceval to codeobject

18 years agoTypo fix
Andrew M. Kuchling [Tue, 18 Apr 2006 14:04:57 +0000 (14:04 +0000)]
Typo fix

18 years agoA dictresize() attack. If oldtable == mp->ma_smalltable then pure
Armin Rigo [Tue, 18 Apr 2006 14:00:01 +0000 (14:00 +0000)]
A dictresize() attack.  If oldtable == mp->ma_smalltable then pure
Python code can mangle with mp->ma_smalltable while it is being walked
over.

18 years agoadd a very old crasher from the 2.1 -> 2.2 round of dictionary fixes.
Michael W. Hudson [Tue, 18 Apr 2006 13:52:32 +0000 (13:52 +0000)]
add a very old crasher from the 2.1 -> 2.2 round of dictionary fixes.

18 years agoAdd item
Andrew M. Kuchling [Tue, 18 Apr 2006 12:38:19 +0000 (12:38 +0000)]
Add item

18 years agoC++ compiler cleanup: proper casts
Skip Montanaro [Tue, 18 Apr 2006 11:53:09 +0000 (11:53 +0000)]
C++ compiler cleanup: proper casts

18 years agoComment typo fix
Andrew M. Kuchling [Tue, 18 Apr 2006 11:49:53 +0000 (11:49 +0000)]
Comment typo fix

18 years agoRemove types from type_list if they have no objects
Martin v. Löwis [Tue, 18 Apr 2006 06:24:08 +0000 (06:24 +0000)]
Remove types from type_list if they have no objects
and unlist_types_without_objects is set.
Give dump_counts a FILE* argument.

18 years agoWhitespace normalization
Neal Norwitz [Tue, 18 Apr 2006 04:53:28 +0000 (04:53 +0000)]
Whitespace normalization

18 years agoIt's probably a good idea to actually *install* setuptools, too. ;)
Phillip J. Eby [Tue, 18 Apr 2006 04:34:50 +0000 (04:34 +0000)]
It's probably a good idea to actually *install* setuptools, too.  ;)

18 years agoHandle easy_install being run via -m with no __file__ if done from a
Phillip J. Eby [Tue, 18 Apr 2006 04:31:46 +0000 (04:31 +0000)]
Handle easy_install being run via -m with no __file__ if done from a
zipfile.

18 years agoInitial import of setuptools, with integrated tests.
Phillip J. Eby [Tue, 18 Apr 2006 04:05:34 +0000 (04:05 +0000)]
Initial import of setuptools, with integrated tests.

18 years agoFinally figured out why this module did its imports at the
Tim Peters [Tue, 18 Apr 2006 03:28:32 +0000 (03:28 +0000)]
Finally figured out why this module did its imports at the
bottom of the file.  Restored that, and added a comment
explaining why this is necessary.  Hint:  on my box, and
yours, it's not :-(

Also added an __all__ list.

18 years agoAt least test_threading_local doesn't leak any more.
Tim Peters [Tue, 18 Apr 2006 03:02:10 +0000 (03:02 +0000)]
At least test_threading_local doesn't leak any more.

18 years agotest_pyclbr goes nuts when a module contains code to try importing a class
Phillip J. Eby [Tue, 18 Apr 2006 01:39:25 +0000 (01:39 +0000)]
test_pyclbr goes nuts when a module contains code to try importing a class
and provide a substitute if the import fails, because pyclbr sees the
class definition.  Changed to ignore such cases' base classes and methods,
since they will not match.

18 years agocorrect function signature
Skip Montanaro [Tue, 18 Apr 2006 01:01:41 +0000 (01:01 +0000)]
correct function signature

18 years agoSecond phase of refactoring for runpy, pkgutil, pydoc, and setuptools
Phillip J. Eby [Tue, 18 Apr 2006 00:59:55 +0000 (00:59 +0000)]
Second phase of refactoring for runpy, pkgutil, pydoc, and setuptools
to share common PEP 302 support code, as described here:

http://mail.python.org/pipermail/python-dev/2006-April/063724.html

pydoc now supports PEP 302 importers, by way of utility functions in
pkgutil, such as 'walk_packages()'.  It will properly document
modules that are in zip files, and is backward compatible to Python
2.3 (setuptools installs for Python <2.5 will bundle it so pydoc
doesn't break when used with eggs.)

What has not changed is that pydoc command line options do not support
zip paths or other importer paths, and the webserver index does not
support sys.meta_path.  Those are probably okay as limitations.

Tasks remaining: write docs and Misc/NEWS for pkgutil/pydoc changes,
and update setuptools to use pkgutil wherever possible, then add it
to the stdlib.

18 years agoC++ compiler cleanup: cast...
Skip Montanaro [Tue, 18 Apr 2006 00:57:15 +0000 (00:57 +0000)]
C++ compiler cleanup: cast...

18 years agoC++ compiler cleanup: extern "C" a couple declarations, cast int to size_t
Skip Montanaro [Tue, 18 Apr 2006 00:55:46 +0000 (00:55 +0000)]
C++ compiler cleanup: extern "C" a couple declarations, cast int to size_t

18 years agoC++ compiler cleanup: migrate to modsupport.h
Skip Montanaro [Tue, 18 Apr 2006 00:53:48 +0000 (00:53 +0000)]
C++ compiler cleanup: migrate to modsupport.h

18 years agoC++ compiler cleanup: cast signed to unsigned
Skip Montanaro [Tue, 18 Apr 2006 00:53:06 +0000 (00:53 +0000)]
C++ compiler cleanup: cast signed to unsigned

18 years agoreset errno before calling confstr - use confstr() doc to simplify checks afterwards
Skip Montanaro [Tue, 18 Apr 2006 00:49:49 +0000 (00:49 +0000)]
reset errno before calling confstr - use confstr() doc to simplify checks afterwards

18 years agoC++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a couple...
Skip Montanaro [Tue, 18 Apr 2006 00:35:43 +0000 (00:35 +0000)]
C++ compiler cleanup: bunch-o-casts, plus use of unsigned loop index var in a couple places

18 years agoC++ compile cleanup: proper declaration of _Py_BuildValue_SizeT
Skip Montanaro [Tue, 18 Apr 2006 00:29:29 +0000 (00:29 +0000)]
C++ compile cleanup: proper declaration of _Py_BuildValue_SizeT

18 years agoC++ compilation cleanup: Migrate declaration of
Skip Montanaro [Tue, 18 Apr 2006 00:27:46 +0000 (00:27 +0000)]
C++ compilation cleanup: Migrate declaration of
_PyObject_Call(Function|Method)_SizeT into Include/abstract.h.  This gets
them under the umbrella of the extern "C" { ... } block in that file.

18 years agolocal.__del__(): This didn't actually do anything, because of too
Tim Peters [Mon, 17 Apr 2006 21:12:33 +0000 (21:12 +0000)]
local.__del__():  This didn't actually do anything, because of too
much convolution <0.5 wink>.  Simplified to the point that it works,
and test_threading_local no longer reports leaks under -R.  Thanks
to Thomas Wouters for initial analysis.

18 years agoFirst phase of refactoring for runpy, pkgutil, pydoc, and setuptools
Phillip J. Eby [Mon, 17 Apr 2006 20:17:25 +0000 (20:17 +0000)]
First phase of refactoring for runpy, pkgutil, pydoc, and setuptools
to share common PEP 302 support code, as described here:

http://mail.python.org/pipermail/python-dev/2006-April/063724.html

This revision strips all the PEP 302 emulation code from runpy,
replacing it with published API classes and functions in pkgutil,
mostly using setuptools' implementation of common functionality,
but adding features from runpy, and doing some refactoring to make
the layer pydoc needs easier to implement on top of this.

One step down, four to go, although step #4 (adding C versions of
the new APIs to 'imp') may not be able to make it in time for
alpha 2.  We'll see how that goes.

18 years agoAdd reindent target.
Martin v. Löwis [Mon, 17 Apr 2006 19:25:49 +0000 (19:25 +0000)]
Add reindent target.

18 years agoReindent.
Martin v. Löwis [Mon, 17 Apr 2006 19:18:18 +0000 (19:18 +0000)]
Reindent.

18 years agoRemove bogus character.
Martin v. Löwis [Mon, 17 Apr 2006 17:37:09 +0000 (17:37 +0000)]
Remove bogus character.

18 years agoUse GetModuleFileNameEx instead of GetProcessImageFileName,
Martin v. Löwis [Mon, 17 Apr 2006 17:26:42 +0000 (17:26 +0000)]
Use GetModuleFileNameEx instead of GetProcessImageFileName,
as the latter is not available on Windows 2000.