[issue30767] logging must check exc_info correctly

2017-10-12 Thread Vinay Sajip
Vinay Sajip added the comment: This is not an issue that needs fixing; the current behaviour is by design. The documentation states about exc_info: "There are two keyword arguments in kwargs which are inspected: exc_info which, if it does not evaluate as false, causes exception information to

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think empty lines and headers are not needed. They just increase the size of the dialog window, it may be too large for low resolution screens. The standard font chooser on Windows uses the following sets for Unicode-aware fonts: Western, Cyrillic, Hebrew

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The -u option doesn't affect the buffering of stdin. Is it worth to document this explicitly? Or it just adds a noise? Maybe remove this from the help and manpage but add in the RST documentation? -- ___ Python t

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-12 Thread Louie Lu
Louie Lu added the comment: PR 3960 display on my Linux works well, and the combination of the Chinese characters has no political controversial. But it is lack of simplify characters, the only one is '汉', others are all traditional characters (or they are same in simp. and trad.). For Japan

[issue31741] backports import path can not be overridden in Windows (Linux works fine)

2017-10-12 Thread Paul Moore
Paul Moore added the comment: Also, one of the packages installed creates a file configparser-3.5.0-py2.7-nspkg.pth This has some very suspicious looking content: import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('backports',))

[issue31732] Add TRACE level to the logging module

2017-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I vote against this on the ground that five levels have sufficed for a long and that the need for finer distinctions almost never arises in practice. There would be an ongoing mental cost to making users learn and think about finer levels of distinction.

[issue31753] Unnecessary closure in ast.literal_eval

2017-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I prefer the existing code and think this shouldn't be changed. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread Berker Peksag
Berker Peksag added the comment: I think it's better to be explicit and mention 'stdin' in this case. Plus, "stdin is always buffered" is quite short so potential of creating noise is quite minimal IMO. (FYI, I asked this question on GitHub: https://github.com/python/cpython/pull/3961#issuec

[issue30767] logging must check exc_info correctly

2017-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree that this should be closed. -- nosy: +rhettinger stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ _

[issue31763] Add NOTICE level to the logging module

2017-10-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: As mentioned in the other tracker item, I'm against adding another level. While it might serve an exotic need, I think most users would be worse off having to learn and think about yet another level of distinction. The mental costs would be on going. FW

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suggest to make the sample text editable: self.font_sample = Text(frame_sample, font=temp_font, width=20) self.font_sample.insert(END, sample) This will allow a user to test fonts in any perspective. -- ___

[issue31770] crash and refleaks when calling sqlite3.Cursor.__init__() more than once

2017-10-12 Thread Oren Milman
New submission from Oren Milman : The following code crashes: import sqlite3 import weakref def callback(*args): pass connection = sqlite3.connect(":memory:") cursor = sqlite3.Cursor(connection) ref = weakref.ref(cursor, callback) cursor.__init__(connection) del cursor del ref IIUC, this is

[issue31770] crash and refleaks when calling sqlite3.Cursor.__init__() more than once

2017-10-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue31753] Unnecessary closure in ast.literal_eval

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I prefer the existing code too. But I'm surprised that this change has a measurable effects at all. I thought that creating a closure is cheaper. Of course it is much faster than creating a class. Maybe it is worth to spend some time for optimizing closure

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread STINNER Victor
Change by STINNER Victor : -- components: +Tests -Documentation title: Possible error in devguide part about tests -> regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE ___ Python tracker

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-12 Thread Dong-hee Na
Dong-hee Na added the comment: Louie Lu Thanks for the cc. In Korea, 'ᅡᅦᅩᆨᆫ가결걵곴극' are not recommended characters sequence. This sequence is not fully cover Korean characters. FYI, MS Windows default font preview sequence is '다람쥐 헌 쳇바퀴에 타고파' Google chrome preview sequence is '정 참판 양반댁 규수 큰

