Andrew M. Kuchling
3a7b58e9ad
Add TODO item
2006-04-21 12:57:58 +00:00
Andrew M. Kuchling
b0a1e6b735
Add explanatory message
2006-04-21 12:57:35 +00:00
Andrew M. Kuchling
84a7ee7e91
Typo fixes
2006-04-21 12:38:41 +00:00
Thomas Wouters
4e908107b0
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.
2006-04-21 11:26:56 +00:00
Martin v. Löwis
64ed043c9a
Package setuptools
2006-04-21 10:00:46 +00:00
Skip Montanaro
262fb9256b
Allow pstats.Stats creator to specify an alternate to stdout.
2006-04-21 02:31:07 +00:00
Skip Montanaro
c34b931d78
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.
2006-04-21 01:33:40 +00:00
Jack Jansen
f75225b448
- 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.
2006-04-20 21:38:17 +00:00
Andrew M. Kuchling
3b675d299c
Change a footnote to a parenthetical (in two senses) paragraph
2006-04-20 13:43:21 +00:00
Andrew M. Kuchling
af015cfcbf
Argh, make another markup fix
2006-04-20 13:39:40 +00:00
Andrew M. Kuchling
33432183d8
Markup fix
2006-04-20 13:38:36 +00:00
Andrew M. Kuchling
63fe9b5ae2
Add some items; add "New module" consistently; make contextlib.closing example more interesting and more correct (thanks Gustavo!); add a name
2006-04-20 13:36:06 +00:00
Neal Norwitz
449b24ebe9
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?
2006-04-20 06:56:05 +00:00
Neal Norwitz
0d21b1ed54
Whitespace, fix indentation
2006-04-20 06:44:42 +00:00
Martin v. Löwis
c661b8821b
Document r43622.
2006-04-20 04:54:23 +00:00
Skip Montanaro
94785ef142
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.
2006-04-20 01:29:48 +00:00
Marc-André Lemburg
d0b8e83dc5
Add news item for pybench addition.
2006-04-19 15:48:59 +00:00
Thomas Wouters
dc5f808cbc
Make s.replace() work with explicit counts exceeding 2Gb.
2006-04-19 15:38:01 +00:00
Marc-André Lemburg
c311f641e4
Adding pybench 1.3 to the Tools/ directory.
2006-04-19 15:27:33 +00:00
Thomas Wouters
79cdce35de
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
2006-04-19 15:09:44 +00:00
Thomas Wouters
4abb3660ca
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.
2006-04-19 14:50:15 +00:00
Andrew M. Kuchling
6719131129
Write datetime.strptime() item; show use of @contextmanager in defining __context__ methods; minor edits; add two names
2006-04-19 12:55:39 +00:00
Armin Rigo
a9017c39ce
SF Patch #1062014 : AF_UNIX sockets under Linux have a special
...
abstract namespace that is now fully supported.
2006-04-19 11:50:27 +00:00
Brett Cannon
ab012af6ed
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.
2006-04-18 23:58:52 +00:00
Thomas Wouters
503b73ebf7
Add proper svn magic to ignore .pyc/.pyo files in Lib/setuptools (and
...
subdirs) like it already exists for the other Lib subdirs.
2006-04-18 23:04:00 +00:00
Thomas Heller
b6dfaed903
Rename remaining StgDictObject's ffi_type fields to ffi_type_pointer.
2006-04-18 20:09:27 +00:00
Skip Montanaro
058be9adbc
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.
2006-04-18 19:45:17 +00:00
Skip Montanaro
cbe2e491bc
C++ compiler cleanup: a cast here, a cast there... still does not compile under C++ though...
2006-04-18 19:39:48 +00:00
Skip Montanaro
14f8899dc2
C++ compiler cleanup: "typename" is a C++ keyword
2006-04-18 19:35:04 +00:00
Thomas Heller
1b04664eab
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.
2006-04-18 18:51:06 +00:00
Tim Peters
584b0e0c3d
Whilespace normalization (reindint.py).
2006-04-18 17:32:12 +00:00
Phillip J. Eby
17a35f906c
add info re: pydoc, pkgutil, and setuptools additions
2006-04-18 16:45:14 +00:00
George Yoshida
e7670a329e
fix typo
2006-04-18 16:18:15 +00:00
Phillip J. Eby
54ddd23987
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.
2006-04-18 15:30:05 +00:00
Thomas Heller
9d89299fea
Fix refcounting.
...
This makes 'import ctypes; reload(ctypes)' no longer leak reference counts.
2006-04-18 14:57:39 +00:00
Jeremy Hylton
a4ebc135ac
Refactor: Move code that uses co_lnotab from ceval to codeobject
2006-04-18 14:47:00 +00:00
Andrew M. Kuchling
6db67821a1
Typo fix
2006-04-18 14:04:57 +00:00
Armin Rigo
7e97ee6ac8
A dictresize() attack. If oldtable == mp->ma_smalltable then pure
...
Python code can mangle with mp->ma_smalltable while it is being walked
over.
2006-04-18 14:00:01 +00:00
Michael W. Hudson
15b1f146bc
add a very old crasher from the 2.1 -> 2.2 round of dictionary fixes.
2006-04-18 13:52:32 +00:00
Andrew M. Kuchling
952f196ae7
Add item
2006-04-18 12:38:19 +00:00
Skip Montanaro
816a162265
C++ compiler cleanup: proper casts
2006-04-18 11:53:09 +00:00
Andrew M. Kuchling
2060d1bd27
Comment typo fix
2006-04-18 11:49:53 +00:00
Martin v. Löwis
45294a9562
Remove types from type_list if they have no objects
...
and unlist_types_without_objects is set.
Give dump_counts a FILE* argument.
2006-04-18 06:24:08 +00:00
Neal Norwitz
041669fa67
Whitespace normalization
2006-04-18 04:53:28 +00:00
Phillip J. Eby
cea434c69f
It's probably a good idea to actually *install* setuptools, too. ;)
2006-04-18 04:34:50 +00:00
Phillip J. Eby
8f925cc050
Handle easy_install being run via -m with no __file__ if done from a
...
zipfile.
2006-04-18 04:31:46 +00:00
Phillip J. Eby
069159b113
Initial import of setuptools, with integrated tests.
2006-04-18 04:05:34 +00:00
Tim Peters
e247e89846
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.
2006-04-18 03:28:32 +00:00
Tim Peters
0969e8ad4e
At least test_threading_local doesn't leak any more.
2006-04-18 03:02:10 +00:00
Phillip J. Eby
742cd24c02
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.
2006-04-18 01:39:25 +00:00