Import machinery for extracting non-modules from modules (not using import-from)

2020-05-03 Thread Adam Preble
The (rightful) obsession with modules in PEP-451 and the import machinery hit me with a gotcha when I was trying to implement importing .NET stuff that mimicked IronPython and Python.NET in my interpreter project. The meat of the question: Is it important that the spec loader actually return a m

Re: =+ for strings

2020-05-03 Thread Dan Sommers
On Sun, 3 May 2020 19:38:06 -0700 (PDT) James Smith wrote: > I tried: > dt=+"{:02d}".format(day) > but I got: > dt=+"{:02d}".format(day) > TypeError: bad operand type for unary +: 'str' > > This works: > dt=dt+"{:02d}".format(day) > > Why can't I do the shortcut on strings? ITYM:

Re: =+ for strings

2020-05-03 Thread Chris Angelico
On Mon, May 4, 2020 at 12:41 PM James Smith wrote: > > I tried: > dt=+"{:02d}".format(day) > but I got: > dt=+"{:02d}".format(day) > TypeError: bad operand type for unary +: 'str' > > This works: > dt=dt+"{:02d}".format(day) > > Why can't I do the shortcut on strings? The shortcut is

=+ for strings

2020-05-03 Thread James Smith
I tried: dt=+"{:02d}".format(day) but I got: dt=+"{:02d}".format(day) TypeError: bad operand type for unary +: 'str' This works: dt=dt+"{:02d}".format(day) Why can't I do the shortcut on strings? -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip not working on windows

2020-05-03 Thread Mike Dewhirst
On 4/05/2020 12:44 am, Aakash Jana wrote: I recently upgraded pip to version 20.1 and now whenever I try pup install on my PC I get the following error :- Fatal error in launcher : unable to create process using '"c:\python38\python.exe ' "c:\Python38\Scripts\pip.exe" : The system cannot find the

Is there anything in the script which could cause it to not run its full course please?

2020-05-03 Thread ozstar1
Hi, A nooby here and I could do with some help in finding out what, if anything, is wrong with the script Is there anything in this script that could cause the stream to stop before the allocated time? For example the time.txt file which gives the times to the script, shows the time to start

Consumer trait recognition

2020-05-03 Thread julianawaltermann11
Dear Community, I constructed a lexicon for words that show how different words are linked to consumer traits and motivations (e.g. Achievement and Power Motivation). Now I have collected a large amount of online customer reviews and want to match each review with the word definitions of the con

Re: Pip not working on windows

2020-05-03 Thread Aakash Jana
Yes, I am! On Sun, 3 May 2020, 9:39 pm joseph pareti are you doing *pip** install* from Windows cmd of from Anaconda prompt? I > used the latter and it works > > Am So., 3. Mai 2020 um 16:48 Uhr schrieb Aakash Jana < > aakashjana2...@gmail.com>: > >> I recently upgraded pip to version 20.1 and no

Re: Pip not working on windows

2020-05-03 Thread joseph pareti
are you doing *pip** install* from Windows cmd of from Anaconda prompt? I used the latter and it works Am So., 3. Mai 2020 um 16:48 Uhr schrieb Aakash Jana < aakashjana2...@gmail.com>: > I recently upgraded pip to version 20.1 and now whenever I try pup install > on my PC I get the following erro

Pip not working on windows

2020-05-03 Thread Aakash Jana
I recently upgraded pip to version 20.1 and now whenever I try pup install on my PC I get the following error :- Fatal error in launcher : unable to create process using '"c:\python38\python.exe ' "c:\Python38\Scripts\pip.exe" : The system cannot find the file specified. But when I manually inspect