This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients Arfrever, amaury.forgeotdarc, benjamin.peterson, georg.brandl, vinay.sajip
Date 2011-06-19.01:02:48
SpamBayes Score 8.016822e-06
Marked as misclassified No
Message-id <BANLkTimAxmw21U4wjYa--ziBB1fdY47zoQ@mail.gmail.com>
In-reply-to <675286.42112.qm@web25802.mail.ukl.yahoo.com>
Content
2011/6/18 Vinay Sajip <report@bugs.python.org>:
>
> Vinay Sajip <vinay_sajip@yahoo.co.uk> added the comment:
>
>> Benjamin Peterson <benjamin@python.org> added the  comment:
>> >  Vinay Sajip <vinay_sajip@yahoo.co.uk> added the  comment:
>> >
>> > Sorry I'm being dense, but which file object do you  mean?
>>
>> The python file  object.
>
> Do you mean special-case handling of the circumstance when the file-like object
> being marshalled from is actually a file? The existing code paths (from when
> marshal.load expected only to work with Python file objects) use FILE *, and
> these are used by other code to read magic numbers etc. I believe. Or perhaps
> I'm still misunderstanding what you're getting at.

When python uses dump() or load() with a file object, you can call
fileno() (and then fopen?) to use it like a C-file object.
History
Date User Action Args
2011-06-19 01:02:49benjamin.petersonsetrecipients: + benjamin.peterson, georg.brandl, vinay.sajip, amaury.forgeotdarc, Arfrever
2011-06-19 01:02:49benjamin.petersonlinkissue12291 messages
2011-06-19 01:02:48benjamin.petersoncreate