[issue12919] Control what module is imported first

2019-10-22 Thread STINNER Victor
STINNER Victor added the comment: I close the issue since I see disagreement on the feature request. Modules/getpath.c and PC/getpathp.c use Lib/os.py to detect the stdlib directory. _PyUnicode_InitEncodings() is the first function importing modules: to import the Python codec of the filesy

[issue12919] Control what module is imported first

2013-02-01 Thread Brett Cannon
Brett Cannon added the comment: This would tie into PEP 432 at this point. -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-l

[issue12919] Control what module is imported first

2012-03-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +carljm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12919] Control what module is imported first

2011-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Antoine. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12919] Control what module is imported first

2011-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think conflating two orthogonal needs in a single "feature" like that is a good idea. This will become one of these obscure implementation details which complicate the code for no real benefit. If there's a need to "customize the first import" then a

[issue12919] Control what module is imported first

2011-11-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12919] Control what module is imported first

2011-09-09 Thread Éric Araujo
Éric Araujo added the comment: Thomas: I assume you have “hg add”-ed the file; you may need to use git-style diffs to have new files included in diffs: http://hgtip.com/tips/beginner/2009-10-22-always-use-git-diffs/ -- nosy: +eric.araujo ___ Python

[issue12919] Control what module is imported first

2011-09-07 Thread Thomas Wouters
Thomas Wouters added the comment: Here's the patch implementing this, which I'd attached to Issue11561 (although I noticed 'hg diff' omitted the empty stdlib_landmark.py file.) -- keywords: +patch nosy: +twouters Added file: http://bugs.python.org/file23113/stdlib_landmark.diff __

[issue12919] Control what module is imported first

2011-09-06 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12919] Control what module is imported first

2011-09-06 Thread Brett Cannon
New submission from Brett Cannon : Issue11561 had a use case for controlling what module is imported first (along with a patch to use a module other than 'os' to control finding the stdlib). There have been others who could use this feature as well. -- components: Interpreter Core mess