[issue12572] HP/UX compiler workarounds

2018-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the update. I think any problems with the current HP/UX compiler are best reported on a new issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue34909] StrEnum subclasses cannot be created

2018-10-15 Thread Ethan Furman
Ethan Furman added the comment: On 10/12/2018 09:52 PM, Ned Deily wrote: > Can you please merge a NEWS item for this issue using blurb since it > is a user-visible problem? I'll cherry-pick it into the 3.7.1 final. I don't believe the problem exists in 3.7.0 -- but I also don't know how

[issue34844] logging.Formatter enhancement - Checking on style and fmt fields

2018-10-15 Thread Guido van Rossum
Guido van Rossum added the comment: W00t! Congrats Luna and thanks for your contribution. Thanks Vinay for the prompt reviews! -- ___ Python tracker ___

[issue34562] cannot install versions 3.6.5+ on Windows

2018-10-15 Thread Zyg
Zyg added the comment: Thanks for the answer. As you instructed, I have downloaded all the installation files into a directory from another laptop, where I later successfully installed Python. However, on the old laptop, where I originally had this problem, I am still unable to install it.

Re: Python indentation (3 spaces)

2018-10-15 Thread Chris Angelico
On Tue, Oct 16, 2018 at 8:03 AM Cameron Simpson wrote: > > > [ Marko and Rhdri discussing emacs indentation modes ... ] > > I can't express how pleasing it is to see the traditional vi-vs-emacs > wars supplanted by emacs-vs-emacs :-) > Which editor should I use - vi in emacs mode, or emacs in vi

[issue34993] asyncio.streams.FlowControlMixin should be part of the API

2018-10-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: 1. Trio has *stappled* streams for the case, especially useful for starting TLS session over stdin/stdout. We can master something too. 2. FlowControlMixin was always considered a **private** API. Would be nice to add an underscore prefix to the name if not

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Victor seems there was some discussion about 2038 problem in the original PR but I don't know if it's related to this. Reference : https://github.com/python/cpython/pull/4575#discussion_r153376173 Thanks --

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like you misunderstood the purpose of these variables. They are only used to build getbuildinfo which is used to fill sys._git. Depending on the platform and git version, there are different ways to get the version, branch and tag. These variables

Re: Python indentation (3 spaces)

2018-10-15 Thread Cameron Simpson
[ Marko and Rhdri discussing emacs indentation modes ... ] I can't express how pleasing it is to see the traditional vi-vs-emacs wars supplanted by emacs-vs-emacs :-) Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9260 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9261 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread miss-islington
miss-islington added the comment: New changeset fcea3ddc4a7e756fa8f182789e886ccd3d524484 by Miss Islington (bot) in branch '3.7': bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) https://github.com/python/cpython/commit/fcea3ddc4a7e756fa8f182789e886ccd3d524484 -- nosy:

[issue34980] KillPython target doesn't detect 64-bit processes

2018-10-15 Thread Jeremy Kloth
Change by Jeremy Kloth : -- keywords: +patch pull_requests: +9263 stage: -> patch review ___ Python tracker ___ ___

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9256 stage: -> patch review ___ Python tracker ___ ___

Re: Python indentation (3 spaces)

2018-10-15 Thread Peter J. Holzer
On 2018-10-15 14:12:54 +0200, Antoon Pardon wrote: > On 13-10-18 09:37, Peter J. Holzer wrote: > > On 2018-10-09 09:55:34 +0200, Antoon Pardon wrote: > >> On 08-10-18 19:43, Peter J. Holzer wrote: > >>> In practice it doesn't work in my experience. There is always someone in > >>> a team who was

[issue34980] KillPython target doesn't detect 64-bit processes

2018-10-15 Thread Eryk Sun
Eryk Sun added the comment: > there shouldn't be any problem with 33-bit/64-bit here. Windows > doesn't separate processes like that. Accessing the MainModule property of a .NET Process object raises an exception if the current process is 32-bit and the process is 64-bit [1]. This is

Re: Python indentation (3 spaces)

