On Mon, 31 Oct 2011 16:42:00 +0100
Dirkjan Ochtman
On Sun, Oct 30, 2011 at 00:18, Antoine Pitrou
wrote: I would like to propose the following PEP for discussion and, if possible, acceptance. I think the proposal shouldn't be too controversial (I find it quite simple and straightforward myself :-)).
Are these names relative or fully absolute? I.e. I've had problems in the past with unpickling objects that were pickled from a module that was imported using a relative import. Would it be possible to define the qname such that the full path to the name, starting from a sys.path level down, is always used?
The __qname__, by design, doesn't include any module name. To get the "full path", you still have to add in the __module__ attribute. Solving the problems with relative imports (I'm not sure what they are) is another problem which Nick is apparently tackling (?). Regards Antoine.