Re: [Python-ideas] Move optional data out of pyc files

2018-04-10 Thread Zachary Ware
On Tue, Apr 10, 2018 at 12:38 PM, Chris Angelico wrote: > A deployed Python distribution generally has .pyc files for all of the > standard library. I don't think people want to lose the ability to > call help(), and unless I'm misunderstanding, that requires > docstrings. So this will mean twice

Re: [Python-ideas] breakpoint(): print(*args, **kwargs) before entering pdb

2018-03-02 Thread Zachary Ware
On Fri, Mar 2, 2018 at 12:00 PM, Carl Bordum Hansen wrote: > I played around with a newer Python build, but when using the new > `breakpoint` builtin, I missed my weapon of choice: dirty print-debugging. > > I suggest we combine forces and make the default `sys.breakpointhook` > forward *args and

Re: [Python-ideas] Looking for input to help with the pip situation

2017-11-15 Thread Zachary Ware
On Wed, Nov 15, 2017 at 1:07 PM, Steve Dower wrote: > My preferred solution for this is to rename "py.exe" to "python.exe" (or > rather, make a copy of it with the new name), and extend (or more likely, > rewrite) the launcher such that: > > * if argv[0] == "py.exe", use PEP 514 company/tag resolu

Re: [Python-ideas] Contraction for "for x in range()"

2017-02-14 Thread Zachary Ware
On Tue, Feb 14, 2017 at 3:06 PM, Mikhail V wrote: > I have a small syntax idea. > In short, contraction of > > for x in range(a,b,c) : > > to > > for x in a,b,c : > > I really think there is something cute in it. > So like a shortcut for range() which works only in for-in statement. > So from synt

Re: [Python-ideas] New PyThread_tss_ C-API for CPython

2016-12-16 Thread Zachary Ware
On Fri, Dec 16, 2016 at 6:07 AM, Erik Bray wrote: > Greetings all, > > I wanted to bring attention to an issue that's been languishing on the > bug tracker since last year, which I think would best be addressed by > changes to CPython's C-API. The original issue is at > http://bugs.python.org/iss

Re: [Python-ideas] Suggestion: Clear screen command for the REPL

2016-09-19 Thread Zachary Ware
On Mon, Sep 19, 2016 at 9:45 AM, eryk sun wrote: > On Mon, Sep 19, 2016 at 1:12 PM, Paul Moore wrote: >> By the way - if you're on a system with readline support included with >> Python, GNU readline apparently has a binding for clear-screen >> (CTRL-L) so you may well have this functionality alr

Re: [Python-ideas] Null coalescing operator

2016-09-09 Thread Zachary Ware
On Fri, Sep 9, 2016 at 3:01 PM, Arek Bulski wrote: > Sometimes I find myself in need of this nice operator that I used back in > the days when I was programming in .NET, essentially an expression > expr ?? instead > > should return expr when it `is not None` and `instead` otherwise. > > A pie