2018-10-15 Thread Chris Angelico
On Tue, Oct 16, 2018 at 6:34 AM Peter J. Holzer wrote: > > On 2018-10-15 14:12:54 +0200, Antoon Pardon wrote: > > On 13-10-18 09:37, Peter J. Holzer wrote: > > > On 2018-10-09 09:55:34 +0200, Antoon Pardon wrote: > > >> On 08-10-18 19:43, Peter J. Holzer wrote: > > >>> In practice it doesn't work

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread Ned Deily
Ned Deily added the comment: Victor is correct. Those GIT* variable are there to communicate between ./configure and the Makefile; they are *not* intended to have actual values for change ids or branch names. Many variables in the Makefile are not intended to be used outside of the build

pipenv and wheel/pre-compiled packages

2018-10-15 Thread Florian Pelgrim
Hi there, I'm currently using a buildhost for third party packages running ``` $ pip3 wheel --wheel-dir=/root/wheelhouse -r /requirements.txt ``` After successful build I copy the directory `/root/wheelhouse` onto a new machine and install the compiled packages by running ``` $ pip3 install

[issue34909] StrEnum subclasses cannot be created

2018-10-15 Thread Ned Deily
Ned Deily added the comment: My concern was that it seemed like at least one user had run into this while running 3.7.1rc1 (?), if I understood your comment; if so, I think we should mention in the changelog that the problem was fixed in rc2. In any case, the state of the code for any

[issue34985] python finds test modules from the wrong directory during PGO build

2018-10-15 Thread Brett Cannon
Brett Cannon added the comment: I think there might be more going on here as the build target as it uses the built Python which has special logic to notice it is being built in a checkout. Did you launch the build from a directory other than the git checkout? Or were you trying to do a

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +9257 stage: -> patch review ___ Python tracker ___ ___

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: sure, but you can also get these info from sysconfig. and for me, there is a problem with sysconfig. two solutions, remove GIT* from sysconfig or fix sysconfig with the right values. -- stage: patch review ->

Email parsing and unicode/utf8

2018-10-15 Thread Thomas Jollans
Hi, I just stumbled over some curious behaviour of the stdlib email parsing APIs which accept strings rather than bytes. It appears that you can't parse an 8-bit UTF-8 message you have as a str without first encoding it. The docs

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-15 Thread miss-islington
miss-islington added the comment: New changeset 802de12d99d16e621537d454eac942d2f448afee by Miss Islington (bot) in branch '3.7': bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, sure and now, after your explanations (you and victor) I just closed my PR, but to be honnest with your, I was really surprised when I have seen the git commands in the GIT* variables. Thanks for your review and your time. -- resolution: not a

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-10-15 Thread miss-islington
miss-islington added the comment: New changeset d991ede16b34399c5ea9bd30e9a5c520bed6bea8 by Miss Islington (bot) in branch '3.7': bpo-34521: Add NEWS entry for changes in GH-9613 (GH-9850) https://github.com/python/cpython/commit/d991ede16b34399c5ea9bd30e9a5c520bed6bea8 --

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9259 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Python indentation (3 spaces)

2018-10-15 Thread Gregory Ewing
Cameron Simpson wrote: I can't express how pleasing it is to see the traditional vi-vs-emacs wars supplanted by emacs-vs-emacs :-) We're the People's Front of Emacs, not the Emacs People's Front! -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[issue34844] logging.Formatter enhancement - Checking on style and fmt fields

2018-10-15 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 18fb1fb943b7dbd7f8a76017ee2a67ef13effb85 by Vinay Sajip (BNMetrics) in branch 'master': bpo-34844: logging.Formatter enhancement - Ensure style and format string matches in logging.Formatter (GH-9703)

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2e438cc2554495b28480a3ffe5cdf41b6ab823a0 by Victor Stinner in branch 'master': bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) https://github.com/python/cpython/commit/2e438cc2554495b28480a3ffe5cdf41b6ab823a0 --

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea75187c68b374bb839f1172f310b206044bc3e5 by Victor Stinner in branch 'master': bpo-34783: Fix test_nonexisting_script() (GH-9896) https://github.com/python/cpython/commit/ea75187c68b374bb839f1172f310b206044bc3e5 --

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread miss-islington
miss-islington added the comment: New changeset 71e601eb0857fb03c1dd3c349afb030ef84f95d0 by Miss Islington (bot) in branch '3.6': bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) https://github.com/python/cpython/commit/71e601eb0857fb03c1dd3c349afb030ef84f95d0 --

