[issue34217] windows: cross compilation fails due to headers with uppercase

2018-08-17 Thread INADA Naoki
INADA Naoki added the comment: I googled and checked what MSDN uses before I merged these PRs. For example: https://msdn.microsoft.com/ja-jp/library/bb394814.aspx -- ___ Python tracker

[issue34426] "__lltrace__" seems to be wrong , "__ltrace__" is correct in Misc/SpecialBuilds.txt

2018-08-17 Thread Nojima Takahide
New submission from Nojima Takahide : In the Section "LLTRACE" of $(Python3.6-source)/Misc/SpecialBuilds.txt , it describes variable name is "__lltrace__",however it seems to be wrong, "__ltrace__" is correct. Would someone correct this document? -- assignee: docs@python components:

[issue34424] Unicode names break email header

2018-08-17 Thread Jens Troeger
Jens Troeger added the comment: Pull request https://github.com/python/cpython/pull/8803/ -- ___ Python tracker ___ ___

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2018-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: > Serialization of ElementTree in the stdlib is much slower than in lxml (see > issue25881). Perhaps it should be implemented in C. But it should be kept > simple for this. Should I say it? That's a first class use case for Cython. > Pretty-printing can be

[issue34425] :s formatting broken for objects without __format__

2018-08-17 Thread Martin Panter
Martin Panter added the comment: It looks like you are describing the result of Issue 7994. Documentation: https://docs.python.org/release/3.5.3/reference/datamodel.html#object.__format__ https://docs.python.org/release/3.5.3/whatsnew/3.4.html#api-and-feature-removals -- nosy:

[issue34424] Unicode names break email header

2018-08-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8279 stage: -> patch review ___ Python tracker ___ ___

[issue34423] Overflow when casting from double to time_t, and_PyTime_t.

2018-08-17 Thread Michał Radwański
Change by Michał Radwański : -- keywords: +patch pull_requests: +8278 stage: -> patch review ___ Python tracker ___ ___

[issue34425] :s formatting broken for objects without __format__

2018-08-17 Thread Jason Spencer
New submission from Jason Spencer : Objects with __str__ but WITHOUT __format__ are string-convertible and default-to-str formattable. But the explicit use of '{:s}' as a format string fails to format these objects as expected. Either it is no longer the case that '{}' and '{:s}' are

[issue32367] [Security] CVE-2017-17522: webbrowser.py in Python does not validate strings

2018-08-17 Thread Michał Radwański
Change by Michał Radwański : -- pull_requests: +8277 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-08-17 Thread Jens Troeger
Jens Troeger added the comment: New issue: https://bugs.python.org/issue34424 -- ___ Python tracker ___ ___ Python-bugs-list

[issue34424] Unicode names break email header

2018-08-17 Thread Jens Troeger
New submission from Jens Troeger : See also this comment and ensuing conversation: https://bugs.python.org/issue24218?#msg322761 Consider an email message with the following: message = EmailMessage() message["From"] = Address(addr_spec="b...@foo.com", display_name="Jens Troeger")

[issue34415] Typo in logging.Formatter docstring

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The default format depends on the style. From 3.8: class Formatter() def __init__(self, fmt=None, datefmt=None, style='%'): ... self._fmt = self._style._fmt It appears that the class docstring was not updated when the style parameter

[issue29386] select.epoll.poll may behave differently if timeout = -1 vs timeout = None

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. Looking at the Kernel source code, there doesn't seem to be any difference between -1, -100, or -255: https://github.com/torvalds/linux/blob/9bd553929f68921be0f2014dd06561e0c8249a0d/fs/eventpoll.c#L1747-L1761 Do you know any other OS

[issue34415] Typo in logging.Formatter docstring

2018-08-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34407] datetime.time.isoformat function has inconsistent behavior with timezone

2018-08-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +belopolsky versions: -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Closing this does not preclude the optional addition and merge of a PR for 2.7. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: You might get more information asking questions on python-list. -- nosy: +terry.reedy ___ Python tracker ___

[issue34188] Allow dict choices to "transform" values in argpagse

