[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-08-10 Thread Xavier Combelle
Xavier Combelle added the comment: The DFA is generated by other part of existing cpython code ? If it's the case looks like you did a great job. -- nosy: +xcombelle ___ Python tracker

[issue12345] Add math.tau

2016-08-10 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd test that tau is exactly equal to 2*pi. +1 -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue10721] Remove HTTP 0.9 server support

2016-08-10 Thread Martin Panter
Martin Panter added the comment: FWIW I doubt HTTP 1.1 ever required support for other HTTP versions; see for instance . This v2 patch adds another test that includes what I understand is a true HTTP 0.9 request (although the mock connection in

[issue27724] PEP3119 inconsintent with actual CPython impl

2016-08-10 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: Python 3.5.2 (and Python 2.7.12) uses Py_TPFLAGS_IS_ABSTRACT while PEP 3119 menttions "Py_TPFLAGS_ABSTRACT" for it. At some point had the name of the flag been changed without modifying PEP? -- assignee: docs@python components: Documentation messag

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: (Assigning this to Martin) I really like this patch, and I support that we land this before the feature freeze of 3.6. As along as the API interface to users is simple, the changes internal to _send_output should not be a concern. Yeah, I agree that multipl

[issue27708] Rounding/Large Int representation error with multiplication and division

2016-08-10 Thread Ethan Glass
Ethan Glass added the comment: Thank you so much! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue27725] Use Py_SIZE(x) instead of x->ob_size

2016-08-10 Thread REIX Tony
New submission from REIX Tony: I'm porting Python 2.7.* on AIX. I am now using a version 13.1.3.2 of XLC. I was previously using version 12.1.0.14 . It appears that this new compiler shows a potential issue in Python v2 code. This issue seems to appear when -O2 is used. I was porting Python 2.

[issue27725] Use Py_SIZE(x) instead of x->ob_size

2016-08-10 Thread SilentGhost
Changes by SilentGhost : -- components: +Interpreter Core nosy: +facundobatista, mark.dickinson, rhettinger, skrah ___ Python tracker ___

[issue12345] Add math.tau

2016-08-10 Thread Mark Dickinson
Mark Dickinson added the comment: At some point before 3.6, the docs should get updated, and `cmath` should get the `tau` constant too. -- ___ Python tracker ___ ___

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: I use Exuberant Ctags 5.8 on my Fedora 24, and this version does not accept the '-t' argument, as defined in the 'tags' target of the Makefile. -- files: Makefile.pre.in.diff keywords: patch messages: 272326 nosy: larry, matrixise priority: normal se

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue26081] Implement asyncio Future in C to improve performance

2016-08-10 Thread INADA Naoki
INADA Naoki added the comment: > Left a couple of comments; the important one -- Future.__await__ (and > Future.__iter__) should always return a *new* instance of a generator-like > object (tied to the Future object). Implementing full behavior of generator seems difficult to me. I'll implemen

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread SilentGhost
SilentGhost added the comment: For the record, according to http://ctags.sourceforge.net/news.html that option was removed in version 2.0.1 released over 18 years ago. -- nosy: +SilentGhost ___ Python tracker

[issue17153] tarfile extract fails when Unicode in pathname

2016-08-10 Thread Vadim Markovtsev
Vadim Markovtsev added the comment: So... The bug persists in 3.5 ad 3.6. It prevents from e.g. unpacking tarballs coming from GitHub repos with Unicode file names. -- nosy: +Vadim Markovtsev2 ___ Python tracker _

[issue17153] tarfile extract fails when Unicode in pathname

2016-08-10 Thread Vadim Markovtsev
Vadim Markovtsev added the comment: Relevant issue in pip: https://github.com/pypa/setuptools/issues/710 -- ___ Python tracker ___ ___

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2016-08-10 Thread Joseph Bane
Joseph Bane added the comment: Thank you for your feedback. I definitely understand your reasoning and commitment to not introducing breaking changes in externally facing codes. I also agree that this does fall slightly more on the side of aesthetic rather than functional changes. However, thi

