Hi everyone,
I am researching how to automatically run some of my scripts after I log
into my Windows machine. I don't want to have to manually run the script or
setup a windows task.
I'd like to have a piece of code that I can insert into my script that will
allow it to run after I login.
I fou
I have been able to write up what I want to do (using glob) but I am not
sure how to loop it or simplify it to make the script more efficient.
I am currently:
-grouping the same months in a year using glob
-opening the files in a group and combining the data using a list
-finding max, min etc for t
On 4/4/2012 6:27 PM Tim Johnson said...
See the following console session:
4.6.__class__.__name__
The first decimal is considered to be part of the float literal here...
'float'
6.__class__.__name__
... _and_ here...
File "", line 1
6.__class__.__name__
^
SyntaxE
See the following console session:
>>> 4.6.__class__.__name__
'float'
>>> 6.__class__.__name__
File "", line 1
6.__class__.__name__
^
SyntaxError: invalid syntax
>>> x = 6
>>> x.__class__.__name__
'int'
>>> "me".__class__.__name__
'str'
I note that the reference to '__class__.__
thanks for responding.
Glob and os.walk will work but I would need to type up a separate command
for each month of each year and that doesn't seem very efficient. Is there
a way to make it go through and group txt files with similar filenames
e.g something like:
if fname.endswith('.txt')and fname[0
--- On Wed, 4/4/12, Mark Lawrence wrote:
> From: Mark Lawrence
> Subject: Re: [Tutor] cPickle/pickle help
> To: tutor@python.org
> Date: Wednesday, April 4, 2012, 1:16 PM
> On 04/04/2012 18:25, b. nyec wrote:
> > Hello,
> >
> > I'm not sure if this is the correct list to post this
> on, but i
On 4/4/2012 12:35 PM, Walter Luna wrote:
Dear Python friends:
Thank you for the rapid response, I researched the information you
sent me and it has a lot of resources that I can use. I will use some
of those resources and continue with my learning journey, I am sure
that I will have a lot of
On 04/04/2012 18:25, b. nyec wrote:
Hello,
I'm not sure if this is the correct list to post this on, but i was wondering i
someone could help me. I'm wondering if there exists a pickler example written
in C ? I understand the cPickle module was written in C, but looking at it
seems daunting t
On 04/04/12 18:25, b. nyec wrote:
I'm not sure if this is the correct list to post this on,
No its not, this list is for folks learning Python the language.
but i was wondering i someone could help me.
You might get lucky here but are more likely to find responses
on the main Python mailin
On 04/04/12 17:35, Walter Luna wrote:
Dear Python friends:
Thank you for the rapid response, I researched the information you sent
me and it has a lot of resources that I can use.
You are welcome however, when posting to the list in future, please do
not reply to a digest message without:
-
Hello,
I'm not sure if this is the correct list to post this on, but i was wondering i
someone could help me. I'm wondering if there exists a pickler example written
in C ? I understand the cPickle module was written in C, but looking at it
seems daunting to create sample code from it. I found
Dear Python friends:
Thank you for the rapid response, I researched the information you sent me
and it has a lot of resources that I can use. I will use some of those
resources and continue with my learning journey, I am sure that I will have
a lot of questions but I feel confident that I have you
To Joel's and Wesley's valuable comments I add:
Calling a generator function returns a /generator object/.
>>> def x(n):
... for i in range(n): yield i
...
>>> y = x(3)
>>> print y
A generator object can be used instead of some other "iterable" (e.g.)
in for statements.
>>> for i in y:print
13 matches
Mail list logo