[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2016-01-14 Thread Chris Angelico
Chris Angelico added the comment: This still happens in current CPython, and doesn't even require a package: rosuav@sikorsky:~$ echo 'from . import x' >syserr.py rosuav@sikorsky:~$ python3 syserr.py Traceback (most recent call last): File "syserr.py", lin

[issue24752] SystemError when importing from a non-package directory

2016-01-14 Thread Chris Angelico
Chris Angelico added the comment: Linking this issue with #18018 - same problem, same situation. -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue24

[issue18018] SystemError: Parent module '' not loaded, cannot perform relative import

2016-01-14 Thread Chris Angelico
Chris Angelico added the comment: If someone made a new way of importing and had it raise ValueError on some issue or other, I think there'd be complete consensus that that's the wrong exception. Yes, this is incompatible with Python 2 - but there are a lot of corner cases in the 3

[issue24923] Append system paths in setup.py instead of prepending

2016-01-25 Thread Chris Hogan
Chris Hogan added the comment: Zach, 3.x had the desired behavior. We didn't have to make any changes. -- ___ Python tracker <http://bugs.python.org/is

[issue24923] Append system paths in setup.py instead of prepending

2016-01-25 Thread Chris Hogan
Chris Hogan added the comment: I should be able to try it out today or tomorrow. I'll let you know. -- ___ Python tracker <http://bugs.python.org/is

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2016-01-27 Thread Chris Torek
New submission from Chris Torek: The pty.spawn() code assumes that when the process on the slave side of the pty quits, the master side starts raising OSError when read-from or written-to. That used to be true in FBSD, but then someone fixed (?) it, and now the master side simply returns EOF

[issue26252] Add an example to importlib docs on setting up an importer

2016-01-31 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue26252> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19217] Calling assertEquals for moderately long list takes too long

2016-02-05 Thread Chris AtLee
Chris AtLee added the comment: Switching this to unified_diff allows the test case to finish nearly instantly. The downside is that the output is changed in the case of a difference found: FF == FAIL: test_compare (__main__

[issue19217] Calling assertEquals for moderately long list takes too long

2016-02-05 Thread Chris AtLee
Changes by Chris AtLee : Added file: http://bugs.python.org/file41824/cpython-issue19217.diff ___ Python tracker <http://bugs.python.org/issue19217> ___ ___ Python-bug

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Chris Angelico
Chris Angelico added the comment: Ultimately, it's the exact same thing that PEP 479 is meant to deal with - raising StopIteration is functionally identical to returning. I don't use asyncio enough to be certain, but I'm not aware of any good reason to inject a StopIteration in

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-20 Thread Chris Angelico
Chris Angelico added the comment: POC patch, no tests. Is TypeError right? Should it be ValueError, since the notional type is "Exception"? -- keywords: +patch Added file: http://bugs.python.org/file41980/no_stop_iter.patch ___ Python trac

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-21 Thread Chris Angelico
Chris Angelico added the comment: How about "StopException interacts badly with generators and cannot be raised into a Future"? -- ___ Python tracker <http://bugs.python.o

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-21 Thread Chris Angelico
Chris Angelico added the comment: Wording changed, and a simple test added. I'm currently seeing failures in test_site, but that probably means I've messed something up on my system. -- Added file: http://bugs.python.org/file41986/no_stop_

[issue26221] awaiting asyncio.Future swallows StopIteration

2016-02-21 Thread Chris Angelico
Chris Angelico added the comment: Opened https://github.com/python/asyncio/pull/322 -- ___ Python tracker <http://bugs.python.org/issue26221> ___ ___ Python-bug

[issue15693] expose glossary link on hover

2016-03-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: It looks like the issue I previously filed on the Sphinx tracker was migrated here: https://github.com/sphinx-doc/sphinx/issues/996 . But the patch I submitted seems to have been dropped. -- ___ Python tracker

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2016-03-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: This is simply a reduced test case to illustrate the issue more clearly. There was more to it in how I was using it in practice. -- ___ Python tracker <http://bugs.python.org/issue24

[issue26576] Tweak wording of decorator docos

2016-03-18 Thread Chris Angelico
Chris Angelico added the comment: Question: Is it worth having an explanation somewhere of exactly what *does* happen? To what extent is it guaranteed by the language? -- ___ Python tracker <http://bugs.python.org/issue26

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: Sounds good to me. Replacement patch. -- Added file: http://bugs.python.org/file42182/deco-docos.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: Sure - changing it to "roughly". I started with that wording, and then changed to "broadly", for reasons which I now can't remember - so they can't have been too important. Consistency wins. -- Added file: http://

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
New submission from Chris Angelico: The official documentation declares an unambiguous equivalence which is not true in some corner cases: @deco def f(x): pass is not quite the same as def f(x): pass f = deco(f) as the name is never bound to the undecorated function. This is

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: I may be a committer, but I don't push to cpython - just to the peps. But sure, pretty little logo :) -- ___ Python tracker <http://bugs.python.org/is

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: The remaining difference that's actually of use, perhaps. But the decoration itself happens before the name is bound. It's impossible to describe in Python code; but it can be probed - you can monkeypatch a class using a decorator: def monke

[issue26611] assertRaises callableObj cannot be used as a keyword with args

2016-03-22 Thread Chris Mitchell
New submission from Chris Mitchell: assertRaises has callableObj listed as a keyword, though it is not possible to use it as a keyword when the callableObj takes arguments. The function definition is: def assertRaises(self, excClass, callableObj=None, *args, **kwargs): Therefore, using

[issue26763] Update PEP-8 regarding binary operators

2016-04-15 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue26763> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26763] Update PEP-8 regarding binary operators

