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 hauser
Recipients hauser
Date 2008-02-12.20:50:35
SpamBayes Score 0.04627095
Marked as misclassified No
Message-id <1202849437.01.0.315019169694.issue2090@psf.upfronthosting.co.za>
In-reply-to
Content
This construction:

__import__( 'pkg', {}, {}, [''] )

Will cause double initialization of package 'pkg', once with name 'pkg'
and second one with name 'pkg.' (trailing dot). Implementation tries to
import subpackage of 'pkg' with empty name, and imports the same package
twice.

This kind of construction is used as a hacky way to obtain exact module
instead of top-level module in return value. It is a hack, but should
not cause this kind of side effects.
History
Date User Action Args
2008-02-12 20:50:37hausersetspambayes_score: 0.046271 -> 0.04627095
recipients: + hauser
2008-02-12 20:50:37hausersetspambayes_score: 0.046271 -> 0.046271
messageid: <1202849437.01.0.315019169694.issue2090@psf.upfronthosting.co.za>
2008-02-12 20:50:35hauserlinkissue2090 messages
2008-02-12 20:50:35hausercreate