[issue19904] Add 128-bit integer support to struct
Mark Dickinson added the comment: Do you have a particular application / use-case in mind? Would int.from_bytes and int.to_bytes fill the need? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19698] Implement _imp.exec_builtin and exec_dynamic
Nick Coghlan added the comment: There are assorted shenanigans in the dynamic module loading code that make me think we should leave the associated loaders alone for now. Running PyInit_* more than once isn't permitted by default, so reloading is a no-op, and loading again *copies* the existing module. But modules can opt in to allowing reinitialization by declaring a module state size of zero :) It's a solvable problem, but not an urgent one, and hence better addressed when we're redesigning the associated C APIs for a PEP 451 based import system. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19698 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19906] Typo in urllib documentation
New submission from Claudiu.Popa: In the first note from urllib.rst, there is a reference to urllib being replaced by urllib2 in Python 3, which is False. -- assignee: docs@python components: Documentation files: urllib2.patch keywords: patch messages: 205359 nosy: Claudiu.Popa, docs@python priority: normal severity: normal status: open title: Typo in urllib documentation type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file33002/urllib2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19906 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19900] improve pickle intro
Antoine Pitrou added the comment: Looks good to me, although I'm not sure the specific note about the C accelerator is needed. Neither am I. I moved it to the end to deemphasize it, but we can as well remove it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19900 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19907] gettext - Non ascii chars in header
New submission from Michael Müller: When having non ascii chars in the header of an translation file (xxx.po) the following error will be raised: File D:\Python33\lib\gettext.py, line 410, in translation t = _translations.setdefault(key, class_(fp)) File D:\Python33\lib\gettext.py, line 160, in __init__ self._parse(fp) File D:\Python33\lib\gettext.py, line 265, in _parse item = b_item.decode().strip() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 51: invalid continuation byte translation file head: Project-Id-Version: PACKAGE VERSION\n POT-Creation-Date: 2013-12-06 11:47\n PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE+Mitteleuropäische Zeit\n Last-Translator: FULL NAME EMAIL@ADDRESS\n Language-Team: LANGUAGE l...@li.org\n MIME-Version: 1.0\n Content-Type: text/plain; charset=utf-8\n Content-Transfer-Encoding: utf-8\n Generated-By: pygettext.py 1.5\n The problem here exists with the PO-Revision-Date which is followed by the timezone offset in current language (here Mitteleuropäische Zeit) which is automatically added by pygettext.py. When removing it the file will work without any problems. Current pygettext.py code part: [Line 444] ... def write(self, fp): options = self.__options timestamp = time.strftime('%Y-%m-%d %H:%M+%Z') # The time stamp in the header doesn't have the same format as that # generated by xgettext... print(pot_header % {'time': timestamp, 'version': __version__}, file=fp) ... To avoid this it would be better to use gmtime and not to append the timezone: ... def write(self, fp): options = self.__options timestamp = time.strftime('%Y-%m-%d %H:%M', time.gmtime()) ... -- components: Library (Lib) messages: 205361 nosy: Michael.Müller priority: normal severity: normal status: open title: gettext - Non ascii chars in header type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19907 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16465] dict creation performance regression
Serhiy Storchaka added the comment: So what we should do with this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16465] dict creation performance regression
Antoine Pitrou added the comment: You said it yourself: The gain is too small and undistinguished on a background of random noise. Closing would be reasonable, unless someone exhibits a reasonable benchmark where there is a significant difference. In any case, it's too late for perf improvements on 3.4. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
New submission from Serhiy Storchaka: pathlib.PureWindowsPath('C:/a/b').joinpath('D:x/y') PureWindowsPath('D:/a/b/D:/x/y') See also issue19456. -- components: Library (Lib) messages: 205364 nosy: pitrou, serhiy.storchaka priority: normal severity: normal status: open title: pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file33003/joinwinpath.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object
Martin Panter added the comment: Here are two patches: a test case, and a fix for my issue. They were done against an installed version of Python 3.3.3. I’m not entirely happy with the fix because it is accessing the private HTTPConnection.sock attribute from the urllib.request module, which seems a bit hacky. Other ideas would be to let HTTPConnection grow a new public method (or just a flag?) for cleaning itself up while leaving the response object still open. Or some kind of wrapper to augment the HTTPResponse.close() method to explicitly close the connection as well, like I originally mentioned. Also my test case borrows some classes from the “test_urllib” module into the “test_urllib2”. This is the first time I’ve looked closely at the Python test suite; maybe there is a better to do that as well. A bonus from my fix: it looks like it resolves a couple warnings running “test_urllib2net”. -- keywords: +patch Added file: http://bugs.python.org/file33004/urllib-close-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19524 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object
Changes by Martin Panter vadmium...@gmail.com: Added file: http://bugs.python.org/file33005/urlopen-sock-close.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19524 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19909] Best practice docs for new SSL features
New submission from Christian Heimes: The new ssl-module features #19509 (check_hostname) and #19689 (create_default_context) need more documentation, a whatsnew entry and a best-practice paragraph in the ssl documentation. -- assignee: christian.heimes components: Documentation messages: 205367 nosy: christian.heimes priority: high severity: normal stage: needs patch status: open title: Best practice docs for new SSL features type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19909 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules
Christian Heimes added the comment: I'm closing this ticket. All features have been implemented and tests are passing, too. I have created #19909 as a reminder for doc improvements. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19509 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19909] Best practice docs for new SSL features
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19909 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Serhiy Storchaka added the comment: Here is simplified patch. -- Added file: http://bugs.python.org/file33006/joinwinpath_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18144] FD leak in urllib2
Martin Panter added the comment: Confirmed that this happens when the server sends a chunked response, or sends a Content-Length header, but not when the server just sends “Connection: close”. So this looks like the same as Issue 19524, and my patch for that seems to fix the issue here. Python 3 version of the demo code: import os, urllib.request data = b{imp: [{h: 50, battr: [9, 10, 12], api: 3, w: 320, instl: 0, impid: 5d6dedf3-17bb-11e2-b5c0-1040f38b83e0}] * 10 req = urllib.request.Request(http://localhost:8000/bogus?src=1;, data) resp = urllib.request.urlopen(req) v = resp.read() resp.close() os.system(ls -alh /proc/%d/fd/* % os.getpid()) -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19842] selectors: refactor BaseSelector implementation
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19842 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs
Vajrasky Kok added the comment: Okay, this bug is valid. I can reproduce it in Ubuntu and Fedora. bash-4.2$ ./python Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux Type help, copyright, credits or license for more information. Error in atexit._run_exitfuncs: FileNotFoundError: [Errno 2] No such file or directory bash-4.2$ ./python -S Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux bash-4.2$ -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs
Vajrasky Kok added the comment: Additional information: When I created /home/cutecat with another user account. bash-4.2$ ./python Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux Type help, copyright, credits or license for more information. Error in atexit._run_exitfuncs: PermissionError: [Errno 13] Permission denied Of course, so I change the ownership of /home/cutecat to cutecat. Then it works. bash-4.2$ ./python Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux Type help, copyright, credits or license for more information. bash-4.2$ So what did it try to do in /home/cutecat? [sky@localhost cpython]$ ls -la /home/cutecat/ total 8 drwxr-xr-x. 2 cutecat root4096 Dec 6 21:50 . drwxr-xr-x. 4 rootroot4096 Dec 6 21:50 .. -rw---. 1 cutecat cutecat0 Dec 6 21:50 .python_history So I leave to core Python developers to decide whether this ticket is valid or not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs
Antoine Pitrou added the comment: The main question here is whether interactive user without a home directory is a valid / common use case. I think silencing the FileNotFoundError would be ok. (however, the home directory with wrong permissions case sounds crazy) -- priority: normal - low versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19891 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Antoine Pitrou added the comment: Thanks! Patch looks ok to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Serhiy Storchaka added the comment: Ah, drives should be compared with ignored cases. -- Added file: http://bugs.python.org/file33007/joinwinpath_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Antoine Pitrou added the comment: Good point :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Roundup Robot added the comment: New changeset 1ba15c3f45fa by Serhiy Storchaka in branch 'default': Issue #19908: pathlib now joins relative Windows paths correctly when a drive http://hg.python.org/cpython/rev/1ba15c3f45fa -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19883] Integer overflow in zipimport.c
Changes by Brett Cannon br...@python.org: -- assignee: brett.cannon - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19883 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18716] Deprecate the formatter module
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18716 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Serhiy Storchaka added the comment: Thank you Antoine for your patch. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19908] pathlib.PureWindowsPath doesn't join relative paths correctly when a drive is present
Roundup Robot added the comment: New changeset 0c508d87f80b by Serhiy Storchaka in branch 'default': Test same drive in different cases (issue #19908). http://hg.python.org/cpython/rev/0c508d87f80b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19908 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19883] Integer overflow in zipimport.c
Serhiy Storchaka added the comment: Yes, these fields are unsingned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19883 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19842] selectors: refactor BaseSelector implementation
Guido van Rossum added the comment: This is done AFAICT. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19842 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Guido van Rossum added the comment: Ping? Charle-François, what do you think of my patch to ignore OSError in unregister()? -- assignee: docs@python - neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
New submission from Guido van Rossum: compile() takes a string, bytes or AST as the source argument. The bytes option are not documented except in the error message you get when you pass something else. The AST option is in the library docs but not in the function docstring. -- assignee: docs@python components: Documentation messages: 205383 nosy: docs@python, gvanrossum priority: normal severity: normal status: open title: Document that compile() source may be bytes type: enhancement versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
Changes by Guido van Rossum gu...@python.org: -- keywords: +easy priority: normal - low stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)
Brett Cannon added the comment: I just realized that there is no way to make ModuleSpec.has_location return True if the spec is created by simply instantiating ModuleSpec. As it stands now you **must** go through importlib.util.spec_from_file_location(), which makes it not a helper but a **required** API to use. I think this is the only thing that cannot be stated directly through ModuleSpec instantiation or public attribute assignment. This means either (a) the docs on ModuleSpec need to be **very** clear that you must use spec_from_file_location() to make spec.has_location be true, (b) add another keyword-only argument to ModuleSpec.__init__(), or (c) make has_location settable (e.g. be able to only set it to True/False or alternatively assigning it sets both has_location to True and origin to the assigned value). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18864 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Charles-François Natali added the comment: Sorry for the delay, I didn't have any free time this week. I'll review the patch shortly, but the idea sounds fine (I just need to check if we can't be a little more specific for errnos upon unregister). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16991] Add OrderedDict written in C
Changes by Ryan Gonzalez rym...@gmail.com: -- nosy: +Ryan.Gonzalez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses
Roundup Robot added the comment: New changeset 543c76769c14 by Brett Cannon in branch 'default': Issue #19712: Update test.test_importlib.import_ to test/use PEP 451 http://hg.python.org/cpython/rev/543c76769c14 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19712 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses
Brett Cannon added the comment: test.test_importlib.source is the last thing to update for PEP 451 for this bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19712 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19907] gettext - Non ascii chars in header
Éric Araujo added the comment: It looks like there are two issues here. First, what would be a correct format for the PO-Revision-Date line? (human-readable string or numerical timezone) Second, gettext supports UTF-8 for the po file, which should support ä without problem, so maybe pygettext uses the wrong encoding when saving the file. Can you tell what’s the encoding of your xxx.po? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19907 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19906] Typo in urllib documentation
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo, ezio.melotti stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19906 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19862] Unclear xpath caching for custom namespaces
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19862 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17011] ElementPath ignores different namespace mappings for the same path expression
Changes by Éric Araujo mer...@netwok.org: -- resolution: fixed - duplicate ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17011 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17011] ElementPath ignores different namespace mappings for the same path expression
Changes by Éric Araujo mer...@netwok.org: -- resolution: duplicate - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17011 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19841] ConfigParser PEP issues
Éric Araujo added the comment: Do you mean PEP 8 violations? These aren’t usually enough to cause a change. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19841 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19837] Wire protocol encoding for the JSON module
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19837 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19456] ntpath doesn't join paths correctly when a drive is present
Serhiy Storchaka added the comment: With previous patch: ntpath.join('C:a/b', 'D:y/z') 'D:y/z\\y/z' Should be 'D:y/z'. Here is other patch which implements same algorithm as in pathlib (issue19908). Added new tests, removed duplicated tests. -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - patch review versions: -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19456 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19456] ntpath doesn't join paths correctly when a drive is present
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file33008/ntpath_join.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19456 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19911] ntpath.splitdrive() fails when UNC part contains \u0130
New submission from Serhiy Storchaka: ntpath.splitdrive() returns wrong result when UNC part contains LATIN CAPITAL LETTER I WITH DOT ABOVE ('İ', '\u0130'). ntpath.splitdrive('//host/I/abc') ('//host/I', '/abc') ntpath.splitdrive('//host/İ/abc') ('//host/İ/', 'abc') ntpath.splitdrive('//host/İİ/abc') ('//host/İİ/a', 'bc') ntpath.splitdrive('//host/İİİ/abc') ('//host/İİİ/ab', 'c') This is because ntpath.splitdrive() find an index for a split in normcased path and len('\u0130'.lower()) != 1. -- components: Library (Lib) messages: 205392 nosy: serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: ntpath.splitdrive() fails when UNC part contains \u0130 type: behavior versions: Python 2.7, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19911 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19911] ntpath.splitdrive() fails when UNC part contains \u0130
Serhiy Storchaka added the comment: Here is a patch. -- assignee: - serhiy.storchaka keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file33009/ntpath_splitdrive_u0130.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19911 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19912] ntpath.splitunc() is broken and not tested
New submission from Serhiy Storchaka: ntpath.splitunc() returns illegal results when path contains redundant slashes. import ntpath ntpath.splitunc(\\conky\\mountpoint\\foo\\bar) ('\\conky', '\\mountpoint\\foo\\bar') ntpath.splitunc(///conky/mountpoint/foo/bar) ('///conky', '/mountpoint/foo/bar') ntpath.splitunc(conkymountpoint\\foo\\bar) ('conky\\', '\\mountpoint\\foo\\bar') It also affected by a bug from issue19911. It also emits warnings in wrong place (from stdlib, not from places where it is used). It has no tests. Proposed patch fixes these issues. -- assignee: serhiy.storchaka components: Library (Lib), Tests files: ntpath_splitunc.patch keywords: patch messages: 205394 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: ntpath.splitunc() is broken and not tested type: behavior versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file33010/ntpath_splitunc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19912 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19912] ntpath.splitunc() is broken and not tested
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +ntpath.splitdrive() fails when UNC part contains \u0130 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19912 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses
Roundup Robot added the comment: New changeset 07ef52e751f3 by Brett Cannon in branch 'default': Issue #19712: Update test.test_importlib.source for PEP 451 http://hg.python.org/cpython/rev/07ef52e751f3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19712 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19712] Make sure there are exec_module tests for _LoaderBasics subclasses
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19712 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6501] Fatal error on startup with invalid PYTHONIOENCODING
Mark Lawrence added the comment: Is there anything to backport as referred to in msg136670 or can this be closed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6501 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19909] Best practice docs for new SSL features
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19909 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16465] dict creation performance regression
Raymond Hettinger added the comment: This patch looks correct and like the right thing to do. I recommend applying it to 3.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19904] Add 128-bit integer support to struct
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16373] Recursion error comparing set() and collections.Set instances
Raymond Hettinger added the comment: This should be backported to Python 2.7 as well. -- assignee: rhettinger - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24640/BytestrPickler_c.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24688/test_pickle.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24719/pickle_bytestr.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24906/pickle_bytes_code.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24907/pickle_bytes_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Changes by Merlijn van Deen valhall...@gmail.com: Removed file: http://bugs.python.org/file24568/pickle.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19904] Add 128-bit integer support to struct
Fil Mackay added the comment: The use case is interacting with C structures that have 128/256/512 bit integers in them. These require correct memory alignment, and can't reliably be hacked with multiple int64's. These size ints come from the fact that CPU's now have registers of these sizes, and can't be serviced with int.from/to_bytes for performance reasons. The same reason int64 being supported with this approach would be very inconvenient and terrible for performance since they are an intrinsic type in modern hardware, not a software construction. Two key use cases I can think of are: - any form of integer SIMD operation (vectors) - hosting and maintaining hash values which are routinely 128-bit and greater -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19904] Add 128-bit integer support to struct
Fil Mackay added the comment: I noticed that python 2.7 has been removed - why would this not be appropriate for this version? Given the current level of use of this version, I see it's inclusion as very important - without having to be relegated to 3.x only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Merlijn van Deen added the comment: Hi Alexandre, Attached is a diff based on r87793:0c508d87f80b. Merlijn -- Added file: http://bugs.python.org/file33011/bytestrpickle.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19904] Add 128-bit integer support to struct
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19913] TR/Crypt.XPACK.Gen-4 in easy_install.exe
New submission from Christian Heimes: Since today test_venv fails because Avira Antivir claims that easy_install.exe contains the trojan horse TR/Crypt.XPACK.Gen-4. I haven't seen the issue before. I'm running CPython default on Windows 7 64bit with Avira 13. -- files: easyinstall.png messages: 205402 nosy: christian.heimes, dstufft, larry, ncoghlan priority: release blocker severity: normal status: open title: TR/Crypt.XPACK.Gen-4 in easy_install.exe type: security versions: Python 3.4 Added file: http://bugs.python.org/file33012/easyinstall.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19913 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19904] Add 128-bit integer support to struct
Tim Peters added the comment: Fil, here's the release schedule for Python 2.8: http://www.python.org/dev/peps/pep-0404/ In short, 2.8 will never be released (well, never by us), and only bugfixes can be applied to the 2.7 line. That's why 2.7 was removed. Regardless of its merits, this is a new feature request, not a bugfix. A future Python 3 release is the only possibility for new features. -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16373] Recursion error comparing set() and collections.Set instances
Roundup Robot added the comment: New changeset 9bf55766d935 by Serhiy Storchaka in branch '2.7': Issue #16373: Prevent infinite recursion for ABC Set class comparisons. http://hg.python.org/cpython/rev/9bf55766d935 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16373] Recursion error comparing set() and collections.Set instances
Serhiy Storchaka added the comment: Done. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Guido van Rossum added the comment: Here's a new patch. Note that it includes a commented-out test that demonstrates the failure if the socket object itself is closed (rather than just its FD). -- Added file: http://bugs.python.org/file33013/unregister2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19913] TR/Crypt.XPACK.Gen-4 in easy_install.exe
Christian Heimes added the comment: 7 of 47 AV programs detect malicious software in PIPs easy_install.exe: Agnitum Packed/MPress 20131206 AhnLab-V3 Trojan/Win32.TesA 20131206 AntiVir TR/Crypt.XPACK.Gen4 20131206 BkavHW32.CDB.9028 20131206 McAfee-GW-Edition Heuristic.BehavesLike.Win32.Suspicious-BAY.K 20131206 TrendMicro PAK_Generic.001 20131206 TrendMicro-HouseCallPAK_Generic.001 20131206 https://www.virustotal.com/de/file/4a22ec7ceae5bb480c3dbda55f13838af0cef9ed6e1d033e896723c29eadbb19/analysis/1386366065/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19913 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Guido van Rossum added the comment: Here's a variant that documents the ValueError issue and omits the commented-out test. -- Added file: http://bugs.python.org/file33014/unregister3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Guido van Rossum added the comment: Here's an attempt at fixing the ValueError. I don't like the exhaustive search much, but the alternative is to maintain an inverse dict. What do you think? -- Added file: http://bugs.python.org/file33015/unregister4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Charles-François Natali added the comment: Guido van Rossum added the comment: Here's an attempt at fixing the ValueError. I don't like the exhaustive search much, but the alternative is to maintain an inverse dict. What do you think? I was going to suggest such an exhaustive search. I think it's the cleanest/simplest solution, and the performance overhead is IMO completely unimportant since it's not supposed to happen often, and if the key isn't found we're going to raise an exception anyway. So if we want to handle this case (and I think we should to be consistent), that's the best way to go. But I think that OSError should still be caught in EpollSelector.unregister(): since if the FD is closed before, epoll.unregister() will raise ENOENT/EBADF since the FD will have automatically been removed (exactly as for kqueue according to the man page). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19876] selectors (and asyncio?): document behaviour on closed files/sockets
Guido van Rossum added the comment: OK, I'll make a new patch (maybe Monday). I want to be a little more careful with the exhaustive search, I think it should not be attempted if we see KeyError or AttributeError (those should not be dynamic). I tested for the epoll error on Ubuntu and didn't get OSError, but I'm happy to keep it in if the man pays says so. (How sure are you about poll() not doing this?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Merlijn van Deen added the comment: I have fixed most of the nits in this patch, except for: 1) the intermediate bytes object being created; inlining is an option, as storchaka suggested, but I'd rather have you decide what it should become before implementing it; 2) make clinic gives me ./python -E ./Tools/clinic/clinic.py --make Error in file ./Modules/_pickle.c on line 6611: Checksum mismatch! Expected: bed0d8bbe1c647960ccc6f997b33bf33935fa56f Computed: 58dcccb705487695fec30980f566027bc68d9c69 make: *** [clinic] Error 255 and I have no clue how to fix that -- the clinic docs are sparse, to say the least; 3) The tests are still in their own test case; please decide between the two of you what is the best solution; 4) I have grouped the test cases: test_load_python2_str_as_bytes (which checks protocols 0, 1, and 2), test_load_python2_unicode_as_str and test_load_long_python2_str_as_bytes; 5) I have moved the commands to create the shown pickled versions from docstrings to comments. If you think they are not useful, I'll remove them, but I found them pretty useful while shortening the strings. -- Added file: http://bugs.python.org/file33016/bytestrpickle.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19914] help([object]) returns Not enough memory. on standard Python types, object and object functions
New submission from HCT: not sure if this ever worked. first time using help([object]), but these should work according to the documentation. OS is Win7 SP1 32-bit. Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. help(list) Not enough memory. help(list()) Not enough memory. help([]) Not enough memory. help(tuple()) Not enough memory. help(()) Not enough memory. help(str.format) Not enough memory. help(str) Not enough memory. help(b'1234') Not enough memory. help(str.strip) Not enough memory. help(str.count) Not enough memory. -- components: Interpreter Core messages: 205413 nosy: hct priority: normal severity: normal status: open title: help([object]) returns Not enough memory. on standard Python types, object and object functions type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19914 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19900] improve pickle intro
Roundup Robot added the comment: New changeset 609325d187bf by Antoine Pitrou in branch '3.3': Issue #19900: improve generalities at the start of the pickle module doc http://hg.python.org/cpython/rev/609325d187bf New changeset 595b8f82569c by Antoine Pitrou in branch 'default': Issue #19900: improve generalities at the start of the pickle module doc http://hg.python.org/cpython/rev/595b8f82569c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19900 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19900] improve pickle intro
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19900 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19837] Wire protocol encoding for the JSON module
Terry J. Reedy added the comment: Changing return type based on argument *values* is still a bad idea in general. I understand the proposal to be changing the return based on argument *presence*. It strikes me a a convenient abbreviation for making a separate encoding call and definitely (specifically?) less bad than a separate module or separate functions. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19837 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()
Terry J. Reedy added the comment: Unless there is an actually possibility of changing this, which I doubt since it is a choice and not a bug, and changing might break things, this issue should be closed. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19846 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()
Antoine Pitrou added the comment: I think the ship has sailed on this. We can't change our heuristic everyone someone finds a flaw in the current one. In the long term, all sensible UNIX systems should be configured for utf-8 filenames and contents, so it won't make a difference anymore. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19846 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19837] Wire protocol encoding for the JSON module
Antoine Pitrou added the comment: To give another data point: returning a different type based on argument value is also what the open() functions does, more or less. (that said, I would slightly favour a separate dump_bytes(), myself) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19837 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19888] Three argument type() super call sets __name__ but not __qualname__
Antoine Pitrou added the comment: Ok, then it's no security issue at all :) -- type: security - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19888 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19887] Path.resolve() ENAMETOOLONG on pathologic symlinks
Antoine Pitrou added the comment: I would prefer if you made the test simpler. The current setup makes it difficult to understand and reproduce with the command line. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19887 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19915] int.bit_at(n) - Accessing a single bit in O(1)
New submission from anon: For many numeric algorithms it's useful to be able to read individual bits at a location in an integer. Currently there is no efficient way to do this. The following function is the closest to this: def bit_at(i, n): return (in)1 However in computing the intermediate result in we must spend O(b-n) time at least (where b is n.bit_length()). It should be possible to read bits in O(1) time. Adding int.bit_at(n) would complement int.bit_length(). I would suggest making the semantics of i.bit_at(n) the same as (in)1. Although the exact meaning when i is negative should be considered. Real world uses of bit_at include binary exponentiation and bit counting algorithms. -- messages: 205421 nosy: anon priority: normal severity: normal status: open title: int.bit_at(n) - Accessing a single bit in O(1) type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19915] int.bit_at(n) - Accessing a single bit in O(1)
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19907] gettext - Non ascii chars in header
Michael Müller added the comment: Used encoding is utf-8. Testfile I used added to this comment. Second about the PO-Revision-Date: It should be human readable. It's unimportant for the program itself - it's used for the translator of the xxx.po file. Normally the whole header could be removed while compiling (except the encoding of course) -- Added file: http://bugs.python.org/file33017/messages.po ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19907 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
Fotis Koutoulakis added the comment: There we go. I have changed the references to compile(), both in the docstring, and the documentation so that it states clearly that a bytes object is also acceptable as the source argument. I also fixed the docstring to mention explicitly that it can also accept an AST as the source argument. Since this is my very first contribution to Python, I welcome all feedback. Thanks for your time. -- keywords: +patch nosy: +Fotis.Koutoulakis Added file: http://bugs.python.org/file33018/issue19910_python.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
Éric Araujo added the comment: Thanks! Patch looks good to me. -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19915] int.bit_at(n) - Accessing a single bit in O(1)
Tim Peters added the comment: I'd rather see `i.bits_at(pos, width=1)`, to act like (i pos) ((1 width) - 1) That is, extract the `width` consecutive bits at positions 2**pos through 2**(pos + width - 1) inclusive. Because Python ints maintain the illusion of having an infinite number of sign bits, I don't think negative `pos` (or `width`) can be assigned a sensible meaning. Python ints only have one end. And, yup, I've often wanted this too! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19888] Three argument type() super call sets __name__ but not __qualname__
Barry A. Warsaw added the comment: Oops, correct! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19888 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19915] int.bit_at(n) - Accessing a single bit in O(1)
Raymond Hettinger added the comment: I've often wanted this too! My want has been for a bitarray (parallel to the existing bytearray type). -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19910] Document that compile() source may be bytes
Roundup Robot added the comment: New changeset 500cc1acc42f by Benjamin Peterson in branch '3.3': document that compile() can take bytes (closes #19910) http://hg.python.org/cpython/rev/500cc1acc42f New changeset 44dacafdd48a by Benjamin Peterson in branch 'default': merge 3.3 (#19910) http://hg.python.org/cpython/rev/44dacafdd48a -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19910 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19915] int.bit_at(n) - Accessing a single bit in O(1)
Tim Peters added the comment: Raymond, I expect they have overlapping - but not identical - audiences. There's seem to be a quite capable bitarray extension here: https://pypi.python.org/pypi/bitarray/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com