[issue25563] Windows 10 Tkinter startup problem

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Windows 10 IDLE / Tkinter startup problem -> Windows 10 Tkinter startup problem ___ Python tracker

[issue25336] Segmentation fault on Mavericks consistent crashing of software

2015-11-06 Thread ppperry
Changes by ppperry : -- title: Segmentation fault on Mavericks consistent crashing of software: Please HELP! -> Segmentation fault on Mavericks consistent crashing of software ___ Python tracker

[issue25538] Traceback from __exit__ method is misleading

2015-11-06 Thread Martin Panter
Martin Panter added the comment: Explanation of my example because it is tricky: The print is actually executed. Then the context manager exits, and the built-in buffered file object tries to flush its buffer and fails. The earlier write() call succeeds, because it only writes to the Python

[issue25563] Windows 10: _tkinter import fails

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Windows 10 Tkinter startup problem -> Windows 10: _tkinter import fails ___ Python tracker ___

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: email parsing docs need to be clear that only ASCII strings are supported -> email parsing docs: clarify that only ASCII strings are supported ___ Python tracker

[issue25534] SimpleHTTPServer throwed an exception due to negtive st_mtime attr in file

2015-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this affect 3.x also? I would expect that it does. The question for this issue is whether the program should stop on a gmtime error and say "I will not serve this file until you fix the modification time." or whether it should catch and workaround the

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ryan, please sign the PSF Contributor Agreement https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/ Also, when replying by email, please delete the previous message, except possibly for quoting a line or two. When listed on

[issue25534] SimpleHTTPServer throwed an exception due to negtive st_mtime attr in file

2015-11-06 Thread Martin Panter
Martin Panter added the comment: I assume it affects Python 3, though I suspect the exception is OSError, not ValueError. But it would be good if someone with Windows (or other affected OS) could confirm. I think the server should serve the file, with just a best-effort attempt to serve the

[issue25574] 2.7 incorrectly documents objects hash as equal to id

2015-11-06 Thread wim glenn
New submission from wim glenn: The 2.7 glossary still incorrectly mentions instances of user-defined classes hash equal to their id. https://docs.python.org/2/glossary.html#term-hashable Just a minor documentation bug that was unfortunately missed by http://bugs.python.org/issue21782

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Martin Panter
Martin Panter added the comment: This change is a result of parameter checking added in Issue 22928. The colon is not meant to be part of a field name. This is what the request being sent by your example looks like in the unpatched 3.4. (I changed to localhost.) Your attempt to override the

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Martin Panter
Martin Panter added the comment: Sorry, it seems I missed some updates to this bug. I think the docs have enough big red warning boxes. But an explanation or short example might be good. -- stage: -> needs patch ___ Python tracker

[issue25543] locale.atof keep '.' even if not part of the localeconv

2015-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I much prefer a new argument, 'strict=False', to a new, near-duplicate function. locale.atof('2.500,5') should raise. The only question is what should be displayed as the invalid literal: the original or the converted. It seems to me that delocalize should

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue25575] idle not working

2015-11-06 Thread G
New submission from G: I'm teaching Python in a computer lab with 28, new this Sept., Mac Minis. One of the machines will run from the command line in Terminal but will not run using IDLE. I'm using the turtle module for graphics. I've attached a screen snap of the code and error message. The

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Martin Panter
Martin Panter added the comment: Ah, I think I see where you are coming from. I guess you aren’t intimately familiar with the HTTP protocol. There are various types of “headers” aka header fields, not only User-Agent, but Content-Type and others. When they suggest passing a User-Agent header,

[issue25538] Traceback from __exit__ method is misleading

2015-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: In Martin's example, I would expect the first line of the traceback to be the file write that raised the exception, not the print that is never executed. If print were writing to a different device than the first line, the traceback would be positively

[issue25064] Adjust tempfile documentation for bytes filename support

2015-11-06 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Alex Gaynor
Alex Gaynor added the comment: Tests pass and the original script runs without a leak using this patch. It could probably be shorter if we converted from local returns to `goto fail` or something, but I don't really have an opinion. -- ___ Python

[issue25538] Traceback from __exit__ method is misleading

