- 26 Jun, 2001 17 commits
-
-
Jack Jansen authored
-
Jack Jansen authored
First small step towards bgen-generated CoreFoundation. there is hardly any real functionality yet, but method chains seem to work, and so do Retain/Release semantics.
-
Tim Peters authored
Makes it much easier to find references via dumb editor search (former "frame" in particular was near-hopeless).
-
Fredrik Lundh authored
sizeof(int)
-
Barry Warsaw authored
-
Barry Warsaw authored
mapping objects as an argument.
-
Barry Warsaw authored
a non-dictionary mapping object. Include tests for several expected failure modes.
-
Barry Warsaw authored
"mapping" object, specifically one that supports PyMapping_Keys() and PyObject_GetItem(). This allows you to say e.g. {}.update(UserDict()) We keep the special case for concrete dict objects, although that seems moderately questionable. OTOH, the code exists and works, so why change that? .update()'s docstring already claims that D.update(E) implies calling E.keys() so it's appropriate not to transform AttributeErrors in PyMapping_Keys() to TypeErrors. Patch eyeballed by Tim.
-
Fredrik Lundh authored
wrt surrogates. (this extends the valid range from 65535 to 1114111)
-
Fredrik Lundh authored
HAVE_USABLE_WCHAR_T
-
Fredrik Lundh authored
unicodeobject.h, which forces sizeof(Py_UNICODE) == sizeof(Py_UCS4). (this may be good enough for platforms that doesn't have a 16-bit type. the UTF-16 codecs don't work, though)
-
Fredrik Lundh authored
sizeof(Py_UNICODE) >= sizeof(long). also changed surrogate expansion to work if sizeof(Py_UNICODE) > 2.
-
Fredrik Lundh authored
HAVE_USABLE_WCHAR_T
-
Jack Jansen authored
-
Just van Rossum authored
-
Just van Rossum authored
package to be loaded from a PYD resource.
-
Tim Peters authored
Not anymore <wink>. Pure hack. Doesn't fix any other "if 0:" glitches.
-
- 25 Jun, 2001 8 commits
-
-
Tim Peters authored
Iterators list for bringing it up!
-
Just van Rossum authored
Return self.trace_dispatch from dispatch_return() to enable stepping through generators. (An alternative would be to create a new "yield" debugger event, but that involves many more changes, and might break Bdb subclasses.)
-
Fred Drake authored
-
Jack Jansen authored
-
Steven M. Gava authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Tim Peters authored
Add a temporary driver to help track down remaining leak(s).
-
- 24 Jun, 2001 13 commits
-
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Tim Peters authored
clearing a shallow copy _run_examples() makes itself can't hurt anything.
-
Tim Peters authored
break cycles, which are a special problem when running generator tests that provoke exceptions by invoking the .next() method of a named generator-iterator: then the iterator is named in globs, and the iterator's frame gets a tracekback object pointing back to globs, and gc doesn't chase these types so the cycle leaks. Also changed _run_examples() to make a copy of globs itself, so its callers (direct and indirect) don't have to (and changed the callers to stop making their own copies); *that* much is a change I've been meaning to make for a long time (it's more robust the new way). Here's a way to provoke the symptom without doctest; it leaks at a prodigious rate; if the last two "source" lines are replaced with g().next() the iterator isn't named and then there's no leak: source = """\ def g(): yield 1/0 k = g() k.next() """ code = compile(source, "<source>", "exec") def f(globs): try: exec code in globs except ZeroDivisionError: pass while 1: f(globals().copy()) After this change, running test_generators in an infinite loop still leaks, but reduced from a flood to a trickle.
-
Tim Peters authored
example (an obvious trackback cycle). Repaired. Bugfix candidate.
-
Tim Peters authored
-
Tim Peters authored
of other tests.
-
Tim Peters authored
because it picks up the first line of traceback.format_exception_only() instead of the last line. Pick up the last line instead!
-
Tim Peters authored
Good news: Some of this stuff is pretty sophisticated (read nuts), and I haven't bumped into a bug yet. Bad news: If I run the doctest in an infinite loop, memory is clearly leaking.
-
Tim Peters authored
because I need to make progress and don't have time now to think about whatever it is the new code is trying to accomplish.
-
Tim Peters authored
-
- 23 Jun, 2001 2 commits
-
-
Tim Peters authored
but it's a heck of a good generator exerciser (think about it <wink>).
-
Tim Peters authored
-