- 20 Aug, 2002 17 commits
-
-
Guido van Rossum authored
tiny amount of code duplication, but makes it possible to give BaseSet an __init__ that raises an exception.
-
Guido van Rossum authored
-
Guido van Rossum authored
received feedback that was based in the misunderstanding that sets were sequences.
-
Guido van Rossum authored
This patch causes CGIHTTPServer to update os.environ regardless of how it tries to handle calls (fork, popen*, etc.). Backport bugfix candidate.
-
Tim Peters authored
SHIFT and MASK, and widen digit. One problem is that code of the form digit << small_integer implicitly assumes that the result fits in an int or unsigned int (platform-dependent, but "int sized" in any case), since digit is promoted "just" to int or unsigned via the usual integer promotions. But if digit is typedef'ed as unsigned int, this loses information. The cure for this is just to cast digit to twodigits first.
-
Guido van Rossum authored
These were reported and fixed by Inyeol Lee in SF bug 595350. The endswith() bug was already fixed in 2.3, but this adds some more test cases.
-
Michael W. Hudson authored
-
Michael W. Hudson authored
-
Barry Warsaw authored
-
Barry Warsaw authored
-
Barry Warsaw authored
2045, section 5.2 states that if the Content-Type: header is syntactically invalid, the default type should be text/plain. Implement minimal sanity checking of the header -- it must have exactly one slash in it. This closes SF patch #597593 by Skip, but in a different way. Note that these methods used to raise ValueError for invalid ctypes, but now they won't.
-
Barry Warsaw authored
get the MIME main and sub types, instead of getting the whole ctype and splitting it here. The two more specific methods now correctly implement RFC 2045, section 5.2.
-
Tim Peters authored
signed vs unsigned).
-
Fred Drake authored
Closes SF bug #597177.
-
Barry Warsaw authored
email 2.2 but fails in email 1.0.
-
Andrew M. Kuchling authored
(There's a link to PEP218; has PEP218 been updated to match the actual module implementation?)
-
Andrew M. Kuchling authored
the list is getting awfully long Mention Karatsuba multiplication and some other items
-
- 19 Aug, 2002 18 commits
-
-
Neal Norwitz authored
-
Fred Drake authored
dict.items/keys/values/iteritems/iterkeys/itervalues().
-
Guido van Rossum authored
interning. I modified Oren's patch significantly, but the basic idea and most of the implementation is unchanged. Interned strings created with PyString_InternInPlace() are now mortal, and you must keep a reference to the resulting string around; use the new function PyString_InternImmortal() to create immortal interned strings.
-
Guido van Rossum authored
-
Guido van Rossum authored
in LOAD_GLOBAL. Besides saving a C function call, it saves checks whether f_globals and f_builtins are dicts, and extracting and testing the string object's hash code is done only once. We bail out of the inlining if the name is not exactly a string, or when its hash is -1; because of interning, neither should ever happen. I believe interning guarantees that the hash code is set, and I believe that the 'names' tuple of a code object always contains interned strings, but I'm not assuming that -- I'm simply testing hash != -1. On my home machine, this makes a pystone variant with new-style classes and slots run at the same speed as classic pystone! (With new-style classes but without slots, it is still a lot slower.)
-
Guido van Rossum authored
comments everywhere that bugged me: /* Foo is inlined */ instead of /* Inline Foo */. Somehow the "is inlined" phrase always confused me for half a second (thinking, "No it isn't" until I added the missing "here"). The new phrase is hopefully unambiguous.
-
Guido van Rossum authored
to _PyType_Lookup().
-
Guido van Rossum authored
Should save 4% on slot lookups.
-
Michael W. Hudson authored
Move some debugging checks inside Py_DEBUG. They were causing cache misses according to cachegrind.
-
Guido van Rossum authored
This causes a modest speedup.
-
Guido van Rossum authored
-
Guido van Rossum authored
convert the doc strings to LaTeX, be my guest.)
-
Guido van Rossum authored
-
Guido van Rossum authored
expensive and overly general PyObject_IsInstance(), call PyObject_TypeCheck() which is a macro that often avoids a call, and if it does make a call, calls the much more efficient PyType_IsSubtype(). This saved 6% on a benchmark for slot lookups.
-
Raymond Hettinger authored
-
Jack Jansen authored
There's really no point in a separate list of thank-you notes.
-
Raymond Hettinger authored
all operators having a counterpart in the operator module. Closes SF bug #577513.
-
Tim Peters authored
popen2() and popen3() created text-mode pipes even when binary mode was asked for. This was specific to Windows.
-
- 18 Aug, 2002 5 commits
-
-
Raymond Hettinger authored
-
Jack Jansen authored
This is a silly workaround for a rather serious bug in MacOSX: if you take a long filename and convert it to an FSSpec the fsspec gets a magic cooky (containing a #, indeed). If you then massage the extension of this fsspec and convert back to a pathname you may end up referring to the same file. This could destroy your sourcefile. The problem only occcurs in MacPython-OS9, not MacPython-OSX (I think). Closes bug #505562.
-
Raymond Hettinger authored
Jeremy reported that this is not allowed by RFC 2396; however, other tools support unescaped @'s so we should also. Apply SF patch 596581 closing bug 581529.
-
Andrew MacIntyre authored
-
Andrew MacIntyre authored
-