[issue22906] PEP 479: Change StopIteration handling inside generators

2015-01-08 Thread Chris Angelico
Chris Angelico added the comment: Okay! I think I have something here. DEFINITELY needs more eyeballs, but all tests pass, including a new one that tests StopIteration leakage both with and without the __future__ directive. Some docs changes have been made (I grepped for 'stopiteration

[issue23192] Generator return value ignored in lambda function

2015-01-08 Thread Chris Angelico
Chris Angelico added the comment: I'm not sure what to look for in the code generation. In compile.c lines 3456 and following, there's a LOAD_CONST None coming through, in the else branch of "if (e->v.Yield.value)", but nothing talking about lambda function

[issue23201] Decimal(0)**0 is an error, 0**0 is 1, but Decimal(0) == 0

2015-01-08 Thread Chris Rebert
Chris Rebert added the comment: This behavior seems to be required by the General Decimal Arithmetic Specification (http://speleotrove.com/decimal/daexcep.html ): > The following exceptional conditions can occur: > [...] > Invalid operation > This occurs and sign

[issue2292] Missing *-unpacking generalizations

2015-01-19 Thread Chris Angelico
Chris Angelico added the comment: The third version of the patch is huge compared to the other two. Is it all important? I'm seeing a different build failure, and with the size of patch, I'm not sure I'm well placed to figure out what's going on. -- cut -- Traceback (m

[issue2292] Missing *-unpacking generalizations

2015-01-20 Thread Chris Angelico
Chris Angelico added the comment: *facepalm* Of course I am. I don't know how I missed that in there, but maybe I was focusing too much on the abort that followed it to actually read the exception text. Duh. But with the latest version of the patch, I'm seeing something that I'

[issue2292] Missing *-unpacking generalizations

2015-01-25 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: -Rosuav ___ Python tracker <http://bugs.python.org/issue2292> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23342] run() - unified high-level interface for subprocess

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

[issue22385] Define a binary output formatting mini-language for *.hex()

2015-06-03 Thread Chris Lasher
Changes by Chris Lasher : -- nosy: +gotgenes ___ Python tracker <http://bugs.python.org/issue22385> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24435] Grammar/Grammar points to outdated guide

2015-06-11 Thread Chris Angelico
New submission from Chris Angelico: Grammar/Grammar points to PEP 306, which points instead to the dev guide. The exact link is not provided, but it'd be useful to skip the PEP altogether and just link to https://docs.python.org/devguide/grammar.html in the file. -- messages: 2

[issue24536] os.pipe() should return a structsequence (or namedtuple.)

2015-06-30 Thread Chris Angelico
Chris Angelico added the comment: Another good option is read/write without the 'fd' suffix. Either works, I'd prefer the shorter one but by a small margin. -- nosy: +Rosuav ___ Python tracker <http://bugs.pyt

[issue24610] Incorrect example Unicode string in docs footnote

2015-07-11 Thread Chris Angelico
New submission from Chris Angelico: https://docs.python.org/3/reference/expressions.html#id18 The string "\u0327\u0043" does not normalize to the same string as "\u00C7", as combining characters are supposed to _follow_ the base character. (Some consoles may happen to d

[issue24610] Incorrect example Unicode string in docs footnote

2015-07-11 Thread Chris Angelico
Chris Angelico added the comment: Interestingly, the 2.7 docs have this correct already. https://docs.python.org/2.7/reference/expressions.html#id23 -- ___ Python tracker <http://bugs.python.org/issue24

[issue23972] Asyncio reuseport

2015-07-13 Thread chris laws
chris laws added the comment: I encountered this issue too. I needed it resolved ASAP for my work so I created a loop patch that partially implements the suggestion solution by overriding the create_datagram_endpoint method. Perhaps this might be of some use to the eventual ticket resolver

[issue23906] poplib maxline behaviour may be wrong

2015-07-14 Thread Chris Smowton
Chris Smowton added the comment: I found the same problem retrieving mail from my ISP's (unknown) POP3 server. I was sent an HTML email as one long 50KB line, which naturally broke everything. Instead of limiting line length, I suggest you should limit total message body size, since t

[issue16041] poplib: unlimited readline() from connection

2015-07-14 Thread Chris Smowton
Chris Smowton added the comment: +1 to the above; suggest this should be rolled back and replaced with a total message size limit. -- nosy: +Chris Smowton ___ Python tracker <http://bugs.python.org/issue16

[issue23972] Asyncio reuseport

2015-07-15 Thread chris laws
chris laws added the comment: Attached is a patch that implements the suggested solution along with tests and associated doc updates. Hope this helps. -- keywords: +patch Added file: http://bugs.python.org/file39930/23972_cjl.patch ___ Python

[issue24640] no ensurepip in embedded Windows distribution

2015-07-15 Thread Chris Krycho
New submission from Chris Krycho: There is no `ensurepip` module bundled with the embedded distribution of Python 3.5 for Windows: Z:\python-3.5.0b3-embed> .\python -m ensurepip --upgrade Z:\python-3.5.0b3-embed\python.exe: No module named ensurepip This may be the *intent*, bu

[issue24640] no ensurepip in embedded Windows distribution

2015-07-15 Thread Chris Krycho
Chris Krycho added the comment: Using --root or --target (as appropriate to the specific package) does appear to be the preferred approach for that, and given the constraints of an embedded installation, I agree that that's the most reasonable solution. I spent a fair bit of time readi

[issue23054] ConnectionError: ('Connection aborted.', BadStatusLine(""''''"))

2015-07-18 Thread Chris Mattmann
Chris Mattmann added the comment: Hi there, we are experiencing this in tika-python too, see: https://github.com/chrismattmann/tika-python/issues/44 -- nosy: +chrismattmann ___ Python tracker <http://bugs.python.org/issue23

[issue24668] Deprecate 00000 as a synonym for 0

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

[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread Chris Smowton
Chris Smowton added the comment: Why wouldn't that fix the problem? The issue is poplib not tolerating server behaviour seen in the wild, and if you limit by message size not line length you shouldn't see this problem? (Side note, I'm surprised not to have been emailed when y

[issue24706] poplib: Line too long error causes knock-on failure to retrieve all subsequent messages

2015-07-24 Thread Chris Smowton
New submission from Chris Smowton: As mentioned in #23906, when poplib bails from receiving a message with a 'line too long' error it neither flushes nor re-establishes the TCP connection. This means that subsequent commands fail because instead of the expected response we receive p

[issue23906] poplib maxline behaviour may be wrong

2015-07-24 Thread Chris Smowton
Chris Smowton added the comment: Created #24706 to describe the unflushed connection problem. -- ___ Python tracker <http://bugs.python.org/issue23906> ___ ___

[issue24707] Assertion failed in pymonotonic_new

2015-07-24 Thread Chris Angelico
Chris Angelico added the comment: The host is running Debian Jessie (newer than the Debian Wheezy of the VM). Linux sikorsky 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux What info are you after re hardware virtualization? VirtualBox 4.3.28 r100309 manages

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread Chris Angelico
Chris Angelico added the comment: Where's this issue heading? The buildbots seem to be green now, does that imply that this is fixed? -- ___ Python tracker <http://bugs.python.org/is

[issue24707] Assertion failed in pymonotonic_new

2015-07-30 Thread Chris Angelico
Chris Angelico added the comment: Ah. It's one of *those* bugs. Got it. -- ___ Python tracker <http://bugs.python.org/issue24707> ___ ___ Python-bugs-list m

[issue24780] unittest assertEqual difference output foiled by newlines

2015-08-02 Thread Chris Jerdonek
New submission from Chris Jerdonek: When newlines are present, the error message displayed by unittest's self.assertEqual() to show where strings differ can be nonsensical. For example, the caret symbol can show up in a strange location. The first example below shows a case where things

[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-08-07 Thread Chris Brennan
Chris Brennan added the comment: This bug appears (for me) when I use longer install paths, both in the GUI installer and doing a silent install via msiexec. The paths I've used so far are these: E:\langs\Python\x32\27 E:\langs\Python\x32\34 E:\langs\Python\x64\27 E:\langs\Python\x64\

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-10 Thread Chris Rebert
New submission from Chris Rebert: There is a cross-reference to namedtuple in SimpleNamespace's docs, but not vice-versa, despite these types being fairly similar. -- assignee: docs@python components: Documentation messages: 248389 nosy: cvrebert, docs@python priority: normal sev

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-11 Thread Chris Hogan
Chris Hogan added the comment: Producing NaN by Py_HUGE_VAL / Py_HUGE_VAL as in the suggested patch is unsafe as it can generate a FP exception during runtime. Also aggresive compiler FP optimizations can eliminate this calculation on compile-time. For this reason, we've used con

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-12 Thread Chris Hogan
Chris Hogan added the comment: >From Clark Nelson: > In my opinion, exactly how and where the macro is defined that indicates our > conformance to the FP standard > doesn't really matter. The point is that it is our intention to conform, at > least to some degr

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-18 Thread Chris Hogan
Chris Hogan added the comment: At Intel, we've run into problems with external modules giving paths to _nt_quote_args that contain trailing backslashes, which escapes the final quote and breaks the command. This fix takes care of special characters, trailing backslashes, and embedded q

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-18 Thread Chris Hogan
Changes by Chris Hogan : Added file: http://bugs.python.org/file40205/quote-args-ext.tar.gz ___ Python tracker <http://bugs.python.org/issue8987> ___ ___ Python-bug

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-20 Thread Chris Hogan
Chris Hogan added the comment: > Since issue 8972 has been resolved by fixing the broken behavior, I think we > should just use list2cmdline. > We could leave _nt_quote_args alone and replace the call to it in _spawn_nt > with: > cmd = [list2cmdline([arg]) for arg in cmd]

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-21 Thread Chris Hogan
Chris Hogan added the comment: Here's a change that might fix the trailing backslash problem for now without breaking anything. libpath-fix.patch only affects arguments that we know are paths. This happens before anything is quoted. This avoids the problem when something like 'C:

[issue993766] bdist_dumb and --relative on Windows fails

2015-08-21 Thread Chris Hogan
Chris Hogan added the comment: I think ensure_relative is incorrect. The comment in the function states: "Take the full path 'path', and make it a relative path. This is useful to make 'path' the second argument to os.path.join()." However, according to t

[issue23972] Asyncio reuseport

2015-08-22 Thread chris laws
chris laws added the comment: I have updated the patch to address comments raised by haypo. An exception is now raised if reuse_port is explicitly used and the platform does not support SOREUSEPORT. The docs have also been updated to make it more explicit that this feature is not supported

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

2015-08-24 Thread Chris Hogan
New submission from Chris Hogan: Setup.py evaluates what's given in LDFLAGS and CPPFLAGS and CFLAGS. These variables are the usual mechanism to communicate custom paths/libs/defs to a build process. However, setup.py puts system paths in front of custom paths which makes it impossible t

[issue23597] Allow easy display of local variables in log messages?

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

[issue24959] unittest swallows part of stack trace using "raise from" with AssertionError

2015-08-29 Thread Chris Jerdonek
New submission from Chris Jerdonek: unittest swallows some lines of the stack trace when raising an AssertionError using the "raise from" syntax inside a TestCase. This marks it harder to pinpoint the source of test failures. It is also confusing to see a stack trace like this b

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

2015-08-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: I guess this isn't limited just to the "raise from" syntax. It also occurs if "from exc" is removed from the example above. -- title: unittest swallows part of stack trace using "raise from" with AssertionError

[issue24973] CFLAGS for Visual Studio

2015-08-31 Thread Chris Hogan
New submission from Chris Hogan: This Visual Studio project change appends to the compiler flags any values in the CFLAGS environment variable. -- components: Build, Windows files: addcflags3_5.patch keywords: patch messages: 249427 nosy: christopher.hogan, paul.moore, r.david.murray

[issue24973] CFLAGS for Visual Studio

2015-08-31 Thread Chris Hogan
Changes by Chris Hogan : Added file: http://bugs.python.org/file40309/addcflags2_7.patch ___ Python tracker <http://bugs.python.org/issue24973> ___ ___ Python-bugs-list m

[issue25068] The proxy key's string should ignore case.

2015-09-11 Thread Chris Angelico
Chris Angelico added the comment: This sounds like a feature enhancement, which means it (almost certainly) won't be applied to Python 2.7. Does the same question come up in Python 3? Also (FWIW) if you can confidently assume that all the keys are strings. then type.lower() is better

[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

2015-09-11 Thread Chris Angelico
Chris Angelico added the comment: ISTM this is a case where Python's core shouldn't be using assert. It's possible for userland code to trigger an assertion failure, which means it should be a regular if(..) raise. Patch attached. @haypo, what do you mean by "fuzzing"

[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

2015-09-11 Thread Chris Angelico
Chris Angelico added the comment: Oops, forgot to add a test. Using a variant of poc_getaddr.py to construct something which fails on current CPython tip, and passes with the patch. -- Added file: http://bugs.python.org/file40435/dont_assert_with_test.patch

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-14 Thread Chris Angelico
Chris Angelico added the comment: Hmm. Is Duff's Device a valid construct for CPython? It'd shorten this a lot... -- nosy: +Rosuav ___ Python tracker <http://bugs.python.o

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-14 Thread Chris Angelico
Chris Angelico added the comment: Or at very least, can fallthrough be used in the switch block, so there aren't 7+6+5+4+3+2+1 copies of the same line? -- Not a C performance expert -- -- ___ Python tracker <http://bugs.python.org/is

[issue25106] Hash computation speedup for {buffer, string, unicode}object

2015-09-14 Thread Chris Angelico
Chris Angelico added the comment: +1 for anything that makes Python faster with provably no semantic changes. -- ___ Python tracker <http://bugs.python.org/issue25

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-18 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue24965> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23972] Asyncio reuseport

2015-09-29 Thread chris laws
chris laws added the comment: Rebase patch onto current master. -- Added file: http://bugs.python.org/file40616/23972_cjl_v003.patch ___ Python tracker <http://bugs.python.org/issue23

[issue23972] Asyncio reuseport

2015-10-02 Thread chris laws
chris laws added the comment: Updates addressing review comments. -- Added file: http://bugs.python.org/file40664/23972_cjl_v004.patch ___ Python tracker <http://bugs.python.org/issue23

[issue23972] Asyncio reuseport

2015-10-05 Thread chris laws
chris laws added the comment: I've checked the Buildbot results and observed a few errors related to this change. Specifically the issues affect Windows and Debian. Builder AMD64 Debian root 3.x build #2772 - http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds

[issue23972] Asyncio reuseport

2015-10-06 Thread chris laws
chris laws added the comment: This patch contains minor updates to resolve the Buildbot issues observed on the Windows and Debian platforms after the initial #23972 change set was committed. -- Added file: http://bugs.python.org/file40696/23972_cjl_v006.patch

[issue25371] select.select docstring needs comma

2015-10-10 Thread Chris Angelico
New submission from Chris Angelico: The grammar of the IMPORTANT NOTICE on the select module and the select.select function wants a comma, I think. Patch attached. -- assignee: docs@python components: Documentation files: add_comma.patch keywords: patch messages: 252750 nosy: Rosuav

[issue12813] uuid4 is not tested if a uuid4 system routine isn't present

2015-10-10 Thread Chris Angelico
Chris Angelico added the comment: 3.6 doesn't have this check, so I would say that yes, this has indeed been fixed. Issue can be closed fixed. -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/is

[issue15999] Using new 'bool' format character

2015-10-10 Thread Chris Angelico
Chris Angelico added the comment: Has this been entirely superseded by Argument Clinic? -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue15

[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules

2015-10-10 Thread Chris Angelico
Chris Angelico added the comment: "bytes of binary data" seems redundant - how about just "byte string"? Otherwise, sure. -- nosy: +Rosuav ___ Python tracker <http://bug

[issue18769] argparse remove subparser

2015-10-10 Thread Chris Angelico
Chris Angelico added the comment: Patch applies cleanly to 3.6 and doesn't appear to add any new test failures (3.6 currently has a couple). Needs its own test, though. -- nosy: +Rosuav versions: +Python 3.6 -Python 3.5 ___ Python tracker

[issue22228] Adapt bash readline operate-and-get-next function

2015-10-10 Thread Chris Angelico
Chris Angelico added the comment: Any other interest in this? It'd be nice to get this in trunk and start being able to recommend it to people. -- ___ Python tracker <http://bugs.python.org/is

[issue25375] Don't mention 2.2 in the 3.x docs

2015-10-10 Thread Chris Angelico
New submission from Chris Angelico: See: https://mail.python.org/pipermail/python-list/2015-October/697818.html Saying "In Python 2.2" is not helpful in the 3.x docs. Even in the 2.x docs, it's pretty safe to assume by now that everyone's on 2.2+. (At very least, "Si

[issue6259] ctypes pointer arithmetic

2015-10-10 Thread Chris Angelico
Chris Angelico added the comment: Nudging this as a forgotten patch. Is anyone at all interested in this, or should it be closed as not worth the hassle? The patch is ancient and doesn't apply to 3.6. Propose closing, to clean up the tracker. It can always be reopened if the patch is up

[issue6259] ctypes pointer arithmetic

2015-10-11 Thread Chris Angelico
Chris Angelico added the comment: Fair enough. Still needs someone to update the patch though. -- ___ Python tracker <http://bugs.python.org/issue6259> ___ ___

[issue25394] CoroWrapper breaks gen.throw

2015-10-13 Thread Chris Seto
New submission from Chris Seto: When asyncio.coroutines._DEBUG is set to True all coroutines are wrapped in a CoroWrapper. The definition of CoroWrapper.throw only excepts a single argument, exc. It should accept an exception info tuple as returned from sys.exc_info just as normal generators

[issue25394] CoroWrapper breaks gen.throw

2015-10-13 Thread Chris Seto
Changes by Chris Seto : -- keywords: +patch Added file: http://bugs.python.org/file40770/corowrapper.diff ___ Python tracker <http://bugs.python.org/issue25

[issue25446] smtplib.py AUTH LOGIN code messed up sending login and password data since 3.5

2015-11-01 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue25446> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2015-11-01 Thread Chris Withers
New submission from Chris Withers: The following results in an infinite loop: >>> from inspect import unwrap >>> from unittest.mock import call >>> unwrap(call) This can occur when you use doctest.DocTestSuite to load doc tests from a module where unittest.

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2015-11-01 Thread Chris Withers
Chris Withers added the comment: A naive solution is to chat unittest.mock._Call's __getattr__ to be as follows: def __getattr__(self, attr): if attr == '__wrapped__': raise AttributeError('__wrapped__') if self.name is None: return _Call(n

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2015-11-02 Thread Chris Withers
Chris Withers added the comment: Ah yes, I can see how Venusian would get confused. How about making the check a more generic: if attr.startswith('__'): raise AttributeError(attr) ? That said, why does call have a __getattr__? Where is that intended

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2015-11-03 Thread Chris Withers
Chris Withers added the comment: Indeed, I guess Venusian will get confused, but not sure thats solvable as there will be obvious bugs indicating that call shouldn't be imported at module-level. This does feel like the problem is actually with inspect.unwrap: there's evidence of

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2015-11-09 Thread Chris Hogan
New submission from Chris Hogan: I successfully built Python on OS X 10.10 with the Intel compiler v15. However, running the regression tests gives me a "segmentation fault: 11" on test_ascii_formated. I think this has to do with libffi, because when I build with the --use-syste

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2015-11-09 Thread Chris Hogan
Chris Hogan added the comment: Ned, the test is in Lib/test/test_ascii_formatd.py. Sorry, I spelled it wrong originally. Also, I guess it's only in 2.7. My mistake. -- versions: -Python 3.5 ___ Python tracker <http://bugs.python.org/is

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2015-11-10 Thread Chris Hogan
Chris Hogan added the comment: I guess since no one can reproduce the error, it must be a problem with how I'm building it. We build our own dependencies (zlib, bzip, sqlite3, openssl, etc.) with the Intel compiler, so it could be any number of things causing the issue. Closing as not

[issue25642] Setting maxsize breaks asyncio.JoinableQueue/Queue

2015-11-16 Thread Chris Seto
New submission from Chris Seto: When maxsize is set on a JoinableQueue/Queue and the queue is full (maxsize <= len(queue)) _put is called rather than __put_internal. __put_internal increments _unfinished_tasks but _put does not. Whenever using maxsize in a Queue calling task_done will alm

[issue25642] Setting maxsize breaks asyncio.JoinableQueue/Queue

2015-11-16 Thread Chris Seto
Chris Seto added the comment: Looks to be fixed in python 3.6 -- resolution: -> fixed ___ Python tracker <http://bugs.python.org/issue25642> ___ ___ Python-

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2015-11-18 Thread Chris Withers
Chris Withers added the comment: Cool, what needs to happen for __wrapped__ in to be blacklisted in call? Separately, inspect.unwrap probably needs to use something less fragile than a set of ids to track whether it's stuck in a loop. What is the actual usecase for __wrapped__ how d

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2015-11-18 Thread Chris Hogan
Changes by Chris Hogan : -- resolution: not a bug -> status: closed -> open ___ Python tracker <http://bugs.python.org/issue25589> ___ ___ Python-bugs-list

[issue25871] textwrap.dedent doesn't find common substring when spaces and tabs are mixed

2015-12-15 Thread Chris Tozer
New submission from Chris Tozer: Two lines, one has three spaces, one has two spaces then a tab - dedent doesn't take the two spaces away... Python 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "

[issue25871] textwrap.dedent doesn't find common substring when spaces and tabs are mixed

2015-12-15 Thread Chris Tozer
Chris Tozer added the comment: Yeah sorry - I am stuck on a baked-at-2.7.5 version thanks to CentOS. I was misled by the banner telling me it was more recent than the fix. I'll just close, I'm sure the fix in 2.7.11 is good, per issue 21827. -- status: open

[issue25874] Add notice that XP is not supported on Python 3.5+

2015-12-15 Thread Chris Wilcox
New submission from Chris Wilcox: This is a documentation change to make it easier to discover that XP is not a supported OS. Content was taken from the 'whats new' section and added to the top of the main article. -- assignee: docs@python components: Documentation

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-17 Thread Chris Angelico
New submission from Chris Angelico: Discussion on python-list led to searching out unnecessary non-ASCII in the stdlib. While there are places where non-ASCII text is good and worthwhile (eg in comments identifying people such as Łukasz Langa, Peter Åstrand, Martin v. Löwis, and Gerhard

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: Whoops! Meant to include that as a second attachment. Now attached. It's a quickly-thrown-together thing and not fully PEP 8 compliant. -- Added file: http://bugs.python.org/file41346/nonascii.py ___ Python tr

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: As an alternative to checking only *.py, the second version uses the 'file' command to recognize text files. Run from the cpython top-level directory (rather than Lib/), it finds a large number of additional results, many of which appear to have a

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: There are non-ASCII dashes and apostrophes in .rst files; are they worth cleaning up? -- ___ Python tracker <http://bugs.python.org/issue25

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: Misc/NEWS has a UTF-8 BOM. Otherwise, it and Misc/HISTORY look fine (all names and other legit cases). Lib/idlelib/CREDITS.txt and Lib/idlelib/README.txt both have non-UTF8 text in them. I don't understand what's with the first line of .bzrignore, s

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: Another version of detection script attached. -- Added file: http://bugs.python.org/file41350/nonascii.py ___ Python tracker <http://bugs.python.org/issue25

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: Oops, didn't see Victor's comment. (How do I get notified when someone posts a patch review?) New patch uploaded which does this. Note that Steven D'Aprano has expressed the opposite desire - that non-ASCII text be kept, as it should be acc

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: Ah, got it. That definitely settles Idle's CREDITS.txt. Are there any locale encodings where \x92 isn't an apostrophe? -- ___ Python tracker <http://bugs.python.o

[issue25899] Unnecessary non-ASCII characters in standard library

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: So Lib/idlelib/README.txt would decode wrongly in anything other than a Windows codepage? Seems a good reason to asciify line 3. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25903] SUGGESTION: Optimize code in PYO

2015-12-18 Thread Chris Angelico
Chris Angelico added the comment: The trouble with that example is that the semantics aren't the same. The isinstance check will also be true for subclasses of int (for instance, isinstance(True,int) is True), but the equality check will catch only exact matches. And that's e

[issue11588] Add "necessarily inclusive" groups to argparse

2015-12-22 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker <http://bugs.python.org/issue11588> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25956] Unambiguous representation of recursive objects

2015-12-26 Thread Chris Angelico
Chris Angelico added the comment: LGTM. I'm currently seeing failures in test_ssl, but they weren't introduced by this patch. I'll run with this patch and see if I run into any third party test failures. +1 on the change. -

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Chris Jerdonek
New submission from Chris Jerdonek: I came across a situation where Popen.wait() hangs and os.waitpid() doesn't hang. It seems like a bug, but I don't know for sure. This is with Python 3.5.1. To reproduce, save the following to demo.py: import os, signal, subprocess c

[issue25960] Popen.wait() hangs with SIGINT when os.waitpid() does not

2015-12-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: More information: No hang: 2.7.11, 3.3.6, 3.4.0 Hang: 3.4.1 3.4.3, 3.5.0, 3.5.1 Is this a regression or a bug fix? Maybe issue #21291 is related which was fixed in 3.4.1. Also, this is on Mac OS X 10.11 for me. -- nosy: +gregory.p.smith

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid(pid, os.WNOHANG) does not

2015-12-27 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for looking into this so quickly. > os.waitpid(p.pid, 1) is os.waitpid(p.pid, os.WNOHANG) which is a non-blocking > operation so it works. For the record, it also works with "os.waitpid(p.pid, 0)." I should have written 0 the first

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid() does not

2015-12-27 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- title: Popen.wait() hangs when called from a signal handler when os.waitpid(pid, os.WNOHANG) does not -> Popen.wait() hangs when called from a signal handler when os.waitpid() does not ___ Python tracker &l

[issue25968] Cannot import modules out of zip file with extended-length path on windows

2015-12-28 Thread Chris Moore
New submission from Chris Moore: To reproduce, put a python module in a zip file (I have been using wheels but I assume any module in a zip file will have the same error?) , add the absolute extended-length path to sys.path (add '?\\' to the front of the normal absolute path, so

[issue25589] test_ascii_formatd fails on Mac when built with Intel compiler

2016-01-08 Thread Chris Hogan
Chris Hogan added the comment: The Intel compiler team is looking into this issue. I'll keep everyone updated here. -- ___ Python tracker <http://bugs.python.org/is

[issue26063] Update copyright in the devguide

2016-01-09 Thread Chris Gonzalez
Changes by Chris Gonzalez : -- keywords: +patch Added file: http://bugs.python.org/file41555/copyright.diff ___ Python tracker <http://bugs.python.org/issue26

[issue25967] Devguide: add 2to3 to the "Changing CPython's Grammar" checklist

2016-01-10 Thread Chris Thomas
Chris Thomas added the comment: Added a note to the check list as needed. -- keywords: +patch nosy: +Aegil Added file: http://bugs.python.org/file41567/issue25967.patch ___ Python tracker <http://bugs.python.org/issue25

<    22   23   24   25   26   27   28   >