]> granicus.if.org Git - python/commit
Apply (my) patch:
authorMichael W. Hudson <mwh@python.net>
Wed, 6 Mar 2002 17:07:49 +0000 (17:07 +0000)
committerMichael W. Hudson <mwh@python.net>
Wed, 6 Mar 2002 17:07:49 +0000 (17:07 +0000)
commitce358e3015bc8cafdf949dee624b01f4a38bfad2
tree2177eb335cd5b27c9e989fda2facc85140fcae85
parentda8a6dd07252fd8dae279f6858a31e177342db05
Apply (my) patch:

[ 526072 ] pickling os.stat results round II

structseq's constructors can now take "invisible" fields in a dict.
Gave the constructors better error messages.
their __reduce__ method puts these fields in a dict.

(this is all in aid of getting os.stat_result's to pickle portably)

Also fixes

[ 526039 ] devious code can crash structseqs

Thought needed about how much of this counts as a bugfix.  Certainly
#526039 needs to be fixed.
Objects/structseq.c