2018-08-17 Thread Matthijs Kooijman
Matthijs Kooijman added the comment: One way to make the original example from Victor work, is to use the following action class: class ConvertChoices(argparse.Action):

[issue34402] [SOLUTION] strftime fails on HP-UX

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Same comment as for #34401. -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list

[issue34401] [SOLUTION] Make test_gdb work on HP-UX

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Why did you put '[SOLUTION]' in the title? We do not use such conventions, and you provide no solution. Why did you mark this as 'crash'? What is the actual failure? -- nosy: +terry.reedy ___ Python tracker

[issue34391] test_ftplib is failing with TLS 1.3

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there more to do on this? Tests pass on Windows with 1 skip, but I don't know if the failure condition applies here. test_check_hostname (test.test_ftplib.TestTLS_FTPClass) ... skipped 'FIXME: bpo-32706' -- nosy: +terry.reedy

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread miss-islington
miss-islington added the comment: New changeset eeece3cd331a1f57fabd55e026f2ea26bc4c by Miss Islington (bot) in branch '3.7': bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797) https://github.com/python/cpython/commit/eeece3cd331a1f57fabd55e026f2ea26bc4c

[issue34423] Overflow when casting from double to time_t, and_PyTime_t.

2018-08-17 Thread Michał Radwański
New submission from Michał Radwański : Code triggering bug: import time time.sleep(2**63 / 10**9) Result: ValueError: sleep length must be non-negative The problem is with the macro that checks the range of provided double: Line 228 of Include/pymath.h: #define _Py_InIntegralTypeRange(type,

Re: Pylint false positives

2018-08-17 Thread Chris Angelico
On Sat, Aug 18, 2018 at 7:33 AM, Marko Rauhamaa wrote: > Chris Angelico : >> Programming is heavily about avoiding duplicated work. > > That is one aspect, but overcondensing and overabstracting programming > logic usually makes code less obvious to its maintainer. It is essential > to find

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread miss-islington
miss-islington added the comment: New changeset 4d4d23d8317fbc95eec789f349dd1db4c0b24fc3 by Miss Islington (bot) in branch '3.6': bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797) https://github.com/python/cpython/commit/4d4d23d8317fbc95eec789f349dd1db4c0b24fc3

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +8276 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +8275 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset cae8ff93a696aa7d74562a9eeaf27afac1f181b4 by Terry Jan Reedy (Michael Osipov) in branch 'master': bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797)

[issue34188] Allow dict choices to "transform" values in argpagse

2018-08-17 Thread Matthijs Kooijman
Matthijs Kooijman added the comment: I was today trying to achieve something similar. I also considered the solution using `type` argument, but that does not seem to play well with the `choices` argument. I was going to report that as a bug, but this issue seems similar enough to comment

Re: Pylint false positives

2018-08-17 Thread Marko Rauhamaa
Chris Angelico : > Programming is heavily about avoiding duplicated work. That is one aspect, but overcondensing and overabstracting programming logic usually makes code less obvious to its maintainer. It is essential to find coding idioms that communicate ideas as clearly as possible. In some

[issue34382] test_os.test_mode fails when directory base directory has g+s set

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Backport' might or might not mean 2.7. You should be able to explicitly select versions in the box above. I have no idea who should review this. -- nosy: +terry.reedy ___ Python tracker

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +Documentation versions: +Python 2.7, Python 3.6, Python 3.8 ___ Python tracker ___

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: An additional motivation for the change is that the instructions in the Testing section of the README are make based while the devguide section gives the OS- and version-specific 'python' based commands. -- nosy: +terry.reedy

[issue24010] Add error checks to PyInit__locale()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: A variant of localemodule.patch without error checking for PyModule_AddIntMacro() has been applied in https://github.com/python/cpython/commit/ff4fddde57d5579dff3a83d99e20cd06366b10d6. Christian, can this be closed or do we still need to add error checking

[issue24011] Add error checks to PyInit_signal()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: All of the PyModule_AddIntMacro() changes have already been applied in https://github.com/python/cpython/commit/6782b14bcba612e4a39e41992c77306217b91e30. The remaining parts are: -x = PyLong_FromLong((long)NSIG); -if (!x || PyDict_SetItemString(d,

