Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-02 Thread Ian Kelly
On Mon, Apr 1, 2019 at 3:52 PM Alexey Muranov wrote: > > I only see a superficial analogy with `super()`, but perhaps it is > because you did not give much details of you suggestion. No, it's because the analogy was not meant to be anything more than superficial. Both are constructs of syntactic

Generator definition syntax (was: Syntax for one-line "nonymous" functions)

2019-04-02 Thread Alexey Muranov
On mar., Apr 2, 2019 at 4:31 AM, python-list-requ...@python.org wrote: Re: ">> Neither i like how a function magically turns into a generator if the keyword `yield` appears somewhere within its definition. I agree, there should have been a required syntactic element on the "def" line as we

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-02 Thread Chris Angelico
On Tue, Apr 2, 2019 at 6:04 PM Ian Kelly wrote: > > Note that > > > > foo.bar = baz > > > > and > > > > foo[bar] = baz > > I wrote "directly assigned to a variable", not to an attribute or an item. > These are not part of the suggestion. So what's the advantage over just using def? Chris

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-02 Thread Alexey Muranov
On Mon, Apr 1, 2019 at 3:52 PM Alexey Muranov gmail.com> wrote: > > I only see a superficial analogy with `super()`, but perhaps it is > because you did not give much details of you suggestion. No, it's because the analogy was not meant to be anything more than superficial. Both are constructs of

Re: Losing words

2019-04-02 Thread John Doe
On 2019-04-01, Paul Rubin wrote: > John Doe writes: >> sendall also is not sending a whole sentence. > > Have you observed that with something like wireshark? > I was about colon ":" before message with a colon a whole message is " before message with a colon a whole message is sent. . > Al

DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
Hi, Please look at this issue: DeprecationWarning in Python 3.6 and 3.7 I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the tests but the tests still fail in Python 3.6 and 3.7 with the DeprecationWarning: (with Pillow==5.

Re: How call method from a method in same class?

2019-04-02 Thread dboland9
Cameron, Again, thanks for the help. I agree with everything you wrote, but... The code was thrown together to produce the error so I could illustrate the problem. It was by design junk. But it did produce the error, I got some great answers to my situation, so I am very grateful for the help.

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-02 Thread Ian Kelly
On Tue, Apr 2, 2019 at 1:43 AM Alexey Muranov wrote: > > > On Mon, Apr 1, 2019 at 3:52 PM Alexey Muranov > gmail.com> > > wrote: > > > > > > I only see a superficial analogy with `super()`, but perhaps it is > > > because you did not give much details of you suggestion. > > > > No, it's because t

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Terry Reedy
On 4/2/2019 6:29 AM, אורי wrote: Hi, Please look at this issue: DeprecationWarning in Python 3.6 and 3.7 I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the tests but the tests still fail in Python 3.6 and 3.7 with the De

Re: python os.chdir() Windows Error 2

2019-04-02 Thread grossmudda
Ahhh now I see!! I actually was trying to import a file, now I know it´s just changing the directory. Next time I´d better read the description of the tool carefully... Thank you so much!! You helped a lot! -- https://mail.python.org/mailman/listinfo/python-list

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
On Tue, Apr 2, 2019 at 6:33 PM Terry Reedy wrote: > On 4/2/2019 6:29 AM, אורי wrote: > > Hi, > > > > Please look at this issue: > > DeprecationWarning in Python 3.6 and 3.7 > > > > > > I tried to upgrade to the latest virtualenv (virtualenv==1

EuroSciPy 2019 - CfP is open

2019-04-02 Thread Alexander CS Hendorf [EuroSciPy 2019]
= *** Apologise for multiple posting *** Dear Colleagues, We are delighted to invite you to join us for the 12th European Conference on Python in Science. The EuroSciPy 2019 Conference will take place from September 2 to September 6 in Bilba

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-02 Thread Alexey Muranov
On mar., Apr 2, 2019 at 6:00 PM, python-list-requ...@python.org wrote: On Tue, Apr 2, 2019 at 1:43 AM Alexey Muranov wrote: > On Mon, Apr 1, 2019 at 3:52 PM Alexey Muranov gmail.com> > wrote: > > > > I only see a superficial analogy with `super()`, but perhaps it is > > because you

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-04-02 Thread Chris Angelico
On Wed, Apr 3, 2019 at 3:55 AM Alexey Muranov wrote: > I clarified what i meant by an assignment, and i believe it to be a > usual meaning. > > 1. `def` is not an assignment, there is no left-hand side or > right-hand side. I was talking about the normal assignment by which > anyone can bind any

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Rhodri James
On 02/04/2019 16:52, אורי wrote: On Tue, Apr 2, 2019 at 6:33 PM Terry Reedy wrote: On 4/2/2019 6:29 AM, אורי wrote: Hi, Please look at this issue: DeprecationWarning in Python 3.6 and 3.7 I tried to upgrade to the latest virtualenv (virt

fs package question - cp -p semantics when copying files?

2019-04-02 Thread Skip Montanaro
I posed this yesterday on the PyFilesystem discussion Google Group but it's so far not even garnered a single view, so perhaps that group is defunct. I turn to the knowledgeable folks here: I am copying files from one filesystem instance to another. I see no (easy) way to tell fs.copy.copy_fs to p

Clicking a specific item within a drop down list

2019-04-02 Thread rlew2008
What code would allow me to automatically select and click the "Quarterly" value from the drop-down box labeled "Statement Type" on the web page below. I'm new to Python and have been struggling with this one. Any help is immensely appreciated. Thanks! http://financials.morningstar.com/balance-

Re: Clicking a specific item within a drop down list

2019-04-02 Thread DL Neil
On 3/04/19 7:53 AM, rlew2...@gmail.com wrote: What code would allow me to automatically select and click the "Quarterly" value from the drop-down box labeled "Statement Type" on the web page below. I'm new to Python and have been struggling with this one. Any help is immensely appreciated. Tha

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Karsten Hilbert
On Tue, Apr 02, 2019 at 01:29:08PM +0300, אורי wrote: > DeprecationWarning in Python 3.6 and 3.7 > > > I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the > tests but the tests still fail in Python 3.6 and 3.7 with > the Dep

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Inada Naoki
The DeprecationWarning is raised for virtualenv's distutils. It is fixed already. Use latest virtualenv. Links: https://github.com/pypa/virtualenv/pull/1289 https://virtualenv.pypa.io/en/latest/changes/#v16-4-0-2019-02-09 -- Inada Naoki -- https://mail.python.org/mailman/listinfo/python-list

Re: Clicking a specific item within a drop down list

2019-04-02 Thread rlew2008
Hi dn, Thank you kindly for your warm greeting. Please forgive my lack of forum decorum, I just started Python 2 days ago out of necessity, so I'm still quite unknowledgable about a lot of things. I'm working on a person project. So far, my only resources to date have been forums based off

Re: Clicking a specific item within a drop down list

2019-04-02 Thread DL Neil
Richard, (this is a Python list, and whilst the question is quite proper - your are using Python after all, the answer delves into Selenium and then dives into HTML and finally disappears into 'the dark side' of JavaScript!) On 3/04/19 2:02 PM, rlew2...@gmail.com wrote: Hi dn, Thank you kind

Re: fs package question - cp -p semantics when copying files?

2019-04-02 Thread DL Neil
Skip, On 3/04/19 8:06 AM, Skip Montanaro wrote: I posed this yesterday on the PyFilesystem discussion Google Group but it's so far not even garnered a single view, so perhaps that group is defunct. I turn to the knowledgeable folks here: I am copying files from one filesystem instance to anothe

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
אורי u...@speedy.net On Wed, Apr 3, 2019 at 2:50 AM Inada Naoki wrote: > The DeprecationWarning is raised for virtualenv's distutils. > It is fixed already. Use latest virtualenv. > That's what I wrote. I tried to upgrade to the latest virtualenv (virtualenv==16.4.3) in the tests but the test

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread Inada Naoki
See this log. https://travis-ci.org/speedy-net/speedy-net/jobs/514595889 1. In line 172, you *enabled* virtualenv, created by Travis-CI with old virtualenv library. 2. In the legacy virtualenv, you installed latest virtualenv. You need to enable virtualenv, *created by* latest virtualenv. Instal

Re: DeprecationWarning in Python 3.6 and 3.7

2019-04-02 Thread אורי
אורי u...@speedy.net On Wed, Apr 3, 2019 at 6:12 AM Inada Naoki wrote: > See this log. > > https://travis-ci.org/speedy-net/speedy-net/jobs/514595889 > > 1. In line 172, you *enabled* virtualenv, created by Travis-CI with > old virtualenv library. > 2. In the legacy virtualenv, you installed la

Re: Logging module and datetime - oil & water for some reason?

2019-04-02 Thread DL Neil
Skip, On 2/04/19 9:54 AM, Skip Montanaro wrote: I assiduously avoided using Python's logging package for about the first dozen years of its existence. I eventually gave in and started I'm glad you're stepping-up! I'm never sure whether to be amazed or dismayed by the huge number of folk exp