Re: Python indentation (3 spaces)

2018-10-15 Thread Peter J. Holzer
On 2018-10-15 09:49:12 +1100, Cameron Simpson wrote: > On 15Oct2018 00:33, Peter J. Holzer wrote: > > On 2018-10-15 09:06:11 +1100, Chris Angelico wrote: > > > On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa wrote: > > > > Chris Angelico : > > > > > Tabs for indentation have semantic meaning.

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : > ./configure --prefix=$PWD-build --with-pydebug --quiet > make -j 4 -s > git --git-dir ./.git rev-parse --short HEAD ee171a26c1 > ./python -m sysconfig | grep GIT GITBRANCH = "git --git-dir ./.git name-rev --name-only HEAD" GITTAG = "git --git-dir ./.git

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: Git informations are available as: >>> sys._git ('CPython', 'heads/fakerepr', 'd353239f83') >>> sys.version '3.8.0a0 (heads/fakerepr:d353239f83, Oct 15 2018, 13:20:43) \n[GCC 8.1.1 20180712 (Red Hat 8.1.1-5)]' -- nosy: +vstinner

[issue11233] clarifying Availability: Unix

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: Thank you Sandro Tosi for the bug report, thanks Georg Brandl for initial patch, and thanks Cheryl Sabella for the final changes in 3.7 and master! According to Yury Selivanov, it's not need to backport this change to 2.7 and 3.6, so I close the issue.

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset aadb44ee98bc73bc5132acea5848ac6aef1ff8c0 by Victor Stinner in branch '2.7': bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) (GH-9899) https://github.com/python/cpython/commit/aadb44ee98bc73bc5132acea5848ac6aef1ff8c0 --

[issue34978] check type of object in fix_dict.py in 2to3

2018-10-15 Thread Pranav Devarakonda
Pranav Devarakonda added the comment: Thank you very much for pointing out some helpful things, Karthikeyan. >True if 1 in list(a.keys()) if type(a) == dict else a.keys() else False True that the fixer would return a syntax error in this case. I missed adding a pair of parenthesis to the

[issue34095] [2.7] Seg fault on archlinux 32 when run tests with xvfb-run

2018-10-15 Thread Erich Eckner
Erich Eckner added the comment: yes, I'm also not sure what's different now - I executed the very same commands on the very same source tree :-/ -- ___ Python tracker ___

Re: Python indentation (3 spaces)

2018-10-15 Thread Peter J. Holzer
On 2018-10-15 12:06:06 +0100, Rhodri James wrote: > On 14/10/18 09:06, Peter J. Holzer wrote: > > If everybody used tabs, why would anyone care about your tab width? > > Unless they look over your shoulder while you are typing, they won't > > even know how wide your tabs are. > > If you used

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-15 Thread Robert Wall
Robert Wall added the comment: I saw that article too but reading man tcp(4) [1], it says that this value is in seconds for macOS and testing appears to confirm this. Where the unit of time is different, however, is with the old and new Windows keepalive options discussed in #32394. The

[issue34095] [2.7] Seg fault on archlinux 32 when run tests with xvfb-run

2018-10-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34994] sysconfig returns the git commands for GITBRANCH, GITVERSION and GITTAG

2018-10-15 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9258 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-15 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 43a5bd7b458f0ad2d62b00b033d025689d48d591 by Yury Selivanov (Braden Groom) in branch 'master': bpo-23554: Change echo server example class name from EchoServerClientProtocol to EchoServerProtocol (GH-9859)

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-15 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23554] EchoServerClientProtocol class should be called EchoServerProtocol

2018-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9262 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34562] cannot install versions 3.6.5+ on Windows

2018-10-15 Thread Zyg
Zyg added the comment: Clarification. After getting that system error 3 times, I saw the message that installation succeeded. But I am unable to start Python because of this same error. -- ___ Python tracker

