[issue22555] Tracking issue for adjustments to binary/text boundary handling
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22555 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18576] Document test.support.script_helper
Nick Coghlan added the comment: script_helper was moved to the test.support package in issue 9517, so this issue is just about adding the docs now. -- dependencies: +Make test.script_helper more comprehensive, and use it in the test suite -Refactor the test_runpy walk_package support code into a common location title: Rename and document test.script_helper as test.support.script_helper - Document test.support.script_helper versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18576 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18576] Document test.support.script_helper
Nick Coghlan added the comment: Also noting that my draft docs are over a year old now, so they need to be reviewed against the current state of the helper module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18576 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9517] Make test.script_helper more comprehensive, and use it in the test suite
Nick Coghlan added the comment: Just noting that issue 18576 has a draft patch for test.support.script_helper documentation (the move to the support module part of the current patch there is obsolete) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24166] ArgumentParser behavior does not match generated help
Benjamin Schubert added the comment: Thanks a lot for this explanation ! It is more clear now for why it is not working. However, I would suggest that the ArgumentParser should still try to match anything the subparser could not, or would this be too complicated ? Moreover, if this scheme is not feasible, I would suggest modifying the documentation, or having a warning, or something to let people know. If this is possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24166 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24166] ArgumentParser behavior does not match generated help
Benjamin Schubert added the comment: I solved my problem by subclassing the ArgumentParser and redefining parse_args as follow : class MultipleArgumentParser(ArgumentParser): def parse_args(self, args=None, namespace=None): args, argv = self.parse_known_args(args, namespace) if not argv: return args # save old actions, before rerunning the parser without the _SubParsersActions self._old_actions = self._actions.copy() self._actions = [action for action in self._old_actions if not isinstance(action, _SubParsersAction)] # parse the remaining command line args2, argv2 = self.parse_known_args(argv, None) self._actions = self._old_actions.copy() if argv2: msg = _('unrecognized arguments: %s') self.error(msg % ' '.join(argv2)) for key, value in vars(args2).items(): if isinstance(value, collections.Iterable): setattr(args, key, [value for value in itertools.chain(getattr(args, key), value)]) return args I know this is not generic enough and not cleanly done. However, would this be an interesting addition to the argumentparser ? If so, I can try to make a generic implementation, which would allow having multiple arguments after a subparser which did not match them -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24166 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Raymond Hettinger added the comment: I don't like the patch as-is (comment change is wrong, test in the inner-loop making the common case pay for a short-cut for the uncommon case). As I said before, the basic idea is good and I will very likely include some variant of this for Python3.5. I marked this as low priority so I can work on other things (such as deque slicing) before the feature freeze and will come back to this after beta 1. Please remain calm. My development time is limited but this is something I do want to get done. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Roundup Robot added the comment: New changeset 9d2c4d887c19 by Yury Selivanov in branch 'default': Issue #24017: Unset asyncio event loop after test. https://hg.python.org/cpython/rev/9d2c4d887c19 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
New submission from magnus.forsberg: Every time I press the ^ key, IDLE crashes. I've tried this with two different keyboards with the same result. I use IDLE 3.4.3 with Mac OS X 10.10.3. -- components: IDLE messages: 242990 nosy: magnus.forsberg priority: normal severity: normal status: open title: IDLE crashes when I press ^ key type: crash versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24169] sockets convert out-of-range port numbers % 2**16
Kurt Rose added the comment: I was incorrect -- the result of getsockname() appears to be some garbage port: socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56446) socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56447) socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56448) socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56449) socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56450) socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56451) socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 56452) Java's stdlib gives a proper error message: java.net.Socket(google.com, 2**16 + 80) Traceback (most recent call last): File stdin, line 1, in module at java.net.InetSocketAddress.init(Unknown Source) at java.net.Socket.init(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedCons tructor.java:210) java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: port out of range:65616 The .NET runtime also rejects invalid ports: System.Net.IPEndPoint(0x7F01, 2**16 + 80) Traceback (most recent call last): File stdin, line 1, in module ValueError: Specified argument was out of the range of valid values. Parameter name: port IronPython by extension rejects the invalid port: socket.create_connection( ('google.com', 2**16 + 80) ) Traceback (most recent call last): File stdin, line 1, in module ValueError: Specified argument was out of the range of valid values. Parameter name: port However, Jython recreates the behavior of CPython: socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() (u'10.225.89.86', 63071) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24169 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +kbk, ned.deily, roger.serwy, ronaldoussoren, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24134] assertRaises can behave differently
Tim Graham added the comment: I didn't find any problems while testing your proposed new patch for cpython and your proposed patch for Django together. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24134 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Serhiy Storchaka added the comment: Doesn't the feature freeze start from beta 1? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22682] Add support of KZ1048 (RK1048) encoding
Marc-Andre Lemburg added the comment: Looks good. Thanks, Serhiy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Raymond Hettinger added the comment: Optimizations aren't new features. We can still tweak the implementation through-out the betas. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface
Sean Wolfe added the comment: Windows 7 patch test successful: https://bugs.python.org/issue2704 * install python 2.7.8 fresh on W7 * check idle terminal functionality -- should not show terminal changes from 2704: - up arrows move cursor - typing out of focus has no effect - clicking above the prompt, then typing, does not move cursor to the prompt and begin typing * install Terminal.py in idlelib * apply PyShell.py.patch * click out of focus and type -- cursor returns to prompt + text appears * backspace -- backspace deletes text on prompt line * press up arrow -- cursor does not move up -- bell sounds as there are no previous commands * enter a few commands, then use up/down keys to navigate history -- up and down browse through history There seems to be a bell command in the history as I cycle through commands when I cross from earliest to latest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Raymond Hettinger added the comment: I looked at the patch again and it is in pretty good shape. Please hoist the conditionals out of the loop (for intelligibility and to let the compiler in-line more effectively). Also, let's remove the dump and clear variable names in favor of comments that explain the conditionals (to introducing new terminology to the module). If you want, I'll take a crack at it in the next couple of days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9517] Make test.script_helper more comprehensive, and use it in the test suite
Christie added the comment: Cool, thanks @ncoghlan! Would you like someone to take on the work of updating the latest patch on issue 18576? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Serhiy Storchaka added the comment: Here is the patch with hoisted the conditionals out of the loop. New microbenchmarking results: $ ./python -m timeit -s s = set(range(10**4)) -- frozenset(s) Unpatched: 1000 loops, best of 3: 407 usec per loop With patch #4: 1000 loops, best of 3: 325 usec per loop (speed up 25%) With patch #5: 1000 loops, best of 3: 272 usec per loop (speed up 50%) $ ./python -m timeit -s s = {i+(j64) for i in range(10**4//2) for j in range(2)} -- frozenset(s) Unpatched: 1000 loops, best of 3: 995 usec per loop With patch #4: 1000 loops, best of 3: 447 usec per loop (speed up 123%) With patch #5: 1000 loops, best of 3: 417 usec per loop (speed up 139%) $ ./python -m timeit -s s = set(range(10**4)); s.add(-1); s.discard(-1) -- frozenset(s) Unpatched: 1000 loops, best of 3: 411 usec per loop With patch #4: 1000 loops, best of 3: 355 usec per loop (speed up 16%) With patch #5: 1000 loops, best of 3: 406 usec per loop (equal) $ ./python -m timeit -s s = {i+(j64) for i in range(10**4//2) for j in range(2)}; s.add(-1); s.discard(-1) -- frozenset(s) Unpatched: 1000 loops, best of 3: 1.01 msec per loop With patch #4: 1000 loops, best of 3: 572 usec per loop (speed up 77%) With patch #5: 1000 loops, best of 3: 609 usec per loop (speed up 66%) -- Added file: http://bugs.python.org/file39351/set_faster_copy_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jitterman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17849 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24171] httplib
R. David Murray added the comment: This is a duplicate of issue 17849. -- nosy: +r.david.murray resolution: - duplicate stage: - resolved status: open - closed superseder: - Missing size argument in readline() method for httplib's class LineAndFileWrapper type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24171 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24169] sockets convert out-of-range port numbers % 2**16
Kurt Rose added the comment: Sorry, dumb mistake on my part. I should have been calling getpeername(), not getsockname() In that case the result is 80: socket.create_connection( ('google.com', 2**16 + 80) ).getpeername() ('74.125.239.41', 80) The random ports were the client-side ephemeral ports. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24169 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24156] test.test_ssl.ThreadedTests unit test failed
Ned Deily added the comment: Thanks for the additional info. I don't know what possible configuration options might affect this other than that I would expect to see 127.0.0.1 as the primary IPv4 address on the loopback interface, like: # ifconfig [...] loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 [...] Since this does seem to be unique to your configuration, I'm going to close this issue for now. If you do discover the root cause and it appears to be something that might be seen by other users and, thus, should be handled in the test suite, please re-open. -- resolution: - works for me stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24156 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15027] Faster UTF-32 encoding
Roundup Robot added the comment: New changeset 80cf7723c4cf by Serhiy Storchaka in branch 'default': Issue #15027: The UTF-32 encoder is now 3x to 7x faster. https://hg.python.org/cpython/rev/80cf7723c4cf -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17849 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22682] Add support of KZ1048 (RK1048) encoding
Serhiy Storchaka added the comment: It would be nice if somebody of the encoding package maintainers (Martin, Marc-Andre) will approve (or reject) the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24169] sockets convert out-of-range port numbers % 2**16
New submission from Kurt Rose: This appears to affect all versions of Python. In a behavior inherited from C, TCP ports that are 2 bytes are silently truncated. Here is a simple reproduction: socket.create_connection( ('google.com', 2**16 + 80) ) socket.socket object, fd=408, family=2, type=1, proto=0 Needs more investigation, but one likely place to make the fix is here: https://hg.python.org/cpython/file/9d2c4d887c19/Modules/socketmodule.c#l1535 if (!PyArg_ParseTuple(args, Oi:getsockaddrarg, idna_converter, host, port)) Instead of parsing port with i, use H. This is a deep change to the behavior, but I think it is very unlikely that users intentionally mean to pass a TCP port 2**16. More likely, this is silently swallowing errors. There no indication that the passed port parameter is not being used for the actual TCP communication (which is physically impossible because TCP only has a 2 byte port field). In fact, the socket will continue to lie to the user and obfuscate the actual port being used if getsockname() is called: socket.create_connection( ('google.com', 2**16 + 80) ).getsockname() ('10.225.89.86', 54899) -- messages: 242987 nosy: Kurt.Rose priority: normal severity: normal status: open title: sockets convert out-of-range port numbers % 2**16 type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24169 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Ned Deily added the comment: If you are using a Python 3.4.3 from a python.org installer for OS X or have built your own, have you installed the latest ActiveTcl 8.5.x as described here? https://www.python.org/download/mac/tcltk/ If not, you should have received a warning when you launched IDLE. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface
Sean Wolfe added the comment: successfully tested on Linux in 2014 Hello folks, FYI I also installed this patch on Lubuntu linux in 2014 on a series of computers at a lab where I mentor. I don't have the documentation for those specific tests, but I did follow the outline above, and it was done. So, IMO we can call this tested on W7, Linux and OSX 10.9.3, for Python 2.7 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2704 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24169] sockets convert out-of-range port numbers % 2**16
R. David Murray added the comment: You pegged it when you said the behavior is inherited from C. Technically this isn't a bug in Python, since the socket module is a set of (mostly) thin wrappers around the C. Enhancing CPython to do the check is not a bad suggestion, especially since it seems that other languages and implementations do so. We won't fix this in a maintenance release, though, since it would pointlessly break working code (even if that code is technically buggy). -- nosy: +r.david.murray stage: - needs patch type: behavior - enhancement versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24169 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23882] unittest discovery doesn't detect namespace packages when given no parameters
Changes by Ned Deily n...@acm.org: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23882 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Antoine Pitrou added the comment: Le 12/05/2015 20:55, Raymond Hettinger a écrit : Optimizations aren't new features. We can still tweak the implementation through-out the betas. Not really. The period after the first beta is for fixing bugs, not for risking introducing new bugs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24171] httplib
New submission from JitterMan: In python2.7.9, httplib.py, on line 780, makes a call to: line = response.fp.readline(_MAXLINE + 1) This ends up calling a function defined on line 1362 in the same file: def readline(self): Notice the argument mismatch. The call passes two arguments, but the function defines only one. This can be 'fixed' by changing the definition to: def readline(self, size=None): -- messages: 242998 nosy: jitterman priority: normal severity: normal status: open title: httplib type: crash versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24171 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Roundup Robot added the comment: New changeset 78de5d040492 by Serhiy Storchaka in branch 'default': Issue #22681: Added support for the koi8_t encoding. https://hg.python.org/cpython/rev/78de5d040492 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15027] Faster UTF-32 encoding
Serhiy Storchaka added the comment: And that's not all... -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Ned Deily added the comment: Unless I'm very much mistaken, this is another instance of the old Cocoa Tk problem documented here (http://sourceforge.net/p/tktoolkit/bugs/2722/) and referred to in https://www.python.org/download/mac/tcltk/. It's not like a normal TclError in that it causes the embedded Tcl interpreter used by Python to hard crash with no chance of recovery. This is why we strongly recommend people not use older versions of Cocoa Tk as, unfortunately, are still shipped by Apple with the latest versions of OS X. The problem has been fixed in more recent versions of Cocoa Tk such as those shipped by ActiveState and which the python.org installer will use if installed (and will warn about if not installed). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper
JitterMan added the comment: I ran into this problem when I gave https_proxy an invalid value: export https_proxy=http://foo.com No divine intervention required. I was just trying to determine what message was printed with the proxy environment variable was set incorrectly. Perhaps that will help you develop a more reasonable testcase. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17849 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22682] Add support of KZ1048 (RK1048) encoding
Roundup Robot added the comment: New changeset def3bab79c8f by Serhiy Storchaka in branch 'default': Added forgotten new files for issues #22681 and #22682. https://hg.python.org/cpython/rev/def3bab79c8f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22682] Add support of KZ1048 (RK1048) encoding
Serhiy Storchaka added the comment: Thank you for your reviews Amaury and Marc-Andre. -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22486] Add math.gcd()
Roundup Robot added the comment: New changeset 34648ce02bd4 by Serhiy Storchaka in branch 'default': Issue #22486: Added the math.gcd() function. The fractions.gcd() function now is https://hg.python.org/cpython/rev/34648ce02bd4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22486 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Terry J. Reedy added the comment: At least on Windows, tk errors usually result in TclError with a message that is sometimes helpful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Ned Deily added the comment: Lots of LookupError: unknown encoding: koi8_t test failures (on OS X 10.10) after this commit, for example, in test_codecs: == ERROR: test_basics (test.test_codecs.BasicUnicodeTest) -- Traceback (most recent call last): File /py/dev/3x/source/Lib/test/test_codecs.py, line 1869, in test_basics name = codecs.lookup(encoding).name LookupError: unknown encoding: koi8_t == ERROR: test_decoder_state (test.test_codecs.BasicUnicodeTest) -- Traceback (most recent call last): File /py/dev/3x/source/Lib/test/test_codecs.py, line 2024, in test_decoder_state self.check_state_handling_decode(encoding, u, u.encode(encoding)) LookupError: unknown encoding: koi8_t == ERROR: test_seek (test.test_codecs.BasicUnicodeTest) -- Traceback (most recent call last): File /py/dev/3x/source/Lib/test/test_codecs.py, line 1992, in test_seek reader = codecs.getreader(encoding)(io.BytesIO(s.encode(encoding))) File /py/dev/3x/blds/uxd/../../source/Lib/codecs.py, line 998, in getreader return lookup(encoding).streamreader LookupError: unknown encoding: koi8_t -- Ran 211 tests in 5.970s FAILED (errors=5, skipped=17) -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24042] Convert os._getfullpathname() and os._isdir() to Argument Clinic
Mark Lawrence added the comment: I've tested the patch on Windows 8.1, 32 and 64 bit release and debug builds with no problems. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24042 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Ned Deily added the comment: This is undoubtedly a crash in Tk, not in Python itself, so there won't be any Python traceback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23509] Speed up Counter operators
Serhiy Storchaka added the comment: Could you please look at the patch Raymond? There are only few days are left to the feature freeze. -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23509 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Roundup Robot added the comment: New changeset def3bab79c8f by Serhiy Storchaka in branch 'default': Added forgotten new files for issues #22681 and #22682. https://hg.python.org/cpython/rev/def3bab79c8f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Serhiy Storchaka added the comment: Thanks Ned. I just forgive to add new encoding files. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22682] Add support of KZ1048 (RK1048) encoding
Roundup Robot added the comment: New changeset 6e1fe5bfba48 by Serhiy Storchaka in branch 'default': Issue #22682: Added support for the kz1048 encoding. https://hg.python.org/cpython/rev/6e1fe5bfba48 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Terry J. Reedy added the comment: Does not happen on Windows. Please start Idle with python -m idlelib in a console and report any error traceback you see. Replace 'python' with 'python3' or 'py -3' as needed to start 3.x. (I am not familiar with osx incantation.) -- components: +Macintosh type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Ned Deily added the comment: Also the 10.6 (Snow Leopard) buildbot: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/3125/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17394] Add slicing support to collections.deque
Larry Hastings added the comment: For the record, Raymond asked for permission to check this in (a new feature) for 3.5 beta 2, as he won't have time to finish it before beta 1. As 3.5 release manager I've given him permission. Go Raymond! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17394 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9517] Make test.script_helper more comprehensive, and use it in the test suite
Nick Coghlan added the comment: Sure, that would be great. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17394] Add slicing support to collections.deque
Changes by Larry Hastings la...@hastings.org: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17394 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Serhiy Storchaka added the comment: Could you please pay a little attention to this issue Raymond? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23870] pprint collections classes
Roundup Robot added the comment: New changeset 73c01323cb9b by Serhiy Storchaka in branch 'default': Issue #23870: The pprint module now supports all standard collections https://hg.python.org/cpython/rev/73c01323cb9b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23870 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24009] Get rid of rare format units in PyArg_Parse*
Serhiy Storchaka added the comment: Yes, of course, I think we shouldn't drop support of these format units. But using them likely is a sign of outdated or transitional code. It should be discouraged in new code, and every case should be analyzed and cleaned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24009 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23870] pprint collections classes
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23870 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22995] Restrict default pickleability
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22995 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24042] Convert os._getfullpathname() and os._isdir() to Argument Clinic
Serhiy Storchaka added the comment: Could anyone please test the patch on Windows? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24042 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21859] Add Python implementation of FileIO
Serhiy Storchaka added the comment: Both issues are fixed. -- assignee: - serhiy.storchaka dependencies: -Check path arguments of os functions for null character resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21859 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22682] Add support of KZ1048 (RK1048) encoding
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22682 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Roundup Robot added the comment: New changeset 031df83dffb4 by Serhiy Storchaka in branch 'default': Issue #20173: Converted the _codecs module to Argument Clinic. https://hg.python.org/cpython/rev/031df83dffb4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Serhiy Storchaka added the comment: Updated to the tip and committed. Included Larry's suggestion about sys.getdefaultencoding(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24037] Argument Clinic: add the boolint converter
Serhiy Storchaka added the comment: Updated to the tip. Used new converter in recently converted _tkinter and _codecs modules. Now it is used 30 times. -- Added file: http://bugs.python.org/file39349/clinic_boolint_converter_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24037 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22939] integer overflow in iterator object
Clement Rouault added the comment: After a few months, I am back to you on this issue. What should be the next step of the process ? -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22939 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22681] Add support of KOI8-T encoding
Ned Deily added the comment: All better, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file39353/set_faster_copy_6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
magnus.forsberg added the comment: Thanks for your replies! There is a warning about Tcl/Tk: WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit http://www.python.org/download/mac/tcltk/ for current information. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24170] IDLE crashes when I press ^ key
Ned Deily added the comment: Thanks! I'm going to assume then that installing a current ActiveTcl 8.5.x will fix the problem for you. -- resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24170 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Raymond Hettinger added the comment: Attaching a variant with several fix-ups (mostly minor): * Changed the order of the three sections to go from most-restricted-most-optimized to the general-fall-through case. The downside is that we test so-fill==0 twice. The upside is that it corresponds to my way of thinking about the logic. * Put the fill/used increments in the same order as the rest of the file. * Loop over other_entry++ instead of using indexing. This corresponds to my way of thinking about the entries and gives the compiler a stronger hint that it can avoid the indexing overhead. * Removed the unnecessary dummy check from the direct_pointer_copy case. * Switch the order of the same size and no dummies tests in the insert_clean case. * Revise the comments to be clearer about the requirements for each case. * Move the sometimes unnecessary hash variable assignments inside the conditional. -- Added file: http://bugs.python.org/file39352/set_faster_copy_6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24169] sockets convert out-of-range port numbers % 2**16
Kurt Rose added the comment: Totally agree this needs to be managed carefully. My goal here was just to raise awareness and see if there is consensus that the behavior should be changed. I came across this because an upstream process had a bug which led to impossible TCP ports being specified. So, for my use case it would have been better if create_connection() had rejected the invalid data. If we are talking about enhancements to the socket module, it would also be nice if errors included the address :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24169 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22486] Add math.gcd()
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22486 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24166] ArgumentParser behavior does not match generated help
paul j3 added the comment: Look at http://bugs.python.org/issue9338 argparse optionals with nargs='?', '*' or '+' can't be followed by positionals That has a proposed patch that wraps the main argument consumption loop in another loop. The current loop alternatively consumes optionals and positionals until the argv list is done. The `consume_loop` method in that patch tries various allocations of argv strings between optionals and positionals. It performs 'dry' runs until it finds something that consumes most of the strings, and then does the actual parsing with changes to the namespace. The idea might be adapted to work with subparsers, paying attention, as you do, to the 'extras' from parse_known_args. But it might be hard to reliably perform a 'dry' run when subparsers are involved. I suspect that any change along this line will be too complex to ever be the default behavior. The chances of messing with backward compatibility are just too great. It might pass as an alternative parsing call. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24166 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23290] Faster set copying
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Removed file: http://bugs.python.org/file39352/set_faster_copy_6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23290 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions
Changes by Petr Viktorin encu...@gmail.com: -- nosy: +encukou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1322 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21708] Deprecate nonstandard behavior of a dumbdbm database
Serhiy Storchaka added the comment: Warnings are not raised by default. They are raised only when the database is opened with the 'r' mode and then modified. The earlier we start deprecation period, the earlier we could add true read-only and update existing modes to dbm.dumb. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21708 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23882] unittest discovery doesn't detect namespace packages when given no parameters
Alex Shkop added the comment: Please, review the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23882 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
Alex Shkop added the comment: Please, review the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24086] Configparser interpolation is unexpected
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24086 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23193] Please support numeric_owner in tarfile
Roundup Robot added the comment: New changeset e5a53d75dc19 by Zachary Ware in branch 'default': Issue #23193: Skip numeric_owner tests on platforms where they don't make sense https://hg.python.org/cpython/rev/e5a53d75dc19 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23193 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Roundup Robot added the comment: New changeset e39fd5a8501a by Nick Coghlan in branch 'default': Issue 24017: fix for async with refcounting https://hg.python.org/cpython/rev/e39fd5a8501a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23911] Move path-based bootstrap code to a separate frozen file.
Roundup Robot added the comment: New changeset cc2e52878393 by Zachary Ware in branch 'default': Issue #23911: Fix ctypes test on Windows. https://hg.python.org/cpython/rev/cc2e52878393 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23911 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23796] BufferedReader.peek() crashes if closed
Berker Peksag added the comment: Fixed. Thanks for the patch, John. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23796 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23983] Update example in the pty documentation
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23983 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23983] Update example in the pty documentation
Roundup Robot added the comment: New changeset e656bece13fa by Berker Peksag in branch '3.4': Issue #23983: Update the pty module example. https://hg.python.org/cpython/rev/e656bece13fa New changeset 0be7c8f46378 by Berker Peksag in branch 'default': Issue #23983: Update the pty module example. https://hg.python.org/cpython/rev/0be7c8f46378 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23983 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)
Berker Peksag added the comment: Éric, could you please take a look at issue19610_v4.diff? I'd like to commit the patch this weekend. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19610 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23895] PATCH: python socket module fails to build on Solaris when -zignore is in LDFLAGS
Andrew Stormont added the comment: Bump. Would be nice to get this included in python 2.7.11. I also have a similar fix for the multiprocessing module but I won't bother submitting it if it will get ignored. -- status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23895 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15027] Faster UTF-32 encoding
Serhiy Storchaka added the comment: Can I commit the patch now Larry? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Roundup Robot added the comment: New changeset 39df27d97901 by Serhiy Storchaka in branch 'default': Fixed compilation on Windows for issue #20173. https://hg.python.org/cpython/rev/39df27d97901 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20173 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23796] BufferedReader.peek() crashes if closed
Roundup Robot added the comment: New changeset 7d722c9049ff by Berker Peksag in branch '3.4': Issue #23796: peak and read1 methods of BufferedReader now raise ValueError https://hg.python.org/cpython/rev/7d722c9049ff New changeset be7636fd6438 by Berker Peksag in branch 'default': Issue #23796: Null merge. https://hg.python.org/cpython/rev/be7636fd6438 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23796 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24053 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Yury Selivanov added the comment: Is there are a specific reason this implicit exception handler can't be decomposed and implemented using the same opcodes as are used to implement explicit exception handlers? I don't think it's possible to replace ASYNC_WITH_CLEANUP_EXCEPT opcode with some combination of existing opcodes. What might be possible is to implement 'async with' without using WITH_CLEANUP_* opcodes at all. Let me try that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Nick Coghlan added the comment: I'm going to dig into this one locally, as it sounds to me like something may be going wrong with the refcounts in the complex stack manipulation involved in WITH_CLEANUP. It seems plausible that there's a genuinely missing incref/decref pair somewhere in the non-exceptional path, which the proposed new opcode is working around. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Yury Selivanov added the comment: I'd suggest you to look at ceval.c before PEP 492 patch then (where there is just one WITH_CLEANUP opcode). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Nick Coghlan added the comment: Avoiding WITH_CLEANUP entirely in the async case also sounds like a plausible approach. Either way, I'm also on IRC now if you want to thrash this out there. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Yury Selivanov added the comment: Nick, Guido, Attached is a patch that fixes a refleak in 'async with' implementation. The problem is related to WITH_CLEANUP_START/WITH_CLEANUP_FINISH opcodes. For regular 'with' statements, these opcodes go one after another (essentially, it was one opcode before 'async with'). For 'async with' statements, we have a GET_AWAITABLE/YIELD_FROM pair between them. Now, if an error occurred during running a GET_AWAITABLE or a YIELD_FROM opcode, WITH_CLEANUP_FINISH was unreachable. All blocks were correctly unwound by the eval loop, but exception object got too many DECREFS. My solution is to continue using WITH_CLEANUP_START/WITH_CLEANUP_FINISH opcodes, but use SETUP_EXCEPT to guard them and nested YIELD_FROM and GET_AWAITABLE. In case of an exception, I propose to use another new opcode -- ASYNC_WITH_CLEANUP_EXCEPT. It unwinds the block set up by SETUP_EXCEPT, restores exception, NULLifies a copy of exception in the stack and does 'goto error', letting eval loop do the rest. ./python.exe -m test -R3:3 test_coroutines with this patch reports no refleaks. I also updates test_coroutines with a lot of new 'async with' tests, I think that I got all usecases covered. Please take a look at the patch, I want to commit it as soon as possible. -- Added file: http://bugs.python.org/file39354/with.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation
Martin Panter added the comment: Another problem with tostring() is that it seems you have to call it with encoding=unicode. Perhaps it would be better to suggest code like .join(element.itertext())? I would also improve on Jérôme’s version by making the None case more explicit. And perhaps both attributes can be defined together, rather than giving a half-hearted definition linking between them: .. attribute:: text .. attribute:: tail The *text* attribute holds any text between the element's begin tag and the next tag. The *tail* attribute holds any text between the element's end tag and the next tag. These attributes are set to ``None`` if there is no text. For example, in the XML data ``ab1c2d/3/c/b4/a``, the *a* element has ``None`` for both *text* and *tail* attributes, the *b* element has *text* ``1`` and *tail* ``4``, the *c* element has *text* ``2`` and *tail* ``None``, the *d* element has *text* ``None`` and *tail* ``3``. To collect the inner text of an element, use :meth:`itertext`, for example ``.join(element.itertext())``. Applications may store arbitrary objects in these attributes. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24079 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax
Nick Coghlan added the comment: I'm bothered by the remarkable proliferation of new opcodes for the PEP 492 handling. Is there are a specific reason this implicit exception handler can't be decomposed and implemented using the same opcodes as are used to implement explicit exception handlers? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24017 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com