1. 29 May, 2009 1 kayıt (commit)
  2. 21 Şub, 2009 1 kayıt (commit)
  3. 05 Şub, 2008 1 kayıt (commit)
  4. 02 Şub, 2008 1 kayıt (commit)
  5. 27 Kas, 2007 1 kayıt (commit)
  6. 24 Kas, 2007 1 kayıt (commit)
  7. 17 Şub, 2005 1 kayıt (commit)
    • Michael W. Hudson's avatar
      Fix · ee319f66
      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 :)
      ee319f66
  8. 28 Eki, 2004 1 kayıt (commit)
    • Armin Rigo's avatar
      Wrote down the invariants of some common objects whose structure is · 89a39461
      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.
      89a39461
  9. 13 Agu, 2004 1 kayıt (commit)
  10. 12 Agu, 2004 1 kayıt (commit)
    • Michael W. Hudson's avatar
      This is my patch · 5e897959
      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.
      5e897959
  11. 31 Ock, 2003 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Provide __module__ attributes for functions defined in C and Python. · 4f0dcc9a
      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.
      4f0dcc9a
  12. 30 Tem, 2002 1 kayıt (commit)
    • Barry Warsaw's avatar
      Complete the absolute import patch for the test suite. All relative · 408b6d34
      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.
      408b6d34
  13. 22 Eki, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Fix for SF bug #472940: can't getattr() attribute shown by dir() · 56ff387a
      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.
      56ff387a
  14. 18 Eyl, 2001 2 kayıt (commit)
    • Guido van Rossum's avatar
      Undo some (but not all) of the more lenient acceptance of · db2a902d
      Guido van Rossum yazdı
      (AttributeError, TypeError) -- the leniency wasn't needed everywhere.
      db2a902d
    • Guido van Rossum's avatar
      - Some tests that check that assignments are not allowed expect this · bd131497
      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.)
      bd131497
  15. 17 Eyl, 2001 1 kayıt (commit)
  16. 14 Agu, 2001 1 kayıt (commit)
  17. 26 Şub, 2001 1 kayıt (commit)
    • Barry Warsaw's avatar
      Additional tests for current, PEP described semantics: · c1e100f2
      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.
      c1e100f2
  18. 09 Şub, 2001 1 kayıt (commit)
  19. 29 Ock, 2001 1 kayıt (commit)
    • Moshe Zadka's avatar
      The one thing I love more then writing code is deleting code. · 497671e0
      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
      497671e0
  20. 19 Ock, 2001 1 kayıt (commit)
  21. 15 Ock, 2001 2 kayıt (commit)