- 02 Agu, 2002 1 kayıt (commit)
-
-
Mark Hammond yazdı
for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
-
- 27 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
don't understand how this function works, also beefed up the docs. The most common usage error is of this form (often spread out across gotos): if (_PyString_Resize(&s, n) < 0) { Py_DECREF(s); s = NULL; goto outtahere; } The error is that if _PyString_Resize runs out of memory, it automatically decrefs the input string object s (which also deallocates it, since its refcount must be 1 upon entry), and sets s to NULL. So if the "if" branch ever triggers, it's an error to call Py_DECREF(s): s is already NULL! A correct way to write the above is the simpler (and intended) if (_PyString_Resize(&s, n) < 0) goto outtahere; Bugfix candidate.
-
- 31 Mar, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke.
-
- 17 Ock, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 08 Ara, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
-
- 09 Tem, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
return NULL in an error case was itself an error.
-
Thomas Wouters yazdı
(if any.)
-
- 22 Ock, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 19 Ara, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
use of PyErr_Warn()! This module is a good guinea pig because it's been obsolete since 1.5.0 was released.
-
- 01 Eyl, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This should match the situation in the 1.6b1 tree.
-
- 21 Tem, 2000 1 kayıt (commit)
-
-
Thomas Wouters yazdı
and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
-
- 12 Tem, 2000 1 kayıt (commit)
-
-
Vladimir Marangozov yazdı
-
- 10 Tem, 2000 1 kayıt (commit)
-
-
Peter Schneider-Kamp yazdı
-
- 30 Haz, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
- 03 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
-
- 29 Şub, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
PyArg_ParseTuple() format string arguments as possible.
-
- 04 Ara, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
on BeOS or Windows.
-
- 08 Eki, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 01 Eki, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
-
- 03 Eyl, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Since it only returns an error message (or NULL) there's no reason for it to be unsigned char *, and various compilers like this better.
-
- 18 Agu, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 14 Agu, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
different in a future version.
-
- 13 Agu, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 12 May, 1997 1 kayıt (commit)
-
-
Guido van Rossum yazdı
otherwise laudible attempt to rationalize the argument parsing): it would save a copy of the original string instead of a reference to it. Go back to saving a reference, but keep the "s#" format (using a hack that involves two argument parsing steps, first using "O", then using "s#").
-
- 18 Şub, 1997 1 kayıt (commit)
-
-
Barry Warsaw yazdı
-
- 09 Ock, 1997 1 kayıt (commit)
-
-
Barry Warsaw yazdı
-
- 20 Ara, 1996 1 kayıt (commit)
-
-
Barry Warsaw yazdı
- Where optional arguments were being used, converted to PyArg_ParseTuple() style instead of nested PyArg_Parse() style. - Check for and handle many potential error conditions that were never being tested. - internal reg_* functions renamed to regobj_* (makes it easier to figure out which are global regex functions and which are for regex objects). - reg_group (now regobj_group) was quite extensively reworked. it no longer recurses to do its job (by factoring core functionality into a separate function that knows about string and integer indexes). - some minor formatting fixes. - regex_set_syntax() now invalidates the cache. Without this change (in the example below), the second search would produce different output depending on whether the first search were performed or not (since performing the first search would cache the compiled object with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail). regex.search('(a+)|(b+)', 'cdb') prev = regex.set_syntax(RE_SYNTAX_AWK) regex.search('(a+)|(b+)', 'cdb')
-
- 05 Ara, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 25 Eki, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 23 Eki, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Thanks to Ka-Ping Yee.
-
- 08 Eki, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 19 Agu, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 24 Tem, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 11 Haz, 1996 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 19 Şub, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 10 Şub, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 26 Ock, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 04 Ock, 1995 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
-
- 01 Agu, 1994 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-