[issue16534] test_float failure on IA64 (HPUX)
Mark Dickinson added the comment: Without having looked too hard, the many warnings are almost certainly from our definition of Py_NAN. That's been fixed in the default branch. I'm not sure whether it's worth backporting just to fix warnings. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Serhiy Storchaka added the comment: Sorry, it's my fault. Here is a patch which should fix the bug. -- nosy: +skrah Added file: http://bugs.python.org/file28082/test_unknown_option.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Serhiy Storchaka added the comment: Actually 2.7 tests should not be broken, but this patch unify 2.7 and 3.x code. -- Added file: http://bugs.python.org/file28083/test_unknown_option-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4080] unittest: display time used by each test case
anatoly techtonik added the comment: pyunit_time.patch is invalid - missing space on the last line. -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
Serhiy Storchaka added the comment: The json module already has too many options. No need for yet one such specialized. class number_str(float): ... def __init__(self, o): ... self.o = o ... def __repr__(self): ... return str(self.o) ... def decimal_serializer(o): ... if isinstance(o, decimal.Decimal): ... return number_str(o) ... raise TypeError(repr(o) + is not JSON serializable) ... print(json.dumps([decimal.Decimal('0.20001')], default=decimal_serializer)) [0.20001] You can extend this to support complex numbers, fractions, date and time, and many other custom types. Have specialized options for this would be cumbersome. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- nosy: +kristjan.jonsson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14803] Add feature to allow code execution prior to __main__ invocation
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- nosy: +kristjan.jonsson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14803 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16531] Allow IPNetwork to take a tuple
Serhiy Storchaka added the comment: How about ipaddress.IPv4Network((3232235520, 16)), ipaddress.IPv4Network((3232235520, 65535)) and ipaddress.IPv4Network((3232235520, 4294901760))? ipaddress.IPv4Address(3232235520) IPv4Address('192.168.0.0') ipaddress.IPv4Address(65535) IPv4Address('0.0.255.255') ipaddress.IPv4Address(4294901760) IPv4Address('255.255.0.0') ipaddress.IPv4Network('192.168.0.0/0.0.255.255') IPv4Network('192.168.0.0/16') ipaddress.IPv4Network('192.168.0.0/255.255.0.0') IPv4Network('192.168.0.0/16') -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation
Kristján Valur Jónsson added the comment: Butting in here: Early on in the startup, a search is made for site.py using automatic sys.path settings. Do the suggestions here propose to override this? I know there is a -s flag, but all these flags start to be confusing. I have been looking for ways to completely ignore automatic settings for sys.path, either from internal heuristics (either build environment or installed environment) or PYTHONPATH. The reason for this is that as a developer in a large project, one that has many branches, each with their potentially different version of python compiled and with their own libraries, and where a standard python distribution may even be installed on the machine as well, we still want to be able to run scripts with each branch' own python with relative simplicity with some sort of guarantee that we are not inadvertently pulling in modules from other, unrelated branches, or god forbid, the installed python. PEP 405 seemed to go a long way, although it didn't provide a means in the pyvenv.cfg to completely override sys.path from the startup. I wonder if there isn't a synergy here with PEP 405, e.g. would it make sense to have a pyvenv.cfg file next to the __main__.py file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16535] json encoder unable to handle decimal
Mark Dickinson added the comment: Judging by the discussion that Éric points to, and by the various stackoverflow questions on the topic ([1], [2]), this is a common enough need that I think it would make sense to have some support for it in the std. lib. There's a sense in which Decimal is the 'right' type for json, and we shouldn't make it harder for people to do the right thing with respect to (e.g.) financial data in databases. [1] http://stackoverflow.com/questions/4019856/decimal-to-json [2] http://stackoverflow.com/questions/1960516/python-json-serialize-a-decimal-object -- nosy: +mark.dickinson stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11797] 2to3 does not correct reload
Berker Peksag added the comment: Here's a patch that adds tests and updates the documentation. -- nosy: +berker.peksag Added file: http://bugs.python.org/file28084/issue11797.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11797 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16532] AMD64 Windows 7 build failures
Jeremy Kloth added the comment: On Thu, Nov 22, 2012 at 3:11 PM, Antoine Pitrou rep...@bugs.python.org wrote: The AMD64 Windows 7 buildbot shows weird build failures in ctypes: http://buildbot.python.org/all/buildslaves/kloth-win64 The _ctypes_d.pyd was considered to be in use by the system (although Process Explorer could not the file handle for it). I've since rebooted the machine (it had system updates pending anyway) so the problem should be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Lorenzo M. Catucci added the comment: OK, I'm uploading poplib_03_starttls_v5.diff; I only changed the caps=self.capa() into caps = self.capa() in the @@ -352,21 +360,42 @@ class POP3: hunk. Thank you for pointing at the line; I tried to run pep8.py on poplib.py, but failed to find the line, since I was overwhelmed by the reported pre-existing pep8 inconsistencies... I'm tempted to open a pep8 issue on poplib after we finish with stls... Thank you very much for reviewing! -- Added file: http://bugs.python.org/file28085/poplib_03_starttls_v5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file28026/poplib_03_starttls_v4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16491] try-except-raise-bug
Ezio Melotti added the comment: Can you paste the traceback you get with IDLE and also try the same from the command line? -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16538] The docs doesn't describe MAKE_CLOSURE correctly
New submission from Daniel Urban: The documentation of the dis module describes the MAKE_CLOSURE opcode incorrectly. The description of MAKE_FUNCTION was updated in 242d3f8e8c50 (issue14349) to include the qualified name, but MAKE_CLOSURE wan't. A patch is attched. -- assignee: docs@python components: Documentation files: make_closure.patch keywords: needs review, patch messages: 176166 nosy: daniel.urban, docs@python priority: normal severity: normal stage: patch review status: open title: The docs doesn't describe MAKE_CLOSURE correctly versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file28086/make_closure.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16538] The docs doesn't describe MAKE_CLOSURE correctly
Roundup Robot added the comment: New changeset 5d1e7912e23e by Andrew Svetlov in branch '3.3': Issue #16538: correctly describe MAKE_CLOSURE in docs. http://hg.python.org/cpython/rev/5d1e7912e23e New changeset 8fff40a7c5b5 by Andrew Svetlov in branch 'default': Merge issue #16538: correctly describe MAKE_CLOSURE in docs. http://hg.python.org/cpython/rev/8fff40a7c5b5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16538] The docs doesn't describe MAKE_CLOSURE correctly
Andrew Svetlov added the comment: Fixed. Thanks. -- nosy: +asvetlov resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16534] test_float failure on IA64 (HPUX)
Mark Dickinson added the comment: I wonder whether adding -fpeval=float to the CFLAGS would fix this. There's a lot of information at http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=0008a22194f02110a22194f02110275d6e10RCRD but I don't know whether it's relevant to this machine. Trent? -- nosy: +trent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16539] Turn off 'No handlers could be found for logger' message
New submission from anatoly techtonik: It is very annoying. Take this as an example. 'patch' is a module (library) that is meant to be used from other programs. Therefore it can not (should not) setup handlers for itself. import patch patch.PatchSet().parse('7745') No handlers could be found for logger patch Is it the same for Python 3? -- components: Library (Lib) messages: 176170 nosy: techtonik, vinay.sajip priority: normal severity: normal status: open title: Turn off 'No handlers could be found for logger' message versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16511] IDLE configuration file: blank height and width fields trip up IDLE
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16539] Turn off 'No handlers could be found for logger' message
anatoly techtonik added the comment: Forgot to mention that bundled NullHandler doesn't work in Python 2.7 and from what I can see it is not covered with tests for this version. Traceback (most recent call last): File stdin, line 1, in module File patch.py, line 124, in fromstring return PatchSet( StringIO(s) ) File patch.py, line 196, in __init__ self.parse(stream) File patch.py, line 512, in parse warning(error: no patch data found!) File C:\Python27\lib\logging\__init__.py, line 1152, in warning self._log(WARNING, msg, args, **kwargs) File C:\Python27\lib\logging\__init__.py, line 1258, in _log self.handle(record) File C:\Python27\lib\logging\__init__.py, line 1268, in handle self.callHandlers(record) File C:\Python27\lib\logging\__init__.py, line 1307, in callHandlers if record.levelno = hdlr.level: AttributeError: type object 'NullHandler' has no attribute 'level' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2454] sha and md5 fixer
Meador Inge added the comment: I'm not sure how much this is needed considering hashlib has been around, since 2.5. I hope people aren't having to port from before then. Martin alluded to that when he opened the issue saying this wasn't necessary, but a nice to have. However, it has been over four years since the issue was opened. Maybe it should just be closed. I don't really have an opinion either way. Martin, are you still interested in this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16539] Turn off 'No handlers could be found for logger' message
anatoly techtonik added the comment: Nevermind the last message - I was specifying NullHandler as a class, not as an instance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14273] distutils2: logging handler not properly initialized
anatoly techtonik added the comment: More specifically, you need to copy NullHandler code if you want to run it with Python 2.x 2.7 -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Ezio Melotti added the comment: The new patch doesn't seem to be correct: without the patch: $ ./python -a -z Unknown option: -a Unknown option: -z usage: ./python [option] ... [-c cmd | -m mod | file | -] [arg] ... with the patch: $ ./python -a -z Unknown option: -a usage: ./python [option] ... [-c cmd | -m mod | file | -] [arg] ... A test case for this should also be added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16539] Turn off 'No handlers could be found for logger' message
Vinay Sajip added the comment: This is not a valid issue. The approach to use is documented: http://docs.python.org/2.6/library/logging.html#configuring-logging-for-a-library http://docs.python.org/2.7/howto/logging.html#configuring-logging-for-a-library -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Serhiy Storchaka added the comment: Thanks, Ezio, for point. without the patch: $ ./python -a -z Unknown option: -a Unknown option: -z usage: ./python [option] ... [-c cmd | -m mod | file | -] [arg] ... This behavior isn't correct. Try also -E -a -z and -a -E -z (also with 3.3.0). However I found an error in the test in my patch (actually previous test for 2.7 was correct, but not full). Patch updated, new tests added. -- Added file: http://bugs.python.org/file28087/test_unknown_option_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28088/test_unknown_option_2-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Ezio Melotti added the comment: This behavior isn't correct. Shouldn't python report all the invalid flags passed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Serhiy Storchaka added the comment: Should not. It happened unintentionally (and inconsistently). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16529] Compiler error when trying to compile ceval.c on OpenSUSE 11.3
Jesús Cea Avión added the comment: Could you possibly locate the problematic changeset? Could be doable by bisection. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16529 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5765] stack overflow evaluating eval(() * 30000)
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5765 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16529] Compiler error when trying to compile ceval.c on OpenSUSE 11.3
Marc-Andre Lemburg added the comment: On 23.11.2012 17:02, Jesús Cea Avión wrote: Could you possibly locate the problematic changeset? Could be doable by bisection. I'll try to find the changeset. There were only 4 checkins related to ceval.c since the 3.3.0 release, so one of those will have to have triggered the problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16529 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16529] Compiler error when trying to compile ceval.c on OpenSUSE 11.3
Marc-Andre Lemburg added the comment: On 23.11.2012 17:24, M.-A. Lemburg wrote: On 23.11.2012 17:02, Jesús Cea Avión wrote: Could you possibly locate the problematic changeset? Could be doable by bisection. I'll try to find the changeset. There were only 4 checkins related to ceval.c since the 3.3.0 release, so one of those will have to have triggered the problem. This changeset triggered the problem: changeset: 79693:ac30a1b1cf17 user:Benjamin Peterson benja...@python.org date:Fri Oct 12 11:34:51 2012 -0400 summary: ceval cleanup It's fairly large (http://hg.python.org/cpython/rev/ac30a1b1cf17), so I can't easily tell which part might be worth looking at more closely. I do notice that the logic for error handling was changed from doing a break to doing a goto error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16529 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
New submission from Neil Girdhar: When using sequence types polymorphically, range, list, and tuple are both iterable and subscriptable. Unfortunately, itertools.count, cycle, and repeat objects are not subscriptable, although this is not a hard change. Please consider making these objects subscriptable for polymorphic usage. -- components: Library (Lib) messages: 176183 nosy: Neil.Girdhar priority: normal severity: normal status: open title: Make itertools count, cycle, and repeat objects subscriptable like range. type: enhancement versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rhettinger stage: - needs patch versions: -Python 3.1, Python 3.2, Python 3.3, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Serhiy Storchaka added the comment: Range, list, and tuple are iterables, but itertools.count, cycle, and repeat objects are iterators. Subscripting is not a part of iterator protocol. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Roundup Robot added the comment: New changeset 6a79e3beb854 by Ezio Melotti in branch '2.7': #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/6a79e3beb854 New changeset 654a628f5f00 by Ezio Melotti in branch '3.2': #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/654a628f5f00 New changeset 421a8a5ffbb2 by Ezio Melotti in branch '3.3': #16306: merge with 3.2. http://hg.python.org/cpython/rev/421a8a5ffbb2 New changeset 51caa0820fad by Ezio Melotti in branch 'default': #16306: merge with 3.3. http://hg.python.org/cpython/rev/51caa0820fad -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Neil Girdhar added the comment: Apologies if this is a bad question, but why do count, cycle, and repeat return iterators rather than iterables? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16474] More code coverage for imp module
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16537] Python’s setup.py raises a ValueError when self.extensions is empty
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo title: setup.py throws a ValueError when self.extensions is empty - Python’s setup.py raises a ValueError when self.extensions is empty ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16526] Python does not cross compile properly
Éric Araujo added the comment: See also: http://bugs.python.org/issue3754 cross-compilation support for python build http://bugs.python.org/issue1006238 cross compile patch http://bugs.python.org/issue1597850 Cross compiling patches for MINGW (superseder of http://bugs.python.org/issue1339673, cross compile and mingw support) http://bugs.python.org/issue3871 cross and native build of python for mingw32 with distutils http://bugs.python.org/issue3718 environment variable MACHDEP and python build system http://bugs.python.org/issue10782 Not possible to cross-compile due to poor detection of %lld support in printf -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16519] site.venv() should use abspath(executable)
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16477] tarfile fails to close file handles in case of exception
Andrew Svetlov added the comment: LGTM -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16508] include the object type in the lists of documented types
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16509] sqlite3 docs do not explain check_same_thread
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ghaering stage: - needs patch versions: +Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16518] add buffer protocol to glossary
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Éric Araujo added the comment: The point of itertools is to implement building blocks for iterators, which are memory-efficient and can sometimes be infinite, contrary to sequences. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16539] Turn off 'No handlers could be found for logger' message
anatoly techtonik added the comment: I'd say this is a pretty valid issue with won't fix or workaround available resolution. The question - is the same behavior preserved for Python 3? -- resolution: invalid - wont fix status: closed - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16488] Add context manager support to epoll object
Andrew Svetlov added the comment: +0 for patch -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16488 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
New submission from Helmut Jarausch: import tkinter as Tk root= Tk.Tk() root.tk_setPalette(background = 'AntiqueWhite1', foreground = 'blue') but python-3.3:0+ (3.3:27cb1a3d57c8+) gives Traceback (most recent call last): File Matr_Select.py, line 174, in module root.tk_setPalette(background = 'AntiqueWhite1', foreground = 'blue') File /usr/lib64/python3.3/tkinter/__init__.py, line 390, in tk_setPalette + _flatten(args) + _flatten(kw.items())) TypeError: argument must be sequence Thanks for looking into it, Helmut. -- components: Tkinter messages: 176193 nosy: HJarausch priority: normal severity: normal status: open title: tk_setPalette doesn't accept keyword parameters type: compile error versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16542] http//bugs.python/joko.suwito
New submission from joko suwito: thank you -- messages: 176194 nosy: joko.suwito priority: normal severity: normal status: open title: http//bugs.python/joko.suwito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
Serhiy Storchaka added the comment: There are two ways to fix this issue: 1. Fix tk_setPalette() (just wrap kw.items() with list() or tuple()). 2. Fix C implementation of _flatten() for work with any iterators. -- nosy: +gpolo, serhiy.storchaka stage: - needs patch type: compile error - behavior versions: +Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16523] attrgetter and itemgetter signatures in docs need cleanup
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +patch nosy: +chris.jerdonek stage: needs patch - patch review versions: +Python 3.2 Added file: http://bugs.python.org/file28089/issue16523.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16542] http//bugs.python/joko.suwito
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Serhiy Storchaka added the comment: Apologies if this is a bad question, but why do count, cycle, and repeat return iterators rather than iterables? Actually they are iterables too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16530] documentation of os.wait3
Roundup Robot added the comment: New changeset a2038edb51cd by Ezio Melotti in branch '2.7': #16530: the options arg of os.wait3 is required. http://hg.python.org/cpython/rev/a2038edb51cd New changeset 1cf1194a443e by Ezio Melotti in branch '3.2': #16530: the options arg of os.wait3 is required. http://hg.python.org/cpython/rev/1cf1194a443e New changeset 7359ade2ab0b by Ezio Melotti in branch '3.3': #16530: merge with 3.2. http://hg.python.org/cpython/rev/7359ade2ab0b New changeset a728056347ec by Ezio Melotti in branch 'default': #16530: merge with 3.3. http://hg.python.org/cpython/rev/a728056347ec -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16530 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16530] documentation of os.wait3
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 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16530 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16531] Allow IPNetwork to take a tuple
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16541] tk_setPalette doesn't accept keyword parameters
Guilherme Polo added the comment: If doing list(kw.items()) works, I'm fine with that. If it does not, then ttk._format_optdict(kw) should. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16539] Turn off 'No handlers could be found for logger' message
Amaury Forgeot d'Arc added the comment: Python 3 has exactly the same documentation: http://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library -- nosy: +amaury.forgeotdarc resolution: wont fix - works for me status: languishing - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16523] attrgetter and itemgetter signatures in docs need cleanup
Chris Jerdonek added the comment: +.. function:: attrgetter(attr[, attr2, attr3, ...]) Why not reword to use the *attr notation? It is even already being used below: + The function is equivalent to:: def attrgetter(*items): if any(not isinstance(item, str) for item in items): -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
New submission from Ezio Melotti: This came up in #16515. While using PyArg_UnpackTuple to parse the positional arguments in a function that receives both positional and keyword arguments, the error message returned when the number of arguments is incorrect is misleading, e.g.: max(foo=1) TypeError: max expected 1 arguments, got 0 This can be fixed by adding positional before arguments in the error message. The attached patch fixes this and the pluralization of argument(s). -- assignee: ezio.melotti components: Interpreter Core files: unpacktuple.diff keywords: patch messages: 176202 nosy: ezio.melotti priority: normal severity: normal stage: test needed status: open title: Use positional arguments in PyArg_UnpackTuple type: enhancement versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file28090/unpacktuple.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16523] attrgetter and itemgetter signatures in docs need cleanup
Ezio Melotti added the comment: I thought about that, but wanted to make a distinction between the form that accepts only 1 arg and returns an item and the form that receives 2+ args and returns a tuple. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16515] TypeError message incorrect for max() with one keyword arg
Ezio Melotti added the comment: I created #16543 for PyArg_UnpackTuple. Once that is fixed we can continue with this. -- dependencies: +Use positional arguments in PyArg_UnpackTuple ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16515 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Serhiy Storchaka added the comment: +(min == 1 ? : s), l); In second part of patch should be max. Reformat the code so that `min` and `(min == 1 ? : s)` will be in one line and it will be more clear. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16523] attrgetter and itemgetter signatures in docs need cleanup
Chris Jerdonek added the comment: You can also make that distinction using *. For example: .. function:: attrgetter(attr, *attrs) or .. function:: attrgetter(attr) attrgetter(attr1, attr2, *attrs) (cf. http://docs.python.org/dev/library/functions.html#max ) Elsewhere we started to prefer using two signature lines where two or more behaviors are possible, which might be good to do in any case. With the ... notation, this would look like: .. function:: attrgetter(attr) attrgetter(attr1, attr2, ...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Mark Dickinson added the comment: Now that I look at uses of PyArg_UnpackTuple, I'm wondering whether this needs to be fixed at all. Apart from `max` and `min`, do you know of any other cases where this gives a misleading error message? Almost all the uses I can find are for simple functions/methods where all arguments are positional-only. (Ex: range, pow, slice, dict.pop). max and min *do* clearly need an error message fix. (Apologies: I know it was me who suggested that PyArg_UnpackTuple needed fixing in the first place. But now I'm not sure that's true.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Mark Dickinson added the comment: Of course, the 'arguments' - 'argument' fix would still be nice to have. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Ezio Melotti added the comment: do you know of any other cases where this gives a misleading error message? Actually my concern was about cases where the new error might be wrong/misleading, but I haven't checked yet. If there are no such cases I think we should fix it; the error message will be better in the few cases we have in the stdlib and for all the external libs that are using the function. Another thing that I haven't checked is if there are similar functions (e.g. to parse kwargs) that needs the same treatment (#16520 might be one such example). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Mark Dickinson added the comment: One more thing: I'm not sure this is the right terminology. Here we're using 'positional' to refer to parameters that PEP 362 calls POSITIONAL_ONLY, whereas the regular TypeErrors (e.g. produced for user-defined functions) use 'positional' to mean what PEP 362 calls POSITIONAL_OR_KEYWORD. This seems like it'll only increase the current confusion between different parameter types. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
Roundup Robot added the comment: New changeset 31bb42754962 by Chris Jerdonek in branch 'default': Clarify that only the latest maintenance branches are rebuilt (issue #16528). http://hg.python.org/devguide/rev/31bb42754962 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16528] 3.2 docs not updating on docs.python.org
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- keywords: +easy resolution: invalid - fixed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16528 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Mark Dickinson added the comment: If there are no such cases I think we should fix it. Okay, but what exactly is this fixing? I can't find any examples apart from max and min where the new error messages seem any better than the old. Your first message talks about a function that receives both positional and keyword arguments, by which I guess you mean 'both required and optional arguments'; in any case, I can't find any such function (apart from max and min) that uses PyArg_ParseTuple. So it seems to me that there's not actually any problem to be solved. (And I think max and min probably need to be reworked to not use PyArg_ParseTuple at all.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Ezio Melotti added the comment: Okay, but what exactly is this fixing? If the function parses positional args, it should say so in the error message. If the function is never used (except for min/max) or if the error is never reported, then we have a different problem. Even if this code is not used I don't think we can remove it, since this it's a public function, and even if we are not using it someone might be using it and benefit from the improved error message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +chris.jerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Antoine Pitrou added the comment: Thank you Lorenzo. Your patch lacks a couple of details, such as versionadded and versionchanged tags, but I can handle this myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
Ezio Melotti added the comment: Buildbots are happy, closing. Thanks Serhiy for the patches! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Roundup Robot added the comment: New changeset 79e33578dc05 by Antoine Pitrou in branch 'default': Issue #4473: Ensure the socket is shutdown cleanly in POP3.close(). http://hg.python.org/cpython/rev/79e33578dc05 New changeset d30fd9834cec by Antoine Pitrou in branch 'default': Issue #4473: Add a POP3.capa() method to query the capabilities advertised by the POP3 server. http://hg.python.org/cpython/rev/d30fd9834cec New changeset 2329f9198d7f by Antoine Pitrou in branch 'default': Issue #4473: Add a POP3.stls() to switch a clear-text POP3 session into an encrypted POP3 session, on supported servers. http://hg.python.org/cpython/rev/2329f9198d7f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4473] POP3 missing support for starttls
Antoine Pitrou added the comment: Patches committed. Thank you very much! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Chris Jerdonek added the comment: Here we're using 'positional' to refer to parameters that PEP 362 calls POSITIONAL_ONLY, whereas the regular TypeErrors (e.g. produced for user-defined functions) use 'positional' to mean what PEP 362 calls POSITIONAL_OR_KEYWORD. Here the error message is about positional arguments, which are different from parameters. (As you know, issue 15990 is to document this distinction in the glossary.) Incidentally, it looks like the documentation for several of the functions in this part of the C API should probably be updated in this regard, for example: http://docs.python.org/dev/c-api/arg.html#PyArg_UnpackTuple http://docs.python.org/dev/c-api/arg.html#PyArg_ParseTuple The PyArg_UnpackTuple documentation says, for example: A simpler form of parameter retrieval which does not use a format string to specify the types of the arguments. Functions which use this method to retrieve their parameters... The two occurrences of parameter here should be changed to argument. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16519] site.venv() should use abspath(executable)
Roundup Robot added the comment: New changeset fe2200c1c2d3 by Vinay Sajip in branch '3.3': Issue #16519: Used os.path.abspath, removed unnecessary code for executable_name. http://hg.python.org/cpython/rev/fe2200c1c2d3 New changeset a874c4a6ad5f by Vinay Sajip in branch 'default': Closes #16519: Merged fix from 3.3. http://hg.python.org/cpython/rev/a874c4a6ad5f -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16532] AMD64 Windows 7 build failures
Antoine Pitrou added the comment: Ah, thank you! There is a test failure on 3.2, but it's probably unrelated. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Neil Girdhar added the comment: My suggestion is then to update collection.abc to have an InfiniteSequence, which inherits from Iterable, and adds abstract methods __getitem__ and mixin methods __iter__. Then, itertools count, cycle, and repeat could implement collection.abc.InfiniteSequence, and collections.abc.Iterator (for backwards-compatibility). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Serhiy Storchaka added the comment: What kind of problem you want to solve? I'm sure there is a simple enough solution without changing itertools objects. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Chris Jerdonek added the comment: This can be fixed by adding positional before arguments in the error message. Do we know for sure that the values in the args argument in a call to PyArg_UnpackTuple always correspond to the positional arguments of a call to a Python function? Can PyArg_UnpackTuple be used in other ways? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}
Vinay Sajip added the comment: IIUC, Debian Experimental is not a complete distribution. Are there other, non-experimental OS variants where posix_local is used with Python 3.x? On my Ubuntu Oneiric and Precise 64-bit machines, the default install scheme on the official Python 3.2 - as determined by sysconfig._get_default_scheme() - is posix_prefix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16480 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Neil Girdhar added the comment: My code looks like this: presignal_abd = [[], [0.1, 0.6], []] tarsignal_abd = [[], [0.4, 0.9], []] diagsignal_abd = [[], [0.1, 0.6, 0.7, 0.8], []] # etc. for (filename, observations, presignals, tarsignals, diagsignals, diagram_type) in zip(['events-deduction', 'events-abduction', 'events-accomodation', 'events-learning', 'events-learning-2'], [observations_ded, observations_abd, observations_tra, observations_tra1, observations_tra], [repeat_([]), presignal_abd, presignal_tra, repeat_([]), presignal_tra], [repeat_([]), tarsignal_abd, tarsignal_tra, repeat_([]), tarsignal_tra], [repeat_([]), diagsignal_abd, diagsignal_tra, repeat_([]), diagsignal_tra], [0, 1, 2, 3, 3]): second_set_of_events = presignals[1] I am using repeat_ objects (itertools.repeat objects) to fill as dummies. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Mark Dickinson added the comment: Here the error message is about positional arguments, which are different from parameters. Okay. So is it also planned to change the existing error messages for user-defined functions? E.g.: def f(a, b=1): ... pass ... f() Traceback (most recent call last): File stdin, line 1, in module TypeError: f() missing 1 required positional argument: 'a' If yes, then I think all these changes need to be coordinated, and that probably involves submitting a proposal to the mailing list. If no, then I think the change proposed in this issue is not an improvement, since it makes the error messages overall inconsistent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16491] IDLE and except: raise from
Terry J. Reedy added the comment: I marked this as 3.3+ bug because double reporting is new in 3.x and 'from None' is new in 3.3 (it causes a TypeError in the raise statement ;-). Command prompt output appears 'correct' (as intended). [I added blank lines before each try: for reading ease] Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32 try: ... 1/0 ... except ZeroDivisionError as exp: ... raise TypeError('Divided by 0') ... Traceback (most recent call last): File stdin, line 2, in module ZeroDivisionError: division by zero During handling of the above exception, another exception occurred: Traceback (most recent call last): File stdin, line 4, in module TypeError: Divided by 0 try: ... 1/0 ... except ZeroDivisionError as exp: ... raise TypeError('Divided by 0') from exp ... Traceback (most recent call last): File stdin, line 2, in module ZeroDivisionError: division by zero The above exception was the direct cause of the following exception: Traceback (most recent call last): File stdin, line 4, in module TypeError: Divided by 0 try: ... 1/0 ... except ZeroDivisionError as exp: ... raise TypeError('Divided by 0') from None ... Traceback (most recent call last): File stdin, line 4, in module TypeError: Divided by 0 --- In IDLE on Win 7 64, all three give Traceback (most recent call last): File F:\Python\mypy\tem.py, line 4, in module raise TypeError('Divided by 0') # except for change here TypeError: Divided by 0 We need to see non-Windows IDLE output to see if problem is limited to running with pythonw. Here is copy-paste code. try: 1/0 except ZeroDivisionError as exp: raise TypeError('Divided by 0') from None -- nosy: +serwy, terry.reedy stage: - needs patch title: try-except-raise-bug - IDLE and except: raise from versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16540] Make itertools count, cycle, and repeat objects subscriptable like range.
Serhiy Storchaka added the comment: Why not use `dummy = [[]] * 3` as dummy? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Ezio Melotti added the comment: Maybe we should follow a more systematic approach and collect the different errors raised in the different situations, and then come up with error messages that are accurate and follow the terminology that we are adopting in #15990. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8109] Server-side support for TLS Server Name Indication extension
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Chris Jerdonek added the comment: TypeError: f() missing 1 required positional argument: 'a' Yes, I think this should also be changed because passing a as a keyword argument is okay: f(a=1) I would suggest something like-- TypeError: f() missing argument for parameter 'a' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16491] IDLE and except: raise from
Serhiy Storchaka added the comment: On Linux the result is the same. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16491 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16543] Use positional arguments in PyArg_UnpackTuple
Ezio Melotti added the comment: I would be fine with just dropping positional there, and say required argument. With no further specification it means the default type of argument, i.e. positional or keyword. See also the end of msg170876. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16543 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2454] sha and md5 fixer
Gregory P. Smith added the comment: Any code conversion is useful. This will help with old libraries and is even good for just updating old 2.4 code to 2.7 best practices. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2454 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10712] 2to3 fixer for deprecated unittest method names
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +gregory.p.smith versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com