Guido van Rossum
36fc11e894
Compromise on test in find_class(): a user-defined function is okay,
...
but a built-in function is not.
1996-10-07 14:34:20 +00:00
Guido van Rossum
abfd8064d8
This is the third time I check in this change :-(
...
Don't use assignments into inst.__dict__ to restore instance
variables; use setattr() instead.
1996-08-08 20:26:45 +00:00
Guido van Rossum
37a6f16d2e
Slight update of doc string -- suggest default args for __init__, no
...
longer complain that __getinitargs__ is an ugly name.
1996-08-08 18:35:22 +00:00
Guido van Rossum
c7c5e697c3
Optimizations and one intentional loophole by Jim Fulton.
...
The optimizations consist mostly of using local variables to cache
methods or instance variables used a lot (e.g. "self.write").
The loopholes allows marshalling extension types as long as they have
a __class__ attribute (in which case they may support the rest of the
class piclking protocol as well). This allows pickling MESS extension
types.
1996-07-22 22:26:07 +00:00
Guido van Rossum
955c5d156d
Set the base for atoi() and atol() to 0, since we're reading Python
...
numbers here, and so that atol() doesn't barf on the trailing 'L'.
Add a test case involving a long integer.
1996-05-15 22:49:57 +00:00
Guido van Rossum
7853647dd1
Don't atoi() the memo key.
...
Use atoi(), atol(), atof() instead of load_atomic for seed-up.
1996-04-12 13:36:27 +00:00
Guido van Rossum
e0bfd50d76
correct typo (persis*ent)
1995-08-07 20:16:58 +00:00
Guido van Rossum
f71c79bb85
test other name variable
1995-06-22 18:51:23 +00:00
Guido van Rossum
48aa82e2df
correct typo in example
1995-04-10 11:34:46 +00:00
Guido van Rossum
0c891ce61a
pickle classes; add format_version, load(s)/dump(s) shortcuts
1995-03-14 15:09:05 +00:00
Guido van Rossum
7849da8631
added PicklingError exception
1995-03-09 14:08:35 +00:00
Guido van Rossum
7b5430f2e8
raise EOFError when load() hits EOF, instead of KeyError
1995-03-04 22:25:21 +00:00
Guido van Rossum
256cbd7487
minute comment changes
1995-02-16 16:30:50 +00:00
Guido van Rossum
a48061a580
shelve.py: database of persistent objects, on top of pickle.py and anydbm.py
...
pickle.py: new low-level persistency module (used to be called flatten)
dbmac.py: stupid dbm clone for the Mac
anydbm.py: generic dbm interface (should be extended to support gdbm)
1995-01-10 00:31:14 +00:00