2016-04-15 Thread Chris Angelico
Chris Angelico added the comment: Typo fixed in peps repo. -- ___ Python tracker <http://bugs.python.org/issue26763> ___ ___ Python-bugs-list mailing list Unsub

[issue26805] Refer to types.SimpleNamespace in namedtuple documentation

2016-04-19 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue26805> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26823] Shrink recursive tracebacks

2016-04-21 Thread Chris Angelico
Chris Angelico added the comment: By "doesn't keep track of call chains", you mean that it can't handle mutually-recursive functions, right? Still useful. -- nosy: +Rosuav ___ Python tracker <http://bug

[issue26960] urllib hangs when closing connection

2016-05-04 Thread Chris Beaumont
New submission from Chris Beaumont: http://bugs.python.org/issue16270 identified an issue with ftpwrapper.endtransfer that causes ftp fetches to hang in certain situations. A fix was applied to python 3. I see the same issue on python 2.7, and the patch from 16270 fixes it. Is there a reason

[issue26960] urllib hangs when closing connection

2016-05-04 Thread Chris Beaumont
Changes by Chris Beaumont : -- keywords: +patch Added file: http://bugs.python.org/file42728/urllib.patch ___ Python tracker <http://bugs.python.org/issue26

[issue23515] Bad logic in timsort's merge_collapse

2015-02-24 Thread Chris Kaynor
Changes by Chris Kaynor : -- nosy: +DragonFireCK ___ Python tracker <http://bugs.python.org/issue23515> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23614] Opaque error message on UTF-8 decoding to surrogates

2015-03-08 Thread Chris Angelico
New submission from Chris Angelico: >>> b"\xed\xb4\x80".decode("utf-8") Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte The actual p

[issue23622] Deprecate unrecognized backslash+letter escapes

2015-03-13 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue23622> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23614] Opaque error message on UTF-8 decoding to surrogates

2015-03-13 Thread Chris Angelico
Chris Angelico added the comment: Nice document. Is that actually how Python's decoder checks things? Does the decoder have different definitions of "valid continuation byte" based on the lead byte? If that's the case... well, ten out of ten for complying with the s

[issue14117] Turtledemo: exception and minor glitches.

2015-04-14 Thread Chris Abiad
Chris Abiad added the comment: Running through each of the demos, it seems as though only 'penrose' and 'tree' have console/shell output. 'penrose' output is a list of information about the current rendering and has a format like: Calculation:0.0009 s Drawing