[issue26686] email.parser stops parsing headers too soon when given a defective message.

2016-08-10 Thread R. David Murray
R. David Murray added the comment: I would prefer if we did lookahead to see if the subsequent line looks like a header. It's more complicated to do that, of course, and could still lead to false negatives. However, I think that would probably retain enough backward compatibility to be accep

[issue27724] PEP3119 inconsintent with actual CPython impl

2016-08-10 Thread R. David Murray
R. David Murray added the comment: Probably. PEPs, once completed (unless they are informational PEPs), are historical documents, and the real implementation may diverge from the PEP immediately, or after maintenance updates. The real documentation for the added feature should be in the main

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-10 Thread Kaeptm Blaubaer
New submission from Kaeptm Blaubaer: The Tools/freeze script is broken because the .dsp files no longer exists. -- components: Demos and Tools messages: 272334 nosy: Kaeptm Blaubaer priority: normal severity: normal status: open title: Update Tools/freeze to use .vcxproj files type: comp

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-10 Thread Evelyn Mitchell
Evelyn Mitchell added the comment: Kaeptm, thanks for submitting this. Is this a Windows issue? -- nosy: +Evelyn Mitchell ___ Python tracker ___ _

[issue27727] Update Tools/freeze to use .vcxproj files

2016-08-10 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch type: compile error -> behavior versions: +Python 3.6 ___ Python tracker ___

[issue25825] AIX shared library extension modules installation broken

2016-08-10 Thread David Edelsohn
David Edelsohn added the comment: Let's start with this patch to revert the change mentioned in msg256136 to look for python.exp in Modules -- the test, the source for the file, and the location to delete the file. A follow-up patch will fix the data in _sysconfigdata.py. -- Added fil

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, maybe in this case, we can accept my patch ;-) -- ___ Python tracker ___ ___ Python-bugs-list

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and in my first description, I have just forgotten to indicate this argument was not supported by the last version of ctags. @SilentGhost confirms this point ;-) (since 1998). -- ___ Python tracker

[issue6057] sqlite3 error classes should be documented

2016-08-10 Thread Jaysinh shukla
Jaysinh shukla added the comment: Dear Stéphane, I will be agreed with the way proposed by you. -- ___ Python tracker ___ ___ Pytho

[issue6057] sqlite3 error classes should be documented

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Evelyn Mitchell
Evelyn Mitchell added the comment: It looks to me the patch only removes the -t argument, as required. -- nosy: +Evelyn Mitchell stage: patch review -> commit review ___ Python tracker _

[issue27621] Finish IDLE Query dialog appearance and behavior.

2016-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0e86b60de5f by Terry Jan Reedy in branch 'default': Issue #27621: Put query response validation error messages in query box https://hg.python.org/cpython/rev/f0e86b60de5f -- nosy: +python-dev ___ Python

[issue27621] Finish IDLE Query dialog appearance and behavior.

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is still Serhiy's original issue about moving default with focus, plus possible appearance changes. -- ___ Python tracker ___ __

[issue6057] sqlite3 error classes should be documented

2016-08-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch! +.. exception:: DatabaseError + +Exception raised for errors that are related to the database. It Indentation is not in line with other items: +.. exception:: DatabaseError + + Exception [...] In Cursor.execute() docume

[issue6057] sqlite3 error classes should be documented

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Fixed with your comments. -- Added file: http://bugs.python.org/file44069/issue6057-3.6-2.diff ___ Python tracker ___ __

[issue6057] sqlite3 error classes should be documented

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- assignee: -> berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f37d772f71f by Terry Jan Reedy in branch 'default': Issue #27380: For test_query on Mac, adjust one expected result. https://hg.python.org/cpython/rev/8f37d772f71f -- ___ Python tracker

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Ned, BSD cTags does not support -t The -t option is a no-op for compatibility with previous versions of ctags that did not create tags for typedefs, enums, structs and unions by default. https://www.freebsd.org/cgi/man.cgi?query=ctags&sektion=1#end Gnu GLOB

