homepage

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 dgreiman
Recipients dgreiman
Date 2016年10月12日.23:36:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476315360.41.0.557766587306.issue28424@psf.upfronthosting.co.za>
In-reply-to
Content
pkg_util.get_data('mypackage', 'resourcename')
returns None if 'mypackage' is a namespace package, because the package object has no __file__ attribute. A shell script is attached to reproduce this.
This is either a bug to be fixed (my preference) or behavior to be documented. If there is equivalent, working functionality in the new importlib, that would also be a good to document.
History
Date User Action Args
2016年10月12日 23:36:00dgreimansetrecipients: + dgreiman
2016年10月12日 23:36:00dgreimansetmessageid: <1476315360.41.0.557766587306.issue28424@psf.upfronthosting.co.za>
2016年10月12日 23:36:00dgreimanlinkissue28424 messages
2016年10月12日 23:36:00dgreimancreate

AltStyle によって変換されたページ (->オリジナル) /