- 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.
-
- 07 Ara, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Anthony Roach. Release the global interpreter lock around platform spawn calls. Bugfix candidate? Hard to say; I favor "yes, bugfix". These clearly *should* have been releasing the GIL all along, if for no other reason than compatibility with the similar os.system(). But it's possible some program out there is (a) multithreaded, (b) calling a spawn function with P_WAIT, and (c) relying on the spawn call to block all their threads until the spawned program completes. I think it's very unlikely anyone is doing that on purpose, but someone may be doing so by accident.
-
- 06 Ara, 2001 4 kayıt (commit)
-
-
Jack Jansen yazdı
as OSX HFS+) and if so add an extension to the python executable, but only in the build directory, not on the installed python.
-
Jack Jansen yazdı
-
Tim Peters yazdı
Big Hammer to implement -Qnew as PEP 238 says it should work (a global option affecting all instances of "/"). pydebug.h, main.c, pythonrun.c: define a private _Py_QnewFlag flag, true iff -Qnew is passed on the command line. This should go away (as the comments say) when true division becomes The Rule. This is deliberately not exposed to runtime inspection or modification: it's a one-way one-shot switch to pretend you're using Python 3. ceval.c: when _Py_QnewFlag is set, treat BINARY_DIVIDE as BINARY_TRUE_DIVIDE. test_{descr, generators, zipfile}.py: fiddle so these pass under -Qnew too. This was just a matter of s!/!//! in test_generators and test_zipfile. test_descr was trickier, as testbinop() is passed assumptions that "/" is the same as calling a "__div__" method; put a temporary hack there to call "__truediv__" instead when the method name is "__div__" and 1/2 evaluates to 0.5. Three standard tests still fail under -Qnew (on Windows; somebody please try the Linux tests with -Qnew too! Linux runs a whole bunch of tests Windows doesn't): test_augassign test_class test_coercion I can't stay awake longer to stare at this (be my guest). Offhand cures weren't obvious, nor was it even obvious that cures are possible without major hackery. Question: when -Qnew is in effect, should calls to __div__ magically change into calls to __truediv__? See "major hackery" at tail end of last paragraph <wink>.
-
Guido van Rossum yazdı
-
- 05 Ara, 2001 2 kayıt (commit)
-
-
Guido van Rossum yazdı
It was easier than I thought, assuming that no other things contribute to the instance size besides slots -- a pretty good bet. With a test suite, no less!
-
Guido van Rossum yazdı
happy if one could delete the __dict__ attribute of an instance. I love to make Jim happy, so here goes... - New-style objects now support deleting their __dict__. This is for all intents and purposes equivalent to assigning a brand new empty dictionary, but saves space if the object is not used further.
-
- 04 Ara, 2001 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
- 03 Ara, 2001 3 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
slot_tp_descr_set(): When deleting an attribute described by a descriptor implemented in Python, the descriptor's __del__ method is called by the slot_tp_descr_set dispatch function. This is bogus -- __del__ already has a different meaning. Renaming this use of __del__ is renamed to __delete__.
-
- 02 Ara, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 29 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
vgetargskeywords(): Now that this routine is checking for bad input (rather than dump core in some cases), some bad calls are raising errors that previously "worked". This patch makes the error strings more revealing, and changes the exceptions from SystemError to RuntimeError (under the theory that SystemError is more of a "can't happen!" assert- like thing, and so inappropriate for bad arguments to a public C API function).
-
- 27 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Bugfix candidate. tb_displayline(): the sprintf format was choking off the file name, but used plain %s for the function name (which can be arbitrarily long). Limit both to 500 chars max.
-
- 25 Kas, 2001 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
Expose Tix.ResizeHandle.{detach_widget,hide,show}. Update Tix demos.
-
Martin v. Löwis yazdı
-
- 24 Kas, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 17 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 16 Kas, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
-
- 15 Kas, 2001 3 kayıt (commit)
-
-
Guido van Rossum yazdı
dictionary().
-
Guido van Rossum yazdı
special-cases classic classes, it doesn't do anything about other cases where different metaclasses are involved (except for the trivial case where one metaclass is a subclass of the others). Also note that it's metaclass, not metatype.
-
Tim Peters yazdı
-
- 13 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
-
- 09 Kas, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 07 Kas, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Also delegate kw arguments through ** calls.
-
- 05 Kas, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 03 Kas, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
Just doc and NEWS here, about the change in gc.garbage meaning.
-
Tim Peters yazdı
and NEWS. Bugfix candidate? That's a dilemma for Anthony <wink>: /F did fix a longstanding bug here, but the fix can cause code to raise an exception that previously worked by accident.
-
- 02 Kas, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 31 Eki, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Tim Peters yazdı
Muller.
-
- 30 Eki, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
Removed "#undef HAVE_HYPOT" line from Borland config, as suggested. Whether this will break some other Borland usage is a good question I can't answer.
-
Guido van Rossum yazdı
-
- 29 Eki, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Guido van Rossum yazdı
XXX Remaining problems: - The GC module doesn't know about these; I think it has its reasons to disallow calling __del__, but for now, __del__ on new-style objects is called when the GC module discards an object, for better or for worse. - The code to call a __del__ handler is really ridiculously complicated, due to all the different debug #ifdefs. I've copied this from the similar code in classobject.c, so I'm pretty sure I did it right, but it's not pretty. :-( - No tests yet.
-
- 27 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 26 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-