On Apr 27 2018, Tim Peters
wrote:
> Then `c` is 12, but `a` is still 1 and `b` is still 2. Same thing in the end:
>
> c = local(a=3, b=4, a*b)
I think this can be done already with slighly different syntax:
c = (lambda a=3, b=4: a*b)()
The trailing () is a little ugly, but the semantics are
On Apr 14 2018, Chris Angelico
wrote:
> On Fri, Apr 13, 2018 at 11:30 PM, Peter O'Connor
> wrote:
>> Well this may be crazy sounding, but we could allow left or right assignment
>> with
>>
>> name := expr
>> expr =: name
>>
>> Although it would seem to violate the "only one obvious way" maxim, a
On Mar 25 2018, Guido van Rossum
wrote:
> I gotta say I'm warming up to := in preference over 'as', *if* we're going
> to do this at all (not a foregone conclusion at all).
I'm surprised that no one has mentioned it yet, so as a quick datapoint:
Go also uses := for assignment, so there's some pr
On Nov 18 2017, Bruce Leban wrote:
> And because spaces between words is mostly not valid syntax currently, this
> change would be easier to introduce than breaking every single program out
> there by re-purposing hyphen-minus. But I'm not seriously proposing this
> because I think the modest bene
On Jun 01 2017, Victor Stinner
wrote:
> 2017-06-01 8:47 GMT+02:00 Serhiy Storchaka :
>> What you are think about adding Unicode aliases for some mathematic names in
>> the math module? ;-)
>>
>> math.π = math.pi
>
> How do you write π (pi) with a keyboard on Windows, Linux or macOS?
Under Linux,
On Nov 18 2016, Ethan Furman
wrote:
> On 11/18/2016 11:19 AM, Mikhail V wrote:
>> On 18 November 2016 at 01:26, Steven D'Aprano wrote:
>
> I'm not seeing D'Aprano's posts, except in Mikhail's replies
FWIW, I can see them on Gmane.
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0x
On Nov 16 2016, Ryan Gonzalez
wrote:
> A = A + 1 ==> A += 1
>
>
> Similar problem: semantics change. If someone decided to be weird and have
> __add__ and __iadd__ do two different things, this would completely break
> that. Granted, that's a stupid idea to begin with, but it's still poor
> jus
On Nov 16 2016, Mikhail V
wrote:
> On 16 November 2016 at 10:27, Paul Moore
> wrote:
>> On 16 November 2016 at 08:51, Mikhail V
>> wrote:
>>> What semantics it will fundamentally break or so hard to implement?
>>
>> I'm afraid I don't have time at the moment to fully review your email,
>> but
On Nov 02 2016, Zero Piraeus
wrote:
> On Wed, 2016-11-02 at 08:46 -0700, Guido van Rossum wrote:
>> [...] we need to agree on what even the right definition of ?. is. It's
>> been frighteningly difficult to explain this even on this list, even
>> though I have a very clear view in my head, and PE
On Oct 26 2016, Paul Moore
wrote:
> Thinking a little further about this, I think the reason I don't use
> IPython more, is because my muscle memory types "python" (or more
> often, "py") when I want an interactive prompt. And I do that for the
> reason you mention - it's always there.
>
> The do
On Oct 26 2016, Paul Moore
wrote:
> On 26 October 2016 at 18:25, Nick Coghlan
> wrote:
>> The built-in REPL serves two quite divergent use cases, and I think
>> we're well past the point where we can't readily support both use
>> cases with a single implementation:
>>
>> - a minimalist interact
On Aug 31 2016, Guido van Rossum
wrote:
> On Wed, Aug 31, 2016 at 5:21 AM, Nick Coghlan
> wrote:
>> On 31 August 2016 at 17:07, Chris Angelico
>> wrote:
>>> On Wed, Aug 31, 2016 at 2:08 PM, Ken Kundert
>>> wrote:
> What's the mnemonic here? Why "r" for scale factor?
My thinkin
On Aug 29 2016, Ken Kundert
wrote:
> Nikolaus,
> I have belatedly realized that this kind of hyperbole is counter
> productive.
> So let me back away from that statement and instead try to understand your
> reasons for not liking the proposal.
>
> Do you think there is no value to be able to
On Aug 28 2016, Ken Kundert
wrote:
> So, in summary, you are suggesting that we tell the scientific and
> engineering
> communities that we refuse to provide native support for their preferred way
> of
> writing numbers because:
I think you're making some incorrect assumptions here. Who, exa
14 matches
Mail list logo