[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't this an expected behavior? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

RE: [OT] master/slave debate in Python

2018-09-26 Thread David Raymond
...Think about how you treat your computers - you have the power to discard them if they do not work correctly, or even if you just want to get a newer one. You have the power to kick them across the room and nobody will arrest you. Maybe you don't do those things (I would hope you don't kick

Re: [OT] master/slave debate in Python

2018-09-26 Thread Dan Purgert
David Raymond wrote: > [...] > HAL.open(ship.pod_bay.doors) I'm sorry Dave, I'm afraid I can't do that. -- |_|O|_| Registered Linux user #585947 |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281 --

Re: [OT] master/slave debate in Python

2018-09-26 Thread Ian Kelly
On Tue, Sep 25, 2018 at 10:48 PM Chris Angelico wrote: > > On Wed, Sep 26, 2018 at 2:36 PM Ian Kelly wrote: > > So, Chris, what have *you personally* done about real slavery where it > > still happens? > > > > If, as I'm guessing, the answer is "nothing" then it seems to me that > > you don't

Re: [OT] master/slave debate in Python

2018-09-26 Thread Brian Oney via Python-list
> PS: I'm not a great fan of it, but I think we all know that off-topic is > in a way what this list excels at. +1 An open source community thrives on being open. It also welcomes those who like to pick a fight for various, usually personal reasons. Has any heard of that Python language? I

[issue34751] Hash collisions for tuples

2018-09-26 Thread Tim Peters
Tim Peters added the comment: >> The two-liner above with the xor in the second line is >> exactly Bernstein 33A, followed by a permutation >> of 33A's _output_ space. > Not output space, but internal state ? 33A's output _is_ its internal state at the end. This is a distinction that

[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2018-09-26 Thread Eryk Sun
Eryk Sun added the comment: In a patch review [1] for issue 24505, I had a discussion with Toby Tobkin about extending the behavior of shutil.which() on Windows. This was to match the behavior of the CMD shell, including securing the search path via NeedCurrentDirectoryForExePath, searching

[issue34751] Hash collisions for tuples

2018-09-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > The two-liner above with the xor in the second line is exactly Bernstein 33A, > followed by a permutation of 33A's _output_ space. Not output space, but internal state (I assume that you do that operation inside the loop). It's replacing DJBX33A by a

[issue34521] test_socket.RecvmsgIntoSCMRightsStreamTest fails on AMD64 FreeBSD CURRENT Debug 3.x

2018-09-26 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +8992 stage: -> patch review ___ Python tracker ___ ___

Re: [OT] master/slave debate in Python

2018-09-26 Thread Chris Angelico
On Thu, Sep 27, 2018 at 7:05 AM Ian Kelly wrote: > > On Tue, Sep 25, 2018 at 10:48 PM Chris Angelico wrote: > > > > On Wed, Sep 26, 2018 at 2:36 PM Ian Kelly wrote: > > > So, Chris, what have *you personally* done about real slavery where it > > > still happens? > > > > > > If, as I'm guessing,

[issue34691] _contextvars missing in xmaster branch Windows build?

2018-09-26 Thread Helena Centanin
Helena Centanin added the comment: Good night I installed the python program at the start it appears this message Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> --

Re[2]: [OT] master/slave debate in Python

2018-09-26 Thread Brian Grawburg
This is right next to the objection of the use male and female to describe the two parts of a connector. I lament that snowflakes and such are trying desperately to enforce their quest for radical egalitarianism and see hidden agendas behind just about everything---except their own, of course.

[issue31425] Expose AF_QIPCRTR in socket module

2018-09-26 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +8993 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: clever exit of nested loops

2018-09-26 Thread Mark Lawrence
On 26/09/18 08:50, vito.detul...@gmail.com wrote: Hi Today I've added a couple of lines in my source code, and I'm very ashamed of it. it "runs", and I know what it does (for now), but it's "too clever". I have "abused" the "else" clause of the loops to makes a break "broke" more loops

[issue31425] Expose AF_QIPCRTR in socket module

2018-09-26 Thread Tal Einat
Tal Einat added the comment: New changeset f55c64c632af438d0daa043acdd95a5e74f31441 by Tal Einat in branch 'master': bpo-31425: fix versionadded in docs and add attribution in NEWS (GH-9595) https://github.com/python/cpython/commit/f55c64c632af438d0daa043acdd95a5e74f31441 --

Re: [OT] master/slave debate in Python

2018-09-26 Thread Larry Martell
On Wed, Sep 26, 2018 at 4:41 AM, Brian Oney via Python-list wrote: > "I have a vewwy great fwiend in Wome called 'Biggus Dickus'" > ... > "Can I go now, sir?" He has a wife, you know. You know what she's called? She's called... 'Incontinentia'. 'Incontinentia Buttocks'. --

Re: Re[2]: [OT] master/slave debate in Python

2018-09-26 Thread Ian Kelly
On Wed, Sep 26, 2018 at 3:10 PM Brian Grawburg wrote: > > This is right next to the objection of the use male and female to describe > the two parts of a connector. I lament that snowflakes and such are trying > desperately to enforce their quest for radical egalitarianism and see hidden >

[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily
Ned Deily added the comment: New changeset adf493227f1efd5d6b34f46b854142bf3b5a411c by Ned Deily in branch '3.6': bpo-34370: Update Tk 8.6 used with macOS installers https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c -- nosy: +ned.deily

[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily
Ned Deily added the comment: FYI, for the python.org binary macOS installers for the 3.7.1rc1 and 3.6.7rc1 releases, I cherry-picked a post-8.6.8 development snapshot of Tk 8.6 that should include Kevin's fix. I would appreciate any feedback one way or the other whether this version of Tk

[issue34370] Tkinter scroll issues on macOS

2018-09-26 Thread Ned Deily
Ned Deily added the comment: New changeset d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6 by Ned Deily in branch '3.7': bpo-34370: Update Tk 8.6 used with macOS installers https://github.com/python/cpython/commit/d9cfe5ed2c2c61eeae915b76f5e10aadbbb28da6 --

[RELEASE] Python 3.7.1rc1 and 3.6.7rc1 now available for testing

2018-09-26 Thread Ned Deily
Python 3.7.1rc1 and 3.6.7rc1 are now available. 3.7.1rc1 is the release preview of the first maintenance release of Python 3.7, the latest feature release of Python. 3.6.7rc1 is the release preview of the next maintenance release of Python 3.6, the previous feature release of Python. Assuming no

[issue28117] warning: dereferencing type-punned pointer will break strict-aliasing rules

2018-09-26 Thread ekul
ekul added the comment: I just got this set of warnings while building 3.6.6 on RasPi Debian9/ARM. Good to know the warning is spurious. Just finding my way here - is Serhiy's patch above a working 2016 fix for this that got stuck in review? I couldn't find a PR for it. If the warning _is_

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Matthias Klose
Matthias Klose added the comment: issue34530 was already fixed on 20180904, so there's something else... -- ___ Python tracker ___

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread STINNER Victor
STINNER Victor added the comment: Hum, to be clear, I suggest to close the issue (FIXED), since both failures have been fixed in development branches. -- ___ Python tracker

[issue32956] python 3 round bug

2018-09-26 Thread Mark Dickinson
Mark Dickinson added the comment: @jab: Did you see this message from the thread that Serhiy pointed to? https://mail.python.org/pipermail/python-dev/2008-January/075910.html Here's the sound bite version, but see the message for context: [Guido] > Wow. Do you have an opinion as to whether

[issue34808] bytes[0] != bytes[0:1]

2018-09-26 Thread ucyo
ucyo added the comment: Thank you for the answer. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue34670] Add set_post_handshake_auth for TLS 1.3

2018-09-26 Thread Dimitri John Ledkov
Dimitri John Ledkov added the comment: Will this be backported to the 2.7 branch as well? Pretty please =) -- nosy: +xnox ___ Python tracker ___

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @doko As an update 3.7.1rc1 is available . The fixes should be there. I think they are worth checking out to see if the cases still fail or if you can add the links for the branches 20180925 and 20180911 snapshot. I can do a clean rebuild of these

[issue31551] test_distutils fails if current directory contains spaces

2018-09-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is a similar issue with whitespace in filenames causing failure in bdist_rpm tracked at issue809163. It has test cases but unfortunately the issue didn't move forward and has only patches. I tried the patches but none of them seem to fix the

[issue34744] New %(flag)s format specifier for argparse.add_argument help string

2018-09-26 Thread paul j3
paul j3 added the comment: The preferred way of adding new features to the Formatter is to subclass it, and modify one or more methods. That's what the existing alternative formatters do. A user can easily create such a subclass, and use it with their own parser, without having to modify

[issue34803] argparse int type does not accept scientific notation

2018-09-26 Thread paul j3
paul j3 added the comment: The `type` parameter is normally a function (or more generally a callable). When given a string it should convert it as needed, or raise an error. In your example that function is the stock, 'int()'. Test `int('123')`, `int('1e3')` etc for yourself to see what

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-26 Thread Philippe Wagnieres
Philippe Wagnieres added the comment: Thank for your support. Sorry I have no time to give you an answer and work on with Python, but I have understand the solution. Best Regards Philippe Wagnières Chalamont 6 1400 Yverdon-les-Bains Suisse tel.: +41 76 367 27 43 Le 24.09.2018 à 17:42,

[issue21109] tarfile: Traversal attack vulnerability

2018-09-26 Thread shashank
shashank added the comment: Added tests. Patch file: safetarfile-4.diff Following works with 456 tests passed, after doing `make clean && make` # ./python -m unittest -v test.test_tarfile Attached patch is on top of master's commit: commit 2aaf98c16ae3070378de523a173e29644037d8bd (HEAD ->

[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the only way to make sure that proactor event loop is stable -- starting to use it everywhere on Windows. Let's do it. -- ___ Python tracker

Re: [OT] master/slave debate in Python

2018-09-26 Thread Robin Becker
On 25/09/2018 23:46, Thomas Jollans wrote: .. I have to say I find these unspecified attacks on "SJWs" rather disturbing. Assuming for a moment that "SJW" is a viable insult (that's the way you appear to be using it, though I wouldn't use it myself, in that way or probably at all) -

[issue34793] Remove support for "with (await asyncio.lock):"

2018-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: I don't care too much. Maybe removal is just fine. `with await ...` looks awkward anyway -- ___ Python tracker ___

Re: [OT] master/slave debate in Python

2018-09-26 Thread David Palao
Hello, My opinion is that the terms "master/slave" describe well some situations. They could be seen by some people as offensive (although unfortunately sometimes true, even today) when applied to persons. But it is not offensive when applied to processes in a computer. They are not living

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2018-09-26 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2018-09-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: In my opinion, we should don't change the behavior. Signal handlers should be processed in main thread at the end, that's how Python works for regular synchronous API. Mentioning it in the doc makes sense. Would you make a pull request? --

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-26 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: -koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-09-26 Thread Nathaniel Smith
Nathaniel Smith added the comment: I didn't know this, but apparently the SSLKEYLOGFILE envvar is a de-facto standard: chrome, firefox, and libcurl all check for this envvar, and if found they log TLS secrets to the file in a specific format. Reports of projects supporting this: -

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Matthias Klose
New submission from Matthias Klose : two distutils tests fail when running the tests from an installed location. 3.7 branch 20180925, succeeded with a 20180911 snapshot. Is there any locale setting required? == ERROR:

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Matthias Klose
Change by Matthias Klose : -- nosy: +serhiy.storchaka, steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-09-26 Thread Christian Heimes
Christian Heimes added the comment: Cory contributed a high level API for OpenSSL 1.1.1, https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_keylog_callback.html I already have a patch somewhere on my disk. The patch is trivial if we ignore OpenSSL < 1.1.1. --

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-09-26 Thread Christian Heimes
Christian Heimes added the comment: Here is a horribly hacky and simple implementation. I have a more elaborate implementation that does correct locking and has no global state. static BIO *bio_keylog = NULL; static void keylog_callback(const SSL *ssl, const char *line) {

Re: clever exit of nested loops

2018-09-26 Thread Chris Angelico
On Wed, Sep 26, 2018 at 5:56 PM wrote: > > Hi > Today I've added a couple of lines in my source code, and I'm very ashamed of > it. > it "runs", and I know what it does (for now), but it's "too clever". > I have "abused" the "else" clause of the loops to makes a break "broke" more > loops > > >

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-09-26 Thread Johannes Frank
Johannes Frank added the comment: Hi Christian I would be willing to give this a try, could you publish or send me that more elaborate code? Thanks Johannes On Wed, 26 Sep 2018 at 09:25, Christian Heimes wrote: > > Christian Heimes added the comment: > > Here is a horribly hacky and simple

[issue34807] pathlib.[r]glob fails when the toplevel directory is not readable, whereas glob.glob "succeeds"

2018-09-26 Thread Antony Lee
New submission from Antony Lee : After $ mkdir -p foo/bar && chmod 000 foo one gets In [1]: glob.glob("foo/bar") Out[1]: [] but In [2]: list(Path("foo/bar").glob("*")) gives a PermissionError. I'm not arguing that pathlib should reproduce glob's behavior (in fact I think

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The test in distutils/tests/test_log.py matches the current code (with changes added in issue34421), but the code in distutils/log.py doesn't match the current code. Looks like the stdlib and tests are unsynchronized. --

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

2018-09-26 Thread Pekka Klärck
New submission from Pekka Klärck : I had a use case where `MyClass.__subclasses__()` returning classes in the definition order would have made the code simpler. They seemed to be returned in that order, but because the docs didn't say anything about it [1] I did some searching to find out can

clever exit of nested loops

2018-09-26 Thread vito . detullio
Hi Today I've added a couple of lines in my source code, and I'm very ashamed of it. it "runs", and I know what it does (for now), but it's "too clever". I have "abused" the "else" clause of the loops to makes a break "broke" more loops for i in range(10): print(f'i: {i}')

[issue34751] Hash collisions for tuples

2018-09-26 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > There are _two_ hash functions at play in that collision: the tuple hash > function, and the integer hash function. Regardless of whether the _tuple_ > hash function does [anything involving just `t`], that only directly affects > the result of the

[issue30156] PYTHONDUMPREFS segfaults on exit

2018-09-26 Thread STINNER Victor
STINNER Victor added the comment: Note: I reported a similar issue which has then been marked as a duplicate of this one: bpo-34223. Copy of my first message: --- It seems like Python has an invalid object somewhere. PYTHONDUMPREFS=1 makes Python crash at exit. $ PYTHONDUMPREFS=1 ./python

Re: clever exit of nested loops

2018-09-26 Thread Peter Otten
vito.detul...@gmail.com wrote: > Hi > Today I've added a couple of lines in my source code, and I'm very ashamed > of it. it "runs", and I know what it does (for now), but it's "too > clever". I have "abused" the "else" clause of the loops to makes a break > "broke" more loops > > > for i

[issue34806] distutils tests fail with recent 3.7 branch

2018-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have reproduced this error by checking out the revision before issue34421 changes. git checkout 77b92b15a5e5c84b91d3fd9d02f63db432fa8903~ Lib/distutils/log.py ./python -m test -v -m test_log test_distutils --

[issue21109] tarfile: Traversal attack vulnerability

2018-09-26 Thread Tal Einat
Tal Einat added the comment: shashank, you're making good progress on this! The tests should also put SafeTarFile through all of the tests for TarFile, considering that it is being described as a drop-in replacement. You should look through the existing tests for other modules which do

[issue28556] typing.py upgrades

2018-09-26 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +8985 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-26 Thread INADA Naoki
Change by INADA Naoki : -- dependencies: -Add tests for PEP 468 and PEP 520 resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-26 Thread miss-islington
miss-islington added the comment: New changeset d45a9613402b686f8afd3dd5b6acf8141f14d711 by Miss Islington (bot) in branch '3.6': [3.6] bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624) (GH-9583)

[issue34806] distutils tests fail with recent 3.7 branch

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

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

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

<    1   2