[issue8040] documentation pages should link to other versions of the same page
Georg Brandl added the comment: For future reference, it's okay (and perhaps preferable) to upload a patch just for the default branch when no substantive changes are needed for other branches. This is especially true early in the review process when multiple iterations may be uploaded. Definitely preferable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Georg Brandl added the comment: Attaching a simplified version of the patch. -- Added file: http://bugs.python.org/file27743/versionswitcher.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16307] multiprocess.pool.map_async callables not working
Hynek Schlawack added the comment: LGTM. Presuming you want to submit more patches in future, please take the time to sign a Python contributor agreement: http://www.python.org/psf/contrib/ . You'll get a pretty star next to your name in the bug tracker in return. ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16250] URLError invoked with reason as filename
Roundup Robot added the comment: New changeset 5e71f2712076 by Senthil Kumaran in branch '3.2': Issue #16250: Fix URLError invocation with proper args. http://hg.python.org/cpython/rev/5e71f2712076 New changeset 30547e2cd04d by Senthil Kumaran in branch '3.3': Issue #16250: Fix URLError invocation with proper args http://hg.python.org/cpython/rev/30547e2cd04d -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16336] Check input in surrogatepass error handler
New submission from Serhiy Storchaka: The proposed patch fixes input checking in surrogatepass error handler. Also it fixes 10% speed regression introduced by changeset 74d65c746f63. -- components: Interpreter Core, Unicode files: codecs_surrogatepass_2.patch keywords: patch messages: 173915 nosy: ezio.melotti, pjenvey, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Check input in surrogatepass error handler type: behavior versions: Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file27744/codecs_surrogatepass_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16250] URLError invoked with reason as filename
Roundup Robot added the comment: New changeset 3fb84c1da8c5 by Senthil Kumaran in branch '2.7': Add some tests in 2.7 for Issue #16250 http://hg.python.org/cpython/rev/3fb84c1da8c5 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16312] New command line option supported by unittest.main() for running initialization code before tests
Piotr Dobrogost added the comment: @Chris The example given by Holger Krekel (http://stackoverflow.com/a/13094042/95735) showing how it can be done with pytest is exactly the thing I had in mind. It would be good to have this feature incorporated into unittest. @Michael I guess checking this flag must be protected by a lock in case test cases are run in parallel. If so wouldn't this be kind of a bottleneck? Is this flag necessary? Can't we just assume that initialization code had already run when any testcase runs? There's interesting question how would initialization code be run in case of auto discovery. In the simplest form it would be run just once before all modules with tests are run. But it would be interesting to allow running initialization per test module. To support this unittest should somehow pass name of test module to be executed to initialization code. Alternatively there could be some special named init files which would be run before running test modules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16301] localhost() and thishost() in urllib/request.py
Senthil Kumaran added the comment: This is fixed in 3.3 and 3.2 3.2 5e71f2712076 3.3 30547e2cd04d -- resolution: - fixed status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16250] URLError invoked with reason as filename
Senthil Kumaran added the comment: This is fixed in all versions now. -- assignee: - orsenthil resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError
Senthil Kumaran added the comment: Buildbot issues are taken care. They are green for while. Tests have been backported 3.3 and 3.2 as well. 3.2 5e71f2712076 3.3 30547e2cd04d -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10836] urllib.request.urlretrieve calls URLError with 3 args
Senthil Kumaran added the comment: This has been backported. 3.2 5e71f2712076 3.3 30547e2cd04d -- assignee: - orsenthil resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10836 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16307] multiprocess.pool.map_async callables not working
Roundup Robot added the comment: New changeset 1bccec4ff980 by Hynek Schlawack in branch '3.3': #16307: Fix multiprocessing.Pool.map_async not calling its callbacks http://hg.python.org/cpython/rev/1bccec4ff980 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16307] multiprocess.pool.map_async callables not working
Hynek Schlawack added the comment: Applied. Thank you for your contribution! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16337] typo in documentation regarding Bytearray Objects, chapter 4.8.2
New submission from Winfried Plappert: In the online documentation at http://docs.python.org/py3k/library/stdtypes.html?highlight=bytearray%20objects%20copying%20existing%20binary%20data%20via%20buffer%20protocol and the PDF version 3.3.0, page 46, both in chapter 4.8.2: Bullet 4 is bytearray(b'Hi!) but should be bytearray(b'Hi!') -- assignee: docs@python components: Documentation messages: 173924 nosy: docs@python, wplappert priority: normal severity: normal status: open title: typo in documentation regarding Bytearray Objects, chapter 4.8.2 type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16312] New command line option supported by unittest.main() for running initialization code before tests
Michael Foord added the comment: @piotr Yes, protecting the set up with a lock would be easy, although unittest doesn't directly support running tests in parallel anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: Attaching a simplified version of the patch. I'm OK, but you actually reduced the functionality with saving those 500 bytes. In 'py3_version_switch.3.patch', JS sets the current selected option text to show the the *full* release number. I.e. if you are on the 3.3 doc site, 3.3.0 will be selected and shown in the dropdown (and 3.4.0a1 for /dev/ etc) I think that was a useful thing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Georg Brandl added the comment: My bad, you're right. Next try attached. -- Added file: http://bugs.python.org/file27745/versionswitcher.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: Georg, Are you sure you've attached the right one? I don't see a change in the version_switch.js... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Changes by Georg Brandl ge...@python.org: Removed file: http://bugs.python.org/file27745/versionswitcher.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Georg Brandl added the comment: Now it should be the right one. -- Added file: http://bugs.python.org/file27746/versionswitcher.5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: Looks good, let's commit it? ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: Maybe it's a good idea to modify `url_re` from /\.org\/(py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\// to /\.org\/(\d|py3k|dev|((release\/)?\d\.\d[\w\d\.]*))\// To be prepared for PEP 430. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16107] distutils2.version doesn't str() 1.0.post1 correctly
Roundup Robot added the comment: New changeset 6e98237abde9 by Éric Araujo in branch 'default': Fix stringification of final versions (#16107). http://hg.python.org/distutils2/rev/6e98237abde9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16107 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16107] distutils2.version doesn't str() 1.0.post1 correctly
Éric Araujo added the comment: Fixed. Vinay, you probably want to apply this to your forked version module too. -- nosy: +vinay.sajip resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16107 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16108] Include maintainer information in register/upload
Éric Araujo added the comment: Would that result in displaying both author and maintainer info on the PyPI page? For what cases is it useful? Questions about author/maintainer come up from time to time. The way I understand it, the goal of these fields is to give contact information to the users; if only author is specified, distutils sends that info to PyPI, but if maintainer is given, distutils uses that and ignores author. That way, credit can be preserved with the author field, and the current contact is given by maintainer. If this thinking is correct (PEPs aren’t explicit about that), then only one of maintaine and author should be sent. What do you think? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16108 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16163] Wrong name in Lib/pkgutil.py:iter_importers
Berker Peksag added the comment: I've attached a new patch. -- Added file: http://bugs.python.org/file27747/pkgutil-name-with-test_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16163] Wrong name in Lib/pkgutil.py:iter_importers
Changes by Berker Peksag berker.pek...@gmail.com: Removed file: http://bugs.python.org/file27487/pkgutil-name.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16163 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`
Éric Araujo added the comment: Unless Georg would still like this, I retract the proposal. Ezio: Disabling `...` sounds OK to me (I don't think we have many left, if any). I think some of them crept up in logging and unittest docs, but they are easy to find with Doc/tools/rst-lint.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15957] README.txt points to broken contributing url in python wiki
Roundup Robot added the comment: New changeset 421e74040326 by Éric Araujo in branch 'default': Fix link in README (#15957). Patch by Cliff Dyer. http://hg.python.org/distutils2/rev/421e74040326 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15957] README.txt points to broken contributing url in python wiki
Éric Araujo added the comment: Thanks! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15043] test_gdb is disallowed by default security settings in Fedora 17
R. David Murray added the comment: It does seem to be possible to do this at command invocation. Patch attached. -- keywords: +patch nosy: +r.david.murray status: closed - open Added file: http://bugs.python.org/file27748/test_gdb_security.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16338] pysnmp/asyncore - timeout ineffective?
New submission from Trenton Craig: I have an application that is set to use pysnmp to obtain sysDescription and system names from devices on our network. Currently, we are using python 2.6.2, due to the limitations of the box (solaris), and it works fine. However, our new environment uses python2.7.3, and ubuntu, and the timeout attribute appears to be failing. Not sure if this is a bug with pysnmp or asyncore. I apologize for the brevity of the situation, but will be happy to provide more details upon request. -- components: None messages: 173940 nosy: Trenton.Craig priority: normal severity: normal status: open title: pysnmp/asyncore - timeout ineffective? type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16338 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6478] time.tzset does not reset _strptime's locale time cache
Berker Peksag added the comment: 2. Please use @run_with_tz decorator. Done. Patch attached. -- Added file: http://bugs.python.org/file27749/issue6478_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6478 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3636] Managing dual 2.x and 3.0 installations on Windows
Éric Araujo added the comment: Now fixed thanks to PEP 397. http://docs.python.org/py3k/whatsnew/3.3.html#pep-397-python-launcher-for-windows -- nosy: +eric.araujo resolution: - out of date stage: needs patch - committed/rejected status: open - closed versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file
Éric Araujo added the comment: I think it should be documented and tested that this change is backward-compatible, as the new error class inherits from the one previously used. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15961] Missing return value in ``system_message``
Éric Araujo added the comment: Found it! I will backport the fix to distutils now. -- resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - setup.py register fails if long_description contains ReST ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15961 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13614] setup.py register fails if long_description contains ReST
Changes by Éric Araujo mer...@netwok.org: -- nosy: +malthe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16107] distutils2.version doesn't str() 1.0.post1 correctly
Roundup Robot added the comment: New changeset d328dcd07449 by Éric Araujo in branch 'python3': Merge fixes for #16107 and #15957 from default http://hg.python.org/distutils2/rev/d328dcd07449 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16107 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15957] README.txt points to broken contributing url in python wiki
Roundup Robot added the comment: New changeset d328dcd07449 by Éric Araujo in branch 'python3': Merge fixes for #16107 and #15957 from default http://hg.python.org/distutils2/rev/d328dcd07449 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?
New submission from Mark Dickinson: In Python 2, the 'exec' statement supports 'exec'-ing a (statement, globals, locals) tuple: exec(print 2, {}, {}) 2 This doesn't seem to be documented at http://docs.python.org/reference/simple_stmts.html#the-exec-statement. If I understand correctly, the 'exec tuple' form was originally there for backwards compatibility with ancient versions of Python; however, it now also conveniently provides the semblance of forwards compatibility with Python 3. It appears to be supported by current versions of Jython (though judging by issue 403345 that wasn't always the case) and PyPy. Is this omission intentional? Is this form of exec an official, supported part of the Python 2 language? -- assignee: docs@python components: Documentation messages: 173947 nosy: docs@python, mark.dickinson priority: normal severity: normal stage: needs patch status: open title: Document exec(stmt, global_dict, local_dict) form in Python 2? versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16339 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`
Georg Brandl added the comment: I'm not very attached to it, so I'm fine with closing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16323] Wrong C API documentation for locale encoding
Berker Peksag added the comment: Also, the documentation for PyUnicode_DecodeLocaleAndSize() is wrong. Patch attached. Related changeset: http://hg.python.org/cpython/rev/07802351ccad -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file27750/issue16323.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15043] test_gdb is disallowed by default security settings in Fedora 17
Roundup Robot added the comment: New changeset b71cda2f48c6 by R David Murray in branch '3.2': #15043: Improve test_gdb support of gdb = 7.4. http://hg.python.org/cpython/rev/b71cda2f48c6 New changeset 6f064689b8c0 by R David Murray in branch '3.3': merge #15043: Improve test_gdb support of gdb = 7.4. http://hg.python.org/cpython/rev/6f064689b8c0 New changeset b9141239a5b4 by R David Murray in branch 'default': merge #15043: Improve test_gdb support of gdb = 7.4. http://hg.python.org/cpython/rev/b9141239a5b4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15043] test_gdb is disallowed by default security settings in Fedora 17
Roundup Robot added the comment: New changeset 1b1ead5cecae by R David Murray in branch '2.7': #15043: Improve test_gdb support of gdb = 7.4. http://hg.python.org/cpython/rev/1b1ead5cecae -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15043] test_gdb is disallowed by default security settings in Fedora 17
R. David Murray added the comment: Committed. Also deleted the paragraph from the devguide faq, since it is no longer needed. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux
Éric Araujo added the comment: Would you like to work on a patch? -- stage: - test needed versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16326 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16323] Wrong C API documentation for locale encoding
Serhiy Storchaka added the comment: Victor, you forgot to update the documentation. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`
Changes by Éric Araujo mer...@netwok.org: -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8996 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16340] Error: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte
New submission from Konstantin Zemlyak: When installing python 3.3 under windows and checking Compile .py files to byte code after installation Lib/venv/scripts/nt/pydoc.py gets precompiled as well. This causes venv module to abort with Error: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte while copying scripts from Lib/venv/scripts/nt since only .exe files are copied verbatim, and rest are treated as utf-8 text: http://hg.python.org/cpython/file/b20e473157b8/Lib/venv/__init__.py#l314 The solution is to add another exception to compileargs at Tools/msi/msi.py: http://hg.python.org/cpython/file/b20e473157b8/Tools/msi/msi.py#l419 This issue doesn't affect non-windows systems, since Lib/venv/scripts/posix doesn't contain .py files. -- components: Installation messages: 173955 nosy: zart priority: normal severity: normal status: open title: Error: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16340] Decoding error in venv when byte-compiling stdlib
Éric Araujo added the comment: Which file exactly causes the error? If it’s pydoc.py, it’s strange because the source is ASCII. Are you installing in a path with non-ASCII characters? -- nosy: +eric.araujo, vinay.sajip title: Error: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte - Decoding error in venv when byte-compiling stdlib versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16340] Decoding error in venv when byte-compiling stdlib
Konstantin Zemlyak added the comment: If option to precompile python files is checked in installer, pydoc.py gets compiled into binary files Lib\venv\scripts\nt\__pycache__\pydoc.cpython33.pyc and Lib\venv\scripts\nt\__pycache__\pydoc.cpython33.pyo. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12890] cgitb displays p tags when executed in text mode
Roundup Robot added the comment: New changeset 715e5b337c91 by R David Murray in branch '2.7': #12890: don't emit p tags in text mode when logdir specified. http://hg.python.org/cpython/rev/715e5b337c91 New changeset abbfb89055d3 by R David Murray in branch '3.2': #12890: don't emit p tags in text mode when logdir specified. http://hg.python.org/cpython/rev/abbfb89055d3 New changeset 45764e4bb504 by R David Murray in branch '3.3': merge #12890: don't emit p tags in text mode when logdir specified. http://hg.python.org/cpython/rev/45764e4bb504 New changeset b21c28258d3c by R David Murray in branch 'default': merge #12890: don't emit p tags in text mode when logdir specified. http://hg.python.org/cpython/rev/b21c28258d3c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12890] cgitb displays p tags when executed in text mode
R. David Murray added the comment: Committed with Ezio's \p and with simplification of the tests by using script_helper. Thanks, Jeff! -- nosy: +r.david.murray resolution: - fixed status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16340] Decoding error in venv when byte-compiling stdlib
Konstantin Zemlyak added the comment: Also current title is a bit wrong, since decoding error happens in runtime each time venv is invoked, while the source of the problem happens while byte-compiling stdlib at install time once. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16340] Decoding error at install time when byte-compiling venv scripts
Éric Araujo added the comment: Are you installing in a path with non-ASCII characters? -- title: Decoding error in venv when byte-compiling stdlib - Decoding error at install time when byte-compiling venv scripts ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16323] Wrong C API documentation for locale encoding
STINNER Victor added the comment: Encode a Unicode object to the current locale encoding. The encoder is strict if *errors* is equal to ``strict``, otherwise it uses the ``'surrogateescape'`` error handler (:pep:`383`). Hum, this is not correct. There are three valid values: - NULL: strict - strict: strict - surrogateescape: use PEP 383 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16323 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16340] Decoding error at install time when byte-compiling venv scripts
Konstantin Zemlyak added the comment: Not at all. I have installed Python into C:\Program Files (x86)\Python33. Also made a copy into D:\Python33 and got the same results. The problem is in file contents (pyc/pyo files are binary, utf-8 fails to decode them), not in filenames. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Roundup Robot added the comment: New changeset 006f9ade82f2 by Ezio Melotti in branch '2.7': #8040: add a version switcher to the documentation. Patch by Yury Selivanov. http://hg.python.org/cpython/rev/006f9ade82f2 New changeset 35a2a0e166d0 by Ezio Melotti in branch '3.2': #8040: add a version switcher to the documentation. Patch by Yury Selivanov. http://hg.python.org/cpython/rev/35a2a0e166d0 New changeset 9505a34b4484 by Ezio Melotti in branch '3.3': #8040: merge with 3.2. http://hg.python.org/cpython/rev/9505a34b4484 New changeset 9552d8b90683 by Ezio Melotti in branch 'default': #8040: merge with 3.3. http://hg.python.org/cpython/rev/9552d8b90683 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Roundup Robot added the comment: New changeset c3adbe20bb4b by Ezio Melotti in branch '2.7': #8040: enable the versionswitcher for the autobuild-dev target. http://hg.python.org/cpython/rev/c3adbe20bb4b New changeset 740be7346c92 by Ezio Melotti in branch '3.2': #8040: enable the versionswitcher for the autobuild-dev target. http://hg.python.org/cpython/rev/740be7346c92 New changeset 5c30f8fdd896 by Ezio Melotti in branch '3.3': #8040: merge with 3.2. http://hg.python.org/cpython/rev/5c30f8fdd896 New changeset 75bff8c947d0 by Ezio Melotti in branch 'default': #8040: merge with 3.3. http://hg.python.org/cpython/rev/75bff8c947d0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: Ezio, Georg's modification introduced one more bug: 1. Documentation for py2 seems to be missing DOCUMENTATION_OPTIONS.RELEASE 2. DOCUMENTATION_OPTIONS.VERSION is in a wrong format for the rest of the script, i.e. 3.3.0 and not 3.3. Before, in my version there was a code that worked around this. Please apply attached patch that fixes all that. -- Added file: http://bugs.python.org/file27751/switcher_js.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Roundup Robot added the comment: New changeset 7ca30af90c11 by Ezio Melotti in branch '2.7': #8040: fix the version. http://hg.python.org/cpython/rev/7ca30af90c11 New changeset 36a35b86e3b0 by Ezio Melotti in branch '3.2': #8040: fix the version. http://hg.python.org/cpython/rev/36a35b86e3b0 New changeset 7cabdb58fb23 by Ezio Melotti in branch '3.3': #8040: merge with 3.2. http://hg.python.org/cpython/rev/7cabdb58fb23 New changeset 9a97b6d2e24a by Ezio Melotti in branch 'default': #8040: merge with 3.3. http://hg.python.org/cpython/rev/9a97b6d2e24a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1294] Management of KeyboardInterrupt in cmd.py
Philip Zerull added the comment: Hello, Being of a similar mindset to draghuram on the do_KeyboardInterrupt idea and thought I'd implement it as a subclass. While this probably wasn't fully implemented correctly, I think it provides an interesting solution to stephbul's frustrations and won't break anything. I'm not suggesting that this be included in the standard library but just thought you all might find it interesting. -- nosy: +Philip.Zerull Added file: http://bugs.python.org/file27752/keyboardcmd.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Georg Brandl added the comment: Indeed RELEASE is not defined anywhere. I was confusing JS variables and Jinja template variables: DOCUMENTATION_OPTIONS.VERSION is in fact what Sphinx calls release. So the fix should be to use VERSION as release and VERSION[:3] as version. Thanks for catching that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: I think we should also apply patch for 2.6, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: And last bit - are you sure we shouldn't add the switch for 2.5? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16239] PEP8 arithmetic operator examples
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: And if you guys can - please re-run the docs generation script manually... As it's showing an incorrect version everywhere. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16337] typo in documentation regarding Bytearray Objects, chapter 4.8.2
Roundup Robot added the comment: New changeset a0e20651 by Ezio Melotti in branch '3.3': #16337: fix typo. http://hg.python.org/cpython/rev/a0e20651 New changeset fd3bc0323505 by Ezio Melotti in branch 'default': #16337: merge with 3.3. http://hg.python.org/cpython/rev/fd3bc0323505 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Georg Brandl added the comment: 2.5 is neither supported anymore, nor should we make it look like it is :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16337] typo in documentation regarding Bytearray Objects, chapter 4.8.2
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15749] cgitb prints html for text when display disabled.
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15749 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15749] cgitb prints html for text when display disabled.
R. David Murray added the comment: Issue 12890 fix is now committed. Perhaps I should have worked with yours instead...but I didn't. The test solution in that patch, calling python in a separate process, is conceptually simpler but will take more time to run. I'm on the fence as to which one I prefer, having looked at your patch now...but I'm not sure that your patch cleans up properly, and that fact that that is difficult to figure out argues a bit for the cleaner subprocess solution. I much prefer tests that run fast, though... -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15749 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15889] regrtest --start option raises AttributeError in many scenarios
Roundup Robot added the comment: New changeset f6d04f5cff31 by R David Murray in branch '3.2': #15889: make regrtest --start succeed in more cases. http://hg.python.org/cpython/rev/f6d04f5cff31 New changeset 19f205e3111c by R David Murray in branch '3.3': merge #15889: make regrtest --start succeed in more cases. http://hg.python.org/cpython/rev/19f205e3111c New changeset f9bd7633316c by R David Murray in branch 'default': merge #15889: make regrtest --start succeed in more cases. http://hg.python.org/cpython/rev/f9bd7633316c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15889] regrtest --start option raises AttributeError in many scenarios
R. David Murray added the comment: Thanks, Chris. -- nosy: +r.david.murray resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9017] doctest option flag to enable/disable some chunk of doctests?
Ezio Melotti added the comment: I'm going to close this as rejected, because the feature doesn't seem too useful, there are available workarounds, and the addition of the ENABLE/DISABLE flags might add confusions. -- nosy: +ezio.melotti resolution: - rejected stage: needs patch - committed/rejected status: open - closed versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12890] cgitb displays p tags when executed in text mode
R. David Murray added the comment: The tests fail on Widows7 on the buildbots. (They work fine in my XP Windows VM.) -- assignee: eric.araujo - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16325] PEP 8 refers to reference to PEP 8
Ezio Melotti added the comment: I applied the patch and removed the two sentences: http://hg.python.org/peps/rev/be77365934e7 -- assignee: docs@python - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15749] cgitb prints html for text when display disabled.
Roundup Robot added the comment: New changeset 0e4574595674 by R David Murray in branch '3.3': #12890: skip tests which fail on windows until fixed or rewritten. http://hg.python.org/cpython/rev/0e4574595674 New changeset 57a33af85407 by R David Murray in branch 'default': merge #12890: skip tests which fail on windows until fixed or rewritten. http://hg.python.org/cpython/rev/57a33af85407 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15749 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12890] cgitb displays p tags when executed in text mode
R. David Murray added the comment: I put in a skip until we either fix the tests or rewrite them as suggested in issue 15749. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12890] cgitb displays p tags when executed in text mode
Roundup Robot added the comment: New changeset 0e4574595674 by R David Murray in branch '3.3': #12890: skip tests which fail on windows until fixed or rewritten. http://hg.python.org/cpython/rev/0e4574595674 New changeset 57a33af85407 by R David Murray in branch 'default': merge #12890: skip tests which fail on windows until fixed or rewritten. http://hg.python.org/cpython/rev/57a33af85407 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8401] Strange behavior of bytearray slice assignment
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file16945/issue8401.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8401] Strange behavior of bytearray slice assignment
Ezio Melotti added the comment: Updated patch against default. -- keywords: +needs review Added file: http://bugs.python.org/file27753/issue8401.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8401 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16316] Support xz compression in mimetypes module
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo, r.david.murray versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16316 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups
Jeff McNeil added the comment: Gave this a go myself... $ ./python Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30) [GCC 4.4.3] on linux Type help, copyright, credits or license for more information. import socket socket.getfqdn() 'host.domain.com' $ hostname -f host.domain.com $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters Linux host 3.5.2-x86_64 #1 SMP Wed Aug 15 14:31:07 EDT 2012 x86_64 GNU/Linux According to strace, both rely on DNS: recvfrom(3, Wj\201\200\0\1\0\1\0\5\0\0\00219\003134\003230\003173\7in-a..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr(1.2.3.4)}, [16]) = 176 Same behavior on both 2.6 hg tip. I think this is a non-issue. -- nosy: +mcjeff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
New submission from Jesús Cea Avión: In python 2.7 documentation, doing grep -i 'except.*,.*:' *rst shows quite a few old style except:. I think that except X, e: should be transformed to except X as e:, for clarity, as done in issue #16332. The only thing is that this syntax, used in examples, would be incompatible with old python releases. Opinions? -- keywords: easy messages: 173988 nosy: jcea priority: normal severity: normal status: open title: In examples, except: should use new syntax versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16332] Use new exception handling syntax in Subprocess documentation
Jesús Cea Avión added the comment: Related issue #16341. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16332 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Jesús Cea Avión j...@jcea.es: -- components: +Library (Lib) nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16239] PEP8 arithmetic operator examples
Guido van Rossum added the comment: Wow. Someone edited that to be completely against my guidance. I'll fix it according to my intentions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16239] PEP8 arithmetic operator examples
Changes by Guido van Rossum gu...@python.org: -- assignee: ezio.melotti - gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16239] PEP8 arithmetic operator examples
Guido van Rossum added the comment: Corrected to: Yes:: i = i + 1 submitted += 1 x = x*2 - 1 hypot2 = x*x + y*y c = (a+b) * (a-b) No:: i=i+1 submitted +=1 x = x * 2 - 1 hypot2 = x * x + y * y c = (a + b) * (a - b) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16342] setup.py not compiling with NDEBUG in non-debug builds
New submission from Brett Cannon: Discovered on OS X 10.8 with clang 3.1, I'm having build failures for _json, _md5, _sha1, _sha256, _sha3, and _sha512 because _PyUnicode_CheckConsistency() is only defined when defined(Py_DEBUG) !defined(Py_LIMITED_API) even though it is only used in assert() calls (like the one below). If you read the comment in Include/Python.h where assert.h is included it explicitly says that: /* CAUTION: Build setups should ensure that NDEBUG is defined on the * compiler command line when building Python in release mode; else * assert() calls won't be removed. */ Based on the output below that is not currently happening in setup.py. Not sure if that is a failure of setup.py or distutils of not specifying the flag. building '_json' extension /Users/bcannon/Developer/bin/clang -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes -Wno-unused-value -Wno-empty-body -Qunused-arguments -Wno-unused-value -Wno-empty-body -Qunused-arguments -I./Include -I. -I/Users/bcannon/Developer/include -I/Users/bcannon/Developer/Cellar/readline/6.2.2/include -I/Users/bcannon/Developer/repo/cpython/py3.3/Include -I/Users/bcannon/Developer/repo/cpython/py3.3 -c /Users/bcannon/Developer/repo/cpython/py3.3/Modules/_json.c -o build/temp.macosx-10.8-x86_64-3.3/Users/bcannon/Developer/repo/cpython/py3.3/Modules/_json.o /Users/bcannon/Developer/repo/cpython/py3.3/Modules/_json.c:249:12: warning: implicit declaration of function '_PyUnicode_CheckConsistency' is invalid in C99 [-Wimplicit-function-declaration] assert(_PyUnicode_CheckConsistency(rval, 1)); ^ /usr/include/assert.h:93:25: note: expanded from macro 'assert' (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0) ^ 1 warning generated. /Users/bcannon/Developer/bin/clang -bundle -undefined dynamic_lookup -L /Users/bcannon/Developer/lib -L/Users/bcannon/Developer/Cellar/readline/6.2.2/lib -L /Users/bcannon/Developer/lib -L/Users/bcannon/Developer/Cellar/readline/6.2.2/lib -L /Users/bcannon/Developer/lib -L/Users/bcannon/Developer/Cellar/readline/6.2.2/lib -Wno-unused-value -Wno-empty-body -Qunused-arguments -I /Users/bcannon/Developer/include -I/Users/bcannon/Developer/Cellar/readline/6.2.2/include build/temp.macosx-10.8-x86_64-3.3/Users/bcannon/Developer/repo/cpython/py3.3/Modules/_json.o -L/Users/bcannon/Developer/lib -L/Users/bcannon/Developer/Cellar/readline/6.2.2/lib -o build/lib.macosx-10.8-x86_64-3.3/_json.so *** WARNING: renaming _json since importing it failed: dlopen(build/lib.macosx-10.8-x86_64-3.3/_json.so, 2): Symbol not found: __PyUnicode_CheckConsistency Referenced from: build/lib.macosx-10.8-x86_64-3.3/_json.so Expected in: flat namespace in build/lib.macosx-10.8-x86_64-3.3/_json.so -- components: Build keywords: 3.3regression messages: 173992 nosy: brett.cannon, eric.araujo priority: normal severity: normal stage: needs patch status: open title: setup.py not compiling with NDEBUG in non-debug builds type: compile error versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: - docs@python components: +Documentation -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16342] setup.py not compiling with NDEBUG in non-debug builds
Ned Deily added the comment: I can't reproduce this on 10.8 with Apple clang 4.1. Your compile options look a little funky, including a missing -fwrapv. It looks like that option and -DNDEBUG are normally passed from ./configure into the Makefile through the OPT variable. Are you by any chance overriding $OPT? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: It seems that the docs site has old jquery - 1.4, and current JS script uses $.get, which got support for 'error' callbacks only in 1.5 So right now, if a URL doesn't exist for the version the user is about to switch to, it just fails with a JS error. I'm attaching one more (hopefully last!) patch to fix that. Thanks. -- Added file: http://bugs.python.org/file27754/switcher_js.ajax.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16322 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8040] documentation pages should link to other versions of the same page
Yury Selivanov added the comment: (I'd fix it myself if I could ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text
New submission from Mariano Reingart: Working in an internationalization proposal http://python.org.ar/pyar/TracebackInternationalizationProposal I've stopped at #9769 where multi byte encodings (like utf-8) is not supported by PyUnicode_FromFormatV() Beside my proposal, I think utf-8 should be supported for consistency with the other unicode functions, like PyUnicode_FromString() or even unicode_fromformat_arg() Attached is a patch that: - enhanced the iterator to detect multibyte sequences, with sanity checks about start continuation bytes - replaced unicode_write_cstr with PyUnicode_DecodeUTF8Stateful - tests Hope it helps, this is my first patch for cpython and my C skills are a bit rusty, so excuse me if there is any newbie glitch -- components: Interpreter Core, Unicode files: pyunicode_fromformat_utf8.patch keywords: patch messages: 173996 nosy: ezio.melotti, reingart priority: normal severity: normal status: open title: PyUnicode_FromFormatV() doesn't support utf-8 text type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file27755/pyunicode_fromformat_utf8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16341] In examples, except: should use new syntax
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com