[issue34413] Porting section of 3.5 "What's New" doc does not mention bytecode changes.

2018-08-17 Thread Eric Snow
Eric Snow added the comment: Fair enough. Having the note in the 3.5 docs should be fine. :) -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue24012] Add error checks to PyInit_pyexpat()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: Some parts of the patch have already been applied into master: * PySys_GetObject(): https://github.com/python/cpython/commit/7a5457b6878db61910c81017d10579edb7c91512 * PyDict_SetItem():

Re: Pylint false positives

2018-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2018 15:19:05 +0200, Peter Otten wrote: > You usually do not want many identical (or very similar) methods because > invoking the right one is then errorprone, too, and you end up with an > interface that is hard to maintain. At some point you may need to > introduce subtle changes

Re: Pylint false positives

2018-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2018 11:49:01 +, Jon Ribbens wrote: > On 2018-08-17, Steven D'Aprano > wrote: >> On the other hand, your objection to the following three idioms is as >> good an example of the Blurb Paradox as I've ever seen. > > Do you mean the Blub Paradox? If so, you're misunderstanding

[issue33939] Provide a robust O(1) mechanism to check for infinite iterators

2018-08-17 Thread Koos Zevenhoven
Koos Zevenhoven added the comment: I'd say there are three different problems related to this: (1) The inability of infinite iterators/iterables to say anything about their length (2) The inability to interrupt C-level loops (3) The horrible consequences of things like

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-08-17 Thread Steve Dower
Change by Steve Dower : -- keywords: +easy versions: -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34408] possible null pointer dereference in pystate.c

2018-08-17 Thread Steve Dower
Change by Steve Dower : -- nosy: +eric.snow, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Program to output a subset of the composite numbers

2018-08-17 Thread Mark Lawrence
On 15/08/18 21:25, tomusa...@gmail.com wrote: Yes, I will try it! Thank you kindly. Please provide some context when you reply. This is the fourth message that you've sent but there's no immediate clue to whom you are answering. TIA :-) -- My fellow Pythonistas, ask not what our

Re: Pylint false positives

2018-08-17 Thread Peter Otten
Frank Millman wrote: > I find that using a separate method per subclass does exactly what I want, > and that part of my project has been working stably for some time. I think that approach is fine. Do not let a tool have you bend over backwards. Do not give in to pylint's nagging when you are

[issue20849] add exist_ok to shutil.copytree

2018-08-17 Thread Joshua Bronson
Joshua Bronson added the comment: I submitted a new PR in https://github.com/python/cpython/pull/8792 that addresses the outstanding concerns in @ofekmeister's original PR. It includes passing tests and passes all the GitHub PR status checks. Does it look ok to merge? Thanks. --

[issue20849] add exist_ok to shutil.copytree

2018-08-17 Thread Joshua Bronson
Change by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-08-17 Thread Brett Cannon
Brett Cannon added the comment: I can't reproduce with master on macOS. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34422] __name__ not available for classes in typing module

2018-08-17 Thread Gabriel Tremblay
New submission from Gabriel Tremblay : Types under the typing module used to behave like other python classes regarding the __name__ attribute before Python 3.7. The behavior seems to have changed to a non-standard way. Py3.6 >>> from typing import List >>> dir(List) ['__abstractmethods__',

[issue34421] Cannot install package with unicode module names on Windows

2018-08-17 Thread Julien Malard
Change by Julien Malard : -- keywords: +patch pull_requests: +8274 stage: -> patch review ___ Python tracker ___ ___

[issue34421] Cannot install package with unicode module names on Windows

2018-08-17 Thread Julien Malard
Change by Julien Malard : -- components: Distutils nosy: dstufft, eric.araujo, julien.malard priority: normal severity: normal status: open title: Cannot install package with unicode module names on Windows type: crash versions: Python 3.6 ___

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-08-17 Thread R. David Murray
R. David Murray added the comment: check out https://devguide.python.org. (Basically, banch and generate a PR on github). And please open a new issue for this. -- ___ Python tracker

[issue34416] PyCapsule_Import seems to release the GIL without acquiring it

2018-08-17 Thread Brett Cannon
Brett Cannon added the comment: "From our discussion off the issue tracker, it seems that your contention is that any C API calls can arbitrarily release the GIL, and the calling function can not be said to "hold" the GIL. If this is true than this is not a bug and can be closed." Correct,

[issue34417] imp.find_module reacts badly to iterator

2018-08-17 Thread Eric Snow
Eric Snow added the comment: There are several issues at hand here, Phillip. I'll enumerate them below. Thanks for taking the time to let us know about this. However, I'm closing this issue since realistically the behavior of imp.find_module() isn't going to change, particularly in Python

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2018-08-17 Thread Matej Cepl
Change by Matej Cepl : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23847] Add xml pretty print option to ElementTree