[issue31769] configure includes user CFLAGS when detecting pthreads support

2017-10-12 Thread Chi Hsuan Yen
Change by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-12 Thread Dong-hee Na
Dong-hee Na added the comment: '가냐더려모뵤수유즈치캐턔페혜' is better than '가나다라마바사아차카파타하' -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +3940 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: I proposed PR 3962 to fix a few issues in regrtest when sys.stdout and sys.stderr have to file descriptor. I'm not sure that we should promote running tests with unusual sys.stdout and sys.stderr, since many tests fail in that case. That's why I chose to not

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: > "If you don’t have easy access to a command line, you can run the test suite > from a Python or IDLE shell: The devguide is wrong. You should not run the Python test suite in IDLE. It doesn't work and many tests fail just because of IDLE. Please run the te

[issue31732] Add TRACE level to the logging module

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Raymond Hettinger: "... the need for finer distinctions almost never arises in practice" I gave a list of 10 projects which are alreading using widely the 6th TRACE level. In this list, I consider that OpenStack and SaltStack are two big and serious project

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it would be nice to make testing so flexible as possible. This would help to get rid of unintended assumptions. If some tests are failed on IDLE I would prefer to fix or skip only these tests. -- ___ Pyth

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 2 there is an internal buffering in xreadlines(), readlines() and file-object iterators. You need to enter many lines first that the program get the first of them. And -u doesn't help. But in Python 3 the program gets the input right as it becomes

[issue31732] Add TRACE level to the logging module

2017-10-12 Thread pmpp
pmpp added the comment: As a dumb user I vote in favor of this on the ground that five levels is not sufficient for a long and that the need for finer distinctions already arose for me in practice. Till i overcame the mental cost to think, learn and *find time* on how to make a finer level o

[issue25588] Run test suite from IDLE idlelib.run subprocess

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "If some tests are failed on IDLE I would prefer to fix or skip only these tests." Ok, go ahead. There are many failing tests :-) -- ___ Python tracker

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "(...) I think it is more correct to say that stdin is always unbuffered in Python 3." I disagree. Technically, sys.stdin.read(1) reads up to 1024 bytes from the file descriptor 0. For me, "unbuffered read" means that read(1) reads a single byte. Exp

[issue31771] tkinter geometry string +- when window ovelaps left or top of screen

2017-10-12 Thread Peter J
New submission from Peter J : the root.geometry() top-level window method returns strings like "212x128+-9+-8" when the window is located in the top left corner. The documentation only describes geometry strings containing + or - location coordinates. If this is correct behaviour, the document

[issue30767] logging must check exc_info correctly

2017-10-12 Thread Matthew Patton
Matthew Patton added the comment: "exc_info which, if it does not evaluate as false", so we provide '1' or 'True'. The IF passes and immediately the formatter tries to dereference it blindly assuming it's Tuple and throws an Exception. Either the Formatter needs to guard itself (best) or the

[issue31771] tkinter geometry string +- when window ovelaps left or top of screen

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tkinter is just a wrapper around the Tk library. It returns what Tk returns. See Tk documentation: https://www.tcl.tk/man/tcl8.6/TkCmd/winfo.htm#M15 https://www.tcl.tk/man/tcl8.6/TkCmd/wm.htm#M42 If you want to improve Tkinter documentation, patches are wel

[issue30767] logging must check exc_info correctly

2017-10-12 Thread Matthew Patton
Matthew Patton added the comment: Additionally (probably should have separate PR) the _checkLevel was full of holes. First, it's allowing any Integer which if you're claiming to "check" things is rather silly. At least bounds-check it to GE to NOTSET and LE to CRITICAL (or MAX or something ha

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2017-10-12 Thread Devin Bayer
New submission from Devin Bayer : The current import machinery will use stale cached bytecode if the source is modified more than once per second and with equal size. A straightforward fix is to require the bytecode mtime to be greater than the source file mtime. In the unusual case where the

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: https://github.com/python/cpython/pull/3961#issuecomment-336136160 "I suggest to continue the discussion on the tracker." Ok, let's continue here. "We are fixing the outdated documentation inherited from Python 2. First than keep some state

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2017-10-12 Thread Devin Bayer
Change by Devin Bayer : -- keywords: +patch pull_requests: +3941 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue30767] logging must check exc_info correctly

