- 26 Haz, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 23 Haz, 2000 2 kayıt (commit)
-
-
Jeremy Hylton yazdı
This patch modifies the type structures of objects that participate in GC. The object's tp_basicsize is increased when GC is enabled. GC information is prefixed to the object to maintain binary compatibility. GC objects also define the tp_flag Py_TPFLAGS_GC.
-
Jeremy Hylton yazdı
This patch adds the type methods traverse and clear necessary for GC implementation.
-
- 20 Haz, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
the number of children of a node exceeds the max possible value for the short that is used to count them. The Python runtime converts this parser error into the SyntaxError "expression too long."
-
- 18 Haz, 2000 2 kayıt (commit)
-
-
Marc-André Lemburg yazdı
Added optimization proposed by Andrew Kuchling to the Unicode matching macro.
-
Andrew M. Kuchling yazdı
this patch introduces PySequence_Fast and PySequence_Fast_GET_ITEM, and modifies the list.extend method to accept any kind of sequence.
-
- 28 May, 2000 1 kayıt (commit)
-
-
Greg Ward yazdı
-
- 25 May, 2000 1 kayıt (commit)
-
-
Barry Warsaw yazdı
or fini of the builtin module. _PyBuiltin_Init_1 => _PyBuiltin_Init _PyBuiltin_Init_2 removed _PyBuiltin_Fini_1 removed _PyBuiltin_Fini_2 removed These functions are used to initialize the _exceptions module. init_exceptions added fini_exceptions added
-
- 12 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 11 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 09 May, 2000 2 kayıt (commit)
-
-
Fred Drake yazdı
Added PyUnicode_GetDefaultEncoding() and PyUnicode_GetDefaultEncoding() APIs.
-
Fred Drake yazdı
Added documentation and the missing PyCodec_StreamWriter API.
-
- 08 May, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
Add declaration of PyEval_SliceIndex().
-
Guido van Rossum yazdı
-
- 05 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
allocator.
-
- 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.)
-
- 02 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
If you still haven't updated your extension since the Grand Renaming, you don't deserve Python 1.6. :-)
-
- 01 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Added Py_UnicodeFlag for use by the -U command line option.
-
- 24 Nis, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
Improvements: - does no longer need any extra memory - has no relationship to tstate - works in debug mode - can easily be modified for free threading (hi Greg:) Side effects: Trashcan does change the order of object destruction. Prevending that would be quite an immense effort, as my attempts have shown. This version works always the same, with debug mode or not. The slightly changed destruction order should therefore be no problem. Algorithm: While the old idea of delaying the destruction of some obejcts at a certain recursion level was kept, we now no longer aloocate an object to hold these objects. The delayed objects are instead chained together via their ob_type field. The type is encoded via ob_refcnt. When it comes to the destruction of the chain of waiting objects, the topmost object is popped off the chain and revived with type and refcount 1, then it gets a normal Py_DECREF. I am confident that this solution is near optimum for minimizing side effects and code bloat.
-
Guido van Rossum yazdı
doesn't use the special header file for select anymore.
-
- 14 Nis, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Note that comparisons of deeply nested objects can still dump core in extreme cases.
-
- 11 Nis, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Changed PyUnicode_Splitlines() maxsplit argument to keepends. The maxsplit functionality was replaced by the keepends functionality which allows keeping the line end markers together with the string.
-
- 10 Nis, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 06 Nis, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 05 Nis, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
his copy of test_contains.py seems to be broken -- the lines he deleted were already absent). Checkin messages: New Unicode support for int(), float(), complex() and long(). - new APIs PyInt_FromUnicode() and PyLong_FromUnicode() - added support for Unicode to PyFloat_FromString() - new encoding API PyUnicode_EncodeDecimal() which converts Unicode to a decimal char* string (used in the above new APIs) - shortcuts for calls like int(<int object>) and float(<float obj>) - tests for all of the above Unicode compares and contains checks: - comparing Unicode and non-string types now works; TypeErrors are masked, all other errors such as ValueError during Unicode coercion are passed through (note that PyUnicode_Compare does not implement the masking -- PyObject_Compare does this) - contains now works for non-string types too; TypeErrors are masked and 0 returned; all other errors are passed through Better testing support for the standard codecs. Misc minor enhancements, such as an alias dbcs for the mbcs codec. Changes: - PyLong_FromString() now applies the same error checks as does PyInt_FromString(): trailing garbage is reported as error and not longer silently ignored. The only characters which may be trailing the digits are 'L' and 'l' -- these are still silently ignored. - string.ato?() now directly interface to int(), long() and float(). The error strings are now a little different, but the type still remains the same. These functions are now ready to get declared obsolete ;-) - PyNumber_Int() now also does a check for embedded NULL chars in the input string; PyNumber_Long() already did this (and still does) Followed by: Looks like I've gone a step too far there... (and test_contains.py seem to have a bug too). I've changed back to reporting all errors in PyUnicode_Contains() and added a few more test cases to test_contains.py (plus corrected the join() NameError).
-
- 30 Mar, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Jeremy Hylton yazdı
dictionary that contains the same key/value pairs as p.
-
- 29 Mar, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Jeremy Hylton yazdı
-
- 28 Mar, 2000 3 kayıt (commit)
-
-
Jeremy Hylton yazdı
executive summary: Instead of typing 'apply(f, args, kwargs)' you can type 'f(*arg, **kwargs)'. Some file-by-file details follow. Grammar/Grammar: simplify varargslist, replacing '*' '*' with '**' add * & ** options to arglist Include/opcode.h & Lib/dis.py: define three new opcodes CALL_FUNCTION_VAR CALL_FUNCTION_KW CALL_FUNCTION_VAR_KW Python/ceval.c: extend TypeError "keyword parameter redefined" message to include the name of the offending keyword reindent CALL_FUNCTION using four spaces add handling of sequences and dictionaries using extend calls fix function import_from to use PyErr_Format
-
Guido van Rossum yazdı
The attached patch set includes a workaround to get Python with Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause is a bug in the BSDI wchar.h header file) and Python interfaces for the MBCS codec donated by Mark Hammond. Also included are some minor corrections w/r to the docs of the new "es" and "es#" parser markers (use PyMem_Free() instead of free(); thanks to Mark Hammond for finding these). The unicodedata tests are now in a separate file (test_unicodedata.py) to avoid problems if the module cannot be found.
-
Guido van Rossum yazdı
-
- 21 Mar, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
/* More standard operations (at end for binary compatibility) */ should now be: /* More standard operations (here for binary compatibility) */ since they're no longer at the end!
-
- 20 Mar, 2000 1 kayıt (commit)
-
-
Barry Warsaw yazdı
Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
-
- 13 Mar, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
Added wrapping macros to dictobject.c, listobject.c, tupleobject.c, frameobject.c, traceback.c that safely prevends core dumps on stack overflow. Macros and functions in object.c, object.h. The method is an "elevator destructor" that turns cascading deletes into tail recursive behavior when some limit is hit.
-
- 10 Mar, 2000 4 kayıt (commit)
-
-
Guido van Rossum yazdı
PyObject_AsReadBuffer, PyObject_AsWriteBuffer.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-