- 29 May, 2009 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 21 Şub, 2009 1 kayıt (commit)
-
-
Mark Dickinson yazdı
-
- 05 Şub, 2008 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 02 Şub, 2008 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 27 Kas, 2007 1 kayıt (commit)
-
-
Christian Heimes yazdı
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
-
- 24 Kas, 2007 1 kayıt (commit)
-
-
Amaury Forgeot d'Arc yazdı
attribute of an empty cell object. Now a ValueError is raised.
-
- 17 Şub, 2005 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 1124295 ] Function's __name__ no longer accessible in restricted mode which I introduced with a bit of mindless copy-paste when making __name__ writable. You can't assign to __name__ in restricted mode, which I'm going to pretend was intentional :)
-
- 28 Eki, 2004 1 kayıt (commit)
-
-
Armin Rigo yazdı
exposed in header files. Fixed a few comments in these headers. As we might have expected, writing down invariants systematically exposed a (minor) bug. In this case, function objects have a writeable func_code attribute, which could be set to code objects with the wrong number of free variables. Calling the resulting function segfaulted the interpreter. Added a corresponding test.
-
- 13 Agu, 2004 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 12 Agu, 2004 1 kayıt (commit)
-
-
Michael W. Hudson yazdı
[ 1004703 ] Make func_name writable plus fixing a couple of nits in the documentation changes spotted by MvL and a Misc/NEWS entry.
-
- 31 Ock, 2003 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
__module__ is the string name of the module the function was defined in, just like __module__ of classes. In some cases, particularly for C functions, the __module__ may be None. Change PyCFunction_New() from a function to a macro, but keep an unused copy of the function around so that we don't change the binary API. Change pickle's save_global() to use whichmodule() if __module__ is None, but add the __module__ logic to whichmodule() since it might be used outside of pickle.
-
- 30 Tem, 2002 1 kayıt (commit)
-
-
Barry Warsaw yazdı
imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
-
- 22 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
There really isn't a good reason for instance method objects to have their own __dict__, __doc__ and __name__ properties that just delegate the request to the function (callable); the default attribute behavior already does this. The test suite had to be fixed because the error changes from TypeError to AttributeError.
-
- 18 Eyl, 2001 2 kayıt (commit)
-
-
Guido van Rossum yazdı
(AttributeError, TypeError) -- the leniency wasn't needed everywhere.
-
Guido van Rossum yazdı
to raise TypeError. In practice, a disallowed attribute assignment can raise either TypeError or AttributeError (and it's unclear which is better). So allow either. (Yes, this is in anticipation of a code change that switches the exception raised. :-) - Add a utility function, cantset(), which verifies that setting a particular attribute to a given value is disallowed, and also that deleting that same attribute is disallowed. Use this in the test_func_*() tests. - Add a new set of tests that test conformance of various instance method attributes. (Also in anticipation of code that changes their implementation.)
-
- 17 Eyl, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This uses the new "restricted" feature of structmember, and getset descriptors for some of the type checks.
-
- 14 Agu, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
attribute. Deleting it, or setting it to a non-dictionary result in a TypeError. Note that getting it the first time magically initializes it to an empty dict so that func.__dict__ will always appear to be a dictionary (never None). Closes SF bug #446645.
-
- 26 Şub, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
- func.__dict__ is None until the first attribute is assigned - del func.__dict__ is equivalent to func.__dict__ = None - disallowing assignment to function attribute through unbound method (it was always illegal to assign through bound method). - verifying that setting attribute explicitly on underlying function via meth.im_func is okay.
-
- 09 Şub, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 29 Ock, 2001 1 kayıt (commit)
-
-
Moshe Zadka yazdı
* Removed func_hash and func_compare, so they can be treated as immutable content-less objects (address hash and comparison) * Added tests to that affect to test_funcattrs (also testing func_code is writable) * Reverse meaning of tests in test_opcodes which checked identical code gets identical functions
-
- 19 Ock, 2001 1 kayıt (commit)
-
-
Barry Warsaw yazdı
added a test of a coredump that would occur when del'ing func_defaults (put here for convenience).
-
- 15 Ock, 2001 2 kayıt (commit)
-
-
Barry Warsaw yazdı
new module.
-
Barry Warsaw yazdı
Closes SF patch #103123. Regression test for function attributes, with output file.
-