- 12 Dec, 1997 12 commits
-
-
Jim Fulton authored
Also changed the way formats are handled. This has (and will) reveal now hidden fmt=invalid-thing errors.
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
- 11 Dec, 1997 3 commits
-
-
Jim Fulton authored
Added support for user-defined method attributes. User-defined method attributes can only be set or accessed for bound methods. User-defined method attributes are stored in instances under a name formed by concatinating the method and attribute names. Default values for user-defined method attributes may be set in the class statement. For example, to define the default '__roles__' attribute of a method, 'f':: class C: def f(self): print 'f called' f__roles__=('manage',) User-defined attributes may not be set in restricted execution mode. User-defined attribute names may only be accessed in restricted-execution mode if their names begin with double underscores. Added default __cmp__ support for extension subclasses. I only recently noticed that extension subclasses overcome Python's willingness to only compare objects of the same type, because they smell to Python like numeric types.
-
Jim Fulton authored
-
Jeffrey Shell authored
-
- 10 Dec, 1997 3 commits
-
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
- 08 Dec, 1997 1 commit
-
- 07 Dec, 1997 6 commits
-
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
strings. This is needed because cPickle (still) uses a restricted eval to parse non-binary string pickles. This change is needed to prevent pickles like:: "S'hello world'*2000000\012p0\012." from hosing an application. - User-defined types can now support unpickling without executing a constructor. The second value returned from '__reduce__' can now be None, rather than an argument tuple. On unpickling, if the second value returned from '__reduce__' during pickling was None, then rather than calling the first value returned from '__reduce__', directly, the '__basicnew__' method of the first value returned from '__reduce__' is called without arguments.
-
- 05 Dec, 1997 15 commits
-
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-
Jim Fulton authored
-