Re: Problem while integrating unittest with setuptools

2019-09-01 Thread dieter
YuXuan Dong writes: > I met a problem while I ran `python setup.py test`: > > unittest.case.SkipTest: No module named 'winreg' > ... no windows modules should be necessary ... I know apparently unexplainable "no module named ..." messages as a side effect of the use of "six". "six" is use

Re: a,b = 2,3 and [a,b] = [2,3]

2019-09-01 Thread Chris Angelico
On Mon, Sep 2, 2019 at 12:36 PM Alan Bawden wrote: > > Eko palypse writes: > > > Am Montag, 2. September 2019 00:49:05 UTC+2 schrieb Hongyi Zhao: > > > Hi, > > > > > > What's differences: > > > > > > a,b = 2,3 and [a,b] = [2,3] > > > > > > Regards > > > > In this example the result is the same bu

Re: a,b = 2,3 and [a,b] = [2,3]

2019-09-01 Thread Alan Bawden
Eko palypse writes: > Am Montag, 2. September 2019 00:49:05 UTC+2 schrieb Hongyi Zhao: > > Hi, > > > > What's differences: > > > > a,b = 2,3 and [a,b] = [2,3] > > > > Regards > > In this example the result is the same but the second one > builds, internally, an additional list, therefore isn'

Re: How to create a list and append to list inside a mqtt and GUI program?

2019-09-01 Thread Richard Damon
On 9/1/19 4:02 PM, Spencer Du wrote: > Hi > > I have code for GUI and MQTT. In GUI.py I have "def loadGUI" which loads up a > GUI file if the file exists in current directory. I want to add the file name > to a list when a file is imported and for each subsequent file that is > imported I want

Re: How to create a list and append to list inside a mqtt and GUI program?

2019-09-01 Thread MRAB
On 2019-09-01 21:02, Spencer Du wrote: Hi I have code for GUI and MQTT. In GUI.py I have "def loadGUI" which loads up a GUI file if the file exists in current directory. I want to add the file name to a list when a file is imported and for each subsequent file that is imported I want the file

Re: Need help: integrating unittest with setuptools

2019-09-01 Thread Sayth Renshaw
On Monday, 2 September 2019 04:44:29 UTC+10, YuXuan Dong wrote: > Hi, everybody: > > I have met a problem while I ran `python setup.py test`: > > unittest.case.SkipTest: No module named 'winreg' > > I ran the command in MacOS and my project is written for only UNIX-like > systems. I don'

Re: How to create a list and append to list inside a mqtt and GUI program?

2019-09-01 Thread Sayth Renshaw
On Monday, 2 September 2019 06:02:58 UTC+10, Spencer Du wrote: > Hi > > I have code for GUI and MQTT. In GUI.py I have "def loadGUI" which loads up a > GUI file if the file exists in current directory. I want to add the file name > to a list when a file is imported and for each subsequent file

Re: IDLE not working

2019-09-01 Thread Terry Reedy
On 9/1/2019 1:06 AM, Anoushka wrote: Even after repairing my python IDLE, my IDLE is not working. It says sub process connection error. Kindly help me to resolve. I want to recover my previous work. Sent from Mail for Windows 10 Select Help => IDLE Help and read the Startup Failure section.

Re: "Edit With Python" option missing

2019-09-01 Thread Terry Reedy
On 8/31/2019 4:54 AM, Akash verma wrote: "Edit With Python" option missing from message context when right clicked with mouse . 'Edit with Python' does not make much sense since Python is not an editor. What OS? If Windows, do you possible mean 'Edit with IDLE'? If so, that requires install

Re: IDLE missing !

2019-09-01 Thread Piet van Oostrum
Alex writes: > I tried downloading the 3.7.4 version of python and and then tried to > install tensorflow but found that TF is only available for version > 3.5.x. > Thus uninstalled the 3.7.4. version and tried downloading multiple 3.5.x > version while all of them downloaded but I couldn’d find

How to create a list and append to list inside a mqtt and GUI program?

2019-09-01 Thread Spencer Du
Hi I have code for GUI and MQTT. In GUI.py I have "def loadGUI" which loads up a GUI file if the file exists in current directory. I want to add the file name to a list when a file is imported and for each subsequent file that is imported I want the file name to be imported to the same list an

How to create list for stuff inside mqtt and GUI?.

2019-09-01 Thread Spencer Du via Python-list
Hi I have code for GUI and MQTT. In GUI.py I have "def loadGUI" which loads up a GUI file if the file exists in current directory. I want to add the file name to a list when a file is imported and for each subsequent file that is imported I want the file name to be imported to the same list an

Re: Issue About Install pyinstaller

2019-09-01 Thread MRAB
On 2019-09-01 17:15, Mehmet Furkan ÇOLAK wrote: Have a good day sir, I use python so much, I try to install pyinstaller in order to covert .py files to .exe files I did “cmd > pip install pyinstaller > enter” from C:\Users\Furkan ÇOLAK\AppData\Local\Programs\Python\Python37-32 but there isnt Sc

Re: 'python' is not recognized as an internal or external command