2015-11-06 Thread R. David Murray
R. David Murray added the comment: Yes, I think the line that should be in the traceback in my example is the 'with' line. I have no clue how hard that would be to achieve. -- ___ Python tracker

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: >>So I don’t think this is a valid bug or regression. What gave you the idea to >>include the colon? "We ask that if you are going to consume the API that you pass a custom User-Agent header along with your requests. The User-Agent should primarily

[issue25064] Adjust tempfile documentation for bytes filename support

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset de79e483565c by Martin Panter in branch '3.5': Issue #25064: Adjust documentation according to new mkstemp signature https://hg.python.org/cpython/rev/de79e483565c New changeset c495c9dd7726 by Martin Panter in branch 'default': Issue #25064: Merge

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-06 Thread Martin Panter
Martin Panter added the comment: There is already Issue 23794 discussing HTTP 2. IMO it would be interesting to implement, but I’m not sure how appropriate it would be in Python’s standard library at this stage. But working on it could drive other improvements in the existing HTTP stuff, as

[issue18010] pydoc search chokes on import errors

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ab20d3c9dc6 by Martin Panter in branch '2.7': Issue #18010: Fix pydoc GUI search to handle package exceptions https://hg.python.org/cpython/rev/1ab20d3c9dc6 -- ___ Python tracker

[issue25575] idle not working

2015-11-06 Thread Zachary Ware
Zachary Ware added the comment: Check the traceback carefully, it shows exactly where the problem is, though it's not immediately obvious until it's bitten you a time or two. You are running /Users/a5/Desktop/z.py which imports turtle, but you have a turtle.py in /Users/a5/Desktop which is

[issue23360] Content-Type when sending data with urlopen()

2015-11-06 Thread Martin Panter
Martin Panter added the comment: Patch 4 is just updated to avoid conflicts with the current code. Changes are the same. -- versions: +Python 3.6 Added file: http://bugs.python.org/file40968/non-urlencoded.4.patch ___ Python tracker

[issue24802] int and float constructing from non NUL-terminated buffer

2015-11-06 Thread Martin Panter
Martin Panter added the comment: I have committed changes to Python 3. The compile() test now exists as test_compile.TestSpecifics.test_null_terminated. Serhiy: You set these bugs for Python 2 as well. Is there a way to produce a non-null-terminated buffer in Python 2 to help verify this?

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-11-06 Thread Martin Panter
Martin Panter added the comment: David: are you saying you like the first patch better (ignoring the markup mistakes)? -- ___ Python tracker ___

[issue18010] pydoc search chokes on import errors

2015-11-06 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23360] Content-Type when sending data with urlopen()

2015-11-06 Thread Martin Panter
Martin Panter added the comment: Spotted a docstring that needed updating -- Added file: http://bugs.python.org/file40969/non-urlencoded.5.patch ___ Python tracker

[issue24802] int and float constructing from non NUL-terminated buffer

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a75336ac40e0 by Martin Panter in branch '3.4': Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary https://hg.python.org/cpython/rev/a75336ac40e0 New changeset 95b9c07b27f7 by Martin Panter in branch '3.5': Issue #24802:

[issue24802] int and float constructing from non NUL-terminated buffer

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, looks as this issue is not related to 2.7. -- assignee: serhiy.storchaka -> martin.panter versions: -Python 2.7 ___ Python tracker

[issue25550] RecursionError in re with '(' * 500

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is possible to make the parser non-recursive, but without reports about such real-world problems it looks premature and just will complicate the code. For years before 3.5 there was a limitation on only 100 capturing groups. --

[issue25564] IDLE behaves differently than python on `del __builtins__`

2015-11-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: We try to have IDLE work the same as Python (and CPython, where relevant), except where differences are intentional or unavoidable. I am trying to eliminate some unintentional avoidable differences in other issues. However, this one is unavoidable given

[issue25545] email parsing docs need to be clear that only ASCII strings are supported

2015-11-06 Thread Christian Tanzer
Christian Tanzer added the comment: > If you can suggest ways of improving the string support without > breaking existing python3 code that may be using it (most likely > wrongly, but working for them), then I will happily review them. At the moment, I'm mainly interested in having code that

