[issue6811] add a filename argument to marshal.load*

2011-03-23 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 5deb2094f033 by Brett Cannon in branch 'default':
Make importlib compatible with __import__ by fixing code.co_filename
http://hg.python.org/cpython/rev/5deb2094f033

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6811] add a filename argument to marshal.load*

2011-03-23 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

I went with a different solution as backwards-compatibility dictates a solution 
that is not as complete as one might do with an argument to marshal.

--
resolution:  - wont fix
stage: test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6811] add a filename argument to marshal.load*

2010-08-06 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Just flagging this up in case it's dropped under the radar.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6811] add a filename argument to marshal.load*

2010-08-06 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
versions: +Python 3.3 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6811] add a filename argument to marshal.load*

2009-09-07 Thread Frank Wierzbicki

Changes by Frank Wierzbicki fwierzbi...@gmail.com:


--
nosy: +fwierzbicki

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6811] add a filename argument to marshal.load*

2009-08-31 Thread Brett Cannon

New submission from Brett Cannon br...@python.org:

For compatibility w/ import, importlib needs the ability to set 
code.co_filename to the actual location of the bytecode used to create a 
module and not the path embedded in the marshal data. But since 
co_filename is read-only it can't be done at the moment.

The idea is to add an optional argument to marshal.load* that takes a 
string representing the file path that co_filename should be set to, 
overriding what is in the marshal data.

A long-term perk of this is that eventually this argument can become 
required for marshal.loads() and the file path embedded in the marshal 
data can be removed entirely. marshal.load() would infer its path from 
file.name.

This was all discussed on python-dev; 
http://mail.python.org/pipermail/python-dev/2009-August/091460.html

--
assignee: brett.cannon
components: Extension Modules
messages: 92113
nosy: brett.cannon
priority: low
severity: normal
stage: test needed
status: open
title: add a filename argument to marshal.load*
type: feature request
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6811] add a filename argument to marshal.load*

2009-08-31 Thread Fred L. Drake, Jr.

Changes by Fred L. Drake, Jr. fdr...@acm.org:


--
nosy: +fdrake

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6811
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com