[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
New submission from Alejandro Santos : While the "Py_InitModule" does not exists on Py3k it is still mentioned on the docs: http://docs.python.org/py3k/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/py3k/extending/windows.html#a-cookbook-approach http://docs.python.org/py3k/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean -- assignee: docs@python components: Documentation messages: 139728 nosy: alejolp, docs@python priority: normal severity: normal status: open title: The Py_InitModule functions no longer exist, but remain in the docs versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12484] The Py_InitModule functions no longer exist, but remain in the docs
Alejandro Santos added the comment: The call is also present on the older 3.1 and "dev" release of the docs: http://docs.python.org/release/3.1.3/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/release/3.1.3/extending/windows.html#a-cookbook-approach http://docs.python.org/release/3.1.3/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean http://docs.python.org/dev/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/dev/extending/windows.html#a-cookbook-approach http://docs.python.org/dev/faq/extending.html#what-does-systemerror-pyimport-fixupextension-module-yourmodule-not-loaded-mean -- versions: +Python 3.1, Python 3.3 ___ Python tracker <http://bugs.python.org/issue12484> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6845] Restart support in binary upload for ftplib
Changes by Alejandro Santos : -- nosy: +alejolp ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6400] incorrect commands import
Alejandro Santos added the comment: Sorry. Yes, there is an "__init__.py" script on the same level as the "commands.py". I forgot to mention it. /mymodule/commands.py /mymodule/a.py /mymodule/__init__.py This is the real repository: http://selenic.com/repo/hg/file/b81baf9e4dd6/mercurial -- ___ Python tracker <http://bugs.python.org/issue6400> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6400] incorrect commands import
Alejandro Santos added the comment: Thanks! -- ___ Python tracker <http://bugs.python.org/issue6400> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6406] NameError on 2to3 tool
New submission from Alejandro Santos : Using the -j switch of the 2to3 tool shiped with Python 3.1 final i'm getting: Traceback (most recent call last): File "/home/alejo/apps/local/bin/2to3", line 6, in sys.exit(main("lib2to3.fixes")) File "/home/alejo/apps/local/lib/python3.1/lib2to3/main.py", line 132, in main options.processes) File "/home/alejo/apps/local/lib/python3.1/lib2to3/refactor.py", line 553, in refactor for i in xrange(num_processes)] NameError: global name 'xrange' is not defined Attached patch seems to work fine. -- components: 2to3 (2.x to 3.0 conversion tool) files: 2to3-xrange.patch keywords: patch messages: 90048 nosy: alejolp, djc severity: normal status: open title: NameError on 2to3 tool type: crash versions: Python 3.1 Added file: http://bugs.python.org/file14436/2to3-xrange.patch ___ Python tracker <http://bugs.python.org/issue6406> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6406] NameError on 2to3 tool
Alejandro Santos added the comment: Thanks!! -- ___ Python tracker <http://bugs.python.org/issue6406> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6408] 2to3: Local package import
New submission from Alejandro Santos : The 2to3 tool shipped with Python 3.1 final doesn't handle correctly a local package import (fixer fix_import). Test case: $ find . -name '*.py' ./__init__.py ./a.py ./b/__init__.py ./b/m.py $ 2to3 a.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: No files need to be modified. $ cat a.py from b import m m.q() Trying to use the 2to3 tool from one level up won't work either: $ 2to3 test2to3/a.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma RefactoringTool: No files need to be modified. It seems to be a bug in the fixer, which is using the os.path.pathsep constant when it should be using the os.path.sep instead. The probably_a_local_import function is checking if "test2to3/b:" exists, when it should be checking against: "test2to3/b/" Attached patch seems to be working: $ 2to3 test2to3/a.py RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: set_literal RefactoringTool: Skipping implicit fixer: ws_comma --- test2to3/a.py (original) +++ test2to3/a.py (refactored) @@ -1,5 +1,5 @@ -from b import m +from .b import m m.q() RefactoringTool: Files that need to be modified: RefactoringTool: test2to3/a.py -- components: 2to3 (2.x to 3.0 conversion tool) files: 2to3-os.path.sep.path messages: 90055 nosy: alejolp, djc severity: normal status: open title: 2to3: Local package import versions: Python 3.1 Added file: http://bugs.python.org/file14437/2to3-os.path.sep.path ___ Python tracker <http://bugs.python.org/issue6408> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6408] 2to3: Local package import
Alejandro Santos added the comment: Nice, Thanks! -- ___ Python tracker <http://bugs.python.org/issue6408> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com