[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-21 Thread Ivan Pozdeev via Python-Dev
ond part, I just really don't like the 'ee'. Interestingly, you could also use this to match multiple prefixes or suffixes and find out *which one* matched (since the existing methods don't report that):     s2 = s.replaceend(suffixes, '')     suffix_len = le

[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-21 Thread Ivan Pozdeev via Python-Dev
On 22.03.2020 7:46, Steven D'Aprano wrote: On Sun, Mar 22, 2020 at 06:57:52AM +0300, Ivan Pozdeev via Python-Dev wrote: Does it need to be separate methods? Yes. Overloading a single method to do two dissimilar things is poor design. They are similar. We're removing stuff from

[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-22 Thread Rob Cliffe via Python-Dev
the C implementation would be - Clarified that returning ``self`` is an optimization - Added links to past discussions on Python-Ideas and Python-Dev - Specified ability to accept a tuple of strings - Shorter abstract section and fewer stdlib examples - Mentioned - Typ

[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-23 Thread Rob Cliffe via Python-Dev
>>> s 'Baz' and:: >>> s = 'FooBar' * 100 + 'Baz' >>> prefixes = ('Bar', 'Foo') >>> while s.startswith(prefixes): s = s.cutprefix(prefixes) >>> s 'Baz' _

[Python-Dev] MacOS pkg bundles openssl, but doesn't include a cert bundle?

2020-03-23 Thread Matt Billenstein via Python-Dev
Matt Billenstein m...@vazor.com http://www.vazor.com/ ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at

[Python-Dev] Re: MacOS pkg bundles openssl, but doesn't include a cert bundle?

2020-03-23 Thread Matt Billenstein via Python-Dev
Thanks Ned - confirmed that works in 2.7.17 - maybe it was there in 2.7.16 and I just overlooked that messaging in the last step. m On Mon, Mar 23, 2020 at 09:11:09PM -0400, Ned Deily wrote: > On Mar 23, 2020, at 20:30, Matt Billenstein via Python-Dev > wrote: > > Hi, installin

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-25 Thread Ivan Pozdeev via Python-Dev
=>  --> print(socket.AF_UNIX) AddressFamily.AF_UNIX    ==>  socket.AF_UNIX Thoughts? -- ~Ethan~ _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/pytho

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-25 Thread Ivan Pozdeev via Python-Dev
On 26.03.2020 2:41, Chris Angelico wrote: On Thu, Mar 26, 2020 at 10:38 AM Ivan Pozdeev via Python-Dev wrote: I'm skeptical about anything that hides an object's "true nature": this is a major landmine in diagnostics because it lies to you about what you are looking at a

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-25 Thread Ivan Pozdeev via Python-Dev
On 26.03.2020 4:10, Chris Angelico wrote: On Thu, Mar 26, 2020 at 12:08 PM Ivan Pozdeev via Python-Dev wrote: On 26.03.2020 2:41, Chris Angelico wrote: On Thu, Mar 26, 2020 at 10:38 AM Ivan Pozdeev via Python-Dev wrote: I'm skeptical about anything that hides an object's &q

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-26 Thread Ivan Pozdeev via Python-Dev
On 26.03.2020 11:59, Serhiy Storchaka wrote: 26.03.20 01:35, Ivan Pozdeev via Python-Dev пише: E. g. in this case, AF_UNIX is a member of some entity called "AddressFamily" -- so I would search the code for "AddressFamily" to see what I'm looking at and what else I

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-27 Thread Ivan Pozdeev via Python-Dev
On 26.03.2020 19:24, Ethan Furman wrote: On 03/25/2020 06:53 PM, Ivan Pozdeev via Python-Dev wrote: A diagnostic is always done by the same algorithm: 1) Identify the exact place in code where the problem manifests itself 2) Examine the state of the program at that moment to find out which if

[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-29 Thread Rob Cliffe via Python-Dev
d why they were rejected, seems sufficient. Rob Cliffe _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://

[Python-Dev] Re: [Python-ideas] Re: reversed enumerate

2020-04-01 Thread Andrew Barnert via Python-Dev
t do you get? You presumably don’t even need to look that up or try it out. It would be pretty confusing if it were different without the tuple. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https:

[Python-Dev] Re: PEP 617: New PEG parser for CPython

2020-04-02 Thread Matt Billenstein via Python-Dev
e top N packages and run some script over the python files contained therein, but I can't seem to find it atm. m -- Matt Billenstein m...@vazor.com http://www.vazor.com/ ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an em

[Python-Dev] Re: PEP 617: New PEG parser for CPython

2020-04-02 Thread Matt Billenstein via Python-Dev
ckages.py. Very nice! m -- Matt Billenstein m...@vazor.com http://www.vazor.com/ ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.pyt

[Python-Dev] Re: PEP: Modify the C API to hide implementation details

2020-04-11 Thread Ivan Pozdeev via Python-Dev
erted to HPy. The transition from Python 2 to Python 3 showed that migrations are very slow and never fully complete. The PEP also rely on the assumption that `Most C extensions don't rely directly on CPython internals`_ and so will remain compatible with the new opaque C API. The concept o

[Python-Dev] Re: PEP: Modify the C API to hide implementation details

2020-04-14 Thread Ronald Oussoren via Python-Dev
th a tag for the object type. Isn’t that already possible to do with the current API contract (when ignoring the stable ABI)? You’re already supposed to use accessor macro’s to access and modify attributes in the PyObject structure, those can be modified to do something else for tagged pointers

[Python-Dev] Re: PEP: Modify the C API to hide implementation details

2020-04-15 Thread Ronald Oussoren via Python-Dev
adding a level of indirection, and could probably be fixed in a similar way in Python. Ronald — Twitter / micro.blog: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ <https://blog.ronaldoussoren.net/> _______ Python-Dev mailing list -- python-dev@py

[Python-Dev] Re: Improvement to SimpleNamespace

2020-04-15 Thread Ivan Pozdeev via Python-Dev
hon.org/issue40284 . There was a suggestion to create a different type for this, but I don't see the point in substantially duplicating everything SimpleNamespace already does just so we can add some supporting dunder methods. Please add more commentary so we can figure-out the best way

[Python-Dev] Re: Improvement to SimpleNamespace

2020-04-15 Thread Ivan Pozdeev via Python-Dev
On 16.04.2020 0:34, Glenn Linderman wrote: On 4/15/2020 12:47 PM, Ivan Pozdeev via Python-Dev wrote: When writing a proof-of-concept implementation, however, I bumped into the need to distinguish which of the child objects are containers (thus need to be wrapped as well) and which are the

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-21 Thread Ronald Oussoren via Python-Dev
ng I do in PyObjC (fun with metaclasses, in C code). BTW. I don’t have a an opinion on the PEP itself at this time, mostly because it doesn’t match my current use cases. Ronald — Twitter / micro.blog: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ _

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-22 Thread Ronald Oussoren via Python-Dev
nting plugin bundles for Objective-C applications in Python. These currently share the same interpreter, which can cause problems. Subinterpreters could be helpful there to isolate code, but that would require having an API that conditionally initialises the Python runtime (similar to PyGILState_Ensu

[Python-Dev] Re: Comments on PEP 554 (Multiple Interpreters in the Stdlib)

2020-04-22 Thread Rob Cliffe via Python-Dev
t "keywords" in the subject so that he can easily search for it months later. In other words I try to make my emails a valuable resource. Rob Cliffe ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-d

[Python-Dev] Re: Improvement to SimpleNamespace

2020-04-27 Thread Rob Cliffe via Python-Dev
could implement x..y to mean x['y'] and then you could write     obj..abc..def..ghi Still fairly concise, but warns that what is happening is not normal attribute lookup. On 15/04/2020 22:34, Glenn Linderman wrote: On 4/15/2020 12:47 PM, Ivan Pozdeev via Python-Dev wrote: When writing a p

[Python-Dev] Re: killing static types (for sub-interpreters?)

2020-04-28 Thread Ronald Oussoren via Python-Dev
issue40255>> (which contains a patch that disables refcount updates for arbitrary objects). Ronald — Twitter / micro.blog: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ _______________ Python-Dev mailing list -- python-dev@python.org To unsu

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-29 Thread Ronald Oussoren via Python-Dev
g an API that conditionally initialises the Python runtime >> (similar to PyGILState_Ensure, but for the runtime itself). > > Ah, interesting. > >> This wouldn’t fix all problems because you can’t have two different python >> versions in one proces, but would be better

[Python-Dev] Re: PoC: Subinterpreters 4x faster than sequential execution or threads on CPU-bound workaround

2020-05-05 Thread Joseph Jenne via Python-Dev
f these tasks are already tracked in Eric Snow's "Multi Core Python" project: https://github.com/ericsnowcurrently/multi-core-python/issues Victor -- Night gathers, and now my watch begins. It shall not end until my death. _______________ Python-Dev

[Python-Dev] Status of PEP 543 in 2020

2020-05-10 Thread Nimish Telang via Python-Dev
ctionality (e.g. https://github.com/python/cpython/pull/2449) but it appears that changes have been shelved in favor of PEP 543. Is there any hope for further development on ssl? Is PEP 543 abandoned? Nimish _______ Python-Dev mailing list -- python-dev@

[Python-Dev] Re: [core-workflow] Core Workflow change: new commit to previously approved PR now requires re-review

2020-05-15 Thread Daniel Scott via Python-Dev
Sent from Yahoo Mail on Android On Fri, May 15, 2020 at 6:33 PM, Mariatta wrote: X-post to python-committers, python-dev, and core-workflow mailing list I have just deployed a change to bedevere-bot to address the security concern related to automerging.(https://github.com/python/core

[Python-Dev] Re: PEP 618: Add Optional Length-Checking To zip

2020-05-20 Thread Joseph Jenne via Python-Dev
e advantage to a short thing like `strict=`. I don't care so much about the particular spelling here to argue among any of those, I primarily want the feature to exist. I expect we're entering steering council territory for a decision soon... -gps _

[Python-Dev] Re: Repr: where to place the address and additional info?

2020-05-29 Thread Ivan Pozdeev via Python-Dev
at {address:#x} {details}> [1] https://bugs.python.org/issue24391 _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived a

[Python-Dev] Re: My take on multiple interpreters (Was: Should we be making so many changes in pursuit of PEP 554?)

2020-06-10 Thread Ronald Oussoren via Python-Dev
ites without having looked at its source code). I have another possible use case: Independent plugins written in Python in native applications written in other languages. That doesn’t mean that is worthwhile to complicate the CPython code base for these. I have no opinion on that, both beca

[Python-Dev] Re: Final reminder: 3.7.8 / 3.6.11 cutoff Monday, last non-security bugfixes for 3.7.x

2020-06-12 Thread Ivan Pozdeev via Python-Dev
e-for-3-7-bugfixes/4362 -- Ned Deily n...@python.org -- [] _______________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archi

[Python-Dev] Re: Final reminder: 3.7.8 / 3.6.11 cutoff Monday, last non-security bugfixes for 3.7.x

2020-06-12 Thread Ivan Pozdeev via Python-Dev
On 12.06.2020 16:08, Ned Deily wrote: On Jun 12, 2020, at 08:25, Ivan Pozdeev via Python-Dev wrote: Why not take a look at the list of open issues for 3.7 with PRs then? There are 702 as of now. https://bugs.python.org/issue?%40sort0=creation&%40sort1=&%40group0=&%40group1

[Python-Dev] Re: Final reminder: 3.7.8 / 3.6.11 cutoff Monday, last non-security bugfixes for 3.7.x

2020-06-12 Thread Ivan Pozdeev via Python-Dev
On 13.06.2020 3:49, Łukasz Langa wrote: On 12 Jun 2020, at 19:51, Ivan Pozdeev via Python-Dev mailto:python-dev@python.org>> wrote: I would doubt the quality of tags maintenance at Github, too. E.g.https://github.com/python/cpython/pull/12131is labeled 3.7 and 3.8 at BPO but has no ba

[Python-Dev] Re: How to specify optional support of arguments

2020-06-14 Thread Ivan Pozdeev via Python-Dev
___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@pytho

[Python-Dev] Re: How to specify optional support of arguments

2020-06-14 Thread Ivan Pozdeev via Python-Dev
On 15.06.2020 8:45, Serhiy Storchaka wrote: 14.06.20 23:45, Ivan Pozdeev via Python-Dev пише: 1. The documentation clearly says that it's supported depending on OS flavor -- so if I want to know if I can supply it, I need to rather check `os.name`. Those members are thus redundant.   

[Python-Dev] REPL output bug

2020-06-15 Thread Rob Cliffe via Python-Dev
its" or "license" for more information. >>> import sys, time >>> for i in range(1,11): ...     sys.stdout.write('\r%d' % i) ... time.sleep(1) ... 10>>> # displays '1', '2' ... '10' as intended. Best wishes Rob Cliffe _

[Python-Dev] Re: REPL output bug

2020-06-15 Thread Ivan Pozdeev via Python-Dev
On 12.06.2020 11:01, Rob Cliffe via Python-Dev wrote: If I run the following program (using Python 3.8.3 on a Windows 10 laptop): import sys, time for i in range(1,11):     sys.stdout.write('\r%d' % i)     time.sleep(1) As intended, it displays '1', replacing it at 1-seco

[Python-Dev] Re: REPL output bug

2020-06-15 Thread Joseph Jenne via Python-Dev
On 2020-06-15 15:26, Ivan Pozdeev via Python-Dev wrote: On 12.06.2020 11:01, Rob Cliffe via Python-Dev wrote: If I run the following program (using Python 3.8.3 on a Windows 10 laptop): import sys, time for i in range(1,11):     sys.stdout.write('\r%d' % i)     time.sleep(1) As in

[Python-Dev] Re: REPL output bug

2020-06-16 Thread Ivan Pozdeev via Python-Dev
On 16.06.2020 1:40, Joseph Jenne via Python-Dev wrote: On 2020-06-15 15:26, Ivan Pozdeev via Python-Dev wrote: On 12.06.2020 11:01, Rob Cliffe via Python-Dev wrote: If I run the following program (using Python 3.8.3 on a Windows 10 laptop): import sys, time for i in range(1,11

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-23 Thread Rob Cliffe via Python-Dev
e that already uses that variable for its own purposes. Rob Cliffe ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ M

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-23 Thread Rob Cliffe via Python-Dev
    case (_, _): to match any 2-tuple, so:     case _: would match any value, and can thus already serve as the default. Consistency with what?  Where else is `_` currently used as a wildcard? _______ Python-Dev mailing list -- python-dev@python.org To unsub

[Python-Dev] Intended invariants for signals in CPython

2020-06-24 Thread Yonatan Zunger via Python-Dev
Engineer and Chief Ethics Officer He / Him zun...@humu.com 100 View St, Suite 101 Mountain View, CA 94041 Humu.com <https://www.humu.com> · LinkedIn <https://www.linkedin.com/company/humuhq> · Twitter <https://twitter.com/humuinc> _____

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-24 Thread Yonatan Zunger via Python-Dev
t; > Mountain View, CA 94041 > > Humu.com <https://www.humu.com> · LinkedIn > <https://www.linkedin.com/company/humuhq> · Twitter > <https://twitter.com/humuinc> > -- Yonatan Zunger Distinguished Engineer and Chief Ethics Officer He / Him zun...@humu.com

[Python-Dev] Re: PEP 622: Structural Pattern Matching -- followup

2020-06-25 Thread Rob Cliffe via Python-Dev
#x27; or 'foo?' to mark a variable binding and '?' for a wildcard.) -- --Guido van Rossum (python.org/~guido <http://python.org/~guido>) /Pronouns: he/him //(why is my pronoun here?)/ <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-chang

[Python-Dev] Re: The Anti-PEP

2020-06-25 Thread Ivan Pozdeev via Python-Dev
611, https://www.python.org/dev/peps/pep-0611/. There were many criticisms of it on this mailing list, and I can promise the PEP author won't be upset by an Anti-PEP :) Anyone care to volunteer? Cheers, Mark. ___________ Python-Dev mailing list -- python-dev

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-25 Thread Joseph Jenne via Python-Dev
cripting, which isn't really a bad thing in general, but the second form seems to lose some readability to me -- Joseph ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://ma

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-25 Thread Yonatan Zunger via Python-Dev
x27;s a long-standing bug: > https://bugs.python.org/issue29971 > > Regards > > Antoine. > _______ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-25 Thread Yonatan Zunger via Python-Dev
tory...) should be interruptible so that Ctrl-C works >> in >> > an interactive prompt. >> > >> > That’s not really true though right? Locks can block the REPL. >> >> On POSIX they don't. On Windows it's a long-standing bug: >> htt

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-25 Thread Yonatan Zunger via Python-Dev
I had not -- thank you! On Thu, Jun 25, 2020 at 1:49 PM Chris Jerdonek wrote: > On Wed, Jun 24, 2020 at 5:15 PM Yonatan Zunger via Python-Dev < > python-dev@python.org> wrote: > >> That said, the meta-question still applies: Are there things which are >> gen

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-25 Thread Yonatan Zunger via Python-Dev
e to say it's a damned clever solution to the problem. On Thu, Jun 25, 2020 at 6:35 PM Yonatan Zunger wrote: > I had not -- thank you! > > On Thu, Jun 25, 2020 at 1:49 PM Chris Jerdonek > wrote: > >> On Wed, Jun 24, 2020 at 5:15 PM Yonatan Zunger via Python-Dev < >&

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-25 Thread Yonatan Zunger via Python-Dev
limb that particular mountain yet, but I figured I'd see what obvious holes other people could poke in it. Thanks for your help! On Thu, Jun 25, 2020 at 1:27 PM Antoine Pitrou wrote: > On Thu, 25 Jun 2020 11:18:13 -0700 > Yonatan Zunger via Python-Dev wrote: > > Also, just to

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-26 Thread Rob Cliffe via Python-Dev
spelling: `values` and `value` 3) At the end of the "Named sub-patterns" section: "PEP 572"    It would be more helpful to say "PEP 572 (Assignment Expressions)" Rob Cliffe _______ Python-Dev mailing list

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-26 Thread Rob Cliffe via Python-Dev
On 23/06/2020 20:35, Chris Angelico wrote: On Wed, Jun 24, 2020 at 5:30 AM Rob Cliffe via Python-Dev wrote: The PEP is great, but this strikes me as horribly confusing, given that 401|403|404 is already legal syntax. IIUC any legal expression can come between `case` and `:`, but expressions

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-26 Thread Rob Cliffe via Python-Dev
h seems to refer to those sequence patterns using () rather than []. Probably it makes more sense for a quick read to remove the "| group_pattern" from the simplified grammar, it looks more like an intermediate construct. _______ Python-Dev ma

[Python-Dev] Re: Intended invariants for signals in CPython

2020-06-29 Thread Yonatan Zunger via Python-Dev
5:15 PM Yonatan Zunger via Python-Dev < >> python-dev@python.org> wrote: >> >>> That said, the meta-question still applies: Are there things which are >>> generally intended *not* to be interruptible by signals, and if so, is >>> there some consistent

[Python-Dev] Re: Recent PEP-8 change (Antoine Pitrou)

2020-07-02 Thread Ivan Pozdeev via Python-Dev
e that this is warranted despite the inconveniences IMO. ChrisA ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at ht

[Python-Dev] Re: Re Re: Recent PEP-8 change (Ivan Pozdeev)

2020-07-02 Thread Ivan Pozdeev via Python-Dev
torical' history, as a rule (as opposed to git history). I think similar damage is done in this case, when the record, and opportunity to point to and learn from it, is erased. David --- Date: Thu, 2 Jul 2020 21:33:56 +0300 From: Ivan Pozdeev Subj

[Python-Dev] Re: Flexible assignment targets

2020-07-02 Thread Rob Cliffe via Python-Dev
not quite so good when comparing with actual values:     match value:         try 42:             ...         try -1:             ...   And it has the virtue of adding one less keyword. _______________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send a

[Python-Dev] Re: Recent PEP-8 change (Antoine Pitrou)

2020-07-03 Thread Ivan Pozdeev via Python-Dev
sages that could be seriously improved. We don't though because commits are immutable. You can revert them but we never downright replace them with different ones. Otherwise what's the point in me signing release tags? Per https://mail.python.org/archives/list/python-de

[Python-Dev] Re: Recent PEP-8 change (Antoine Pitrou)

2020-07-03 Thread Ivan Pozdeev via Python-Dev
On 03.07.2020 15:01, Henk-Jaap Wagenaar wrote: On Fri, 3 Jul 2020 at 08:50, Ivan Pozdeev via Python-Dev mailto:python-dev@python.org>> wrote: Per https://mail.python.org/archives/list/python-dev@python.org/message/KQSHT5RZPPUBBIALMANFTXCMIBGSIR5Z/, we're talking about an

[Python-Dev] Re: Recent PEP-8 change (Antoine Pitrou)

2020-07-03 Thread Ivan Pozdeev via Python-Dev
d overwrite history!). -- Regards, Ivan ___________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/ar

[Python-Dev] PEP 622 railroaded through?

2020-07-03 Thread Rob Cliffe via Python-Dev
was built.  A fait accompli.  So there will inevitably be resistance from the developers to accept changes suggested on python-dev.  And since the PEP has Guido's authority behind it, I think it is likely that it will eventually be accepted pretty much as it was originally written. This

[Python-Dev] Re: In case you're wondering about 3.5.10rc1

2020-07-04 Thread Ivan Pozdeev via Python-Dev
tionality is broken on a popular OS. Since it's in "security fixes only" mode, you can just claim that anything beyond that, compatibility with anything included, is not guaranteed. You had no problems using that defense before in https://mail.python.org/archives/list/python-dev@

[Python-Dev] Re: [OT] I'm unsubscribing from this tire fire (formerly known as python-dev)

2020-07-06 Thread Ivan Pozdeev via Python-Dev
e term "tire fire": A horrifying mess, either literally or figuratively foul-smelling, that seems to last forever. The term describes my current view of python-dev perfectly. It has always been a problematic and mentally draining place for, sometimes even toxic. But the recent PEP-8 di

[Python-Dev] Re: PEP 622 railroaded through?

2020-07-07 Thread Rob Cliffe via Python-Dev
with full reference implementations that have ended up getting rejected; it's not a guarantee that it'll end up getting merged. Hope that lessens your fears a bit :) ChrisA ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe

[Python-Dev] Re: PEP 622: Structural Pattern Matching -- followup

2020-07-07 Thread Rob Cliffe via Python-Dev
ecided. Rob Cliffe ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-08 Thread Rob Cliffe via Python-Dev
r        would be a capture variable (contrary to the PEP)     ==mod.var    would be a load-and-compare value Which may be controversial, but seems to have more overall consistency. _______________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-09 Thread Rob Cliffe via Python-Dev
liffe ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/me

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-11 Thread Rob Cliffe via Python-Dev
mmediate reaction is one of horror.  I'd assumed that a case that failed to match would have no effect. Rob Cliffe _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.or

[Python-Dev] PEP 622 constant value syntax idea

2020-07-15 Thread Mohammad Foroughi via Python-Dev
rts of python but the "global" keyword is already implemented so it would be easy to understand. Thank you for your work on python and the new pattern matching PEP it's a feature I can't wait to use._______ Python-Dev mailing list -- python-dev@

[Python-Dev] Re: PEP 622: Structural Pattern Matching -- followup

2020-07-19 Thread Rob Cliffe via Python-Dev
On 08/07/2020 16:15, MRAB wrote: On 2020-07-08 03:08, Rob Cliffe via Python-Dev wrote: Why not use '=' to distinguish binding from equality testing:       case Point(x, =y): # matches a Point() with 2nd parameter equal to y; if it does, binds to x. This would allow a future (

[Python-Dev] Re: PEP 622 constant value syntax idea

2020-07-20 Thread Rob Cliffe via Python-Dev
On 16/07/2020 08:16, Baptiste Carvello wrote: Hello, Le 15/07/2020 à 13:37, Mohammad Foroughi via Python-Dev a écrit : Hi, I had an idea regarding the pattern matching issue of comparing with a previous constant variable instead of assigning to a new local variable. I'm not sure if thi

[Python-Dev] Re: datetime module refactoring: folder vs parallel private modules

2020-07-20 Thread Ivan Pozdeev via Python-Dev
<https://github.com/python/cpython/pull/20472> is currently done in such a way that the ability to backport changes from post-refactoring to pre-refactoring branches is preserved; I have not checked but I /think/ we should be able to do the same thing with the other strategy as well. _

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-20 Thread Rob Cliffe via Python-Dev
top them from distracting visually from other suites that are indented the same as 'match'.  (I.e. other program components of equal status.) (If 'else' were allowed after 'match', I would argue that it should also be indented, for the same reasons, and because it i

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-21 Thread Rob Cliffe via Python-Dev
ariables is counter-intuitive unless you explicitly learn the rules. You can't deduce it (there rules don't exist anywhere else). This feature is central of the PEP and will be used, and will introduce subtle bugs when misused. That's why I consider the rules you stated is not the right way for this feature, and that we s

[Python-Dev] Re: PEP 622: Structural Pattern Matching -- followup

2020-07-25 Thread Rob Cliffe via Python-Dev
to mark a variable binding and '?' for a wildcard.) -- --Guido van Rossum (python.org/~guido <http://python.org/~guido>) /Pronouns: he/him //(why is my pronoun here?)/ <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>

[Python-Dev] Re: PEP 622: Structural Pattern Matching -- followup

2020-07-26 Thread Rob Cliffe via Python-Dev
ng line will not work? Is this one of the "two bugs" that Mark Shannon alluded to? (I have read every message in the threads and I don't remember them being spelt out.) And I'm curious what the other one is (is it binding to a variable `v`?). Best wishes Rob Cliffe __

[Python-Dev] Re: PEP 622: Structural Pattern Matching -- followup

2020-07-26 Thread Rob Cliffe via Python-Dev
rk a variable binding and '?' for a wildcard.) -- --Guido van Rossum (python.org/~guido <http://python.org/~guido>) /Pronouns: he/him //(why is my pronoun here?)/ <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> ______

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-30 Thread Rob Cliffe via Python-Dev
y required when the default is not what is wanted, but could be added regardless if the author felt it added clarity. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.py

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-31 Thread Ivan Pozdeev via Python-Dev
traditionally does will be of little help when encountering a PEP 622 match statement for the first time. Cheers, //arry/ _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/m

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-31 Thread Rob Cliffe via Python-Dev
On 31/07/2020 17:24, Rik de Kort via Python-Dev wrote: 1. Semantic operator overloading in generic contexts is very different from this use case. It's surrounded by a clear context. 2. Python programmer intuition varies across python programmers, and I would find it hella unintuitive if

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-08-05 Thread Rob Cliffe via Python-Dev
Welcome to python-dev, Rik!  Of course you can email to this list. On 30/07/2020 14:30, Rik de Kort via Python-Dev wrote: I think adding the Walrus operator is trying to solve a problem that doesn't exist. Compare the example from the PEP:     [snip] case (x, y, z): [snip]

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-08-05 Thread Rob Cliffe via Python-Dev
quot; is a short keyword that already exists and matches up with "as". What about 'match'?  Not as short, but fairly intuitive:     case (x, y, match Z):         print(f'A point whose z-coordinate equals {Z}') ___________ Python-Dev

[Python-Dev] Premature Destruction of Shared Memory

2020-08-06 Thread Vinay Sharma via Python-Dev
issue and solution 5 is currently being discussed here <https://bugs.python.org/issue38119>._______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python

[Python-Dev] Re: [python-committers] Upcoming 3.7.9 and 3.6.12 Security Releases

2020-08-12 Thread Vinay Sharma via Python-Dev
wrote: > > https://pypi.org/project/check-python-vuln/ > <https://pypi.org/project/check-python-vuln/> ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mai

[Python-Dev] Installation issue on Python-3.5.9 ...

2020-08-20 Thread Saikat Das via Python-Dev
nclude/linux/random.h:38: error: expected specifier-qualifier-list before '__u32'/usr/include/linux/random.h:42: error: expected specifier-qualifier-list before '__u32'conftest.c:350: error: 'GRND_NONBLOCK' undeclared (first use in this function)conftest.c:350:

[Python-Dev] Re: PR stuck in Travis

2020-08-21 Thread Ivan Pozdeev via Python-Dev
the author to push an empty commit, that probably would do it, but I'd consider this a last resource. Did you suffer from this before? Which is the recommended course of action? Thanks! -- Regards, Ivan -- Regards, Ivan _______ Python-De

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-09-03 Thread Rob Cliffe via Python-Dev
ge. +1 _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.o

[Python-Dev] Re: PEP 632: Deprecate distutils module

2020-09-05 Thread Ivan Pozdeev via Python-Dev
pyright = This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://ma

[Python-Dev] Re: PEP 632: Deprecate distutils module

2020-09-05 Thread Ivan Pozdeev via Python-Dev
Then, as Victor said, it will have to be bundled into Python's codebase. On 05.09.2020 11:06, Emily Bowman wrote: On Sat, Sep 5, 2020 at 12:37 AM Ivan Pozdeev via Python-Dev mailto:python-dev@python.org>> wrote: As I wrote in https://stackoverflow.com/questions/25337706/se

[Python-Dev] Where it is decided whether "lib" or "lib64" ends up in sys.path on a POSIX (non MacOS) system?

2020-10-03 Thread Mikhail Golubev via Python-Dev
l "lib" in sys.path, not its "lib64" link. I'm wondering what's controlling this behavior. Modules/getpath.c doesn't mention architecture-dependent lib directories anywhere, at least at first glance. Could someone please give me a hint about where to look in

[Python-Dev] Re: Where it is decided whether "lib" or "lib64" ends up in sys.path on a POSIX (non MacOS) system?

2020-10-05 Thread Mikhail Golubev via Python-Dev
to be fixed! Fedora and OpenSUSE maintained a large > downstream stream for at least 10 years :-) I added sys.platlibdir to > remove this downstream change. > > Victor > > Le sam. 3 oct. 2020 à 16:46, Mikhail Golubev via Python-Dev > a écrit : > > > > Hi everyone! >

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-08 Thread Ivan Pozdeev via Python-Dev
ugs.python.org/issue39542#msg372983 We are also aware that this is not new behavior. We know the PSF Conduct WG warned you on April 23, 2020 about your previous violations of the Code of Conduct. As such, we are taking the action of suspending your participation in Python's development for 12 mon

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-09 Thread Ivan Pozdeev via Python-Dev
On 09.10.2020 15:28, Christian Heimes wrote: On 09/10/2020 04.04, Ivan Pozdeev via Python-Dev wrote: I don't see the point of requiring to "write an apology", especially *before a 12-month ban*. If they understand that their behavior is wrong, there's no need for a ban,

[Python-Dev] Re: [python-committers] Resignation from Stefan Krah

2020-10-10 Thread Ivan Pozdeev via Python-Dev
eaction to Code of Conduct violations. Just for that, it was worth it to spend one hour per week to be part of this council ;-) The good news is that if core developers consider that the current Steering Council gone too far, there will be soon a new election for a new council! ;-) Victor (speakin

[Python-Dev] Re: [python-committers] Performance benchmarks for 3.9

2020-10-14 Thread Ivan Pozdeev via Python-Dev
_ ::: We implement business ideas - efficiently in both time and costs :::    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg            Registered at Amtsgeric

Re: [Python-Dev] Accepting PEP 572, Assignment Expressions

2018-07-12 Thread ZHUO QL (KDr2) via Python-Dev
://www.python.org/dev/ peps/pep-0572/ Thanks to everyone who participated in the discussion or sent a PR. Below is a list of changes since the last post (https://mail.python.org/ pipermail/python-dev/2018- July/154557.html) -- they are mostly cosmetic so I won't post the doc again, but if you want

[Python-Dev] New member

2019-02-26 Thread Aratz Manterola Lasa via Python-Dev
nks to its community. I want to learn more, and if it is possible from the best ones. So... I ended up here. Thanks for your attention. _______ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.

<    4   5   6   7   8   9   10   >