[issue26081] Implement asyncio Future in C to improve performance

2016-08-10 Thread Yury Selivanov
Yury Selivanov added the comment: > Implementing full behavior of generator seems difficult to me. I'll implement minimum implementation in next patch. Sure, but you have to implement send() and throw(). -- ___ Python tracker

[issue12290] __setstate__ is called for false values

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- versions: +Python 3.5, Python 3.6 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Pytho

[issue16764] Make zlib accept keyword-arguments

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: martin or serhiy, can we move this issue to 3.6 ? -- nosy: +matrixise ___ Python tracker ___ ___ P

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, the 'question above' was actually posted to #27380, the original query issue. -- ___ Python tracker ___ _

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: While still curious if the Mac specific code is correct, I changed test to match the code. Someone please check by running at least test_idle after pulling. -- ___ Python tracker

[issue18880] ssl.SSLSocket shutdown doesn't behave like socket.shutdown

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Christian, What do you think about this issue ? 1. Fix for 3.5 and 3.6 2. Maybe for 2.7 ? -- assignee: -> christian.heimes nosy: +christian.heimes, matrixise ___ Python tracker

[issue6057] sqlite3 error classes should be documented

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: http.client.HTTPConnection.request, the argument 'headers' has a default value, and this one is a mutable (dict). -- messages: 272352 nosy: matrixise priority: normal severity: normal status: open title: HTTPConnection.requests has a mutable as defau

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: here is my patch for that. -- keywords: +patch Added file: http://bugs.python.org/file44070/issue27728.diff ___ Python tracker ___

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: When I have read the last patch, I have seen a mutable as the default value of the HTTPConnection.request method. I have proposed this issue and the attached patch http://bugs.python.org/issue27728 -- nosy: +matrixise

[issue27200] make doctest in CPython has failures

2016-08-10 Thread Zachary Ware
Zachary Ware added the comment: Thanks for creating all the patches! If you create further issues for this, feel free to make me nosy. -- ___ Python tracker ___ ___

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread SilentGhost
SilentGhost added the comment: Why is that an issue? -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16764] Make zlib accept keyword-arguments

2016-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyArg_ParseTupleAndKeywords() and Argument Clinic now support positional-only arguments. Thus this my objection can be resolved. But performance argument still needs an investigation. In any case the patch needs updating, since the zlib module was rewritten

[issue27584] New addition of vSockets to the python socket module

2016-08-10 Thread R. David Murray
R. David Murray added the comment: Looks like there's a missing versionadded directive in the doc patch. Is it possible/sensible to add tests for the new feature? (I haven't reviewed the patch in detail, hopefully someone with more experience with C socket programming than I have will do that.

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread R. David Murray
R. David Murray added the comment: Well, it's a problem in general because if the called routine modifies the default dict...the default is modified. I'm guessing it is never modified, but it is indeed better future proofing of the code to not use a mutable default in a routine that passes th

[issue27286] str object got multiple values for keyword argument