2018-08-17 Thread Matej Cepl
Change by Matej Cepl : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28113] Remove Py_CreateSymbolicLinkW

2018-08-17 Thread Steve Dower
Steve Dower added the comment: One other thing, I have come across some CI configurations recently where TEMP is not the best choice (e.g. when it's a mount point in a VM/container). It seems likely that at some point we'll centralize the "working directory" for the test suite in a way that

[issue28113] Remove Py_CreateSymbolicLinkW

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: Eryk, would you like to address Steve's comments and convert your patch to a GitHub pull request? Let me know if you don't have time to prepare a new patch. -- nosy: +berker.peksag versions: -Python 3.6, Python 3.7

[issue34420] Complete your registration to Python tracker -- keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

2018-08-17 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34420] Complete your registration to Python tracker -- keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

2018-08-17 Thread sai arjun
New submission from sai arjun : I have received the email. Sent from Mail for Windows 10 From: Python tracker Sent: 16 August 2018 17:08 To: venkkar...@yahoo.com Subject: Complete your registration to Python tracker -- keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp To complete your registration of the

Re: Pylint false positives

2018-08-17 Thread Peter Otten
Chris Angelico wrote: > On Fri, Aug 17, 2018 at 9:49 PM, Jon Ribbens > wrote: >>> "Code running directly under the class" describes every use of the class >>> keyword (except those with an empty body). If you write: >>> >>> class Spam: >>> x = 1 >>> >>> you are running code under the

[issue34416] PyCapsule_Import seems to release the GIL without acquiring it

2018-08-17 Thread Paul Ganssle
Paul Ganssle added the comment: > It does not seem to me that two threads have the GIL at the same time. To be clear, this was never my contention. I was under the impression that if you take the GIL with PyGILState_Ensure(), the GIL was held until you called PyGILState_Release(), as with a

Re: Pylint false positives

2018-08-17 Thread Chris Angelico
On Fri, Aug 17, 2018 at 9:49 PM, Jon Ribbens wrote: >> "Code running directly under the class" describes every use of the class >> keyword (except those with an empty body). If you write: >> >> class Spam: >> x = 1 >> >> you are running code under the class. This is not just a

[issue19050] [Windows] fflush called on pointer to potentially closed file

2018-08-17 Thread Tal Einat
Tal Einat added the comment: I agree this should probably be ignored for security-only branches. However, AFAIK 2.7 is still in bugfix status, not security-only. If there's interest, I'm happy to build with AMK's fix on 2.7 on Windows to see if it works, and if so provide a PR.

[issue14886] json C vs pure-python implementation difference

2018-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: FWIW, the C implementation of the sequence encoder uses PySequence_Fast(), so adding a lower priority instance check that calls the same encoding function would solve this.

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Bevakasha! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Pylint false positives