[issue11233] clarifying Availability: Unix

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset b248a8c9a5e7cf6b8e84a3efda493fccfc511316 by Victor Stinner (Cheryl Sabella) in branch '3.7': [3.7] bpo-11233: Create availability directive for documentation (GH-9692) (GH-9830)

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9264 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34957] Segementation faults on ARM and ARM64

2018-10-15 Thread Kubilay Kocak
Kubilay Kocak added the comment: All our FreeBSD ports (lang/python??) and the packages produced from them all contain a LIBFFI option which is enabled by default, since 2015 [1][2]: LIBFFI=on: Use libffi from ports instead of bundled version This means that any 'default' package builds of

[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-15 Thread Erich Eckner
Erich Eckner added the comment: Yes, I get much further in the test suite, currently (40k lines logged vs. 23k). Now, it succeeds until: 0:08:26 load avg: 0.72 [358/403/3] test_tuple test_addmul (test.test_tuple.TupleTest) ... ok test_bigrepeat (test.test_tuple.TupleTest) ...

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-10-15 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +9249 stage: -> patch review ___ Python tracker ___ ___

[issue34953] Implement `mmap.mmap.__repr__`

2018-10-15 Thread thautwarm
thautwarm added the comment: How about this: ``` # opened # closed ``` -- nosy: +thautwarm ___ Python tracker ___ ___

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is checked, and there is a comment about this. p = obj_class != cls;/* true iff a problem */ -- nosy: +serhiy.storchaka ___ Python tracker

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-10-15 Thread Vincent Pelletier
Change by Vincent Pelletier : -- assignee: -> christian.heimes components: +Library (Lib), SSL nosy: +christian.heimes ___ Python tracker ___

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-10-15 Thread Zackery Spytz
New submission from Zackery Spytz : The get_class() call in save_reduce() is not checked for failure. -- components: Extension Modules messages: 327732 nosy: ZackerySpytz priority: normal severity: normal status: open title: A possible null pointer dereference in _pickle.c's

[issue33450] unexpected EPROTOTYPE returned by sendto on MAC OSX

2018-10-15 Thread Ned Deily
Change by Ned Deily : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11233] clarifying Availability: Unix

2018-10-15 Thread Cheryl Sabella
Cheryl Sabella added the comment: And thank you, Victor, for reviewing and merging! :-) -- ___ Python tracker ___ ___

[issue34780] Hang on startup if stdin refers to a pipe with an outstanding concurrent operation on Windows

2018-10-15 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Ping! Thanks to @eryksun for providing feedback here and for the patch review. -- ___ Python tracker ___

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Change by Matt Wilber : -- components: Library (Lib) nosy: mwilbz priority: normal severity: normal status: open title: functools.cached_property does not maintain the wrapped method's __isabstractmethod__ versions: Python 3.8 ___ Python tracker

[issue34565] Launcher does not validate major versions

2018-10-15 Thread Ned Deily
Ned Deily added the comment: I assume we can close this now. Thanks, all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

2018-10-15 Thread Matt Wilber
Change by Matt Wilber : -- keywords: +patch pull_requests: +9266 stage: -> patch review ___ Python tracker ___ ___

Re: Python indentation (3 spaces)

2018-10-15 Thread D'Arcy Cain
On 10/15/18 5:54 PM, Gregory Ewing wrote: > Cameron Simpson wrote: >> I can't express how pleasing it is to see the traditional vi-vs-emacs >> wars supplanted by emacs-vs-emacs :-) > > We're the People's Front of Emacs, not the Emacs People's Front! I thought we were the People's Emacs Front.

[issue34783] [3.7] segmentation-fault/core dump when try to run non-existing file specified on commandline

2018-10-15 Thread miss-islington
miss-islington added the comment: New changeset 350aeab8127da551fcd0090230575b7aabff03c9 by Miss Islington (bot) in branch '3.7': bpo-34783: Fix test_nonexisting_script() (GH-9896) https://github.com/python/cpython/commit/350aeab8127da551fcd0090230575b7aabff03c9 --

