Troubleshooting

2019-12-12 Thread catherine morris
Good evening, My son is trying to download python 3.8.0 on my PC, which has Windows 10, and it won't install properly. I'm not tech savvy and have no idea where to start. Catherine Morris -- https://mail.python.org/mailman/listinfo/python-list

initializing "parameters" class in Python only once?

2014-07-14 Thread Catherine M Moroney
us parts of the code? Thank you for any advice, Catherine -- https://mail.python.org/mailman/listinfo/python-list

initializing "parameters" class in Python only once?

2014-07-14 Thread Catherine M Moroney
us parts of the code? Thank you for any advice, Catherine -- https://mail.python.org/mailman/listinfo/python-list

using getattr/setattr for local variables in a member function

2013-11-21 Thread Catherine M Moroney
B": 2} def func2(self): a = [1] b = [2] for attr in ("a", "b"): var = getattr(self, attr) ! What do I put in place of self var.append(100)! to access vars "a" and "b" that

tracking variable value changes

2011-12-08 Thread Catherine Moroney
I am merely assigning a new value to the same object. Is there some way to rewrite the code above so the change of "a" from 1.0 to 100.0 is reflected in the dictionary. I would like to use simple datatypes such as floats, rather than numpy arrays or classes. I tried using weakref's, but got the error that a weak reference cannot be created to a float. Catherine -- http://mail.python.org/mailman/listinfo/python-list

Re: Python advanced course (preferably in NA)

2011-11-03 Thread Catherine Moroney
ference. Well worth the time and money! Catherine Eric Snow wrote: On Thu, Nov 3, 2011 at 12:13 PM, Behnam wrote: Anybody is aware of any advanced course in Python preferably in north america? I've been partly coding in Python for couple of years now and have used PyQt. What I'd l

Re: Python advanced course (preferably in NA)

2011-11-03 Thread Catherine Moroney
ference. Well worth the time and money! Catherine Eric Snow wrote: On Thu, Nov 3, 2011 at 12:13 PM, Behnam wrote: Anybody is aware of any advanced course in Python preferably in north america? I've been partly coding in Python for couple of years now and have used PyQt. What I'd l

fast copying of large files in python

2011-11-02 Thread Catherine Moroney
he os.system call as described above and be done with it? Is that the fastest method in this case? Are there any "pure python" ways of getting the same speed as os.system? Thanks, Catherine -- http://mail.python.org/mailman/listinfo/python-list

using masks and numpy record arrays