2017-10-12 Thread Matthew Patton
Matthew Patton added the comment: And the reason to stomp on the "Level " is because by not doing so the message that is a single field (regex/awk) has been converted non-deterministically into two. This is very bad behavior. If emitting the string/int as-is looks wrong then "Level(value)" or

[issue31773] Rewrite _PyTime_GetWinPerfCounter() for _PyTime_t

2017-10-12 Thread STINNER Victor
New submission from STINNER Victor : The commit a997c7b434631f51e00191acea2ba6097691e859 of bpo-31415 moved the implementation of time.perf_counter() from Modules/timemodule.c to Python/pytime.c. The change not only moved the code, but also changed the internal type storing time from floatting

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: stdin is mentioned in the documentation of the -u option only due to weird internal buffering in Python 2, because user can expect that -u disables it. It is documented what methods use internal buffering and how get rid of it. No other buffering is mention

[issue31774] tarfile.open ignores custom bufsize value when creating a new archive

2017-10-12 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Trying to create an archive with the tarfile module, by specifying a different blocking factor, doesn't seem to work as only the default value is being used. The issue is reproducible on all the active python branches. Attaching a script to reproduce

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread Berker Peksag
Berker Peksag added the comment: > -u doesn't affect stdin buffering, whatever that would mean. I think we need to document behavior of stdin somewhere, because current the sys.stdin documentation states: > When interactive, standard streams are line-buffered. Otherwise, they > are block-buff

[issue31773] Rewrite _PyTime_GetWinPerfCounter() for _PyTime_t