[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

2018-10-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hi and thank you for the proposal. Could you detail a bit more about your use-case? Thanks -- nosy: +pablogsal ___ Python tracker

Re: Python indentation (3 spaces)

2018-10-15 Thread Chris Angelico
On Tue, Oct 16, 2018 at 9:16 AM D'Arcy Cain wrote: > > On 10/15/18 5:54 PM, Gregory Ewing wrote: > > Cameron Simpson wrote: > >> I can't express how pleasing it is to see the traditional vi-vs-emacs > >> wars supplanted by emacs-vs-emacs :-) > > > > We're the People's Front of Emacs, not the

Re: Python indentation (3 spaces)

2018-10-15 Thread Ethan Furman
On 10/15/2018 12:37 PM, Chris Angelico wrote: On Tue, Oct 16, 2018 at 6:34 AM Peter J. Holzer wrote: On 2018-10-15 14:12:54 +0200, Antoon Pardon wrote: Spaces that replaced a tab by accident, are easy to catch too. They are all those lines that show up when you do a diff with the previous

Is it dangeous when using custom metaclass?

2018-10-15 Thread jfong
class StructureMeta(type): def __init__(self, clsname, bases, clsdict): offset = 0 ... ... setattr(self, 'struct_size', offset) class Structure(metaclass=StructureMeta): ... ... class PolyHeader(Structure): ... ... As my understanding, the

[issue34988] Rc2 candidates: "gcc" not found on AIX

2018-10-15 Thread Ned Deily
Ned Deily added the comment: Do you know if the behavior has changed here for 3.7.1rc2 and 3.6.7rc2 from earlier 3.7.x and 3.6.x releases? I did a quick check of the configure.ac history and did not see any obvious change. It looks like one way to handle this would be be to specify the

[issue34953] Implement `mmap.mmap.__repr__`

2018-10-15 Thread Xiang Zhang
Xiang Zhang added the comment: I don't like the idea to display the contents in the repr, no matter entire or clipped. I think it's not suitable and for contents, just read the object manually. For me, a closed status plus the constructor arguments is a good choice. -- nosy:

[issue34158] Documentation of datetime '%z' format code is odd

2018-10-15 Thread Ned Deily
Ned Deily added the comment: I assume this can now be closed. Thanks, everyone! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-10-15 Thread Christian Heimes
Christian Heimes added the comment: How did you run into the issue? There is no reason to ever replace the context of a listening socket. The context setter is designed for SNI-based virtual hosting to replace the context of a bound server-side connection. You never change the listening

[issue34976] IDLE: Replace the search dialog with a search bar

2018-10-15 Thread Tal Einat
Tal Einat added the comment: Thanks for giving it a try, Cheryl, I'm glad you like it! -- ___ Python tracker ___ ___

Python-Verilog (Pyverilog)

2018-10-15 Thread Bobby
I am working on my own domain-specific language (DSL). The DSL is based on functional requirements of a device under test (DUT). The grammar has rules like 'if' and 'else'. I have made a grammar of my DSL without any programming code in my grammar. I am using ANTLR to generate Parser, Lexer,

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-10-15 Thread Zackery Spytz
Zackery Spytz added the comment: It is not properly checked: Py_DECREF() is always called on the result of get_class(), but get_class() can return NULL. -- ___ Python tracker

Python-Verilog (PyHDI-Pyverilog)

2018-10-15 Thread Bobby
I am working on my own domain-specific language (DSL). The DSL is based on functional requirements of a device under test (DUT). The grammar has rules like 'if' and 'else'. I have made a grammar of my DSL without any programming code in my grammar. I am using ANTLR to generate Parser, Lexer,

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9250 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-10-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9251 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34988] Rc2 candidates: "gcc" not found on AIX

2018-10-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Python indentation (3 spaces)

2018-10-15 Thread Rhodri James
On 14/10/18 09:06, Peter J. Holzer wrote: On 2018-10-14 00:45:49 +, Grant Edwards wrote: On 2018-10-13, Peter J. Holzer wrote: For "just use tabs" to work, all of those tools would have to magically recognize that they're looking at Python source and adjust the tab size accordingly.

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread STINNER Victor
New submission from STINNER Victor : On Fedora 28, gdb fails to read (some?) debug symbols: "Dwarf Error: could not find partial DIE containing offset 0x316 [in module /usr/lib/debug/usr/bin/python3.6-3.6.6-1.fc28.x86_64.debug]" https://bugzilla.redhat.com/show_bug.cgi?id=1613614 In this

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-10-15 Thread Vincent Pelletier
Vincent Pelletier added the comment: The reason which led me into this is server certificate renewal: my service crashed on that setter 2 months after starting, when it received a new certificate. I toyed with the idea of closing the listening sockets, but without closing would be even

