ake that happen,
the forum experience must be better for both
On Tuesday, September 18, 2018 at 8:21:46 PM UTC-4, James Lu wrote:
>
> > Is that really an issue here? I personally haven't seen threads where
> > Brett tried to stop an active discussion, but people ignored him and
>
<
leewangzhong+pyt...@gmail.com> wrote:
> On Tue, Sep 18, 2018 at 8:21 PM James Lu wrote:
> >
> > > Is that really an issue here? I personally haven't seen threads where
> > > Brett tried to stop an active discussion, but people ignored him and
> > > kept figh
It would be nice if there was a guide on using Python-ideas and writing PEPs.
It would make it less obscure.
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct:
> Is that really an issue here? I personally haven't seen threads where
> Brett tried to stop an active discussion, but people ignored him and
> kept fighting.
Not personally with Brett, but I have seen multiple people try to stop the
“reword or remove beautiful is better than ugly in Zen of
How can the Zulip chat be joined? Im interested in consolidating all the
discussion into one centralized forum.
Sent from my iPhone
> On Sep 17, 2018, at 3:35 PM, Philippe Godbout wrote:
>
> Also, by restricting to python.org email address, do we not run the risk of
> cutting off a lot of
> It was decided to try https://www.discourse.org at the core dev
> sprints. We'll likely try it for the upcoming governance model/vote
> discussions. If it works well we'll consider using it for other
> discussions in the future.
>
> Let's table this topic for now as we're unlikely to
So...
I agree completely.
I propose Python register a trial of Stack Overflow Teams. Stack Overflow Teams
is essentially your own private Stack Overflow. (I will address the private
part later.) Proposals would be questions and additions or criticism would be
answers. You can express your support
It’s been almost a week since this “discussion” first started. Can we please
stop this in the name of productive work on python-ideas? Frankly, you don’t
need to reply just because you can point out something wrong with someone
else’s argument. Post because it’s worthwhile to hear, not because
In response to your Sat, 15 Sep 2018 22:14:43:
A good and thoughtful read. I agree with all your points. +1.
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct:
Have y’all seen ptpython’s autocomplete and syntax highlighting features?
Ptpython, usually used as a cli application, might be worth integrating into
IDLE.
___
Python-ideas mailing list
Python-ideas@python.org
I wholly support this proposal.
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
What if * and ** forwarded all unnamed arguments to a function? Example:
import traceback
def print_http_response(request, color=True):
...
def print_invalid_api_response(error, *, show_traceback=False, **):
print_http_response(*, **)
if show_traceback:
traceback.print_last()
We should all take a look at Ruby Blocks and think about how Python could
benefit from something similar.
> On Aug 31, 2018, at 3:14 AM, Abdur-Rahmaan Janhangeer
> wrote:
>
> i believe a DSL is simple enough for an enthusiastic py programmer to write
> if you really wanted one
>
> just
Why shouldn't Python be better at implementing Domain Specific Languages?
>From Johnathan Fine:
> I really do wish we could have language that had all of Ruby's
> strengths, and also all of Python's. That would be really nice. Quite
> something indeed.
> Languages do influence each other. Ruby
ia that are used in evaluating a proposed
> feature on python-ideas and python-dev.
>
> Apologies for breaking the thread, but per Subject it's not really part
> of the thread.
>
> James Lu writes:
>
> > I could, but I don't think that justifies not having this
> &g
---
>
> Message: 1
> Date: Mon, 27 Aug 2018 01:29:14 -0400
> From: Matthew Einhorn
> To: python-ideas@python.org
> Subject: Re: [Python-ideas] Unpacking iterables for augmented
> assignment
> Message-ID:
> ymm-fnyw3bza2hjqsgmdgtrvbua..
[Kirill Balunov]
It may be worth taking a look at + and +=. However, the semantic
difference is due to the dunder add and dunder iadd methods-
necessary for supporting both mutable and immutable sequences. See my
earlier mail for discussion on this topic.
By the way,
> the absence of literals
ubroutine.
Not sure where the rest of your message was going; it mostly just
> seemed to repeat examples from earlier posts?
>
Yes, I just wanted to summarize the existing discussion.
On Sun, Aug 26, 2018 at 1:52 PM Tim Peters wrote:
> [James Lu]
> >
Steve and Johnathan, it seems like we're on the same page.
Currently, is = = = always equivalent
to = ; = ; = ?
When there are a tuple or list of names on the left hand side (ex.
`a, b` or `(a, b)` or `[a, b]`), unpack the right hand side into
values and perform the augmented assignment
I propose we apply PEP 3132 to PEP 203. That is, for every statement where
" = " is valid I propose "lhs += rhs" should also be valid.
Simple example:
a = 0
b = 0
a, b += 1, 2
# a is now 1
# b is now 2
___
Python-ideas mailing list
By passing a function to another function I meant passing a code block as an
inline function to a function call.
The do statement is simply the arguments the function is called with
Brackets = optional
as expr [do comma-separated-expressions]:
block
means evaluate expr, then call the
> I several times wished I could have had a reference to the block of code in a
> `with` clause.
Could you abstractly describe a real-world example of this? I’d like to hear
your use case.
> The example for sorted is also kinda twisted.
It is, it’s probably a counterexample on how to use it.
> You mean lambda x: lumberjack(15, x) ?
Yes, that was my mistake.
> However this syntax you allow to write lumberjack(%, 15) which is only
> possible with partial using keyword arguments, like lumberjack (y=15)
> (given that the second argument is called "y") and in that case I know at
> least
> 4 - introducing a new keyword is the hardest thing you can ever ask on
> this list.
As is already a keyword from with-as and except-as. Perhaps for compatibility
“as” is allowed but discouraged as a variable name, and it’s only interpreted
as a keyword when followed by an expression and a
What if we used ? after the statement beginning?
name ?= person.name
custom_query ?= entity.get_query(context)
# Becomes None if entity is None. Raise an exception if entity is not None and
get_query is None or undefined.
custom_query ??= entity.get_query(context)
# If entity, entity.get_query,
I'm open to any changes or criticism.
```
import atexit
as atexit.register:
# ...do various cleanup tasks...
print('Goodbye')
# is approximately equivalent to =>
import atexit
def _():
# ...do various cleanup tasks...
print('Goodbye')
atexit.register(_)
# flask example
101 - 126 of 126 matches
Mail list logo