2017-10-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +3943 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue31490] assertion failure in ctypes in case an _anonymous_ attr appears outside _fields_

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fb3bb8d5d5d70acaaa0fdec15c137544fdd4463f by Serhiy Storchaka (Oren Milman) in branch '2.7': [2.7] bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ attr is defined only outside _fields_. (GH-3615) (#3952) https://github.com/

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Éric Araujo
Éric Araujo added the comment: New changeset 0e61e67a57deb4abc677808201d7cf3c38138e02 by Éric Araujo (Daisuke Miyakawa) in branch 'master': bpo-31567: add or fix decorator markup in docs (#3959) https://github.com/python/cpython/commit/0e61e67a57deb4abc677808201d7cf3c38138e02 -- ___

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +3944 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Denis Osipov
Denis Osipov added the comment: Got it. Thank you for your help. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Berker Peksag
Berker Peksag added the comment: Use of classmethod and staticmethod decorators as functions is still a valid use case. I think the old signatures should be kept. It should be possible to document both uses in same place: .. function:: classmethod(function) .. decorator:: classmethod

[issue24084] pstats: sub-millisecond display

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Victor. This change likely breaks graphical viewers of pstat data. How gprof and similar tools solve the problem of outputting sub-microsecond timings? -- nosy: +serhiy.storchaka ___ Python tracker

[issue24084] pstats: sub-millisecond display

2017-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg304247 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue24084] pstats: sub-millisecond display

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Victor. This change likely breaks graphical viewers of pstat data. How gprof and similar tools solve the problem of outputting sub-millisecond timings? -- ___ Python tracker

[issue24084] pstats: sub-millisecond display

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: > I concur with Victor. This change likely breaks graphical viewers of pstat > data. I propose to *do* break the format by always displaying percall timings with a precision of 6 digits. -- ___ Python tracker

[issue31490] assertion failure in ctypes in case an _anonymous_ attr appears outside _fields_

2017-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Interesting comment in create_stdio() of Python/pylifecycle.c: --- /* stdin is always opened in buffered mode, first because it shouldn't make a difference in common use cases, second because TextIOWrapper depends on the presence of a read1() m

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread STINNER Victor
New submission from STINNER Victor : It seems like that some methods of the io.TextIOWrapper class requires that its buffer object has the read1() method, whereas the constructor checks if the buffer has a read1() method and the TextIOWrapper _read_chunk() method is able to call buffer.read()

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Éric Araujo
Change by Éric Araujo : -- pull_requests: +3945 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: I created this issue because of this comment in create_stdio() of Python/pylifecycle.c: --- /* stdin is always opened in buffered mode, first because it shouldn't make a difference in common use cases, second because TextIOWrapper depends on t

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: > I think we need to document behavior of stdin somewhere, because current the > sys.stdin documentation states: > >> When interactive, standard streams are line-buffered. Otherwise, they >> are block-buffered like regular text files. You can override this valu

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Éric Araujo
Éric Araujo added the comment: I think existing uses of the decorator markup rely on the reader’s understanding that it’s syntactic sugar for a call and an assignment, and they don’t have decorator+function markup. The PRs for this ticket follow that. That said, staticmethod as a non-decorat

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, currently it's not possible to create an unbuffered read-only TextIOWrapper object: haypo@selma$ python3 Python 3.6.2 (default, Oct 2 2017, 16:51:32) >>> open("/etc/issue", "r", 0) Traceback (most recent call last): File "", line 1, in ValueError: can

[issue31767] Windows Installer fails with error 0x80091007 when trying to install debugging symbols

2017-10-12 Thread Steve Dower
Steve Dower added the comment: Can you try moving the installer exe to its own (empty) directory before running it? The correct file is on the server (I just redownloaded and verified), so the most likely cause is that you ran a /layout at some point in the past and are getting that file loc

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The falling back to read() was implemented in issue12591. What methods still require read1()? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "I think there is no need to mention stdin in the context of the -u option at all. -u doesn't affect stdin buffering, whatever that would mean. Period." Hum, I propose to mention stdin in -u documentation as: "The option has no effect on stdin." What

[issue28647] python --help: -u is misdocumented as binary mode

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Hum, I propose to mention stdin in -u documentation as: "The option has no > effect on stdin." What do you think? This LGTM too. More precise, it has no effect on stdin buffering. It has effect on the line_buffering attribute, but this attribute has no ef

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: > The falling back to read() was implemented in issue12591. What methods still > require read1()? I read the Python implementation of TextIOWrapper in _pyio: * seek() calls buffer.read() "if chars_to_skip:"... not sure that it can happen if buffer is a FileI

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Berker Peksag
Berker Peksag added the comment: > That said, staticmethod as a non-decorator has an important use case for > function injection in tests (using self.func in TestCase classes that work > with > a C module and an equivalent Python version). Maybe this deserves an extra > example? Yes, that wou

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Context: I created this issue as a follow-up of the discussion on the -u command line option, bpo-28647, which still leaves sys.stdin *buffered* in the current master branch. -- ___ Python tracker

[issue31773] Rewrite _PyTime_GetWinPerfCounter() for _PyTime_t

2017-10-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31773] Rewrite _PyTime_GetWinPerfCounter() for _PyTime_t

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset cba9a0c6def70549046f1afa6a80e38fe706520e by Victor Stinner in branch 'master': bpo-31773: time.perf_counter() uses again double (GH-3964) https://github.com/python/cpython/commit/cba9a0c6def70549046f1afa6a80e38fe706520e --

[issue31415] Add -X option to show import time

2017-10-12 Thread STINNER Victor
STINNER Victor added the comment: Ok, the feature was implemented, the Windows clock resolution was fixed as well. It's time to close this issue. If you still have concerns about import time, see open discussions on the python-dev mailing list, or open new issues ;-) Thanks again Naoki INADA

[issue30767] logging must check exc_info correctly

2017-10-12 Thread Matthew Patton
Matthew Patton added the comment: I believe this diff addresses the failure of formatException() to check it's parameter's datatype. I still maintain this should be re-opened since it's guaranteed to raise an exception when someone sets 'exc_info=TruthyValue' in kwargs. albeit with a more foc

[issue31775] Support unbuffered TextIOWrapper

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What methods still require read1()? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31770] crash and refleaks when calling sqlite3.Cursor.__init__() more than once

2017-10-12 Thread Oren Milman
Change by Oren Milman : -- keywords: +patch pull_requests: +3946 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Éric Araujo
Éric Araujo added the comment: New changeset 03b9537dc515d10528f83c920d38910b95755aff by Éric Araujo in branch 'master': bpo-31567: more decorator markup fixes in docs (GH-3959) (#3966) https://github.com/python/cpython/commit/03b9537dc515d10528f83c920d38910b95755aff --

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Éric Araujo
Éric Araujo added the comment: New changeset 205dd4e14de77f9c8ed2903ddebbcf9968bbb6a9 by Éric Araujo (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31567: add or fix decorator markup in docs (GH-3959) (GH-3966) https://github.com/python/cpython/commit/205dd4e14de77f9c8ed2903ddebbcf9968bbb6a

[issue31567] Inconsistent documentation around decorators

2017-10-12 Thread Éric Araujo
Éric Araujo added the comment: Cheers! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Closing this issue, I opened https://github.com/python/devguide/issues/280 so that Dev Guide can be updated. Thanks! -- nosy: +Mariatta resolution: -> not a bug stage: -> resolved status: open -> closed ___ Pyth

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Anthony Flury
Anthony Flury added the comment: Isn't Python 2.7 in Security Fix only as well ? It seems strange; Python 3.5 probably the most heavily installed Python 3 release (every Ubuntu installation has Python 3.5 installed by default - and neither Python 3.6 or 3.7 are available from the standard ubu

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: The 3.5 docs should really remain in the main docs UI via the pulldown as long as it's so widely used. The fact that it won't be changing much just means it can be served efficiently. -- nosy: +fdrake ___ Pyth

[issue31761] regrtest: faulthandler.enable() fails with io.UnsupportedOperation: fileno when run from IDLE

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue25588. Currently running tests from IDLE doesn't work, but it worked in the past and maybe we can make it working again. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +3947 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue31763] Add NOTICE level to the logging module

2017-10-12 Thread Matthew Patton
Matthew Patton added the comment: syslog(3) is cited in the code as inspiration and has been the goto definition for logging levels for 40 years across many, many projects. NOTICE is incredibly useful especially to those of us who are sysadmins. Why would Python not implement the full suite o

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset b7cbfe49e39a7bbd7da20b937735a8a60bbf1872 by Ned Deily in branch 'master': bpo-31766: restore 3.5 to docs version switchers (#3969) https://github.com/python/cpython/commit/b7cbfe49e39a7bbd7da20b937735a8a60bbf1872 --

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +3948 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset f8d42ea0e4341b270f1de71b4ff40cfa18420eed by Ned Deily in branch '3.6': bpo-31766: restore 3.5 to docs version switchers (#3970) https://github.com/python/cpython/commit/f8d42ea0e4341b270f1de71b4ff40cfa18420eed -- ___

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +3949 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Ned Deily added the comment: New changeset 356b68023d6fee5e30d25a4a680ac5b9e4f8dd65 by Ned Deily in branch '2.7': bpo-31766: restore 3.5 to docs version switchers (#3971) https://github.com/python/cpython/commit/356b68023d6fee5e30d25a4a680ac5b9e4f8dd65 -- ___

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Ned Deily
Ned Deily added the comment: > Isn't Python 2.7 in Security Fix only as well ? No, 2.7 is still being actively maintained (until 2020). (https://devguide.python.org/#status-of-python-branches) But, bowing to popular demand, I've restored 3.5 to the switchers for 3.7, 3.6, and 2.7. It should

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2017-10-12 Thread Brett Cannon
Brett Cannon added the comment: The problem with that is it will increase the number of stat calls which we have always tried to minimize due to performance worries. https://www.python.org/dev/peps/pep-0552/ has also been accepted which will take care of this specific case. So while I appreci

[issue31767] Windows Installer fails with error 0x80091007 when trying to install debugging symbols

2017-10-12 Thread Igor Skochinsky
Igor Skochinsky added the comment: Hi Steve, Thanks for the suggestion! I tried that and while it did not succeed it gave me an idea of what went wrong last time since it complained about lack of disk space. I have *not* run the /layout but now that I checked I indeed had core_d.msi and core_p

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have tested it on FreeBSD, found and fixed one bug. -- assignee: -> serhiy.storchaka versions: -Python 3.5 ___ Python tracker ___ __

[issue30767] logging must check exc_info correctly

2017-10-12 Thread Matthew Patton
Change by Matthew Patton : -- pull_requests: +3950 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset de072100775cc29e6cd93a75466cecbd1086f258 by Serhiy Storchaka in branch 'master': bpo-30058: Fixed buffer overflow in select.kqueue.control(). (#1095) https://github.com/python/cpython/commit/de072100775cc29e6cd93a75466cecbd1086f258 --

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +3951 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue31640] Document exit() from parse_args

2017-10-12 Thread paul j3
paul j3 added the comment: And the actual exit is via `parse.error` and `parse.exit`, which are documented in 16.4.5.9. When run interactively in Ipython, exits (including the help) are captured and displayed with: In [896]: parser.parse_args() usage: ipython3 [-h] [--one | --two | --six] ip

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2017-10-12 Thread Catalin Patulea
Change by Catalin Patulea : -- nosy: +Catalin Patulea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31768] argparse drops '|'s when the arguments are too long

2017-10-12 Thread paul j3
paul j3 added the comment: As documented in many other issues, the usage formatter is brittle. It formats the individual usages, joins them into a string. Then if too long to fit on one line it tries t split into actions, etc. This split produces an assertion error if there are 'wierd' char

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2017-10-12 Thread Devin Bayer
Devin Bayer added the comment: Hello Brett, it would be nice if you would discuss this before closing. The referenced PEP will not solve my use case, because hash-based checking will not become the default. The issue is that by default the source file loader will be returning stale bytecode

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3952 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30058] Buffer overflow in kqueue.control()

2017-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c923da188bc055e4f3001a6daf1caf54f2b10e40 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095) (#3973) https://github.com/python/cpython/commit/c923da188bc055e4

[issue31768] argparse drops '|'s when the arguments are too long

2017-10-12 Thread paul j3
paul j3 added the comment: I've changed your example a bit to clarify some points. parser.add_argument('n', type=int) group = parser.add_mutually_exclusive_group() group.add_argument("-v", "--verbose", action="store_true") group.add_argument("-q", "--quiet", action="store_true")

[issue31776] Inconsistent exception chaining in /Lib/xml/etree/ElementPath.py

2017-10-12 Thread Pablo
New submission from Pablo : Based on bpo-29762 (https://github.com/python/cpython/commit/5affd23e6f42125998724787025080a24839266e), there is an inconsistency on one exception chain in /Lib/xml/etree/ElementPath.py: try: selector.append(ops[token[0]](next, token))

[issue31776] Missing "raise from None" in /Lib/xml/etree/ElementPath.py

2017-10-12 Thread Pablo
Change by Pablo : -- title: Inconsistent exception chaining in /Lib/xml/etree/ElementPath.py -> Missing "raise from None" in /Lib/xml/etree/ElementPath.py ___ Python tracker __

  1   2   >