2011-05-25 Thread Catherine Moroney
, (2, 0.0), (3, 0.0)], dtype=[('n', '>> a array([(0, 0.0), (0, 0.0), (0, 0.0), (0, 0.0)], dtype=[('n', '>> a = numpy.zeros((4)) >>> a[mask] += b[mask] >>> a array([ 0., 0., 2., 0.]) What is it about a numpy record array that prevents the mask statement from working, and how do I get around this? Thanks, Catherine -- http://mail.python.org/mailman/listinfo/python-list

importing class objects from a pickled file

2011-05-03 Thread Catherine Moroney
hat writes the pickled file has the statement "from Y.X import X" statement" at the top, as does the reading code, but even though that import statement succeeds, the read still fails with the import error. Thanks for any help, Catherine -- http://mail.python.org/mailman/listinfo/python-list

Re: order of importing modules

2011-01-12 Thread Catherine Moroney
pyhdfeos-1.0_r57_58-py2.5-linux-x86_64.egg variable showing up as one of the first entries in sys.path. Thanks for the education, Catherine Dan Stromberg wrote: On Tue, Jan 11, 2011 at 4:30 PM, Catherine Moroney wrote: In what order does python import modules on a Linux system? I have a packa

Re: order of importing modules

2011-01-12 Thread Catherine Moroney
pyhdfeos-1.0_r57_58-py2.5-linux-x86_64.egg variable showing up as one of the first entries in sys.path. Thanks for the education, Catherine Dan Stromberg wrote: On Tue, Jan 11, 2011 at 4:30 PM, Catherine Moroney wrote: In what order does python import modules on a Linux system? I have a packa

order of importing modules

2011-01-11 Thread Catherine Moroney
4 is in my PATH variable, but doesn't appear anywhere else. I don't want to remove /usr/lib64 from my PATH because that will break a lot of stuff. Can I force python to import from my PYTHONPATH first, before looking in the system directory? Catherine -- http://mail.python.org/mailman/listinfo/python-list

Re: getting a string as the return value from a system command

2010-04-16 Thread Catherine Moroney
Robert Kern wrote: On 2010-04-16 14:06 PM, Catherine Moroney wrote: Hello, I want to call a system command (such as uname) that returns a string, and then store that output in a string variable in my python program. What is the recommended/most-concise way of doing this? I could always

getting a string as the return value from a system command

2010-04-16 Thread Catherine Moroney
: hostinfo = subprocess.Popen("uname -srvi") and have hostinfo be a string containing the result of issuing the uname command. Thanks for any tips, Catherine -- http://mail.python.org/mailman/listinfo/python-list

uniqueness of temporary files generated by tempfile

2009-03-06 Thread Catherine Moroney
nning simultaneously? Catherine -- http://mail.python.org/mailman/listinfo/python-list

Response codes and \r\n

2009-03-05 Thread Catherine Heathcote
Heya, I am reading an XML file (code at the end if it helps) and all goes well except I am getting the http response code printed. So everything (hat works of course) has "200 OK" on the first line. Am I missing some simple way of surprising this, or should I just delete the 1st line before p

Re: Keeping the Console Open with IDLE

2009-02-20 Thread Catherine Heathcote
W. eWatson wrote: Catherine Heathcote wrote: W. eWatson wrote: Catherine Heathcote wrote: W. eWatson wrote: I'm not sure whether I should feel old or write a smart alec comment -- I suppose there are people in the world who don't know what to do with a command prompt

Re: Keeping the Console Open with IDLE

2009-02-20 Thread Catherine Heathcote
W. eWatson wrote: Catherine Heathcote wrote: W. eWatson wrote: I'm not sure whether I should feel old or write a smart alec comment -- I suppose there are people in the world who don't know what to do with a command prompt Assuming a Windows system: 2. Type 'cd

Re: Keeping the Console Open with IDLE

2009-02-20 Thread Catherine Heathcote
W. eWatson wrote: I'm not sure whether I should feel old or write a smart alec comment -- I suppose there are people in the world who don't know what to do with a command prompt Assuming a Windows system: 2. Type 'cd ' (as in Change Directory) in the command prompt window (w/o the single

Re: Embarrasing questio

2009-02-12 Thread Catherine Heathcote
Aahz wrote: In article , Catherine Heathcote wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) if i % 3 == 0 or i % 5 == 0: You may find it worthwhile to quickly step th

Re: Embarrasing questio

2009-02-12 Thread Catherine Heathcote
TechieInsights wrote: On Feb 12, 9:03 am, Catherine Heathcote wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) Thanks. if i % 3 == 0 or i % 5 == 0 Yea, new it wou

Embarrasing questio

2009-02-12 Thread Catherine Heathcote
But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Couple of noobish question

2009-02-04 Thread Catherine Heathcote
Mike Driscoll wrote: On Feb 4, 10:47 am, Catherine Heathcote wrote: Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning Python, 'cos I saw

Couple of noobish question

2009-02-04 Thread Catherine Heathcote
Firstly hi, I don't know any of you yet but am picking up Python and will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4 years of a comp tech degree, long story) and am learning Python, 'cos I saw some code and it just looks a really nice language to work with. I come from C++

Re: what IDE is the best to write python?

2009-02-03 Thread Catherine Heathcote
Tim Rowe wrote: 2009/2/3 Jervis Whitley : real programmers use ed. Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' our bare teeth... You had teeth!?! Oh and hi, I shall be a new face in the crowd ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: executing multiple functions in background simultaneously

2009-01-14 Thread Catherine Moroney
On Jan 14, 2009, at 5:20 PM, Jean-Paul Calderone wrote: On Wed, 14 Jan 2009 17:11:44 -0800, Catherine Moroney wrote: [snip] The easy thing is to use a Queue object. The background thread uses .put() to place a computed result on the QUeue and the caller uses .get() to read from the queue

Re: executing multiple functions in background simultaneously

2009-01-14 Thread Catherine Moroney
Cameron Simpson wrote: On 14Jan2009 15:50, Catherine Moroney wrote: James Mills wrote: On Wed, Jan 14, 2009 at 11:02 AM, Catherine Moroney wrote: I would like to spawn off multiple instances of a function and run them simultaneously and then wait until they all complete. [...] Try using

Re: executing multiple functions in background simultaneously

2009-01-14 Thread Catherine Moroney
James Mills wrote: On Wed, Jan 14, 2009 at 11:02 AM, Catherine Moroney wrote: I would like to spawn off multiple instances of a function and run them simultaneously and then wait until they all complete. Currently I'm doing this by calling them as sub-processes executable from the command

executing multiple functions in background simultaneously

2009-01-13 Thread Catherine Moroney
a lot prettier and be shorter to boot if I could spawn off function calls rather than subprocesses. Thanks for any advice, Catherine -- http://mail.python.org/mailman/listinfo/python-list

Re: calling python scripts as a sub-process

2008-11-19 Thread Catherine Moroney
Dan Upton wrote: On Wed, Nov 19, 2008 at 2:38 PM, Catherine Moroney <[EMAIL PROTECTED]> wrote: Dan Upton wrote: On Wed, Nov 19, 2008 at 2:13 PM, Philip Semanchuk <[EMAIL PROTECTED]> wrote: On Nov 19, 2008, at 2:03 PM, Catherine Moroney wrote: The command (stored as an array of s

Re: calling python scripts as a sub-process

2008-11-19 Thread Catherine Moroney
Dan Upton wrote: On Wed, Nov 19, 2008 at 2:13 PM, Philip Semanchuk <[EMAIL PROTECTED]> wrote: On Nov 19, 2008, at 2:03 PM, Catherine Moroney wrote: The command (stored as an array of strings) that I'm executing is: ['python ../src_python/Match1.p

Re: calling python scripts as a sub-process

2008-11-19 Thread Catherine Moroney
'--file_ref=MISR_AM1_GRP_ELLIPSOID_GM_P228_O003571_BF_F03_0024.hdf ', '--file_cmp=MISR_AM1_GRP_ELLIPSOID_GM_P228_O003571_DF_F03_0024.hdf ', '--block_start=62 ', '--block_end=62 ', '--istep=16 ', '--chmetric=M2 ', '--use_textid=true&#

calling python scripts as a sub-process

2008-11-19 Thread Catherine Moroney
han calling it directly? File "../src_python/Match4.py", line 24, in RunMatch4 sub1 = subprocess.Popen(command1) File "/usr/lib64/python2.5/subprocess.py", line 593, in __init__ errread, errwrite) File "/usr/lib64/python2.5/subprocess.py", line 1051, in _execu

memory use with regard to large pickle files

2008-10-15 Thread Catherine Moroney
ython 2.5 on a Linux box (Fedora release 7). Is there a way to see how much memory is being consumed by a single data structure or variable? How can I go about debugging this problem? Catherine -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about inheritence

2008-07-22 Thread Catherine Heathcote
On Tue, 22 Jul 2008 09:35:58 -0700, Matimus wrote: > On Jul 22, 9:26 am, Catherine Heathcote > <[EMAIL PROTECTED]> wrote: >> If I create a new class inherited from another with a constructor, what >> happens with the new class's constructer? >> Thanks for your

Question about inheritence

2008-07-22 Thread Catherine Heathcote
If I create a new class inherited from another with a constructor, what happens with the new class's constructer? Thanks for your time. -- http://mail.python.org/mailman/listinfo/python-list

round-trip from egg to code and back to egg

2007-08-17 Thread Catherine
nerate setup.py - maybe such a script has already been written? Can somebody who understands eggs better comment? Thanks very much! - Catherine http://catherinedevlin.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 21, Issue 234 (Out of the Office June 16)

2005-06-15 Thread Catherine Kostyn
I will be out of the office on June 16, to return on June 17. I will reply to your message at that time. Catherine Kostyn Transportation Planner Indianapolis MPO 200 E. Washington St., Ste. 1821 Indianapolis, IN 46204 (317)327-5142 -- http://mail.python.org/mailman/listinfo/python-list