Re: [Python-ideas] Moving to another forum system where

2018-09-19 Thread James Lu
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 >

Re: [Python-ideas] Moving to another forum system where

2018-09-19 Thread James Lu
< 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

Re: [Python-ideas] Moving to another forum system where

2018-09-18 Thread James Lu
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:

Re: [Python-ideas] Moving to another forum system where

2018-09-18 Thread James Lu
> 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

Re: [Python-ideas] Moving to another forum system where moderation is possible

2018-09-17 Thread James Lu
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

Re: [Python-ideas] Moving to another forum system where moderation is possible

2018-09-17 Thread James Lu
> 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...

[Python-ideas] Moving to another forum system where moderation is possible

2018-09-17 Thread James Lu
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

Re: [Python-ideas] Retire or reword the "Beautiful is better than ugly" Zen clause

2018-09-17 Thread James Lu
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

[Python-ideas] +1 Pre-conditions and post-conditions by Kaufmann

2018-09-16 Thread James Lu
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:

[Python-ideas] PTPython REPL in IDLE

2018-09-12 Thread James Lu
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

Re: [Python-ideas] Python dialect that compiles into python

2018-09-11 Thread James Lu
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/

Re: [Python-ideas] Python-ideas Digest, Vol 142, Issue 22

2018-09-07 Thread James Lu
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()

Re: [Python-ideas] Why shouldn't Python be better at implementing Domain Specific Languages?

2018-08-31 Thread James Lu
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

[Python-ideas] Why shouldn't Python be better at implementing Domain Specific Languages?

2018-08-30 Thread James Lu
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

Re: [Python-ideas] On evaluating features [was: Unpacking iterables for augmented assignment]

2018-08-30 Thread James Lu
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

Re: [Python-ideas] Python-ideas Digest, Vol 141, Issue 145

2018-08-27 Thread James Lu
--- > > 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..

Re: [Python-ideas] Unpacking iterables for augmented assignment

2018-08-26 Thread James Lu
[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

Re: [Python-ideas] Unpacking iterables for augmented assignment

2018-08-26 Thread James Lu
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] > >

Re: [Python-ideas] Unpacking iterables for augmented assignment

2018-08-26 Thread 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

[Python-ideas] Unpacking iterables for augmented assignment

2018-08-25 Thread James Lu
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

Re: [Python-ideas] As-do statements/anonymous blocks in python

2018-07-28 Thread James Lu
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

Re: [Python-ideas] Python-ideas Digest, Vol 140, Issue 169

2018-07-26 Thread James Lu
> 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.

Re: [Python-ideas] Python-ideas Digest, Vol 140, Issue 169

2018-07-26 Thread James Lu
> 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

Re: [Python-ideas] As-do statements in Python

2018-07-26 Thread James Lu
> 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

Re: [Python-ideas] PEP 505: None-aware operators

2018-07-25 Thread James Lu
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,

[Python-ideas] As-do statements/anonymous blocks in python

2018-07-25 Thread James Lu
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

<    1   2