[issue30167] site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set

2017-04-26 Thread André Anjos
Changes by André Anjos : -- title: site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP is set -> site.main() does not work on Python 3.6 and superior if PYTHONSTARTUP is set ___ Python tracker <http://bugs.python.org/issu

[issue30167] site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP is set

2017-04-26 Thread André Anjos
Changes by André Anjos : -- title: site.main() does not work on Python 3.6 and superior -> site.main() does not work on Python 3.6 and superior with PYTHONSTARTUP is set ___ Python tracker <http://bugs.python.org/issu

[issue30167] site.main() does not work on Python 3.6 and superior

2017-04-26 Thread André Anjos
André Anjos added the comment: After further investigation, the issue can only be reproduced iff the user sets PYTHONSTARTUP which triggers "__main__" to appear in sys.modules and the problem to occur. -- ___ Python tracker <http://bu

[issue30167] site.main() does not work on Python 3.6 and superior

2017-04-26 Thread André Anjos
André Anjos added the comment: More information: to reproduce the problem, don't use Python's "-c" command-line option. In this case "__main__" won't be inside sys.modules which mitigates the issue. -- ___ Pyth

[issue30167] site.main() does not work on Python 3.6 and superior

2017-04-26 Thread André Anjos
New submission from André Anjos: Apparently, "import site; site.main()" does not seem to work anymore on Python 3.6 and superior. The reason is a change on the behavior of "os.path.abspath(None)". Before Python 3.6, it used to report an AttributeError which is pr

[issue13773] Support sqlite3 uri filenames

2012-09-11 Thread André Anjos
André Anjos added the comment: A question concerning this patch: is this going to be applied only to 3.3 or to 2.7 as well? Python-2.7.x also does not have this functionality which would be interesting to get. -- nosy: +anjos ___ Python tracker