[issue29326] Blank lines in ._pth file are not ignored

2019-05-28 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: +13537 pull_request: https://github.com/python/cpython/pull/7243 ___ Python tracker ___

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: -6869 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread R. David Murray
R. David Murray added the comment: Vladimir, please open a new issue for this feature request. This issue is closed. -- nosy: +r.david.murray ___ Python tracker ___

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Malcolm Smith
Malcolm Smith added the comment: FYI: I have created issue 33689 for the non-Windows-specific issue. -- ___ Python tracker ___ ___

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Hi Steve. I'll try to explain what is my motivation. I need a reliable way to run Python (not matter embedded or not) in isolated mode, but still having current directory in `sys.path` (empty entry). Ironically I could misuse normal mode to simulate

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Steve Dower
Steve Dower added the comment: The python._pth file generated for the embeddable distribution includes ".", which allows you to import from the dist directory. The blank line should be ignored. If you want to misuse the embeddable distribution by not restricting its search paths, delete

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Change by Vladimir Chebotarev : -- pull_requests: +6869 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: I shall attach pull request soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29326] Blank lines in ._pth file are not ignored

2018-05-30 Thread Vladimir Chebotarev
Vladimir Chebotarev added the comment: Hi. I guess this issue has to be reopen because Alexey erroneously broke adding empty paths to `sys.path` along with his patch. Official embeddable Pythons do contain a blank line in its ._pth, and this allowed users to import modules from script

[issue29326] Blank lines in ._pth file are not ignored

2018-05-29 Thread Steve Dower
Steve Dower added the comment: Please create a new issue. This one is closed. -- ___ Python tracker ___ ___ Python-bugs-list

[issue29326] Blank lines in ._pth file are not ignored

2018-05-29 Thread Malcolm Smith
Malcolm Smith added the comment: > I'm not aware of any such issue with .pth files - the underscore in ._pth is > deliberate. An identical issue *does* exist for .pth files. As you can see from examining site.addpackage, it does not ignore blank lines as the documentation says. Ammar's

[issue29326] Blank lines in ._pth file are not ignored

2017-02-07 Thread Ammar Askar
Changes by Ammar Askar : -- status: open -> closed ___ Python tracker ___ ___

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d90b135e36c5b2794a29f650ebebf8bbd96f3fb by Steve Dower in branch '3.6': Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) https://github.com/python/cpython/commit/6d90b135e36c5b2794a29f650ebebf8bbd96f3fb --

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d90b135e36c5b2794a29f650ebebf8bbd96f3fb by Steve Dower in branch 'master': Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) https://github.com/python/cpython/commit/6d90b135e36c5b2794a29f650ebebf8bbd96f3fb New

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: needs patch -> resolved ___ Python tracker ___

[issue29326] Blank lines in ._pth file are not ignored

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54fea351e3f9 by Steve Dower in branch '3.6': Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev) https://hg.python.org/cpython/rev/54fea351e3f9 New changeset a0ff777ab153 by Steve Dower in branch 'default': Issue #29326:

[issue29326] Blank lines in ._pth file are not ignored

2017-01-28 Thread Steve Dower
Steve Dower added the comment: I haven't had a chance to try the patch (underpth_blank_lines.diff) or apply it, but it looks right. If one of the other core devs gets to apply this before I do, feel free. Alexey, you don't need to sign a CLA for this fix, but if you're going to contribute

[issue29326] Blank lines in ._pth file are not ignored

2017-01-27 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: I've encountered this issue too. (FYI, the official 3.6.0 embeddable zip from https://www.python.org/downloads/windows/ does contain a blank line in its ._pth, so all its users get an invalid entry in sys.path). The patch is attached. I couldn't fix tests in

[issue29326] Blank lines in ._pth file are not ignored

2017-01-21 Thread Steve Dower
Steve Dower added the comment: The fix for this issue is needed in PC/getpathp.c as this is a special feature in path generation on Windows. I'm not aware of any such issue with .pth files - the underscore in ._pth is deliberate. -- ___ Python

[issue29326] Blank lines in ._pth file are not ignored

2017-01-20 Thread Ammar Askar
Ammar Askar added the comment: I've attached a patch that makes the site package ignore empty lines in .pth files. Along with a test for this behavior. I'm not really familiar with the site machinery so I hope the test and code are fine. -- keywords: +patch nosy: +ammar2 Added file:

[issue29326] Blank lines in ._pth file are not ignored

2017-01-19 Thread Steve Dower
New submission from Steve Dower: If a python._pth file includes a blank line, it gets treated as '\n' which is then appended to the directory and used as an entry in sys.path. Empty lines should be ignored completely. -- components: Windows messages: 285809 nosy: paul.moore,