Re: How to set custom locals for function call?

2020-09-01 Thread Andras Tantos
On 9/1/20 5:31 PM, Chris Angelico wrote: On Wed, Sep 2, 2020 at 10:23 AM Andras Tantos wrote: I did see these macros in the CPython source code. What it seems to imply is that if I wanted to do what I intend, that is to hook every local variable assignment, I would have to modify the AST. That

Re: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 11:43 AM Steve wrote: > > >> Requires numpy, dateutil, pytz, setuptools, and optionally numexpr, > >> bottleneck, scipy, matplotlib, pytables, lxml, xarray, blosc, snappy, > >> brotlipy, backports.lzma, statsmodels, sqlalchemy, psycopg2, and whatnot. > > >It means you need

Re: How to set custom locals for function call?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 11:29 AM Andras Tantos wrote: > OK, and sorry about that. May third time a charm? Thank you! Whatever you did this time, that worked :) > Indeed, I'm executing a code object and not a string. Is there any way > to get to the string version of the function and force a re-co

RE: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Steve
>> Requires numpy, dateutil, pytz, setuptools, and optionally numexpr, >> bottleneck, scipy, matplotlib, pytables, lxml, xarray, blosc, snappy, >> brotlipy, backports.lzma, statsmodels, sqlalchemy, psycopg2, and whatnot. >It means you need all those things installed before you can install Pandas

Re: How to set custom locals for function call?

2020-09-01 Thread Andras Tantos
Snipping old parts... On 9/1/20 4:01 PM, Chris Angelico wrote: On Wed, Sep 2, 2020 at 8:44 AM Andras Tantos wrote: While I'm sure you're right, it certainly is well hidden: ... In other words, I can indeed change the value of a local variable through the locals() dict. Not quite. What you'r

Re: How to set custom locals for function call?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 10:23 AM Andras Tantos wrote: > I did see these macros in the CPython source code. What it seems to > imply is that if I wanted to do what I intend, that is to hook every > local variable assignment, I would have to modify the AST. That seems > rather more effort than simply

Turtle Import

2020-09-01 Thread Barnabas Harris
My import function mysteriously stop working. Is there a way to restore it as I need the second screen to see the turtle move when I command it from python 3.8.5 shell but when I hit enter nothing happens. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to set custom locals for function call?

2020-09-01 Thread Andras Tantos
On 9/1/20 1:42 PM, Chris Angelico wrote: On Wed, Sep 2, 2020 at 5:00 AM Andras Tantos wrote: All, I'm new here, so please direct me to the right forum, if this is not the one... What I'm trying to do is to call a function, but monitor all the local variable accesses within that function. Wha

Re: Symlinks already present

2020-09-01 Thread Grant Edwards
On 2020-09-01, Richard Damon wrote: > My research says that Unix System V allowed them, but restricted them to > super users, to avoid the bigger problems with them. I don't know how it > handle the issue of .. SunOS-3/4 (a BSD 4.x derivative) allowed them, but restricted them to root. It did n

Re: How to set custom locals for function call?

2020-09-01 Thread Terry Reedy
On 9/1/2020 5:58 PM, Andras Tantos wrote: On 9/1/2020 12:41 PM, MRAB wrote: CPython is able to identify all of the local names of a function and, Note >>>of a function<<<. basically, for reasons of efficiency, it uses slots for the local names instead of an actual dict. 'locals()' just re

