[issue29929] Idea: Make __main__ an implied package

2017-03-28 Thread Nick Coghlan
Nick Coghlan added the comment: A key enabler for actually pursuing this idea would be coming up with a feasible way of emitting a deprecation warning for code that relied on the old implicit relative imports. A reasonable fast check for that would be to: 1. Start populating a private sys._mai

[issue29929] Idea: Make __main__ an implied package

2017-03-28 Thread Nick Coghlan
New submission from Nick Coghlan: In just the last 24 hours, I've run across two cases where the default "the script directory is on sys.path" behaviour confused even experienced programmers: 1. a GitHub engineer thought the Python version in their Git-for-Windows bundle was broken because "f