On Sun, Jun 28, 2020 at 02:23:38PM -, marc...@email.com wrote:
> Is possible some day add Uniform Function Call Syntax (UFCS) in Python like
> Dlang?
>
> Example: https://tour.dlang.org/tour/en/gems/uniform-function-call-syntax-ufcs
That converts calls like:
a.fun()
to
fun(a)
I
Hello everyone,
the above referenced thread is getting heated and unfriendly; I’ve already
rejected a message as inappropriately ad hominem. Please take some time to
(re)consider the content of your e-mails before sending them. We may turn on
default moderation if it continues.
As a reminder:
Can you use SortedDict.peekitem(index):
http://www.grantjenks.com/docs/sortedcontainers/sorteddict.html ?
As other people are saying, the computational complexity of CPython's dict
is linear for this operation. SortedDict does it in logarithmic time.
On Friday, June 26, 2020 at 1:32:58 PM
Perhaps a NamedList would be helpful here?
One could write one fairly easily.
-CHB
On Fri, Jun 26, 2020 at 6:13 PM Steven D'Aprano wrote:
> On Fri, Jun 26, 2020 at 10:45:07AM -0700, Brett Cannon wrote:
>
> > Why can't you do `tuple(dict.items())` to get your indexable pairs?
>
> I don't
In theory it could be checked to see if a given function exists in the same
namespace as a given variable if it doesn't exist in it that variable's
object's method resolution order and try calling it using the syntax
described here, but I don't think it affords the language any added
elegance or
Hello,
Shouldn't such feedback be also cross-posted to the python-dev mailing
list? Also note the original pull request,
https://github.com/python/peps/pull/1470, and differences of what was
written in the pull request description and what went in the commit
message.
On Sun, 28 Jun 2020
From:
https://github.com/python/peps/commit/0c6427dcec1e98ca0bd46a876a7219ee4a9347f4
> Instead of requiring that comments be written in Strunk & White Standard
English, require instead that English-language comments be clear and easily
understandable by other English speakers. This accomplishes
On Sun, Jun 28, 2020, 10:19 AM Jeff Allen
> Now the commit message is the thing that causes me to write. It contains
a long justification for the change. It need only have said that we've
decided not to enforce S rules. It is somewhat offensive, since it
asserts as fact an opinion the community
On 2020-06-28 13:25, Jeff Allen wrote:
[snip]
And the conclusion is right, but the argument is better than he makes
it. I've no idea what a Weegie is, but Brum is just up the road from
where I write, and I can tell you only about 60% of Brummies class
themselves as white. A high proportion of
Is possible some day add Uniform Function Call Syntax (UFCS) in Python like
Dlang?
Example: https://tour.dlang.org/tour/en/gems/uniform-function-call-syntax-ufcs
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to
On 27/06/2020 10:35, Stephen J. Turnbull wrote:
Keara Berlin writes:
> Here is the current line in PEP-8: "When writing English, follow
> Strunk and White." I propose changing this line to "When writing
> English, ensure that your comments are clear and easily
> understandable to other
11 matches
Mail list logo