[Python-ideas] PEP: Extended stat_result (First Draft)

Christian Heimes christian at python.org
Mon May 6 14:53:53 CEST 2013


Am 06.05.2013 14:37, schrieb Pieter Nagel:
> I see, based on the following code in os.py that this mechanism already
> exists:
> 
>     def _make_stat_result(tup, dict):
>         return stat_result(tup, dict)
> 
> Since I don't propose removing any behaviour from the current
> stat_result, my proposal will leave that untouched.

That's just for pickle support.

You are going to have to reimplement the stat_result class in C. It's
currently implemented as PyStructSequence but you can't subclass it.

Christian




More information about the Python-ideas mailing list