Re: How to set custom locals for function call?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 8:44 AM Andras Tantos wrote: > > While I'm sure you're right, it certainly is well hidden: > > Python 3.8.2 | packaged by conda-forge | (default, Apr 24 2020, > 07:34:03) [MSC v.1916 64 bit (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more informa

Re: Symlinks already present

2020-09-01 Thread Cameron Simpson
On 01Sep2020 18:42, Grant Edwards wrote: >On 2020-09-01, Richard Damon wrote: >> Remember, we are talking about a hypothetical OS that handles >> hardlinks >> to directories, and defines that .. will point to the parent used to >> come to it, NOT just having current *NIX allowing hardlinks to >>

Re: How to set custom locals for function call?

2020-09-01 Thread Andras Tantos
On 9/1/2020 12:41 PM, MRAB wrote: On 2020-09-01 05:45, Andras Tantos wrote: All, I'm new here, so please direct me to the right forum, if this is not the one... What I'm trying to do is to call a function, but monitor all the local variable accesses within that function. What I thought I woul

Re: Symlinks already present

2020-09-01 Thread Richard Damon
On 9/1/20 9:03 AM, Chris Angelico wrote: > On Tue, Sep 1, 2020 at 10:57 PM Richard Damon > wrote: >> On 8/31/20 6:05 PM, Chris Angelico wrote: >>> On Tue, Sep 1, 2020 at 5:08 AM Richard Damon >>> wrote: The file descriptor could remember the path used to get to it. chroot shows that .

Re: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 6:59 AM Steve wrote: > > Wow, that is quite a list > Here is what I narrowed it down to. What does that paragraph starting with > "Requires" mean? > > === > Pandas: a cross-section and time series data analysis toolkit. > > Requires numpy

Re: Symlinks already present

2020-09-01 Thread Eryk Sun
On 9/1/20, Chris Angelico wrote: > On Wed, Sep 2, 2020 at 4:55 AM Eryk Sun wrote: > >> "test2/spam" is a bind mount for "test1/spam", and note that `mount >> --bind` in Linux is a namespace operation, i.e. it's not a new device: >> >> >>> os.lstat('test1/spam').st_dev == os.lstat('test2/spam'

RE: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Steve
Wow, that is quite a list Here is what I narrowed it down to. What does that paragraph starting with "Requires" mean? === Pandas: a cross-section and time series data analysis toolkit. Requires numpy, dateutil, pytz, setuptools, and optionally numexpr, bottlen

Re: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 6:17 AM Steve wrote: > > Ok, I think I ran into this about a year ago when this was suggested back > then. > > I entered “pip install pandas” > > I am told to “install Anaconda which can be deleted later” (huh?) > Then it tells me “Installing with “Miniconda” (huh? Huh?)

Re: How to set custom locals for function call?

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 5:00 AM Andras Tantos wrote: > > All, > > I'm new here, so please direct me to the right forum, if this is not the > one... > > What I'm trying to do is to call a function, but monitor all the local > variable accesses within that function. What I thought I would need to > d

Re: Symlinks already present

2020-09-01 Thread Chris Angelico
On Wed, Sep 2, 2020 at 4:55 AM Eryk Sun wrote: > > On 9/1/20, Chris Angelico wrote: > > > > Also, even if all that could be solved, I don't like the idea that > > reading the same directory from two different sources leads to > > different results. Is it really the same directory if reading it in

RE: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Steve
Ok, I think I ran into this about a year ago when this was suggested back then. I entered “pip install pandas” I am told to “install Anaconda which can be deleted later” (huh?) Then it tells me “Installing with “Miniconda” (huh? Huh?) Then “Installing from PyPl which is what I used to get the s

Re: How to set custom locals for function call?

2020-09-01 Thread MRAB
On 2020-09-01 05:45, Andras Tantos wrote: All, I'm new here, so please direct me to the right forum, if this is not the one... What I'm trying to do is to call a function, but monitor all the local variable accesses within that function. What I thought I would need to do, is to |exec| the funct

Re: Repair was successful

2020-09-01 Thread Lourival Beltrão Martins Jr
Lourival Beltrão Medical Physicist Supervisor Radiation Protection Nuclear Engineer *** Go green, make sense Please consider the environment before printing this e-mail. The contents of this e-mail message (including any attachments) are

How to set custom locals for function call?

2020-09-01 Thread Andras Tantos
All, I'm new here, so please direct me to the right forum, if this is not the one... What I'm trying to do is to call a function, but monitor all the local variable accesses within that function. What I thought I would need to do, is to |exec| the function with a custom |locals| dictionary.

Re: Symlinks already present

2020-09-01 Thread Grant Edwards
On 2020-09-01, Richard Damon wrote: > Remember, we are talking about a hypothetical OS that handles hardlinks > to directories, and defines that .. will point to the parent used to > come to it, NOT just having current *NIX allowing hardlinks to > directories with no remediation of the issues cau

Re: Symlinks already present

2020-09-01 Thread Eryk Sun
On 9/1/20, Chris Angelico wrote: > > Also, even if all that could be solved, I don't like the idea that > reading the same directory from two different sources leads to > different results. Is it really the same directory if reading it in > different ways gives different results? What's your take

Re: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Akkana Peck
Steve writes: > Glutton for punishment, I am looking into designing another .py program. I > would like to pull two columns of information from Excel but the more I look I've found the xlrd module easy to use for extracting data from Excel files. But I've only used it on .xsl and .xsls. I've neve

Re: Symlinks already present

2020-09-01 Thread Chris Angelico
On Tue, Sep 1, 2020 at 10:57 PM Richard Damon wrote: > > On 8/31/20 6:05 PM, Chris Angelico wrote: > > On Tue, Sep 1, 2020 at 5:08 AM Richard Damon > > wrote: > >> The file descriptor could remember the path used to get to it. chroot > >> shows that .. needs to be somewhat special, as it needs t

Re: Symlinks already present

2020-09-01 Thread Richard Damon
On 8/31/20 6:05 PM, Chris Angelico wrote: > On Tue, Sep 1, 2020 at 5:08 AM Richard Damon wrote: >> The file descriptor could remember the path used to get to it. chroot >> shows that .. needs to be somewhat special, as it needs to go away for >> anyone that . is their current root. > But my point

Re: What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Peter Otten
Steve wrote: > Glutton for punishment, I am looking into designing another .py program. > I would like to pull two columns of information from Excel but the more I > look > into coding on the 'net, the more confusing it looks. I don't understand > what I need to import or install to get the link

Re: Threading plus multiprocessing plus cv2 error

2020-09-01 Thread John O'Hagan
On Sun, 30 Aug 2020 09:59:15 +0100 Barry Scott wrote: > > > > On 29 Aug 2020, at 18:01, Dennis Lee Bieber > > wrote: > > > > On Sat, 29 Aug 2020 18:24:10 +1000, John O'Hagan > > declaimed the following: > > > >> There's no error without the sleep(1), nor if the Process is > >> started befor

What kind of magic do I need to get python to talk to Excel xlsm file?

2020-09-01 Thread Steve
Glutton for punishment, I am looking into designing another .py program. I would like to pull two columns of information from Excel but the more I look into coding on the 'net, the more confusing it looks. I don't understand what I need to import or install to get the link. Steve Footnote: S