[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2015-04-14 Thread Chris Abiad
Chris Abiad added the comment: The original problem was described as: "the character is printed at the start of the current line rather than the start of the next line." I haven't gotten too far investigating the cause, but adding a single line to the sample code makes this

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-04-16 Thread Chris Angelico
Chris Angelico added the comment: Simple test case for the future directive. Needs expansion. -- Added file: http://bugs.python.org/file39079/test_pep479.py ___ Python tracker <http://bugs.python.org/issue22

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-04-27 Thread Chris Angelico
Chris Angelico added the comment: Had a peek at the 2.7 branch in the web (https://hg.python.org/cpython/file/4234b0dd2a54/Lib/test) and all the tests appear to be testing the behaviour *with* the future directive, not bothering to test the old behaviour. It makes sense - that way, when the

[issue23614] Opaque error message on UTF-8 decoding to surrogates

2015-04-27 Thread Chris Angelico
Chris Angelico added the comment: Got around to tracking down where this is actually being done. It's in Objects/stringlib/codecs.h and it looks to be a hot area for optimization. I don't want to fiddle with it without knowing a lot about the performance implications (UTF-8 enc

[issue24064] Make the property doctstring writeable

2015-05-01 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue24064> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-05 Thread Chris Angelico
Chris Angelico added the comment: Stinner, not sure what you mean by first part / second part. Is there a way for me to withdraw the first two versions of the patch and just keep #37646? -- ___ Python tracker <http://bugs.python.org/issue22

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-06 Thread Chris Angelico
Chris Angelico added the comment: You sure can! Take it, deploy it, run the test suite, and then start writing real code that uses it. When you find a problem, that's what needs help! :) -- ___ Python tracker <http://bugs.python.org/is

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-07 Thread Chris Angelico
Chris Angelico added the comment: The comment was general because I honestly had no idea what was needed still. All I knew was that the patch seemed to work for me, all tests passing (including the new one). Thanks for uploading the new patch; it compiles happily, and I'm running test

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Chris Angelico
Chris Angelico added the comment: Thanks everyone for all the help getting this to land! This is going to be a part of my active python3 binary from now on :) -- ___ Python tracker <http://bugs.python.org/issue22

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-09 Thread Chris Angelico
Chris Angelico added the comment: Weird. Tests ran fine on my machine too. Interestingly, that number is 0xdbdbdbdbdbdbdbda - does that mean anything? (It's negative 0x2424242424242426, for what that's worth.) -- ___ Python trac

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-06 Thread Chris Angelico
Chris Angelico added the comment: Another couple of tests, per comments. -- Added file: http://bugs.python.org/file44425/moar-tests.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27322] test_compile_path fails when python has been installed

2016-09-07 Thread Chris Angelico
Chris Angelico added the comment: Just ran into the same issue, but in a slightly different way, and with slightly different consequences. You can actually eliminate this failure by manually running compileall on the affected directory: sudo python3 -m compileall /usr/local/lib/python3.6/site

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-08 Thread Chris Angelico
Chris Angelico added the comment: Thanks Brett! Sounds like a plan. -- ___ Python tracker <http://bugs.python.org/issue27080> ___ ___ Python-bugs-list mailin

[issue28074] Add Configuration file parser action

2016-09-10 Thread Chris Nyland
New submission from Chris Nyland: I have recently developed a action for the argparse module that allows arguments to be read in from configuration files. It is different in functionality than the convert_arg_line_to_args in that the file path(s) is passed to the action and then opened. This

[issue27322] test_compile_path fails when python has been installed

2016-09-12 Thread Chris Angelico
Chris Angelico added the comment: Huh. Yeah, that would work really nicely. Thanks Christian! Does this count as a bugfix? I think we've missed 3.6 feature freeze. -- ___ Python tracker <http://bugs.python.org/is

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2016-09-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: An idea occurred to me on this recently. Instead of changing TextTestResult to call test.id() everywhere instead of str(test), what about making TextTestResult DRY by having it call a new method called something like self.getName(test)? With this approach

[issue28172] Upper-case all example enum members

2016-09-15 Thread Chris Angelico
New submission from Chris Angelico: Discussion on python-ideas led to a firm ruling by Guido that enum members are functionally equivalent to constants, and should thus be named in upper-case. This is contrary to the current documentation. Solution? Change the docs. -- assignee: docs

[issue28173] Misspelled Assert

2016-09-15 Thread Chris Rao
New submission from Chris Rao: In the second code block in the section on autospeccing in https://docs.python.org/3/library/unittest.mock.html#auto-speccing, assert is spelled as "assret" >>> mock = Mock(name='Thing', return_value=None) >>> mock(1, 2, 3)

[issue27322] test_compile_path fails when python has been installed

2016-09-27 Thread Chris Angelico
Chris Angelico added the comment: I'm not sure. The patch got backed out with little explanation, so presumably it broke something somewhere, but I don't know what. -- ___ Python tracker <http://bugs.python.o

[issue27322] test_compile_path fails when python has been installed

2016-09-28 Thread Chris Angelico
Chris Angelico added the comment: Also working for me. Thanks! -- ___ Python tracker <http://bugs.python.org/issue27322> ___ ___ Python-bugs-list mailin

[issue28464] BaseEventLoop.close should shutdown executor before marking itself closed

2016-10-17 Thread Chris Meyer
New submission from Chris Meyer: BaseEventLoop.close shuts down the executor associated with the event loop. It should do that BEFORE it sets self._closed = True, otherwise any pending executor futures will attempt to 'call_soon' on the event loop when they finish, resulting in a

[issue28470] configure.ac -g debug compiler option when not Py_DEBUG

2016-10-18 Thread Chris Byers
New submission from Chris Byers: The configure.ac file adds the "-g" debug compiler option to both debug and non-debug builds, so debug information is built for production builds. This seems likely a bug, unless there was a specific reason to do this. Around line 1480 of co

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue28537> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28612] str.translate needs a mapping example

2016-11-04 Thread Chris Barker
Chris Barker added the comment: Agreed: the custom dict type would be nice for a recipe or blog post or... but not for the docs. I'll note that the other trick to this recipe is that you need to know to use lambda to make a "None factory" for defaultdict -- though maybe tha

<    23   24   25   26   27   28