2019-09-01 Thread MRAB
On 2019-08-31 10:13, G Kishore wrote: Hi Team, I was installing python in my new windows 10 machine and cpuld able to access python from command window when the location is where I have installed python. The same I have tried to enter the command from Desktop location but "'python' is not rec

Re: Using exec with embedded python interpreter 3.7

2019-09-01 Thread MRAB
On 2019-08-31 13:16, Eko palypse wrote: I've already sent this through mail yesterday but it doesn't appear here, maybe because of the help word in the content. Please execute in case it appears a second time. Hello, I'm creating a notepad++ plugin which hosts an embedded python interpreter b

Re: IDLE missing !

2019-09-01 Thread MRAB
On 2019-09-01 11:53, Alex wrote: I tried downloading the 3.7.4 version of python and and then tried to install tensorflow but found that TF is only available for version 3.5.x. Thus uninstalled the 3.7.4. version and tried downloading multiple 3.5.x version while all of them downloaded but I co

Re: Python 3.7.4 on win 7

2019-09-01 Thread MRAB
On 2019-08-30 13:25, Mohammad Arif Samana wrote: Dear sir, I am installing the above version of python on my pc with win7 as my operating system. But I am constantly receiving error messages. What could be the problem and remedy for that. Kindly update me as I am facing problems for my studies. A

Re: Using exec with embedded python interpreter 3.7

2019-09-01 Thread Peter Otten
Eko palypse wrote: > I've already sent this through mail yesterday but it doesn't appear here, > maybe because of the help word in the content. Please execute in case it > appears a second time. > > > Hello, > I'm creating a notepad++ plugin which hosts an embedded python interpreter > by using

Issue About Install pyinstaller

2019-09-01 Thread Mehmet Furkan ÇOLAK
Have a good day sir, I use python so much, I try to install pyinstaller in order to covert .py files to .exe files I did “cmd > pip install pyinstaller > enter” from C:\Users\Furkan ÇOLAK\AppData\Local\Programs\Python\Python37-32 but there isnt Script folder. İn cmd I see this kind of ERROR 'pi

Need help: integrating unittest with setuptools

2019-09-01 Thread YuXuan Dong
Hi, everybody: I have met a problem while I ran `python setup.py test`: unittest.case.SkipTest: No module named 'winreg' I ran the command in MacOS and my project is written for only UNIX-like systems. I don't use any Windows-specified API. How dose `winreg` come here? In my `setup.py`

Re: "Edit With Python" option missing

2019-09-01 Thread DL Neil via Python-list
Hi Aakash, On 31/08/19 8:54 PM, Akash verma wrote: "Edit With Python" option missing from message context when right clicked with mouse . There are two stages to working with a Python program: editing the source-code, and executing the program. For the first, most use a text editor/IDE, eg

IDLE not working

2019-09-01 Thread Anoushka
Even after repairing my python IDLE, my IDLE is not working. It says sub process connection error. Kindly help me to resolve. I want to recover my previous work. Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: pandas loc on str lower for column comparison

2019-09-01 Thread Sayth Renshaw
I've created a share doc same structure anon data from my google drive. https://drive.google.com/file/d/0B28JfFTPNr_lckxQRnFTRF9UTEFYRUVqRWxCNVd1VEZhcVNr/view?usp=sharing Sayth -- https://mail.python.org/mailman/listinfo/python-list

PYTHON DIDNT DETECTED

2019-09-01 Thread АРТЁМ БОЗАДЖИ via Python-list
Traceback (most recent call last): File "", line 1, in NameError: name 'python' is not defined and more  C:\Users\VeNoMD>python -v import _frozen_importlib # frozen import _imp # builtin import '_thread' # import '_warnings' # import '_weakref' # # installing zipimport hook import 'zipimport'

IDLE missing !

2019-09-01 Thread Alex
I tried downloading the 3.7.4 version of python and and then tried to install tensorflow but found that TF is only available for version 3.5.x. Thus uninstalled the 3.7.4. version and tried downloading multiple 3.5.x version while all of them downloaded but I couldn’d find the IDLE shell with th

ssl certificate issue while installing Django on y windows 64 bit os

2019-09-01 Thread mohd zak
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: open, close

2019-09-01 Thread Max Zettlmeißl via Python-list
On Sat, Aug 31, 2019 at 3:43 PM Piet van Oostrum wrote: > > There is a difference here with the construct that the OP mentioned: > > lines = open("foo.txt").readlines() > > In that case the file COULD be closed, but there is no guarantee. It depends > on garbage collection. > In your case t

problem occurring in operating python , after typing only 5-6 programs only is causing problem it has stoped working

2019-09-01 Thread best web site
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

it is not working

2019-09-01 Thread ABID NAZIR
-- https://mail.python.org/mailman/listinfo/python-list

python-list@python.org

2019-09-01 Thread YuXuan Dong
-- https://mail.python.org/mailman/listinfo/python-list

Async subprocess context manager