2018-08-17 Thread Jon Ribbens
On 2018-08-17, Steven D'Aprano wrote: > On the other hand, your objection to the following three idioms is as > good an example of the Blurb Paradox as I've ever seen. Do you mean the Blub Paradox? If so, you're misunderstanding or at least misapplying it. >> * code running directly under

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Tal Einat
Tal Einat added the comment: Michael, thanks for catching this and supplying a PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Tal Einat
Tal Einat added the comment: New changeset 0e6e7a1e52a53090e33ebef13f8f1fbe9bec2375 by Tal Einat (Michael Osipov) in branch 'master': bpo-34419: selectmodule.c does not compile on HP-UX due to bpo-31938 (GH-8796)

[issue31938] Convert selectmodule.c to Argument Clinic

2018-08-17 Thread Tal Einat
Tal Einat added the comment: New changeset 0e6e7a1e52a53090e33ebef13f8f1fbe9bec2375 by Tal Einat (Michael Osipov) in branch 'master': bpo-34419: selectmodule.c does not compile on HP-UX due to bpo-31938 (GH-8796)

[issue14886] json C vs pure-python implementation difference

2018-08-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: We have received a notification about this bug for 3.5 -- nosy: +matrixise versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue34381] Make tests with outbound connection optional

2018-08-17 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- keywords: +patch pull_requests: +8273 stage: -> patch review ___ Python tracker ___

[issue34414] Absolute imports conflict with local files

2018-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This behaviour is not a bug, even if it can be confusing at times. Please read . -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue34414] Absolute imports conflict with local files

2018-08-17 Thread Jonathan Hadida
Jonathan Hadida added the comment: With regards to "This has nothing to do with absolute imports at all.", I would like to point out that the "import math" statement that I am complaining about IS WITHIN THE NUMPY MODULE. So it seems very related to this bug. How can "import math",

[issue31938] Convert selectmodule.c to Argument Clinic

2018-08-17 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- pull_requests: +8272 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- keywords: +patch pull_requests: +8271 stage: needs patch -> patch review ___ Python tracker ___

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and for the patch! 3.5 is in security-fix-only mode, so it doesn't get documentation fixes anymore. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.6, Python

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: New changeset 02c4d4b6dcd772ec3a7fdca517118f3fa53b0b88 by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793) https://github.com/python/cpython/commit/02c4d4b6dcd772ec3a7fdca517118f3fa53b0b88

[issue34414] Absolute imports conflict with local files

2018-08-17 Thread Jonathan Hadida
Jonathan Hadida added the comment: Thanks again for your reply, I really appreciate your time. Every language I know has reserved keywords, and a restricted syntax. Nothing to complain about there. Banning the use of tabs (PEP8) is pretty odd; but restricting file-names is just a whole new

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread miss-islington
miss-islington added the comment: New changeset 05d89ef785ab3cb6dd28f10f312f68f8e6a163ce by Miss Islington (bot) in branch '3.7': bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793) https://github.com/python/cpython/commit/05d89ef785ab3cb6dd28f10f312f68f8e6a163ce -- nosy:

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: A PR is in preparation. -- ___ Python tracker ___ ___ Python-bugs-list

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +8270 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +8269 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread Berker Peksag
Berker Peksag added the comment: New changeset c53aaec793e018edef4e72a3edbd338b10db10aa by Berker Peksag (Sebastian Rittau) in branch 'master': bpo-34418: Fix HTTPErrorProcessor documentation (GH-8793) https://github.com/python/cpython/commit/c53aaec793e018edef4e72a3edbd338b10db10aa

Re: Pylint false positives

2018-08-17 Thread Frank Millman
"Dan Sommers" wrote in message news:pl622a$a1f$1...@blaine.gmane.org... On Fri, 17 Aug 2018 09:46:01 +0200, Frank Millman wrote: > It is just a slight annoyance (to me) that pylint complains about the > subclass methods when they are called from the Field class. I don't > mind adding 10 stub

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy (C) nosy: +taleinat stage: -> needs patch ___ Python tracker ___ ___

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c

2018-08-17 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- title: selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c5beb99e8bf5eb04cc836d53fa9aee -> selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c ___ Python tracker

[issue34419] selectmodule.c does not compile on HP-UX due to bpo-31938/6dc57e2a20c5beb99e8bf5eb04cc836d53fa9aee

