Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Greg Ewing via Python-list
How are you invoking your script? Presumably you have some code in your embedding application that takes a script path and runs it. Instead of putting the code to update sys.path into every script, the embedding application could do it before running the script. -- Greg --

Junior Research Associate in HPC | Job position at CMCC Foundation, Italy

2023-04-21 Thread info cmcc
*Junior Research Associate in HPC* *Deadline: May 15, 2023* *The job location is CMCC Headquarters of Lecce* The CMCC Foundation is a scientific research center on climate change and its interactions with the environment, society, the world of business, and policymakers. Our work aims to

Deadline Reminder: April 30, 2023 - Software Developer | Job position at CMCC Foundation, Italy

2023-04-21 Thread info cmcc
*Software Developer (Research Associate) code 12428* (Deadline: April 30, 2023) The CMCC Foundation is a scientific research center on climate change and its interactions with the environment, the society, the world of business and policy makers. Our work aims to stimulate sustainable growth,

Re: Question regarding unexpected behavior in using __enter__ method

2023-04-21 Thread aapost
On 4/20/23 18:44, Lorenzo Catoni wrote: Here, the TypeError occurred because "self" was passed as an input Instantiate X and observe it there x2 = X() >>> X.__enter__ >>> X.__exit__ at 0x...> >>> x2.__enter__ >>> x2.__exit__ of <__main__.X object at 0x...>> To receive self the method

Re: Is npyscreen still alive?

2023-04-21 Thread Thomas Passin
On 4/21/2023 5:57 PM, Barry wrote: On 21 Apr 2023, at 22:00, Grant Edwards wrote: I recently googled across the ncurses application framework npyscreen, and was thinking about giving it a try for a small but real project (something that would be distributed to customers), but I'm a bit

Re: Is npyscreen still alive?

2023-04-21 Thread Barry
> On 21 Apr 2023, at 22:00, Grant Edwards wrote: > > I recently googled across the ncurses application framework npyscreen, > and was thinking about giving it a try for a small but real project > (something that would be distributed to customers), but I'm a bit > concerned that npyscreen no

Is npyscreen still alive?

2023-04-21 Thread Grant Edwards
I recently googled across the ncurses application framework npyscreen, and was thinking about giving it a try for a small but real project (something that would be distributed to customers), but I'm a bit concerned that npyscreen no longer "alive". The pypi page says the homepage is

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Thomas Passin
On 4/20/2023 5:47 PM, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the script. However,

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Mats Wichmann
On 4/20/23 15:47, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the script. However, when I

Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Ralf M.
Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the script. However, when I run the same script with

ipaddress (was: Re: for a 'good python')

2023-04-21 Thread Simon Ward
On Thu, Apr 13, 2023 at 04:00:59PM +0100, Barry wrote: Ipaddress was developed outside of the std lib and later added i recall. I used it prior to it being in the standard library: https://pypi.org/project/ipaddr/ Simon -- A complex system that works is invariably found to have evolved from

Re: Question regarding unexpected behavior in using __enter__ method

2023-04-21 Thread Lorenzo Catoni
Thankyou for your answer, i think i found the reason for this behavior, is has to do with the function being user defined or not, rather than being a plain function or type, as stated here

Re: Question regarding unexpected behavior in using __enter__ method

2023-04-21 Thread Peter Otten
On 21/04/2023 00:44, Lorenzo Catoni wrote: Dear Python Mailing List members, I am writing to seek your assistance in understanding an unexpected behavior that I encountered while using the __enter__ method. I have provided a code snippet below to illustrate the problem: ``` class X: ...