2016-08-10 Thread John Ehresman
John Ehresman added the comment: Should the bytecode magic number be bumped in the 3.5 branch? This breaks .pyc / .pyo binary compatibility for python 3.5. As far as I can tell this has never been done before in a release after the major.minor.0 final release. This patch has made its way int

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: For test_textview, I triggered the symptom -- 4 'TV' NameErrors on re-run, by (temporarily) adding 1/0 to tearDownModule and running with -w. After removing the TV deletion, only the ZeroDivisionError remained. This experiment also resulted in a '''can't invo

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b10a312f6d00 by Terry Jan Reedy in branch 'default': Issue #27714: text_textview now passes when re-run in the same process https://hg.python.org/cpython/rev/b10a312f6d00 -- nosy: +python-dev ___ Python t

[issue27584] New addition of vSockets to the python socket module

2016-08-10 Thread Cathy Avery
Cathy Avery added the comment: Sure I can add tests. I would like to base them on the existing socket tests. Where are those? I did add a version + .. versionadded:: 3.4 It just not may not be the right one. -- ___ Python tracker

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thanks R.David.Murray, @SilentGhost in fact, in this code, it's not an issue but we use a bad practice and not a good practice with a mutable value. -- ___ Python tracker __

[issue27726] ctags -t does not exists in Makefile.pre.in

2016-08-10 Thread Ned Deily
Ned Deily added the comment: It seems that there are a bunch of different ctags and ctags-like programs out there. I don't use ctags myself (nor the "make tags" build step) and I don't know how other programs use the tags file it produces so I don't really have an opinion one way or the other

[issue27584] New addition of vSockets to the python socket module

2016-08-10 Thread R. David Murray
R. David Murray added the comment: Ah, I see. No, the versionadded will be 3.6, and should go *after* the documentation of the new socket type. The existing socket tests are in Lib/test/test_socket.py. -- ___ Python tracker

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-08-10 Thread Ned Deily
Ned Deily added the comment: With 8f37d772f71f, the test no longer fails. Thanks! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker _

[issue27286] str object got multiple values for keyword argument

2016-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Bytecode generated by 3.5.1 is not correct (wrong error message can be not the only effect). The only way to resolve this issue is regenerating the bytecode. 3.5.2 was released two weeks after committing this patch. I expected it includes this change. -

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Ned Deily
Ned Deily added the comment: Terry, b10a312f6d00 appears to fix most of the issue, that is, if I insert a deliberate failure into another IDLE test and use -w without -j, the four repeatable errors I identified above no longer occur. Thanks. However, the fifth, timing-dependent error still o

[issue17153] tarfile extract fails when Unicode in pathname

2016-08-10 Thread Vinay Sajip
Vinay Sajip added the comment: Could you point to some suitable projects from GitHub whose tarballs fail on 3.5 / 3.6? My script in the first post, with the replacing of "unicode(...)" with "str(...)" and my original failing archive, works on Python 3.5 and 3.6 on Linux. Which platform have yo

[issue27502] Python -m Module Vulnerable to Buffer Over Flow.

2016-08-10 Thread Dhiraj
Dhiraj added the comment: Sorry , for replying to late , But yes if the script is run , again and again the application throws the python error and the Server gets crashed. I request to have a look on it. -- ___ Python tracker

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue27502] Python -m Module Vulnerable to Buffer Over Flow.

2016-08-10 Thread R. David Murray
R. David Murray added the comment: A python traceback is not in and of itself a security issue. Based on your program name, I am guessing you are trying to "break" python. That's fine, but if you want us to take action on a bug report like this you are going to have to do more work in charact

[issue12345] Add math.tau

2016-08-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps minds are already made up, but this may be the last chance to say that I think that this shouldn't go forward. * The push to use of "tau" has the flavor a political fad or wishful thinking that may or may not succeed. The math module should only im

[issue12345] Add math.tau

2016-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1 to Raymond. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12345] Add math.tau

2016-08-10 Thread Guido van Rossum
Guido van Rossum added the comment: Noted, but it doesn't change my decision. Obscure fact: did you know there are also branches of mathematics and engineering that define pi to for something else? -- ___ Python tracker

[issue12345] Add math.tau

2016-08-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with Raymond's arguments. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue12345] Add math.tau

2016-08-10 Thread Evelyn Mitchell
Evelyn Mitchell added the comment: I also agree with Raymond's arguments. Adding tau doesn't add clarity to the math module, it just adds complexity. -- nosy: +Evelyn Mitchell ___ Python tracker __

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc31fa499359 by Terry Jan Reedy in branch '3.5': Issue #27714: text_textview now passes when re-run in the same process https://hg.python.org/cpython/rev/dc31fa499359 -- ___ Python tracker

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. The issue may come up with other tests in the future. I just decided to do the part I knew how to do first ;-). For #18409, I added the mac call to Phil's original patch with the vague comment "now needed to run without raising". But it is not need

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread Martin Panter
Martin Panter added the comment: If the code does happen to mutate the dictionary, there would still be a bug with modifying any dictionary passed in by the caller. But I suspect there is no bug. So I am not sure the change is worth it. If we do go ahead, the documentation needs updating to sa

[issue26686] email.parser stops parsing headers too soon when given a defective message.

2016-08-10 Thread Martin Panter
Martin Panter added the comment: Thanks David. Since I am more intersted in fixing this robustly for HTTP and similar protocols, I might focus on just Issue 24363. Either confine my changes to the existing HTTP (or new) policy and start using that, or just address this from the HTTP package.

[issue27729] Provide a better error message when the file path is too long on Windows

2016-08-10 Thread Brett Cannon
New submission from Brett Cannon: Windows has a max path length when the path doesn't start with r'\\?\'. When you hit that limit you get a FileNotFoundError but no explanation that it was because of some file path length. It would be nice to clarify this case in the exception message (probabl

[issue27729] Provide a better error message when the file path is too long on Windows

2016-08-10 Thread Steve Dower
Steve Dower added the comment: See https://github.com/pypa/pip/issues/3055 for an example of this error. (Also note that there is a path limit of ~32k with the prefix, and that using it also disables a lot of standard path resolution algorithms, so simply adding it everywhere does not fix anyt

[issue27730] Update shutil to work with max file path length on Windows

2016-08-10 Thread Brett Cannon
New submission from Brett Cannon: It would be nice to have a place in the stdlib that can work with long file names on Windows no matter what. shutils seems like a possibly reasonable place. -- components: Windows messages: 272384 nosy: brett.cannon, paul.moore, steve.dower, tim.golden,

[issue27731] Opt-out of MAX_PATH on Windows 10

2016-08-10 Thread Steve Dower
New submission from Steve Dower: According to https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx we can opt-out of MAX_PATH limitations on a selection of functions on the latest version of Windows 10. This will allow unprefixed paths (i.e. no "\\?\") to exceed 260

[issue27730] Update shutil to work with max file path length on Windows

2016-08-10 Thread Steve Dower
Steve Dower added the comment: Issue #27731 will resolve this for the latest versions of Windows 10, but if we want to support this for earlier versions of Windows here's the algorithm I'd suggest: * if len(path) < 260 - we're good, don't do anything * get the last '\' or '/' character before

[issue27731] Opt-out of MAX_PATH on Windows 10

2016-08-10 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0de509a79181 by Terry Jan Reedy in branch '2.7': Issue #27714: For IDLE's test_textview, backport 3.x subclass with mocks https://hg.python.org/cpython/rev/0de509a79181 -- ___ Python tracker

[issue27714] some test_idle tests are not re-runnable, producing false failures with regrtest -w option

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The issue with test_textview in 3.x is that tearDownModule deleted a module attribute, 'TV', that was not created in setUpModule. For 2.7, 'TV' is a class attribute that is created in setUpClass and deleted in tearDownClass, so it does not have the same probl

[issue27728] HTTPConnection.requests has a mutable as default value for headers

2016-08-10 Thread R. David Murray
R. David Murray added the comment: Yes, this is one of those cases where the benefit of the change is probably outweighed by the cost. -- ___ Python tracker ___

[issue27732] IDLE tests should be quiet

2016-08-10 Thread Terry J. Reedy
New submission from Terry J. Reedy: IDLE uses tkinter.widget.bell() in various places to signal an exceptional situation. Examples include 'Find' when the target cannot be found and 'Expand word' when there is no expansion (or are no more expansions. [The tk manual page is http://www.tcl.tk/m

[issue27732] IDLE tests should be quiet

2016-08-10 Thread Zachary Ware
Zachary Ware added the comment: You could guard the noisy tests with "@support.requires_resource('audio')" (however that is actually spelled :)). -- nosy: +zach.ware ___ Python tracker

[issue27719] Misleading note about "args" attribute in "User-defined Exceptions" section of tutorial

2016-08-10 Thread Ben Hoyt
Ben Hoyt added the comment: Okay, patch attached -- I think it's best to simply remove that sentence. Side note: this is why GitHub is so good -- click edit, remove the sentence, click create pull request (approx time 30 seconds). I've got a new machine since I last did Python development, so

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-10 Thread Evelyn Mitchell
Evelyn Mitchell added the comment: I had to look up what engineering notation meant, so I added detail to the docstring. -- nosy: +Evelyn Mitchell stage: -> patch review Added file: http://bugs.python.org/file44072/patch27720 ___ Python tracker

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-08-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-10 Thread Martin Panter
Martin Panter added the comment: _is_textIO(): I’m sorry but I still prefer the TextIOBase check over read(0). Each option has a disadvantage, but with TextIOBase, the disadvantage only affects text files, not byte files. Maybe another option is to stick with the current checking of the “mode”

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-10 Thread Martin Panter
Martin Panter added the comment: Some of the header field validation was included in Demian’s first patch, raising HTTPEncodingError. But I don’t know why he included it. Maybe it was more appropriate then; it looks like that patch took a different approach than the current encode_chunked=True

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-10 Thread Martin Panter
Changes by Martin Panter : -- assignee: orsenthil -> martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27732] IDLE tests should be quiet

2016-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2eb84fe85889 by Terry Jan Reedy in branch 'default': Issue #27732: Silence test_idle with dummy bell functions. https://hg.python.org/cpython/rev/2eb84fe85889 -- nosy: +python-dev ___ Python tracker

[issue27733] Test that self.bell is called in IDLE classes when intended.

2016-08-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue27733] Test that self.bell is called in IDLE classes when intended.

2016-08-10 Thread Terry J. Reedy
New submission from Terry J. Reedy: Spinoff of #27732, which changed 5 tested bell-using classes to consistently call 'self.bell()' (instead of self.text.bell or whatever) so tests for such classes could replace the function with a quiet function. For 4 of the classes, the replacement is curr

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-08-10 Thread Martin Panter
Martin Panter added the comment: Any news on the remaining failures for year 2037? What about the buildbots that time out? Can the size of the tests be reduced, or perhaps should the buildbots be updated to extend the timeout? -- ___ Python tracker

[issue27732] IDLE tests should be quiet

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bell-using files patched (module and test) autoexpand, parenmatch, replace, search, undo Bell-using files not patched (no test yet) debugger, editor, grep, history, pyshell, scrolled_list, zoomheight A second bonus is that the dummy bell function, instead of l

[issue16764] Make zlib accept keyword-arguments

2016-08-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue27732] IDLE tests should be quiet

2016-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: > @support.requires_resource('audio')? The point is that the noise is extraneous and should be optional. I want the tests to run (quietly) when I run them with unittest (which is most of the time) and anytime -ugui is true (too few of the buildbots). It was

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue27734] Memory leaks at Python35-32

2016-08-10 Thread Филипп Пономарев
Changes by Филипп Пономарев : -- components: 2to3 (2.x to 3.x conversion tool) nosy: Филипп Пономарев priority: normal severity: normal status: open title: Memory leaks at Python35-32 versions: Python 3.5 ___ Python tracker

[issue27734] Memory leaks at Python35-32

2016-08-10 Thread Филипп Пономарев
Changes by Филипп Пономарев : -- components: +Windows -2to3 (2.x to 3.x conversion tool) nosy: +paul.moore, steve.dower, tim.golden, zach.ware -Филипп Пономарев type: -> resource usage ___ Python tracker _

[issue27720] decimal.Context.to_eng_string wrong docstring

2016-08-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Evelyn. I've refined this a bit to incorporate the more precise wording in the decimal arithmetic specification (see http://speleotrove.com/decimal/daconvs.html ). Also added the missing doctests and synced-up the wording between the docstrings an

  1   2   >