[issue25410] Clean up and fix OrderedDict

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45ce4c6b4f36 by Serhiy Storchaka in branch '3.5': Issue #25410: Made testing that od_fast_nodes and dk_entries are in sync more https://hg.python.org/cpython/rev/45ce4c6b4f36 New changeset c16af48153a4 by Serhiy Storchaka in branch 'default': Issue

[issue25410] Clean up and fix OrderedDict

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Eric. I made error in commit messages, that is why they are non shown here. odict_revert_setting_on_error.patch and odict_iternext_simpler.patch were committed in 1594c23d8c2f and ad44d551c13c. od_resize_sentinel2 in

[issue25462] Avoid repeated hash calculation in C implementation of OrderedDict

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please make a review of this patch Eric? It is moved to separate issue because it is enough large and complex. -- ___ Python tracker

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1594c23d8c2f by Serhiy Storchaka in branch '3.5': Issue #24726: Revert setting the value on the dict if https://hg.python.org/cpython/rev/1594c23d8c2f New changeset b391e97ccfe5 by Serhiy Storchaka in branch 'default': Issue #24726: Revert setting

[issue25558] Use static asserts in C code

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad44d551c13c by Serhiy Storchaka in branch '3.5': Issue #25558: Refactoring OrderedDict iteration. https://hg.python.org/cpython/rev/ad44d551c13c New changeset 51f3547da99c by Serhiy Storchaka in branch 'default': Issue #25558: Refactoring

[issue25558] Use static asserts in C code

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wrong issue. The correct one is issue24726. -- ___ Python tracker ___ ___

[issue25558] Use static asserts in C code

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, no, the correct one is issue25410. -- ___ Python tracker ___ ___

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Wrong issue. The correct one is issue25410. -- ___ Python tracker ___ ___

[issue25553] smtpd strips final carraige return from received message body

2015-11-06 Thread R. David Murray
R. David Murray added the comment: That does indeed appear to be a bug in smtpd.py. Even if postfix's client mode does do an unconditional add of an extra newline, it is wrong according to the RFC, so I don't think that we'd change smtplib. Especially since we've had no other reports of the

[issue25553] smtpd strips final carraige return from received message body

2015-11-06 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry ___ Python tracker ___

[issue25495] binascii documentation incorrect

2015-11-06 Thread Mouse
Mouse added the comment: > my patch should be valid for 3.5 also. > The relevant wording is identical to 2.7. OK. > I have resisted removing the magic number 57 for a couple > of reasons. Reading existing code that uses this number may > be harder. You expect to see "existing code that uses

[issue25565] subprocess.Popen creates inheritable file descriptors on Windows, can leak to other child processes

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, maybe, because in the other issue, it's about a race condition. similar. -- nosy: +matrixise ___ Python tracker

[issue22829] Add --prompt option to venv

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: oops, forgotten to provide the patch :/ -- ___ Python tracker ___ ___

