On Tue, Jun 4, 2019 at 7:21 AM Rhodri James wrote:
>
> On 04/06/2019 11:06, Yanghao Hua wrote:
> > [...] what I needed is an operator that does not
> > collide with all existing number/matrix operators.
>
> Why?
>
> That's the question that in all your thousands of words of argument you
> still h
On Wed, May 22, 2019 at 4:32 AM Yanghao Hua wrote:
> I have experimented by adding two new python operators, left arrow: <-
> and right arrow ->, which users can define their behaviors. and it
> still looks like kind of the non-blocking assignment operators in
> hardware description languages (e.
On Thu, Aug 23, 2018 at 11:59 PM Steve Barnes wrote:
> There are already 2 ways of turning a python program that uses argparse
> into a GUI, (Gooey for wx & Quicken for QT IIRC), with minimal
> modification. There are a lot of good arguments for teaching people to
> use argparse and to write their
On Thu, Aug 2, 2018 at 5:24 AM Thomas Nyberg via Python-ideas
wrote:
>
> Is it true that Path('file').read_text() closes the file after the read?
A quick look at the source confirms that the file is closed:
https://github.com/python/cpython/blob/master/Lib/pathlib.py#L1174
The docstring is bette
With PEP 562, the name __dir__ is off limits for this.
Cody
On Sun, May 6, 2018, 1:54 AM Yuval Greenfield wrote:
> Hi Ideas,
>
> I often need to reference a script's current directory. I end up writing:
>
> import os
> SRC_DIR = os.path.dirname(__file__)
>
>
> But I would prefer to have a new d
On Sun, Sep 17, 2017 at 9:49 PM, Guido van Rossum wrote:
> I ave to agree with the other committers who already spoke up.
>
> I'm not using tab completion much (I have a cranky old Emacs setup), but
> isn't making tab completion better a job for editor authors (or
> language-support-for-editor aut
On Tue, Sep 12, 2017 at 3:26 AM, Ivan Levkivskyi wrote:
> @Cody
>> I still think the better way
>> to solve the custom dir() would be to change the module __dir__
>> method to check if __all__ is defined and use it to generate the
>> result if it exists. This seems like a logical enhancement to m
Sorry for top posting! I'm on a phone. I still think the better way to
solve the custom dir() would be to change the module __dir__ method to
check if __all__ is defined and use it to generate the result if it exists.
This seems like a logical enhancement to me, and I'm planning on writing a
patc
On Wed, Oct 26, 2016 at 4:48 PM, Paul Moore wrote:
> Good point. We could, of course, detect when stdin is non-interactive,
> but at that point the code is starting to get unreasonably complex, as
> well as having way too many special cases. So I agree, that probably
> kills the proposal.
Isn't t