Re: Python indentation (3 spaces)

2018-10-15 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Oct 15, 2018 at 3:51 PM Marko Rauhamaa wrote: > I don't understand your point here. It prints a letter, then some > spaces, then a tab, then another letter. On my terminal, that displays > the tab by advancing to the next tab position. If I highlight to > select, it's

[issue34988] Rc2 candidates: "gcc" not found on AIX

2018-10-15 Thread Michael Felt
New submission from Michael Felt : Both rc2 packages - $ ls -l *.xz -rw-r--r--1 aixtools staff 17178404 Oct 13 02:41 Python-3.6.7rc2.tar.xz -rw-r--r--1 aixtools staff 16974832 Oct 13 02:24 Python-3.7.1rc2.tar.xz return the same error on a system using gcc as default compiler

[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-10-15 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: The new crashing test seems the same as https://bugs.python.org/issue33153. I can't reproduce it on 64-bit Arch Linux, so that might be a 32-bit only issue. -- ___ Python tracker

[issue16965] 2to3 should rewrite execfile() to open in 'rb' mode

2018-10-15 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +9253 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: But until 2038, maybe there will be a new format for the .pyc file. We should keep this issue and try to fix it for 3.8 or 3.9? -- ___ Python tracker

[issue34992] many warnings with f28 and gcc 8.1.1

2018-10-15 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : I use Fedora 28 and gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5) and I get a lot of warnings, with the standard config of Python (./configure) Objects/call.c: In function '_PyMethodDef_RawFastCallDict': Objects/call.c:515:24: warning: cast between

[issue34992] many warnings with f28 and gcc 8.1.1

2018-10-15 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Invalid function cast warnings with gcc 8 for METH_NOARGS ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann : To reproduce: touch -d 2038-01-20 /usr/lib/python3.6/site-packages/six.py python3 /usr/lib64/python3.6/compileall.py File "/usr/lib64/python3.6/compileall.py", line 198, in compile_path legacy=legacy, optimize=optimize) File

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread STINNER Victor
STINNER Victor added the comment: The bug can be reproduced using this change: diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index bf4047419e..f973d4d4bd 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -402,6 +402,7 @@ class PyObjectPtr(object):

[issue34953] Implement `mmap.mmap.__repr__`

2018-10-15 Thread thautwarm
Change by thautwarm : -- keywords: +patch pull_requests: +9254 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

Re: Python indentation (3 spaces)

2018-10-15 Thread Antoon Pardon
On 13-10-18 09:37, Peter J. Holzer wrote: > On 2018-10-09 09:55:34 +0200, Antoon Pardon wrote: >> On 08-10-18 19:43, Peter J. Holzer wrote: >>> On 2018-10-08 10:36:21 +1100, Chris Angelico wrote: How wide my indents are on my screen shouldn't influence your screen or your choices. >>>

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Bernhard M. Wiedemann
Bernhard M. Wiedemann added the comment: It does not need to be fixed tomorrow, but 2037 is too late, because by then there will be a lot of legacy systems around. (Un)fortunately many systems live 10+ years now -- ___ Python tracker

[issue34990] year 2038 problem in compileall.py

2018-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A reproducer in Python that can be added to test_compileall if needed : def test_compile_all_2038(self): with open(self.source_path, 'r') as f: os.utime(f.name, (2147558400, 2147558400)) # Jan 20, 2038 as touch

[issue34989] python-gdb.py fails with TypeError("'FakeRepr' object is not subscriptable") is gdb fails to read debug symbols

2018-10-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9252 stage: -> patch review ___ Python tracker ___ ___

[issue34726] Add support of checked hash-based pycs in zipimport

2018-10-15 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >