[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
vel of indirection I guess. But extension types could contain other references to Python objects, and it is a lot easier to keep track of which subinterpreter those belong to when every subinterpreter has its own copy of the type. If subinterpreters get their own GIL maintaining the refcount

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

2020-04-29 Thread Ronald Oussoren via Python-Dev
> On 29 Apr 2020, at 03:50, Eric Snow wrote: > > On Wed, Apr 22, 2020 at 2:43 AM Ronald Oussoren > wrote: >> My mail left out some important information, sorry about that. > > No worries. :) > >> PyObjC is a two-way bridge between Python and Objective-C

[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
I'm seeing a drop in performance of both multiprocess and subinterpreter based runs in the 8-CPU case, where performance drops by about half despite having enough logical CPUs, while the other cases scale quite well. Is there some issue with python multiprocessing/subinterpreters on the

[Python-Dev] Status of PEP 543 in 2020

2020-05-10 Thread Nimish Telang via Python-Dev
Hi, PEP 543, the new TLS api for Python, was published several years ago as a way to a new library unencumbered by the legacy issues around the current ssl library. In the meantime, no actual implementation has appeared. The closest appears to be https://github.com/Synss/python-mbedtls/tree

[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
he type and the address. On 29.05.2020 23:02, Serhiy Storchaka wrote: The default repr of Python object is formatted using the following pattern:     <{typename} object at {address:#x}> And many custom reprs use similar patterns, but add some additional type specific information. The type

[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
;> implementations to allow multiple interpreters in a single O/S process. >>> >>> These changes cause backwards compatibility changes, have a negative >>> performance impact, and cause a lot of churn. >>> >>> While I'm in favour of PEP 554, o

[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
erent places.     So any such flags, if they have the right to exist at all, should be attached to function objects. On 14.06.2020 20:36, Serhiy Storchaka wrote: In Python 3.3 a number of functions in the os module got the support of new options, like dir_fd or follow_symlinks. I well remember

[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
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-second intervals with '2', '3' ... '

[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
oes like    case n of   1: ...;   2: ...;   3: ...;    end If we did that in Python it would look like this:    case shape:   Point(x, y): ...   Line(x1, y1, x2, y2): ...   Circle(cx, cy, r): ... What think folks of this? IMHO it looks a lot like shell s

[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
Also, just to sanity-check that I understand things correctly: Python signal handlers *are* reentrant, in that a signal handler can be interrupted by another signal, is that right? Is there any general recommendation on how to write signal handlers in order to manage that? (Antoine, I *so* wish I

[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
What, weird edge cases involving *signals?* Never! :) Here's a nice simple one: it takes at least a few opcodes to set said global flag, during which (depending on the whims of how eval_break gets set) yet another signal might get raised and handled. I did just make a post to python-ideas

[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
Whew. Nick, Antoine, and Chris, thanks to each of you for your feedback -- with it, I *think* I've managed to write a pure-Python signal suppression library. I'm nowhere near confident enough in its handling of corner cases yet to release it to the general public, but hopefully I

[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
his to our "consumers" before/when we do so? Plus, since it's the PEPs repo, it's tightly bould to the Python project -- the usefulness of a fork disconnected from it is pretty low. It partially serves as documentation for the Python project, so mirroring it and its docum

[Python-Dev] PEP 622 railroaded through?

2020-07-03 Thread Rob Cliffe via Python-Dev
Whoa! I have an uneasy feeling about this PEP. AFAIK the usual procedure for adding a new feature to Python is:     An idea is raised and attracts some support.     Someone sufficiently motivated writes a PEP.     The PEP is thoroughly discussed.     Eventually a consensus (or at least an

[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
it on Tim's monitor; does not suggest the meaning).  Nor am I keen on "expressions" being interpreted differently after 'case' than elsewhere in Python.  But I don't know what syntax (where necessary) to suggest.     I'm not keen on special treatment of the '

[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
atement to compare with a constant defined before and without the keyword it function as normal and capture it to the local variable x.  Other ideas for the keyword are "const" or "static" but these 2 are more difficult to recognise since they aren't in other pa

[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
On 20.07.2020 20:58, Paul Ganssle wrote: Hi all, I was hoping to get some feedback on a proposed refactoring of the datetime module that should dramatically improve import performance. The datetime module is implemented more or less in full both in pure Python and in C; the way that this is

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

2020-07-20 Thread Rob Cliffe via Python-Dev
previous suite. Consider these examples: (1) if..elif...else: Suites are definitely co-equal (they are alternatives, only one of which is chosen).  So if/elif/else have equal indentation. (2) for...else or while...else: It's arguable IMO (YMMV); Python has chosen to indent them equally.  I don&#

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

2020-07-21 Thread Rob Cliffe via Python-Dev
Javascript, whatever WILL use it like a "switch case", and WILL read code where it will be used like that. Even if it's not the main use case, it will be used for that, because of 50 years of history of C that we can't ignore. Adding a "=" or something else will at

[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
ss case _: label = key.replace('_', ' ').title() AFAICS the PEP does not *explicitly* state that the 'pass' line is necessary (is it?), i.e. that the block following `case` cannot (or can?) be empty. The term `block` is not defined in the PEP, or in https

[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
, Larry Hastings wrote: On 7/31/20 12:36 AM, Tobias Kohn wrote: And since pattern matching is really a new feature to be introduced to Python, a feature that can be seen in different lights, there is no 'Python-Programmer intuition' that would apply in this case. It's not fair to

[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
As suggested by Guido I am posting a potential solution to the following problem for review. Problem <https://bugs.python.org/issue38119#msg351960> A quick fix for this problem is to prevent resource tracker from handling destruction/unlinking of shared memory. A PR <https://github.c

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

2020-08-12 Thread Vinay Sharma via Python-Dev
crash', create=True, size=100) ``` This is being tracked at https://bugs.python.org/issue39584 <https://bugs.python.org/issue39584>. Could please comment whether this should be fixed by python, or we should wait for a macos fix. > On 12-Aug-2020, at 4:38 PM, Victor Stinner

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

2020-08-20 Thread Saikat Das via Python-Dev
Hello Team,  While installing Python-3.5.9 in CentOS-5 I am getting the below errors: ==>> [root@manage Python-3.5.9]# grep error config.logconftest.c:11:28: error: ac_nonexistent.h: No such file or directoryconftest.c:11:28: error: ac_nonexistent.h: No such file or directoryconftest.c

[Python-Dev] Re: PR stuck in Travis

2020-08-21 Thread Ivan Pozdeev via Python-Dev
Travis build. It's possible to restart checks with * make an empty commit with `git commit --allow-empty`. As a member, you can push to PR branches yourself * (not sure) close and reopen the PR Recent build requests can be seen at https://travis-ci.com/github/python/cpython/requests . If ther

[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
guaranteed to be present and compatible with the Python distribution that it comes with. If you are going to remove distutils, something else will need to fulfill these goals. On 04.09.2020 14:28, Steve Dower wrote: Hi all. setuptools has recently adopted the entire codebase of the distutils

[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
uot; module, "lib64" directory, traditionally symlinked to "lib", gets included in sys.path instead of "lib" itself. ``` $ python -msite sys.path = [ '/current/working/directory' '/usr/lib64/python36.zip', '/usr/lib64/python3.6'

[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
very helpful. On Mon, Oct 5, 2020 at 11:57 AM Victor Stinner wrote: > FYI Python 3.9 has a new sys.platlibdir to choose between "lib" and > "lib64". Fedora and OpenSUSE use /usr/lib64 directory on 64-bit > systems rather than /usr/lib. > > On 64-bi

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

2020-10-08 Thread Ivan Pozdeev via Python-Dev
a core developer (https://www.python.org/dev/peps/pep-0013/#ejecting-core-team-members) and voted unanimously to eject Stefan, as we told Stefan we would do if he chose not to address the concerns we outlined below. Our original message to Stefan: """ Dear Stefan, The Python Steer

[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
homesteading/ar01s11.html . AFAICS, Python uses the bazaar model as its development principle. As such, Stefan could be suspended even earlier, at one of the instances that Victor described, -- for sabotaging the project. On 10.10.2020 16:46, Victor Stinner wrote: Hi, Le ven. 9 oct. 2020 à 21:

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

2020-10-14 Thread Ivan Pozdeev via Python-Dev
0&equid=off&quarts=on&extr=on&base=none In addition to unpack_sequence, the regex_dna test has slowed down a lot compared to Py3.8. https://github.com/python/pyperformance/blob/master/pyperformance/benchmarks/bm_unpack_sequence.py https://github.com/python/py

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

2018-07-12 Thread ZHUO QL (KDr2) via Python-Dev
Hooray! I could be a happy python oneliner now! Greetings. ZHUO QL (KDr2, http://kdr2.com) On Thursday, July 12, 2018, 8:12:54 AM GMT+8, Guido van Rossum wrote: As anticippated, after a final round of feedback I am hereby accepting PEP 572, Assignment Expressions: https

[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.

[Python-Dev] Actor Model in Python

2019-03-31 Thread Aratz Manterola Lasa via Python-Dev
Hello, I was wondering if there was any Python project aiming to implement the actor model for python concurrency. ¿Does anyone know it? Aratz. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] Enhancement request for PyUnicode proxies

2020-12-25 Thread Nelson, Karl E. via Python-Dev
I was directed to post this request to the general Python development community so hopefully this is on topic. One of the weaknesses of the PyUnicode implementation is that the type is concrete and there is no option for an abstract proxy string to a foreign source. This is an issue for an

[Python-Dev] Re: Enhancement request for PyUnicode proxies

2021-01-04 Thread Nelson, Karl E. via Python-Dev
then used throughout the function call. This would not require any additional slots. Unfortunately, this doesn't match the other patterns in Python as if it passes PyString_Check then why would one need to call a casting object to get the actual string. It could be as simple as maki

[Python-Dev] Re: Heap types (PyType_FromSpec) must fully implement the GC protocol

2021-01-12 Thread Nelson, Karl E. via Python-Dev
things that you can do from the Python language that you can't do from the C API. See... https://bugs.python.org/issue42617 The downside of course is there are a lot of calls in the C API that infer that static type is fixed address. Perhaps those call all be macros to the which equa

[Python-Dev] Re: Moving threadstate to thread-local storage.

2021-02-24 Thread 谢俊逸 via Python-Dev
- (int)getSpecific { int * value = pthread_getspecific(tlsKey); return *value; } - (int)getTLS { return *tlv_v5; }_______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.py

Re: [Python-Dev] BDFL ruling request: should we block forever waiting for high-quality random bits?

2016-06-16 Thread Ionel Cristian Mărieș via Python-Dev
THONWEAKURANDOM=y or PYTHONFASTURANDOM=y. That ways there's no need to change api of os.urandom() and users have a clear and easy path to get old behavior. Thanks, -- Ionel Cristian Mărieș, http://blog.ionelmc.ro _______ Python-Dev mailing list Py

[Python-Dev] JUMP_ABSOLUTE in nested if statements

2016-06-18 Thread Obiesie ike-nwosu via Python-Dev
ted if statements? I have tried other types of nested if statements and it has always been JUMP_FORWARD that is generated. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] JUMP_ABSOLUTE in nested if statements

2016-06-18 Thread Obiesie ike-nwosu via Python-Dev
, 2016, at 2:04 PM, Obiesie ike-nwosu via Python-Dev >> wrote: >> >> Hi, >> >> Could some one give a hand with explaining to me why we have a JUMP_ABSOLUTE >> followed by a JUMP_FORWARD op code when this function is disassembled. >> < snipped> >>

[Python-Dev] digital panels processing text sowftware write with Python language

2016-07-08 Thread Hadi Montazami safavi via Python-Dev
Dear SirsWith thanks, iam looking digital panels processing text sowftware write with Python languagefor my project.Could you please guide me if there is or guiding to write it personally.Thanking you in advance and awaiting.With best

[Python-Dev] Python CFG Basic blocks

2016-07-11 Thread Obiesie ike-nwosu via Python-Dev
Hi, I am looking into how the python compiler generates basic blocks during the CFG generation process and my expectations from CFG theory seems to be at odds with how the python compiler actually generates its CFG. Take the following code snippet for example: def median(pool): copy

[Python-Dev] RFC on PEP 681: Data Class Transforms

2022-04-11 Thread Erik De Bonte via Python-Dev
ase send any comments there. Any feedback would be appreciated! Thanks, Erik ___ 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

[Python-Dev] Re: [Typing-sig] Almost accepting PEP 681 – Data Class Transforms

2022-04-25 Thread Erik De Bonte via Python-Dev
* Erik, could you propose a change to the PEP text? I just created https://github.com/python/peps/pull/2555 to address these issues. -Erik ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le

[Python-Dev] Re: Annotating pure functions to improve inline caching/optimization

2022-09-14 Thread Eric V. Smith via Python-Dev
t called inline caching, where Python caches the results of expensive operations directly in the bytecode. I wonder how this caching works, given that the dynamic nature means that virtually every operation could have side effects, causing wrong behaviour when cached. The only mitigation for thi

[Python-Dev] Re: Retiring this mailing list ?

2023-11-14 Thread Eric V. Smith via Python-Dev
mbers of the python.org <http://python.org> domain, and retain the release announcements? I think the python-announce list serves that purpose. Any time there's an announcement here, I also see a separate copy of it on python-announce (where I'm

[Python-Dev] Re: [Python-ideas] Re: Amend PEP-8 to require clear, understandable comments instead of Strunk & White Standard English comments

2020-06-29 Thread C. Titus Brown via Python-Dev
Hi all, as a moderator of python-ideas, I’ve asked postmaster to place python-ideas into emergency moderation. (I do not have the tools to do so myself.) I’m willing to review messages individually as needed. best, —titus > On Jun 29, 2020, at 9:24 AM, Abdur-Rahmaan Janhangeer >

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

2020-07-30 Thread Rik de Kort via Python-Dev
still have all the same variables, except now we have to follow them with a ritualistic ":= _" to capture them. Normally we use the underscore to discard or hide something (at least that's how I've always used it), and suddenly it is used when we want to keep the thing it

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

2020-07-30 Thread Rik de Kort via Python-Dev
o have bikeshedded on this point), increasing the surprise level for people who are either coming to Python from there, or going from Python to there. - Requiring extra (weird-looking) syntax for the default case of capturing variables. Again, maybe I'm just having trouble finding g

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

2020-07-31 Thread Rik de Kort via Python-Dev
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 I had to explicitly capture every variable. I just wa

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

2020-09-23 Thread Jens Gåsemyr Magnus via Python-Dev
It would be fantastic if these were expressions rather than statements. Imagine being able to write things like: ```python @memoized def fibonacci(n): match n: case 0: (return/yield?) 0 case 1: 1 case _: fibonacci(n - 2) + fibonacci

Re: [Python-Dev] Python startup time

2018-05-11 Thread Chris Barker - NOAA Federal via Python-Dev
Inspired by chg: Could one make a little startup utility that, when invoked the first time, starts up a raw python interpreter, keeps it running somewhere, and then forks it to run the actual python code. Then every invocation after that would make a new fork. I presume forking is a LOT faster

Re: [Python-Dev] (Looking for) A Retrospective on the Move to Python 3

2018-05-11 Thread Chris Barker - NOAA Federal via Python-Dev
> while the changes introduced by Python 3 > affect pretty much everyone, even people who only write small simple > scripts. Sure they do, but the *hard stuff* not so much. I have found 2to3 conversion to be remarkably easy and painless. And the whole Unicode thing is much eas

Re: [Python-Dev] (Looking for) A Retrospective on the Move to Python 3

2018-05-14 Thread Chris Barker - NOAA Federal via Python-Dev
need to be more specific. __future__ has been around for a > long time. I meant the various ones that support py2/3 compatibility — I know division predates py3, not sure about the others. But it was a rhetorical question anyway :-) -CHB https://github.com/py

<    12   13   14   15   16   17   18   >