Message138624
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. |
|
Date |
User |
Action |
Args |
2011-06-19 01:02:49 | benjamin.peterson | set | recipients:
+ benjamin.peterson, georg.brandl, vinay.sajip, amaury.forgeotdarc, Arfrever |
2011-06-19 01:02:49 | benjamin.peterson | link | issue12291 messages |
2011-06-19 01:02:48 | benjamin.peterson | create | |
|