[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2015-11-06 Thread Марк Коренберг
Марк Коренберг added the comment: Bug still reproduced. Jenkins running from init.d use /usr/bin/daemon. This mean SIGHUP will be in SIG_IGN state. Since echo.py does not setup sighup handler, sighup will be equivalent of SIGKILL. So, why not to use, say, SIGTERM instead? After such change

[issue25177] OverflowError in statistics.mean when summing large floats

2015-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: I can reproduce here (OS X 10.9, Python 3.5), exactly as described in the original post. Python 3.5.0 (default, Sep 22 2015, 18:26:54) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: After your remarks, maybe we can close this issue. It's not just a simple modification of a string. Do you know if we want to support the HTTP 1.1 and 2.0 in the future, directly in CPython and not via an external library (gunicorn, ...) What do you think ?

[issue25567] shlex.quote doesn't work on bytestrings

2015-11-06 Thread Jonas Thiem
New submission from Jonas Thiem: Demonstration: >>> import shlex >>> shlex.quote(b"abc") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.4/shlex.py", line 285, in quote if _find_unsafe(s) is None: TypeError: can't use a string pattern on a bytes-like

[issue25565] subprocess.Popen creates inheritable file descriptors on Windows, can leak to other child processes

2015-11-06 Thread R. David Murray
R. David Murray added the comment: This looks like a duplicate of issue 24909? -- nosy: +r.david.murray ___ Python tracker ___

[issue25545] email parsing docs need to be clear that only ASCII strings are supported

2015-11-06 Thread R. David Murray
R. David Murray added the comment: Python3 is easier to do unicode in for programs that start with a clear bytes/string split. Yes, porting from python2 has bumps arising from the places where bytes and string are blurred. Yes if we could redo python3 knowing what we know now we could

[issue892902] problem with pickling newstyle class instances

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is revised patch that uses different approach to tests. cPickleFastPicklerTests overridden old recursive tests to check that they raises an exception. The patch extends this to new recursive tests. -- Added file:

[issue25565] subprocess.Popen creates inheritable file descriptors on Windows, can leak to other child processes

2015-11-06 Thread eryksun
Changes by eryksun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Windows: subprocess.Popen: race condition for leaking inheritable handles ___ Python tracker

[issue25565] subprocess.Popen creates inheritable file descriptors on Windows, can leak to other child processes

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I don't have the right to close it. can you close it ? Thanks -- ___ Python tracker ___

[issue22919] Update PCBuild for VS 2015

2015-11-06 Thread Kevin Phillips
Kevin Phillips added the comment: This change has the adverse side effect of requiring users of Python 3.5 to use the Visual Studio 2015 runtime library. Further, as is documented on Microsoft's website, the minimum system requirements for installing and running this runtime is Windows 7 SP1

[issue22919] Update PCBuild for VS 2015

2015-11-06 Thread Steve Dower
Steve Dower added the comment: The check is already added and will be in 3.5.1. Changes to the python.org website should be suggested on https://github.com/python/pythondotorg (but I agree it could be more clear on the main site - the rule that we only support the same versions of Windows

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Alex Gaynor
New submission from Alex Gaynor: Run the following code: import socket import ssl import sys def main(): ctx = ssl.create_default_context() s = socket.create_connection(('www.bing.com', 443)) s = ctx.wrap_socket(s, server_hostname='www.bing.com') while True:

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker ___

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
New submission from Christian Rickert: A piece of software stopped working after the update from Python 3.4.x to 3.5 (both Linux and Windows). I found the cause in the Request.add_header("abcd","efgh") function: If the first parameter string "abcd" contains a colon (":") character, a

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Maybe you are right, I didn't see that this function returns a pointer in function of the parameter. sorry. Could you try with this patch, really sorry but my internet connection is really slow and I have a problem with the _ssl module on my laptop (problem

[issue25177] OverflowError in statistics.mean when summing large floats

2015-11-06 Thread Mark Dickinson
Mark Dickinson added the comment: Note that the two input values given in the original report are not the same: [8.988465674311579e+307, 8.98846567431158e+307] != [8.988465674311579e+307] * 2. -- ___ Python tracker

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Alex Gaynor
Alex Gaynor added the comment: A probably source of the leak is here: https://github.com/python/cpython/blob/master/Modules/_ssl.c#L1073-L1076 `dps` is never freed. (This is with OpenSSL 0.9.8zg) -- ___ Python tracker

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Alex, not sure, but I think the right function to free the memory is AUTHORITY_INFO_ACCESS_free(dps) I will provide a patch for a review asap -- nosy: +matrixise ___ Python tracker

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-06 Thread Alex Gaynor
Alex Gaynor added the comment: I think you want sk_DIST_POINT_free actually. -- ___ Python tracker ___ ___

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: The URL "http://requestb.in/xrbl82xr; is invalid, you'll get a "urllib.error.HTTPError: HTTP Error 404: NOT FOUND" error." Instead, please use "http://www.example.com; to confirm. -- ___ Python tracker

[issue22829] Add --prompt option to venv

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @berker.peksag Please, could you review this patch, I have followed your remarks and adjust the patch. Thank you -- Added file: http://bugs.python.org/file40962/venv-prompt-argument-3_6.patch ___ Python

[issue25566] asyncio reference cycles after ConnectionResetError

2015-11-06 Thread Jeroen van der Heijden
New submission from Jeroen van der Heijden: When a ConnectionResetError occurs, reference cycles are created due to __traceback__. As far as I can see there's no way to prevent this to happen since the event loop exception handler is not called for the following events: BrokenPipeError,

[issue25553] SMTP.data(msg) function may cause the last CRLF of msg lost if msg is quoted-printable encoding.

2015-11-06 Thread Deli Zhang
Deli Zhang added the comment: I can understand you, while could you please consider below fact: Once our SMTP server module smtpd.py receives the sample mail, it will remove the end-of-data sequence, that makes the "=" become the last char of mail data. I think it's inconsistent to our SMTP

[issue25565] subprocess.Popen creates inheritable file descriptors on Windows, can leak to other child processes

2015-11-06 Thread Jack O'Connor
Jack O'Connor added the comment: Definitely a duplicate, thanks for pointing me to the original. Should I mark it resolved, or let someone from the project do that? -- ___ Python tracker

[issue25462] Avoid repeated hash calculation in C implementation of OrderedDict

2015-11-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file40960/odict_knownhash_2.patch ___ Python tracker ___

[issue25567] shlex.quote doesn't work on bytestrings

2015-11-06 Thread R. David Murray
R. David Murray added the comment: I think that this is a reasonable request, and probably applies to the whole shlex module, although less strongly. You could use the surrogateescape hack to work around the problem: shlex.quote(mydata.encode('ascii', 'surrogateescape')).decode('ascii',

[issue25568] typing backport: AttributeError: 'module' object has no attribute 'GeneratorType'

2015-11-06 Thread nicolas33
New submission from nicolas33: $ pip3 install typing $ python3 >>> import typing Traceback (most recent call last): File "", line 1, in File "/home/nicolas/.local/lib64/python3.4/site-packages/typing.py", line 1449, in _G_base = types.GeneratorType AttributeError: 'module' object has

[issue22829] Add --prompt option to venv

2015-11-06 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___

[issue25568] typing backport: AttributeError: 'module' object has no attribute 'GeneratorType'

2015-11-06 Thread nicolas33
nicolas33 added the comment: My bad. This happens while running on Python3.3 (while pip3 installed module using python3.4). -- resolution: -> works for me status: open -> closed ___ Python tracker

[issue25568] typing backport: AttributeError: 'module' object has no attribute 'GeneratorType'

2015-11-06 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/JukkaL/typing/ looks to be the upstream project for the third party "typing" module. See https://github.com/JukkaL/typing/issues/46 -- nosy: +haypo ___ Python tracker

[issue25558] Use static asserts in C code

2015-11-06 Thread STINNER Victor
STINNER Victor added the comment: use_Py_BUILD_ASSERT_EXPR.patch looks good to me. But you should revert the change on decimal, as asked by Stefan, and I suggested to move an assertion inside the related function (see my comment on Rietveld). """ A library can follow the example in the

[issue25555] Fix parser and AST: fill lineno and col_offset when compiling AST from Python objects

2015-11-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54d4290f0ec6 by Victor Stinner in branch 'default': Issue #2: Fix parser and AST: fill lineno and col_offset of "arg" node when https://hg.python.org/cpython/rev/54d4290f0ec6 -- nosy: +python-dev ___

[issue25555] Fix parser and AST: fill lineno and col_offset when compiling AST from Python objects

2015-11-06 Thread STINNER Victor
STINNER Victor added the comment: > 3. How can I test it? currently, everything is fine. Sorry, I don't know how to test it. To write my fix, I had to modify the compile() builtin function to be able to compile Python to AST, and then AST to Python. But without this fix I don't know how to

[issue25555] Fix parser and AST: fill lineno and col_offset when compiling AST from Python objects

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I trust you, I have reviewed the source code and it seems to be right. -- ___ Python tracker ___

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread R. David Murray
R. David Murray added the comment: This behavior change was part of a security fix, and will appear in the next version of 3.4 as well. See issue 22928. Header names may not contain colons, the colon separator is added when the header is rendered. Detecting and rejecting them guards

[issue25571] Improve the lltrace feature with the Py_Debug mode

2015-11-06 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: When we use the Py_Debug flag for the compilation, we can see the Bytecodes and the opcode arguments. Here is a small patch, it will show the label of the opcode in the ceval.c file. -- messages: 254218 nosy: matrixise priority: normal severity:

[issue25571] Improve the lltrace feature with the Py_Debug mode

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is my patch with the improvement. -- keywords: +patch Added file: http://bugs.python.org/file40964/issue25571.patch ___ Python tracker

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread R. David Murray
R. David Murray added the comment: By the way, that your application worked before was pure luck, here is what httplib sends in 3.4 given your test program: POST / HTTP/1.1 Accept-Encoding: identity User-Agent: Python-urllib/3.4 Connection: close Host: ..com: Content-Length: 21

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-06 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: On OSX 10.11, if you don't use Homebrew or MacPorts, the _ssl module is not built with Makefile. Homebrew supports OpenSSL and LibreSSL, but OpenSSL is in /usr/local/opt/openssl and not in /usr/local/ssl (see setup.py) So, the next point, I am not sure,

[issue11907] SysLogHandler can't send long messages

2015-11-06 Thread Harsh Patel
Harsh Patel added the comment: I know this has been closed as "Not a bug" but it would have been convenient if the message was broken down into multiple packets and transmitted, should it exceed the packet limit. Raising an exception [Errno 40 or Errno 90] or silently ignoring the packet (by

[issue11907] SysLogHandler can't send long messages

2015-11-06 Thread R. David Murray
R. David Murray added the comment: Writing your own handler is what Vinay recommended. Is it even possible to determine the maximum message size? If we can't do that reliably, then the best we can do is recommend writing your own exception handler using local knowledge. If it can be

[issue25388] tokenizer crash/misbehavior -- heap use-after-free

2015-11-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, there is a bug. When decoding_fgets() encounter non-UTF-8 bytes, it fails and free input buffer in error_ret(). But since tok->cur != tok->inp, next call of tok_nextc() reads freed memory. if (tok->cur != tok->inp) { return

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread Christian Rickert
Christian Rickert added the comment: Hi David, Thanks for looking into this. IMHO it would be very helpful for code debugging, if "add_header" rejects invalid header arguments ad hoc. As an alternative, the documentation I used for the implementation

[issue25573] FrameSummary repr() does not support previously working uses of repr in traceback module

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Could you check with Python 3.4 ? -- nosy: +matrixise ___ Python tracker ___

[issue11822] Improve disassembly to show embedded code objects

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi all, For this feature, I have an other output: stephane@sg1 /tmp> python3 dump_bytecode.py 3 0 LOAD_BUILD_CLASS 1 LOAD_CONST 0 (", line 3>) 4 LOAD_CONST 1 ('User')

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-06 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Macintosh nosy: +ned.deily, ronaldoussoren, zach.ware stage: -> needs patch versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue25573] traceback documentation example is lying about FrameSummary repr()

2015-11-06 Thread Alexandre Macabies
New submission from Alexandre Macabies: https://docs.python.org/3.5/library/traceback.html#traceback-examples See second code sample and its sample output. According to the docs, the call: print(repr(traceback.extract_tb(exc_traceback))) is supposed to print something that looks like an

[issue25573] FrameSummary repr() does not support previously working uses of repr in traceback module

2015-11-06 Thread R. David Murray
R. David Murray added the comment: IMO, that is neither a lie nor a doc bug, it is a bug in the new traceback features that were added in 3.5. -- assignee: docs@python -> keywords: +3.5regression nosy: +r.david.murray, rbcollins stage: -> needs patch title: traceback documentation

[issue25520] unittest load_tests protocol not working as documented

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___

[issue11907] SysLogHandler can't send long messages

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: This issue will stay closed, BUT I propose you to create a new issue with a new title: Feature: Support message over 1024 bytes for the SysLogHandler. and propose a patch for this feature. -- nosy: +matrixise ___

[issue25528] Attempt to further increase test coverage of calendar module

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue25527] Invalid (... and confusing) warning raised by 2to3 regarding repeat

2015-11-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue25570] urllib.request > Request.add_header("abcd", "efgh") fails with character ":" in first parameter string

2015-11-06 Thread R. David Murray
R. David Murray added the comment: I don't think the docs need updating if the ValueError is raised by add_header. The 'key' in the docs is the header name, as examples in other sections of that doc make clear. Granted you won't necessarily see that if you just read the add_header entry,

  1   2   >