- 19 Aug, 2002 8 commits
-
-
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 8 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
-
Andrew MacIntyre authored
- update DLL version number - add files required for 2.3 (no changes to modules though) - restructure build of pgen.exe NOTE: As I don't have the VACPP compiler, these changes are untested. Apart from slightly re-ordering some file lists, and matching file name casing, I believe these changes are the minimum necessary to build 2.3 with VACPP.
-
Andrew MacIntyre authored
-
Andrew MacIntyre authored
- the security fixes to tempfile have lead to test_tempfile wanting to create 100 temporary files. as the EMX default is only 40, the number of file handles has been bumped (up to 250). - changes to pgen have required restructuring its build support.
-
- 17 Aug, 2002 2 commits
-
-
Guido van Rossum authored
Also, don't call gettempdir() in the default expression for the 'dir' argument to various functions; use 'dir=None' for the default and insert 'if dir is None: dir = gettemptir()' in the bodies. That way the work done by gettempdir is postponed until needed.
-
Guido van Rossum authored
subprocess that does the right checks. This now works on Windows as well.
-
- 16 Aug, 2002 19 commits
-
-
Neal Norwitz authored
com_error() is static in Python/compile.c.
-
Neal Norwitz authored
-
Jeremy Hylton authored
Also, don't handle METH_OLDARGS on the fast path. All the interesting builtins have been converted to use METH_NOARGS, METH_O, or METH_VARARGS. Result is another 1-2% speedup. If I can cobble together 10 of these, it might make a difference.
-
Guido van Rossum authored
-
Jeremy Hylton authored
This makes the code much easier to ready, because it is at a sane indentation level. On my box this shows a 1-2% speedup, which means nothing, except that I'm not going to worry about the performance effects of the change.
-
Guido van Rossum authored
-- replace then with slightly faster PyObject_Call(o,a,NULL). (The difference is that the latter requires a to be a tuple; the former allows other values and wraps them in a tuple if necessary; it involves two more levels of C function calls to accomplish all that.)
-
Guido van Rossum authored
nothing special done if keyword arguments were present, so test for that earlier and fall through to the normal case if there are any. This ought to slow down CFunction calls with keyword args, but I don't care; it's a tiny (1%) improvement for pystone.
-
Jack Jansen authored
-
Jack Jansen authored
-
Guido van Rossum authored
- Use PyObject_Call() instead of PyEval_CallObject(), saves several layers of calls and checks. - Pre-allocate the argument tuple rather than calling Py_BuildValue() each time round the loop. - For filter(None, seq), avoid an INCREF and a DECREF.
-
Guido van Rossum authored
to inner scope, too.
-
Tim Peters authored
Loosened the acceptable 'start' and 'stop' arguments so that any Python (bounded) ints can be used. So, e.g., randrange(-sys.maxint-1, sys.maxint) no longer blows up.
-
Tim Peters authored
Karatsuba's better cache behavior with extremely large multiplicands.
-
Guido van Rossum authored
-
Guido van Rossum authored
warning for 'global None', but that's either accompanied by an assignment to None, which will trigger a warning, or not, in which case it's harmless. :-)
-
Tim Peters authored
LINE events when not __debug__. But we get them anyway under -O now, so just stop special-casing non-__debug__ mode.
-
Guido van Rossum authored
Still to do: function definition arguments (including *None and **None).
-
Guido van Rossum authored
named 'None'. Still to do: function definition parameter lists, and function call keyword arguments.
-
Guido van Rossum authored
argument should be called 'c', like everywhere else. Renamed a complex variable 'c' to 'z' and moved it inside the only scope where it's used.
-
- 15 Aug, 2002 3 commits
-
-
Barry Warsaw authored
exception. The bug fix for SF #430849 wasn't quite right. This closes SF bug #595671. I'll backport this to Python 2.2.
-
Jack Jansen authored
them. The FutureWarnings are still there, until a way has been found to say "I know what I'm doing here when I say 0xff000000".
-
Jack Jansen authored
we catch errors during the build process in stead of later during runtime.
-