2019-09-01 Thread Peter Sutton
Hi all, First time posting! I need an async context manager that ensures a Process has finished before it `__exit__()`s, either by graceful or forceful termination, and regardless of cancellation. I've put my code at the bottom. I'm relatively new to asyncio, so I'm looking for feedback on any as

Using exec with embedded python interpreter 3.7

2019-09-01 Thread Eko palypse
I've already sent this through mail yesterday but it doesn't appear here, maybe because of the help word in the content. Please execute in case it appears a second time. Hello, I'm creating a notepad++ plugin which hosts an embedded python interpreter by using cffi to build the dll. So far so

'python' is not recognized as an internal or external command

2019-09-01 Thread G Kishore
Hi Team, I was installing python in my new windows 10 machine and cpuld able to access python from command window when the location is where I have installed python. The same I have tried to enter the command from Desktop location but "'python' is not recognized as an internal or external comma

Problem while integrating unittest with setuptools

2019-09-01 Thread YuXuan Dong
Hi, everybody: I met a problem while I ran `python setup.py test`: unittest.case.SkipTest: No module named 'winreg' I ran the command in MacOS and my project is written for only UNIX-like systems. I don't use any Windows-specified API. How dose `winreg` come here? In my `setup.py`:

"Edit With Python" option missing

2019-09-01 Thread Akash verma
"Edit With Python" option missing from message context when right clicked with mouse . I am facing many problems with it. -- https://mail.python.org/mailman/listinfo/python-list

Python 3.7.4 on win 7

2019-09-01 Thread Mohammad Arif Samana
Dear sir, I am installing the above version of python on my pc with win7 as my operating system. But I am constantly receiving error messages. What could be the problem and remedy for that. Kindly update me as I am facing problems for my studies. Also brief me about Anaconda3. Its not installing on

Using exec with embedded python interpreter 3.7

2019-09-01 Thread Eko palypse
Hello, I'm creating a notepad++ plugin which hosts an embedded python interpreter by using cffi to build the dll. So far so good. One obstacle I've found is that I'm not able to use exec(help(object)) in order to get the wanted info from the object. The error I get is: Traceback (most recent call

Re: open, close

2019-09-01 Thread Barry
> On 1 Sep 2019, at 17:57, MRAB wrote: > > On 2019-09-01 16:46, Barry wrote: >>> On 31 Aug 2019, at 15:41, Manfred Lotz wrote: >>> When you say COULD this sounds like it is a matter of luck. My thinking >>> was that USUALLY the file will be closed after the statement because >>> then the file

Re: open, close

2019-09-01 Thread Chris Angelico
On Mon, Sep 2, 2019 at 3:02 AM MRAB wrote: > > On 2019-09-01 16:46, Barry wrote: > > > > > >> On 31 Aug 2019, at 15:41, Manfred Lotz wrote: > >> > >> When you say COULD this sounds like it is a matter of luck. My thinking > >> was that USUALLY the file will be closed after the statement because >

Re: open, close

2019-09-01 Thread MRAB
On 2019-09-01 16:46, Barry wrote: On 31 Aug 2019, at 15:41, Manfred Lotz wrote: When you say COULD this sounds like it is a matter of luck. My thinking was that USUALLY the file will be closed after the statement because then the file handle goes out of scope. It all depends on the way any

Re: open, close

2019-09-01 Thread Manfred Lotz
On Sun, 1 Sep 2019 16:46:44 +0100 Barry wrote: > > On 31 Aug 2019, at 15:41, Manfred Lotz wrote: > > > > When you say COULD this sounds like it is a matter of luck. My > > thinking was that USUALLY the file will be closed after the > > statement because then the file handle goes out of scope.

Re: open, close

2019-09-01 Thread Barry
> On 31 Aug 2019, at 15:41, Manfred Lotz wrote: > > When you say COULD this sounds like it is a matter of luck. My thinking > was that USUALLY the file will be closed after the statement because > then the file handle goes out of scope. It all depends on the way any python implementation does

Re: ``if var'' and ``if var is not None''

2019-09-01 Thread Ian Kelly
On Sun, Sep 1, 2019, 8:58 AM Terry Reedy wrote: > On 9/1/2019 2:12 AM, Hongyi Zhao wrote: > > > The following two forms are always equivalent: > > ``if var'' and ``if var is not None'' > > Aside from the fact that this is false, why would you post such a thing? > Trolling? Did you hit [Send]

Re: ``if var'' and ``if var is not None''

2019-09-01 Thread Terry Reedy
On 9/1/2019 2:12 AM, Hongyi Zhao wrote: The following two forms are always equivalent: ``if var'' and ``if var is not None'' Aside from the fact that this is false, why would you post such a thing? Trolling? Did you hit [Send] prematurely? -- Terry Jan Reedy -- https://mail.python.org/

Re: ``if var'' and ``if var is not None''

2019-09-01 Thread Piet van Oostrum
Hongyi Zhao writes: > Hi, > > The following two forms are always equivalent: > > ``if var'' and ``if var is not None'' > > Regards In [1]: var = 0 In [2]: if var: ...: print('True') ...: else: ...: print('False') False In [3]: if var is not None: ...: print('True')