- 04 Jul, 2001 4 commits
-
-
Fred Drake authored
getElementsByTagNameNS() consistent in form as well as functionality (cosmetic).
-
Fred Drake authored
This closes SF patch #419459.
-
Kurt B. Kaiser authored
-
Kurt B. Kaiser authored
-
- 03 Jul, 2001 3 commits
-
-
Fred Drake authored
path (with no profile/trace function) through eval_code2() and eval_frame() avoids several checks. In the common cases of calls, returns, and exception propogation, eval_code2() and eval_frame() used to test two values in the thread-state: the profiling function and the tracing function. With this change, a flag is set in the thread-state if either of these is active, allowing a single check to suffice when both are NULL. This also simplifies the code needed when either function is in use but is already active (to avoid profiling/tracing the profiler/tracer); the flag is set to 0 when the profile/trace code is entered, allowing the same check to suffice for "already in the tracer" for call/return/ exception events.
-
Fredrik Lundh authored
added copy/deepcopy support to SRE (still not enabled, since it's not covered by the test suite)
-
Fredrik Lundh authored
ch is unsigned, so testing for negative values doesn't make sense (as noticed by the OpenVMS compiler)
-
- 02 Jul, 2001 12 commits
-
-
Fred Drake authored
This closes SF bug #438032.
-
Fredrik Lundh authored
sure about this one, but test #133283 now works even with the fix in place, and so does the test suite. we'll see what comes up...
-
Fred Drake authored
-
Fredrik Lundh authored
-
Fredrik Lundh authored
speedups for certain unicode character ranges.
-
Fred Drake authored
to be presented in an unfamiliar case on case-preserving filesystems. This closes SF patch #436173.
-
Fredrik Lundh authored
-
Jack Jansen authored
-
Tim Peters authored
-
Tim Peters authored
tabnanny.py.
-
Tim Peters authored
-
Tim Peters authored
This is another one that leaks memory without an explict clear! Time to bite this bullet.
-
- 01 Jul, 2001 2 commits
-
-
Jack Jansen authored
Added WeakLink...Generator classes (should have done that ages ago). These check the c-function pointer for being NULL before calling it and raise UnimplementedError if it is. This allows system libs to be weak-linked, thereby allowing us to generate functions that are only available on some OS versions without getting a NULL dereference if the function isn't available.
-
Jack Jansen authored
- Convert CFString to/from Python strings. Currently always MacRoman, to be fixed later (as is unicode support). Python->CFString conversion is automatic.
-
- 30 Jun, 2001 1 commit
-
-
Tim Peters authored
and fiddle the conjoin tests to exercise all the new possible paths.
-
- 29 Jun, 2001 9 commits
-
-
Tim Peters authored
committed. tokenize.py: I like these changes, and have tested them extensively without even realizing it, so I just updated the docstring and the docs. tabnanny.py: Also liked this, but did a little code fiddling. I should really rewrite this to *exploit* generators, but that's near the bottom of my effort/benefit scale so doubt I'll get to it anytime soon (it would be most useful as a non-trivial example of ideal use of generators; but test_generators.py has already grown plenty of food-for-thought examples). inspect.py: I'm sure Ping intended for this to continue running even under 1.5.2, so I reverted this to the last pre-gen-branch version. The "bugfix" I checked in in-between was actually repairing a bug *introduced* by the conversion to generators, so it's OK that the reverted version doesn't reflect that checkin.
-
Fred Drake authored
example. It actually confused a reader.
-
Fred Drake authored
Reported by Milan Zamazal <pdm@zamazal.org>.
-
Fred Drake authored
consistency errors (mostly omitted "()" at the end of function and method names). Reported by Milan Zamazal <pdm@zamazal.org>.
-
Fred Drake authored
-
Fred Drake authored
Use a portable format in the example that creates a timestamp suitable for use in email, also updating it and the footnote from RFC 822 to RFC 2822.
-
Fred Drake authored
Do not use an extra flag variable to test only once in one subsequent if statement.
-
Guido van Rossum authored
class FieldStorage: this patch changes read_lines() and co. to use a StringIO() instead of a real file. The write() calls are redirected to a private method that replaces it with a real, external file only when it gets too big (> 1000 bytes). This avoids problems in forms using the multipart/form-data encoding with many fields. The original code created a temporary file for *every* field (not just for file upload fields), thereby sometimes exceeding the open file limit of some systems. Note that the simpler solution "use a real file only for file uploads" can't be used because the form field parser has no way to tell which fields correspond to file uploads. It's *possible* but extremely unlikely that this would break someone's code; they would have to be stepping way outside the documented interface for FieldStorage and use f.file.fileno(), or depend on overriding make_file() to return a file-like object with additional known properties.
-
Tim Peters authored
examples of use. These poke stuff not specifically targeted before, incl. recursive local generators relying on nested scopes, ditto but also inside class methods and rebinding instance vars, and anonymous partially-evaluated generators (the N-Queens solver creates a different column-generator for each row -- AFAIK this is my invention, and it's really pretty <wink>). No problems, not even a new leak.
-
- 28 Jun, 2001 3 commits
-
-
Jack Jansen authored
-
Jack Jansen authored
Make basechain a class variable in stead of initializing it in __init__. That way it's more easily overridden.
-
Tim Peters authored
"return expr" instances in generators (which latter may be generators due to otherwise invisible "yield" stmts hiding in "if 0" blocks). This was fun the first time, but this has gotten truly ugly now.
-
- 27 Jun, 2001 6 commits
-
-
Fredrik Lundh authored
predicates
-
Jack Jansen authored
CFStrings are in better shape, but Unicode support and automatic conversion to/from Python strings remains to be done.
-
Jack Jansen authored
-
Andrew M. Kuchling authored
-
Martin v. Löwis authored
-
Fredrik Lundh authored
-