First  |  Prev |  Next  |  Last
Pages: 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
question on logging module
On 18May2010 23:42, frank zhu <frank.zhu.mingyu(a)gmail.com> wrote: | Hi, | >From the python 2.6.4 tutorial, refer to | http://docs.python.org/release/2.6.4/tutorial/stdlib2.html#logging | | The above example doesn't work for me. | Here is script log | | ############################################# | | oem@... 19 May 2010 00:41
Classes and threading
I thought I knew how classes worked, but this code sample is making my second guess myself: import threading class nThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) def run(self,args): print self.name print self.args pants = nThread(args=('fr... 19 May 2010 20:29
Pointers on packaging python programs for installation on multipleplatforms?
Hi all I am trying to release my first python program. I would like to be able to create a download which will automatically do stuff like add menu items (eg for KDE, GNOME and Windows). Is there anywhere which explains how to do this? Thanks in advance Brendan ... 19 May 2010 04:58
sound effects in python
Hi, I have a sound file (e.g. .wav; .mp3, etc) in python that I'd like to modify (e.g. change tempo, pitch, add echo, amplify, etc). Any recommendation on how I can achieve this in python independent of platform? Thanks ... 18 May 2010 21:25
how to cause a request for a missing class attribute cause itscalculation
Vincent Davis wrote: Lets say I have class foo(object): def __init__(self, x, y): self.x=x self.y=y def xplusy(self): self.xy = x+y ^ this needs to be self.x + self.y inst = foo(1,2) inst.xy # no value, but I what this to cause the... 18 May 2010 19:14
how to cause a request for a missing class attribute cause its calculation
On Tue, May 18, 2010 at 1:39 PM, Vincent Davis <vincent(a)vincentdavis.net> wrote: Lets say I have class foo(object):     def __init__(self, x, y):         self.x=x         self.y=y     def xplusy(self):         self.xy = x+y inst = foo(1,2) inst.xy   # no value, but I ... 19 May 2010 13:46
setting variables in pdb
If I am in Pdb, I would like to set a temporary variable, for example: (Pdb) r = 1 The 'r' gets interpreted as 'return' by Pdb. Is there a Pdb instruction that guarantees the intended effect, like: (Pdb) let r = 1 I can usually avoid using such variable names, but if I am changing the value of a local v... 18 May 2010 17:00
upgrade python
Would it be safe to upgrade from python 2.6.4 to 2.6.5 without hurting the 2.6.4? ... 18 May 2010 23:36
recall function definition from shell
>>> def myfun(): .... return "WOW" .... myfun() 'WOW' now, i would like to "list" the funcion definition, something like this: myfun.somethinglikethis() def myfun(): return "WOW" is there something like this around? bye ... 18 May 2010 23:36
Is there conversion method to convert pyunicodeobject topybyteobject?
On 5/15/2010 10:50 AM, MathanK wrote: This is the third time, at least, that you posted this, though the first time you asked a question. You have given no indication that you bothered to look in the manual before or between postings. A variable whose data type is PyUnicodeObject is to be assigned to var... 18 May 2010 12:33
First  |  Prev |  Next  |  Last
Pages: 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123