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
--
https://mail.python.org
*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 stimula
*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, pro
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 mu
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
conc
> 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 lo
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 http://www.npc
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, whe
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
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 embeddabl
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 a
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
https://docs.python.org/3/reference/datamodel.html#:~:text=Also%20notice%20that%20this%20transformation%20only
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:
... _
13 matches
Mail list logo