On Oct 19, 8:22 am, dmitrey <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have the code like this one:
>
> from myMisc import ooIter
> class MyClass:
> def __init__(self): pass
> iterfcn = lambda *args: ooIter(self) # i.e pass the class instance
> to other func named ooIter
> field2 = val2
>
On Oct 19, 7:32 am, Florian Lindner <[EMAIL PROTECTED]> wrote:
> Hello,
> I have a string:
>
> INSERT INTO mailboxes (`name`, `login`, `home`, `maildir`, `uid`,
> `gid`, `password`) VALUES (%s, %s, %s, %s, %i, %i, %s)
>
> that is passed to a MySQL cursor from MySQLdb:
>
> ret = cursor.execute(sql,
On Oct 12, 12:23 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> Forgot the enumerate call of all things
>
> > for zipfile in filelist:
> >for i, line in enumerate(gzip.Gzipfile(zipfile,'r')):
> >if i: outfile.write(line)
>
> Some days, I'm braindead.
>
> -tkc
I would move the 'if' test
On Oct 12, 12:19 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > I have a container class A and I want to add functionality to it by
> > using a decorator class B, as follows:
>
> > class A(object):
> > def __len__(self):
> > return 5
>
> > class B(o
Hi,
I have a container class A and I want to add functionality to it by
using a decorator class B, as follows:
class A(object):
def __len__(self):
return 5
class B(object):
def __init__(self, a):
self._a = a
def __getattr__(self, attr):
return getattr(self._a
On Oct 10, 3:32 pm, "Nicholas Bastin" <[EMAIL PROTECTED]> wrote:
> On 10/9/07, Chris Mellon <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 09 Oct 2007 16:56:30 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
>
> > > Is it possible to mix classes defined in both Python and C in the same
> > > module? Ideal
On Oct 5, 7:29 am, Abandoned <[EMAIL PROTECTED]> wrote:
> Hi..
> I try a boolean parser in python since 1 weak.. But i can't do this
> because this is very complicated :(
> Do you know any blooean parser script in python or how do i write a
> boolean parser ?
> example query: ((google or yahoo) or
On Oct 4, 7:35 am, JBJ wrote:
> Hi,
> I'am very newbie in Python.
> For the moment I'am trying to convert an unicode character to his uppercase
> unaccented character.
> By example with locale fr_FR:
> a,A,à,À should return A
> o,O,ô,Ô should return O
> ½,¼ should return ¼
> i,I,î,Î should return
On Sep 27, 11:23 am, "Joshua J. Kugler" <[EMAIL PROTECTED]> wrote:
> A while back, I seem to remember coming across a small program that could
> view and edit python data structures via a nice expanding tree view. I'm
> now in need of something like that (to verify data is imported correctly
> int
On Sep 28, 10:06 am, yadin <[EMAIL PROTECTED]> wrote:
> hi!
> i was buiding an application using python...a program
> this was my first one...now that i got it working perfectly
> how can i put the bunch of files into one package?
> the user of the appliation will not know where to start? that is w
On Sep 27, 2:01 pm, Matthew Wilson <[EMAIL PROTECTED]> wrote:
> I wrote some code to create a user and update a user on a remote box by
> sending emails to that remote box. When I was done, I realized that my
> create_user function and my update_user function were effectively
> identical except fo
On Sep 26, 4:00 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 25 Sep 2007 19:39:33 -0300, Robert Dailey <[EMAIL PROTECTED]>
> escribi?:
>
> > for the _ElementInterface class, there is no documentation for most of
> > the
> > members of this class such as .tail and .text. There's a br
I'm not sure why it doesn't work, but a better way would be to use the
import statement:
import app_applscrip
app_applscript.createOptionList(applOptions)
Cheers
Tim
--
http://mail.python.org/mailman/listinfo/python-list
Hi all, this is possibly a python-dev question but I'll ask here
first.
Situation:
I work on an application that takes 10-20 seconds to startup plus
opening a document. To avoid having to restart the entire application
each edit-debug cycle we rely heavily on the reload command. A typical
method
14 matches
Mail list logo