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
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
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
> 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
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
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
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
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
_
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
;> 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
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
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
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
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
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.
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' ... '
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
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
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
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
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
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>
_
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
#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
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
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
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.
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
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
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 <
>&
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
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
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
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
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
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
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
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
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
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
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
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
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@
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
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 '
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@
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
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
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
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
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 (
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
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
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
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
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/>
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
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/>
__
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
, 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
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
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]
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
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
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
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
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
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
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
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
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'
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
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
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,
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:
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
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
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.
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
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
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
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
- (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
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
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
, 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>
>>
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
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
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
* 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
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
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
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
>
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
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
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
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
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
> 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
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
1601 - 1700 of 1717 matches
Mail list logo