First  |  Prev |  Next  |  Last
Pages: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
What does the output of return os.lstat(logFile)[ST_CTIME] mean?
Hi, I am trying to get the creation time of a file to be able to correlate it's content timestamps with other log files. In order to get the creation time of the file one a Linux machine i used: return os.lstat(logFile)[ST_CTIME] That returns to me something like: 1279620166 I would like to know the meani... 26 Jul 2010 14:56
Builtn super() function. How to use it with multiple inheritance?And why should I use it at all?
Gregory Ewing wrote: Raymond Hettinger wrote: Every class in the MRO implementing the target method *must* call super() to give the next class in the MRO a chance to run. EXCEPT for the last one, which must NOT call super! The posted example happens to work because object has a default _... 2 Aug 2010 18:03
ValueError: invalid literal for int():
Hi, I have a value, partintid = int(Screw plugg (91_10 -> untitled)) but i get ValueError: invalid literal for int(): Screw plugg (91_10 - untitled) any help? - Sunny ... 26 Jul 2010 08:20
JBR , RENT TO OWN or BUY WITH NO MONEY DOWN ,050-8320722
JBR , RENT TO OWN or BUY WITH NO MONEY DOWN ,050-8320722 JBR Lower market price AED800per/sqft 2 unit (3Bed + Maid) (1800sqft to 3000sqft) +Transfer Fee 2 % + Broker Fee 2% For a program which helped hundreds of tenants in DUBAI/UAE become homeowners who had NO MONEY for the down payment and legal fees? We ... 26 Jul 2010 04:03
Undo-Redo, copy instance, custom events and a problem
Hi, I am developing an app using wxPython. The Undo-Redo implementation is based on storing pre & post state of an attribute. You store the instance before changing the value and store the instance after changing the values. While undoing or redoing, you copy/replace the current state with stored once. For co... 26 Jul 2010 01:56
obtaining pid of child process
Hi, I am using python's multiprocessing module to spawn new process as follows : import multiprocessing import os d = multiprocessing.Process(target=os.system,args=('iostat 2 > a.txt',)) d.start() I want to obtain pid of iostat command or the command executed using multiprocessing module When I ... 26 Jul 2010 00:52
Python acting weird
x = {"type":"folder", "name":"sonicbot", "data":[{"type":"folder", "name":"SonicMail", "data":[{"type":"file", "name":"bbcode.py", "compressed":False, "contents":"blahblahfilecontents"}]}]} print x def setindict(dictionary, keys, value) : if len(keys) == 1 : if keys[0].isdigit() and int(keys[0]) == le... 25 Jul 2010 20:33
Constructor call in the same class?
What's wrong with: class Enum(RootFragment): __jpaTypes = { # complete! 'CascadeType': Enum("javax.persistence.CascadeType"), 'DiscriminatorType': Enum("javax.persistence.DiscriminatorType"), 'EnumType': Enum("javax.persistence.EnumType"), 'FetchType': Enum("javax.p... 25 Jul 2010 12:57
Compare two nested dictionaries
Hi, I am trying to compare two nested dictionaries, I want to know what is the exact difference between them. I tried this solution .... s1 = set(result1) s2 = set(result2) print s1 - s2 but it doesn't seem show any difference, but assert result1 == result2 fails could someone ... 26 Jul 2010 13:50
Hi to the group
I am new for Python & Django,willling to join yours! ... 25 Jul 2010 04:24
First  |  Prev |  Next  |  Last
Pages: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40