2018-08-17 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: It seems like an oversight of the author, though it is not clear why this happily compiles with clang 3.4.1 on FreeBSD 10.4-STABLE and GCC on RHEL6. The error is (HP-UX 11.31 and HP C/aC++ B3910B A.06.28.03 [Dec 13 2016]): >

[issue20104] expose posix_spawn(p)

2018-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, Gregory, could you please look at PR 6693? Is it what you want? -- ___ Python tracker ___

Re: Pylint false positives

2018-08-17 Thread Dan Sommers
On Fri, 17 Aug 2018 09:46:01 +0200, Frank Millman wrote: > It is just a slight annoyance (to me) that pylint complains about the > subclass methods when they are called from the Field class. I don't > mind adding 10 stub methods to the Field class to keep it happy, but I > do not get the feeling

Re: printing to stdout

2018-08-17 Thread richard lucassen
On Fri, 17 Aug 2018 08:31:22 +1000 Cameron Simpson wrote: > This isn't specific to Python, you'll find it with most programmes. > (The shell's builtin "echo" command is an exception.) [buffer explanation] I already suspectec a buffered output and to check if it was the buffer, I created a lot

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread Sebastian Rittau
Change by Sebastian Rittau : -- keywords: +patch pull_requests: +8267 stage: -> patch review ___ Python tracker ___ ___

Re: Pylint false positives

2018-08-17 Thread Frank Millman
"Steven D'Aprano" wrote in message news:pl5qbk$r7k$5...@blaine.gmane.org... On Fri, 17 Aug 2018 08:14:02 +0200, Frank Millman wrote: > I find that using a separate method per subclass does exactly what I > want, and that part of my project has been working stably for some time. You might

[issue34418] Arguments missing from documentation for HTTPErrorProcessor.http(s)_response()

2018-08-17 Thread Sebastian Rittau
New submission from Sebastian Rittau : The documentation at https://docs.python.org/3/library/urllib.request.html#urllib.request.HTTPErrorProcessor does not list the two arguments "request" and "response" that HTTPErrorProcessor.http_response() and https_response() actually require. (I

Re: lxml namespace as an attribute

2018-08-17 Thread Stefan Behnel
Skip Montanaro schrieb am 15.08.2018 um 23:25: > Much of XML makes no sense to me. Namespaces are one thing. If I'm > parsing a document where namespaces are defined at the top level, then > adding namespaces=root.nsmap works when calling the xpath method. I > more-or-less get that. > > What I

Re: Pylint false positives

2018-08-17 Thread Steven D'Aprano
On Fri, 17 Aug 2018 08:14:02 +0200, Frank Millman wrote: > How would you extend it without a long chain of > if isinstance(v, str): > [perform checks for str] > elif isinstance(v, int) > [perform checks for int] > etc > etc > > I find that using a separate method per

Re: Pylint false positives

2018-08-17 Thread Steven D'Aprano
On Wed, 15 Aug 2018 10:44:57 +, Jon Ribbens wrote: > Obviously what I'm objecting to is not the presence of a loop, it's the > presence of many obscure, bodgey and/or broken features all lumped > together: > * using @abstractmethod without metaclass=ABCMeta I'll cop to that one -- it was

Re: Pylint false positives

2018-08-17 Thread Frank Millman
"D'Arcy Cain" wrote in message news:6b4b8587-46c0-19b0-c538-efdf396f0...@vybenetworks.com... On 2018-08-14 04:58 AM, Frank Millman wrote: > As an example, I have a master class defining a unit of data (i.e. the > value of a column) retrieved from a database. I have separate > sub-classes for

[issue34413] Porting section of 3.5 "What's New" doc does not mention bytecode changes.

2018-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think this needs to be exposed in What's New. This is a very low level implementation detail and isn't interested for most users. I think it would just distract attention from more significant changes. But it may be worth to document this change

[issue34414] Absolute imports conflict with local files

2018-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: This has nothing to do with absolute imports at all. You have two toplevel modules in an entry on sys.path that is before the stdlib (see the earlier message by Eric V. Smit for documentation on how the path is initialised). The name of one of those