Re: Internet Explorer 8 beta release

2008-03-06 Thread M�ta-MCI (MVP)
Hi! > compliance with the W3C standard Ouarf! Ouarf! which navigator has been compatible with CSS-3, left for several years? And, it's only ONE point... @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GDB Wrapper

2008-03-06 Thread Martin v. Löwis
> Has anyone does this before ? Even some basic idea or code as to how > to proceed would be great. Have you seen Misc/gdbinit? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Ncurses not found - embedded linux

2008-03-06 Thread Peter Otten
blaine wrote: >> > I hope this is trivial, and I apologize ahead of time if so. Would >> > this perhaps be a compilation issue? Something we have to turn on in >> > the python compile? >> >> Usually, you need not only the libraries but also the headers at >> compilation time. Most probably these

Re: Python GDB Wrapper

2008-03-06 Thread Daniel Bonekeeper
On Fri, Mar 7, 2008 at 4:01 AM, Raja <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to develop a a GDB wrapper script in python which is > able to extract a stack trace and all relevant data. > > Has anyone does this before ? Even some basic idea or code as to how > to proceed would be grea

Python GDB Wrapper

2008-03-06 Thread Raja
Hi, I am trying to develop a a GDB wrapper script in python which is able to extract a stack trace and all relevant data. Has anyone does this before ? Even some basic idea or code as to how to proceed would be great. Thanks, Raja. -- http://mail.python.org/mailman/listinfo/python-list

Regarding an exciting opportunity in PYTHON at Hyderabad

2008-03-06 Thread Nat
We have been looking for Senior Professional based at Hyderabad for one of our clients which an upcoming Product development company based out of hyderabad . I would appreciate if you can repond back with your profile at [EMAIL PROTECTED] would get back to you with complete details and accordingly

the problem of import module

2008-03-06 Thread [EMAIL PROTECTED]
follow the dive into python - >>> import sys >>> sys.path >>> sys.path.append('E:\achieve\book\diveintopython-pdfzh-cn-5.4b\diveintopythonzh-cn-5.4b\py') - I append the fi

Re: help on file storage for split multi part download

2008-03-06 Thread coolman . guron
On Mar 7, 1:38 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 06 Mar 2008 14:34:27 -0200, <[EMAIL PROTECTED]> escribi�: > > > storage class which can write the file splits that are currently being > > downloaded to the disk. this is exactly what other download > > accelerators do, i g

jython jmx tutorials?

2008-03-06 Thread pythonNEWB
I am looking to try to build a simple, generic tool for basic monitoring and gathering of config information from java app servers such as weblogic (I know WLST is there, but I want the exercise and for it to work with more than just weblogic), tomcat and jboss using jython and jmx. Can anyone rec

Re: Looking for very light weight template library (not framework)

2008-03-06 Thread Bernard
Cheetah! Cheetah! Cheetah! On 6 mar, 20:56, "Malcolm Greene" <[EMAIL PROTECTED]> wrote: > New to Python and looking for a template library that allows Python > expressions embedded in strings to be evaluated in place. In other words > something more powerful than the basic "%(variable)s" or "$vari

Fwd: OT: Failed saving throw

2008-03-06 Thread Michael Wieher
build a tomb? ...or raid one? -- Forwarded message -- From: Aahz <[EMAIL PROTECTED]> Date: 5 Mar 2008 07:36:37 -0800 Subject: OT: Failed saving throw To: python-list@python.org For anyone who hasn't heard, E. Gary Gygax died yesterday. Some people think we should build a tomb in

Re: Looking for very light weight template library (not framework)

2008-03-06 Thread Jeff McNeil
Cheetah (http://www.cheetahtemplate.org/) and Mako (http://www.makotemplates.org/) come to mind. Isn't there some long running joke about new Python programmers creating their own template language or something, too? =) I know you said you don't want a web framework, but I've always been a fan of

Re: Looking for very light weight template library (not framework)

2008-03-06 Thread Carl Banks
On Mar 6, 8:56 pm, "Malcolm Greene" <[EMAIL PROTECTED]> wrote: > New to Python and looking for a template library that allows Python > expressions embedded in strings to be evaluated in place. In other words > something more powerful than the basic "%(variable)s" or "$variable" > (Template) capabil

Re: access to base class __init__

2008-03-06 Thread Sam
Dennis Lee Bieber wrote: > > I'm not sure why you need to subclass from threading.Thread if all > the thread control is being done internal to this class. Subclassing > means being able to do things like: > Well it was the first thing that occured to me how to have private data for each thread

Re: Looking for very light weight template library (not framework)

2008-03-06 Thread Erik Max Francis
Malcolm Greene wrote: > New to Python and looking for a template library that allows Python > expressions embedded in strings to be evaluated in place. In other words > something more powerful than the basic "%(variable)s" or "$variable" > (Template) capabilities. > > I know that some of the web

Re: Flash interface for a python program

2008-03-06 Thread Kay Schluehr
On 7 Mrz., 01:46, icarus <[EMAIL PROTECTED]> wrote: > Is it possible to call an external python program, through a Flash > interface? > > Meaning, I create a Flash window with a button. When I press that > button, it automagically invokes the external python program. Is that > possible? Any books

Looking for very light weight template library (not framework)

2008-03-06 Thread Malcolm Greene
New to Python and looking for a template library that allows Python expressions embedded in strings to be evaluated in place. In other words something more powerful than the basic "%(variable)s" or "$variable" (Template) capabilities. I know that some of the web frameworks support this type of tem

Re: Difference between 'function' and 'method'

2008-03-06 Thread castironpi
On Mar 6, 7:10 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 06 Mar 2008 22:56:33 -0200, <[EMAIL PROTECTED]> escribió: > > > On Mar 6, 5:35 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > >> p = P() > >> print p.bar.func_name # -> bar > >> p.bar.im_func.anotherattribute = 1 >

Re: Difference between 'function' and 'method'

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 22:56:33 -0200, <[EMAIL PROTECTED]> escribió: > On Mar 6, 5:35 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> >> p = P() >> print p.bar.func_name # -> bar >> p.bar.im_func.anotherattribute = 1 >> print p.bar.anotherattribute # -> 1 >> >> (the attribute must be set on the

Re: While executing the class definition which object is referenced by the first argument of the class method, Y r Object attributes not allowed as default arguments

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 22:48:42 -0200, Krishna <[EMAIL PROTECTED]> escribi�: class Test(object): > ... def __init__(self): > ... self.a= 2 > ... def func(self, k = self.a): > ... print k > ... > Traceback (most recent call last): > File "", line 1, in ? > Fi

Re: How to Encode String of Raw UTF-8 into Unicode?

2008-03-06 Thread Henry Chang
Awesome, that works. Thank you so much! My confusion of the different format made this harder than it should. On Thu, Mar 6, 2008 at 4:53 PM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Thu, 06 Mar 2008 22:43:58 -0200, Henry Chang <[EMAIL PROTECTED]> > escribi�: > > > > Suppose I start o

Re: Difference between 'function' and 'method'

2008-03-06 Thread castironpi
On Mar 6, 5:35 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 05 Mar 2008 02:57:58 -0200, <[EMAIL PROTECTED]> escribi�: > > > > > > >> > > >> >> Can you overload -type-'s decision of what to 'bind'?...   > >> whenever it > >> > > >> >> is it makes it. > > >> > > >> Use delegation inst

Re: How to Encode String of Raw UTF-8 into Unicode?

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 22:43:58 -0200, Henry Chang <[EMAIL PROTECTED]> escribi�: > Suppose I start out with a raw string of utf-8 code points. "utf-8 code points"??? Looks like a utf-8 encoded string, and then written in hex format. > raw_string = "68656E727963" > > I can coerce it into proper

While executing the class definition which object is referenced by the first argument of the class method, Y r Object attributes not allowed as default arguments

2008-03-06 Thread Krishna
>>> class Test(object): ... def __init__(self): ... self.a= 2 ... def func(self, k = self.a): ... print k ... Traceback (most recent call last): File "", line 1, in ? File "", line 4, in Test NameError: name 'self' is not defined >>> In the 'definition of the cl

Flash interface for a python program

2008-03-06 Thread icarus
Is it possible to call an external python program, through a Flash interface? Meaning, I create a Flash window with a button. When I press that button, it automagically invokes the external python program. Is that possible? Any books/online tutorials you can recommend me? I guess I'm looking fo

How to Encode String of Raw UTF-8 into Unicode?

2008-03-06 Thread Henry Chang
Hi everyone, Suppose I start out with a raw string of utf-8 code points. raw_string = "68656E727963" I can coerce it into proper unicode format by slicing out two characters at a time. unicode_string = u"\x68\x65\x6E\x72\x79\x63" >>> print unicode_proper >>> henry My question: is the

Re: Ncurses not found - embedded linux

2008-03-06 Thread blaine
> > I hope this is trivial, and I apologize ahead of time if so. Would > > this perhaps be a compilation issue? Something we have to turn on in > > the python compile? > > Usually, you need not only the libraries but also the headers at > compilation time. Most probably these were missing. > > Die

Re: Internet Explorer 8 beta release

2008-03-06 Thread Matt Nordhoff
Colin J. Williams wrote: > Isn't compliance with the W3C standard > the best way of achieving multiple > browser rendering? Exactly. IE 8 is supposed to be significantly less horrible. It won't catch up completely, but perhaps by IE 9 it will. Or this is all a joke, Microsoft buys Opera and shut

Re: Classes and modules are singletons?

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 20:45:09 -0200, <[EMAIL PROTECTED]> escribi�: > I'd like to question the source of the definition of C.__eq__. > > Observation: > class C: pass > ... class D: pass > ... C== D > False > > What is different about them? I've created two empty classes, nothing > mo

Re: Internet Explorer 8 beta release

2008-03-06 Thread Colin J. Williams
shsha wrote: > Internet Explorer 8 beta release is for developers, and Microsoft's > Dean Hachamovitch promised at MIX08 that IE8 will make it easier to > build Web sites for multiple browsers and stop wasting developers' > time. Microsoft's IE8 features Activities for looking up information > and

How to clear a list (3 ways).

2008-03-06 Thread francois . petitjean
Consider the following code : #!/usr/bin/env python # -*- coding: latin_1 -*- """ container.py how to clear a container """ class Container(object): def __init__(self): self.elts = {} self.parts = [] def clear(self): self.elts.clear() # for a dictionary it's cl

Re: Classes and modules are singletons?

2008-03-06 Thread castironpi
On Mar 6, 3:24 pm, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Steven D'Aprano  <[EMAIL PROTECTED]> wrote: > > > > >I accept my question about classes being singletons is not well-formed, > >not even in my own mind. I guess one way of asking is, for any two class > >objects

Re: Protocol for thread communication

2008-03-06 Thread castironpi
> > Does anyone have any recommended ideas/ways of implementing a proper > > control and status protocol for communicating with threads?  I have a > > program that spawns a few worker threads, and I'd like a good, clean way > > of communicating the status of these threads back to the main thread. >

Re: Classes and modules are singletons?

2008-03-06 Thread castironpi
On Mar 6, 2:57 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Thu, 06 Mar 2008 11:06:50 -0800, castironpi wrote: > > On Mar 6, 8:30 am, Carl Banks <[EMAIL PROTECTED]> wrote: > >> Anyway, the answer to what you are probably asking is No.  Try this: > > >> >>>import module > >> >>>c1 =

Re: system32 directory

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 19:15:17 -0200, Robert Dailey <[EMAIL PROTECTED]> escribi�: > On Thu, Mar 6, 2008 at 2:42 AM, Tim Golden <[EMAIL PROTECTED]> wrote: >> >> >>> import win32api >> >>> win32api.GetSystemDirectory () >> 'C:\\WINDOWS\\system32' > > I was aiming to figure out if the standard modu

Re: system32 directory

2008-03-06 Thread Mike Driscoll
On Mar 6, 3:49 pm, Trent Mick <[EMAIL PROTECTED]> wrote: > > I was aiming to figure out if the standard modules shipped with Python > > could do this already before I started using 3rd party libraries. Thanks. > > You could also manage it with the ctypes module, if you consider that > standard: it

Re: Python on the renderfarm

2008-03-06 Thread Mike Driscoll
On Mar 6, 3:35 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > It is fairly well know that cinematic digital effects are most often > rendered on *nix machines with efficient numeric > code.http://www.linuxjournal.com/article/9951 > > But Python sometimes has a role too: from the middile of the ab

Re: system32 directory

2008-03-06 Thread Trent Mick
> I was aiming to figure out if the standard modules shipped with Python > could do this already before I started using 3rd party libraries. Thanks. You could also manage it with the ctypes module, if you consider that standard: it is in the python.org and ActivePython distros as of Python 2.5.

Python on the renderfarm

2008-03-06 Thread Terry Reedy
It is fairly well know that cinematic digital effects are most often rendered on *nix machines with efficient numeric code. http://www.linuxjournal.com/article/9951 But Python sometimes has a role too: from the middile of the above link ''' Tippett Studio: Linux Python Pipeline JET is a proprie

Re: What is a class?

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 14:40:47 -0200, <[EMAIL PROTECTED]> escribi�: > On Mar 6, 12:17 am, "Daniel Fetchinson" <[EMAIL PROTECTED]> > wrote: >> >> > What does exec( open( 'modA.py' ).read() ) do? >> > > A more appropriate formulation of the 'question behind the words' > would have been, 'are there any

Re: OT: Failed saving throw

2008-03-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On 5 Mar 2008 07:36:37 -0800, [EMAIL PROTECTED] (Aahz) declaimed the >following in comp.lang.python: >> >> For anyone who hasn't heard, E. Gary Gygax died yesterday. Some people >> think we should build a tomb in his ho

Re: Classes and modules are singletons?

2008-03-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >I accept my question about classes being singletons is not well-formed, >not even in my own mind. I guess one way of asking is, for any two class >objects (not instances) C1 and C2, does "C1 == C2" imply "C1 is C2"? E

Re: Converting a string to the most probable type

2008-03-06 Thread Luis M . González
On 6 mar, 11:27, Pierre Quentel <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to know if there is a module that converts a string to a > value of the "most probable type" ; for instance : > - if the string is "abcd" the value is the same string "abcd" > - string "123" : value = the integer 123

Re: system32 directory

2008-03-06 Thread Robert Dailey
On Thu, Mar 6, 2008 at 2:42 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > > > First thing to do when asking "How do I do X in Python under Windows?" > is to stick -- python X -- into Google and you get, eg: > > > http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/win32api__GetSystemDirec

Internet Explorer 8 beta release

2008-03-06 Thread shsha
Internet Explorer 8 beta release is for developers, and Microsoft's Dean Hachamovitch promised at MIX08 that IE8 will make it easier to build Web sites for multiple browsers and stop wasting developers' time. Microsoft's IE8 features Activities for looking up information and Webslices to watch port

Re: Bit twiddling floating point numbers

2008-03-06 Thread [EMAIL PROTECTED]
On Mar 6, 11:00 am, Bryan Olson <[EMAIL PROTECTED]> wrote: > Mark Dickinson wrote: > > Jeff Goldfin wrote: > >> I can pack and unpack a float into a long > >> e.g. > >> struct.unpack('I',struct.pack('f',0.123))[0] > >> but then I'm not sure how to work with the resulting long. > > >> Any suggestion

Re: Classes and modules are singletons?

2008-03-06 Thread Marc 'BlackJack' Rintsch
On Thu, 06 Mar 2008 11:06:50 -0800, castironpi wrote: > On Mar 6, 8:30 am, Carl Banks <[EMAIL PROTECTED]> wrote: >> Anyway, the answer to what you are probably asking is No.  Try this: >> >> >>>import module >> >>>c1 = module.Someclass >> >>>reload(module) >> >>>c2 = module.Someclass >> >>>c1 is c

Re: help on file storage for split multi part download

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 14:34:27 -0200, <[EMAIL PROTECTED]> escribi�: > storage class which can write the file splits that are currently being > downloaded to the disk. this is exactly what other download > accelerators do, i guess. > > can this be done using the python file class?? i am pretty good a

Re: Py-Extension Irregularity

2008-03-06 Thread Michael Wieher
Ah. Well, that is true =) Still, the fact of the file-pointer shifting more than 16-increments to the right is insane. Its a simple read(&struct,16) command. but you're right, the problem might lie elsewhere. I forgot that using 0 for a sentinel value in two places can confuse a complier (let

Re: Altering imported modules

2008-03-06 Thread Tro
On Wednesday 05 March 2008, Bruno Desthuilliers wrote: > Tro a écrit : > > Hi, list. > > > > I've got a simple asyncore-based server. However, I've modified the > > asyncore module to allow me to watch functions as well as sockets. The > > modified asyncore module is in a specific location in my pr

Re: Converting a string to the most probable type

2008-03-06 Thread rockingred
On Mar 6, 3:20 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Mar 6, 9:27 am, Pierre Quentel <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > I would like to know if there is a module that converts a string to a > > value of the "most probable type" ; for instance : > > - if the string is "abc

Re: Py-Extension Irregularity

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 13:54:44 -0200, Michael Wieher <[EMAIL PROTECTED]> escribi�: > Observe. > > Python Code Snippet: > > ... > 66 while i < (self.nPCodes): > 67# print "%s:%s" % (self.nPCodes,i) > 68 (c,l,sn,f,fn,sz) = tabmodule.getQuestion

Re: Converting a string to the most probable type

2008-03-06 Thread George Sakkis
On Mar 6, 9:27 am, Pierre Quentel <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to know if there is a module that converts a string to a > value of the "most probable type" ; for instance : > - if the string is "abcd" the value is the same string "abcd" > - string "123" : value = the integer 12

Re: Exploring Attributes and Methods

2008-03-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi, > Is there a python command that allows me to extract the names (not > values) of the attributes of a class. > > example > > Class Sample: > fullname = 'Something' > > How can I know that this class has an attribute called 'fullname'? > > I hope my question

Re: Ncurses not found - embedded linux

2008-03-06 Thread Diez B. Roggisch
blaine schrieb: > Hello Everyone! > I am hoping that someone out there can help me out with this > problem. We are using a gumstix platform to develop an embedded > system. All that really matters is that it is an ARM processor > running an embedded linux, details to follow. Gumstix has its ow

Re: Python CGI & Webpage with an Image

2008-03-06 Thread Bryan Olson
rodmc wrote: > [...] I have played around a bit more > so that both the image and HTML file are in the public_html folder. > They are called via python using a relative URL, and have permissions > set to 755. Within the HTML file the image is accessed using just > "banner.jpg". The actual page disp

Re: Data aggregation

2008-03-06 Thread petr . jakes . tpc
On Mar 6, 7:44 pm, John Nagle <[EMAIL PROTECTED]> wrote: > vedranp wrote: > > I would like to avoid the step of taking data out from database in > > order to process it. > > You can probably do this entirely within SQL. Most SQL databases, > including MySQL, will let you put the result of a SE

Re: List all files using FTP

2008-03-06 Thread Simon Brunning
On Thu, Mar 6, 2008 at 6:11 PM, jay graves <[EMAIL PROTECTED]> wrote: > On Mar 6, 10:46 am, Anders Eriksson <[EMAIL PROTECTED]> wrote: > > I need to list all the files on my FTP account (multiple subdirectories). I > > don't have shell access to the account. > > anyone that has a program that wi

Ncurses not found - embedded linux

2008-03-06 Thread blaine
Hello Everyone! I am hoping that someone out there can help me out with this problem. We are using a gumstix platform to develop an embedded system. All that really matters is that it is an ARM processor running an embedded linux, details to follow. Gumstix has its own kernel tree that we cros

Re: Class context execution problems

2008-03-06 Thread Gabriel Genellina
En Thu, 06 Mar 2008 11:04:26 -0200, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> escribi�: > I'm using a class in a conext other than the subpackage in which it is > located and I'm getting template lookup errors. > > This class expects to find a .pt file in a directory relative to its > package.

Re: Exploring Attributes and Methods

2008-03-06 Thread [EMAIL PROTECTED]
On Mar 7, 12:30 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | Hi, > | Is there a python command that allows me to extract the names (not > | values) of the attributes of a class. > | > | example > | > | Class Sample: > |fullna

Re: What is a class?

2008-03-06 Thread castironpi
On Mar 6, 1:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Mar 5, 7:50 pm, [EMAIL PROTECTED] wrote: > > > What is a class that is not a module? > > A class is a bag of stuff and a namespace :) > > J. A module is a bag of stuff and a namespace. Different stuff. { '__module__', '__weak

Re: Exploring Attributes and Methods

2008-03-06 Thread Paul McGuire
On Mar 6, 1:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, >  Is there a python command that allows me to extract the names (not > values) of the attributes of a class. > > example > > Class Sample: >     fullname = 'Something' > > How can I know that this class has an attribute called

Re: Exploring Attributes and Methods

2008-03-06 Thread Tim Chase
> Class Sample: > fullname = 'Something' > > How can I know that this class has an attribute called 'fullname'? with the builtin hasattr() function :) >>> class Sample: fullname='Something' ... >>> hasattr(Sample, 'fullname') True -tkc -- http://mail.python.org/mailman/listinfo/python-

Re: Exploring Attributes and Methods

2008-03-06 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi, | Is there a python command that allows me to extract the names (not | values) of the attributes of a class. | | example | | Class Sample: |fullname = 'Something' | | How can I know that this class has an attribute called 'full

Re: Better grammar.txt

2008-03-06 Thread Jeroen Ruigrok van der Werven
-On [20080306 19:21], member thudfoo ([EMAIL PROTECTED]) wrote: >An error occurred while loading >http://www.martinrinehart.com/articles/python-grammar.html: >Unknown host www.martinrinehart.com Works for me. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http

Exploring Attributes and Methods

2008-03-06 Thread [EMAIL PROTECTED]
Hi, Is there a python command that allows me to extract the names (not values) of the attributes of a class. example Class Sample: fullname = 'Something' How can I know that this class has an attribute called 'fullname'? I hope my question is clear. Thanks -- http://mail.python.org/mail

Re: Classes and modules are singletons?

2008-03-06 Thread castironpi
On Mar 6, 8:30 am, Carl Banks <[EMAIL PROTECTED]> wrote: > On Mar 5, 8:44 pm, Steven D'Aprano <[EMAIL PROTECTED] > > cybersource.com.au> wrote: > > But what about classes? Are they singletons? Obviously classes aren't > > Singleton classes, that is, given an arbitrary class C you can create > > mul

Re: What is a class?

2008-03-06 Thread [EMAIL PROTECTED]
On Mar 5, 7:50 pm, [EMAIL PROTECTED] wrote: > What is a class that is not a module? A class is a bag of stuff and a namespace :) J. -- http://mail.python.org/mailman/listinfo/python-list

HURRICANE ANDREW 1992 Rare & Raw Footage

2008-03-06 Thread Whoshaq
HURRICANE ANDREW 1992 Rare & Raw Footage Parts 1 thru 7: http://www.youtube.com/watch?v=zKGMQFWWJ0g -- http://mail.python.org/mailman/listinfo/python-list

Re: Data aggregation

2008-03-06 Thread John Nagle
vedranp wrote: > I would like to avoid the step of taking data out from database in > order to process it. You can probably do this entirely within SQL. Most SQL databases, including MySQL, will let you put the result of a SELECT into a new table. John Nagle

Re: Please keep the full address

2008-03-06 Thread castironpi
> > > > I'm talking about castironpi.  I find his posts a waste of my time > > > > "His" posts? > > > Whatever.  I'm too old to worry about searching for politically correct, > > gender neutral pronouns. > > I'm pretty sure even the most PC people wouldn't suggest using a > masculine pronoun for an

Re: Identifying messages in a thread (was: Please keep the full address)

2008-03-06 Thread castironpi
On Mar 6, 10:47 am, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Thu, 6 Mar 2008 07:58:06 -0800 (PST) > > Carl Banks <[EMAIL PROTECTED]> wrote: > > > I don't want to have to tag every thread.  I just want to *plonk* > > > certain posters. > > > > Anyway, I'll live with Google's failings I gue

Re: Dual look-up on keys?

2008-03-06 Thread castironpi
> Actually, there's another data structure I was working on (a year ago > now) that's tangentially related, so if you guys want me to hold off > on that one til you or I is satisfied on the company-product map, I > will!  Otherwise, I'll just post it here and leave it to you. > (Knowing myself, som

Re: Better grammar.txt

2008-03-06 Thread member thudfoo
On 3/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > It includes three corrections to grammar.txt (imagnumber, xor_expr and > > and_expr) that I've reported. > > > Make that four corrections. Add augop. > > -- > http://mail.python.org/mailman/listinfo/python-lis

Re: Checking if a variable is a dictionary

2008-03-06 Thread Neil Cerutti
On Thu, Mar 6, 2008 at 12:17 PM, Guillermo <[EMAIL PROTECTED]> wrote: > > You can also get the dynamic polymorphism without invoking inheritance > > by specifying a protocol that the values in your dict must implement, > > instead. Protocols are plentiful in Python, perhaps more popular than > >

Re: List all files using FTP

2008-03-06 Thread jay graves
On Mar 6, 10:46 am, Anders Eriksson <[EMAIL PROTECTED]> wrote: > I need to list all the files on my FTP account (multiple subdirectories). I > don't have shell access to the account. > anyone that has a program that will do this? Not offhand, but you can look at the ftpmirror.py script for inspira

Re: Data aggregation

2008-03-06 Thread jay graves
On Mar 6, 10:28 am, vedranp <[EMAIL PROTECTED]> wrote: > So, group by DATE, COUNTRY, ZIP and CITY and sum (or do some You are s close. Look up itertools.groupby Don't forget to sort your data first. http://aspn.activestate.com/ASPN/search?query=groupby&x=0&y=0§ion=PYTHONCKBK&type=Subsection

Re: Please keep the full address

2008-03-06 Thread Carl Banks
On Mar 6, 11:41 am, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Thu, 6 Mar 2008 08:00:58 -0800 (PST) > > Carl Banks <[EMAIL PROTECTED]> wrote: > > > I'm talking about castironpi. I find his posts a waste of my time > > > "His" posts? > > Whatever. I'm too old to worry about searching for p

Re: Checking if a variable is a dictionary

2008-03-06 Thread Guillermo
> You can also get the dynamic polymorphism without invoking inheritance > by specifying a protocol that the values in your dict must implement, > instead. Protocols are plentiful in Python, perhaps more popular than > type hierarchies. I'm used to languages with stricter rules than Python. I've r

Re: Dual look-up on keys?

2008-03-06 Thread castironpi
On Mar 6, 5:16 am, Bryan Olson <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Bryan Olson wrote: > >> How can we efficiently implement an abstract data type, call it > >> 'DoubleDict', where the state of a DoubleDict is a binary > >> relation, that is, a set of pairs (x, y); and the oper

List all files using FTP

2008-03-06 Thread Anders Eriksson
Hello, I need to list all the files on my FTP account (multiple subdirectories). I don't have shell access to the account. anyone that has a program that will do this? // Anders -- English is not my first, or second, language so anything strange, or insulting, is due to the translation. Please

Re: Identifying messages in a thread (was: Please keep the full address)

2008-03-06 Thread D'Arcy J.M. Cain
On Thu, 6 Mar 2008 07:58:06 -0800 (PST) Carl Banks <[EMAIL PROTECTED]> wrote: > > I don't want to have to tag every thread. I just want to *plonk* > > certain posters. > > > > Anyway, I'll live with Google's failings I guess. > > Sounds like you need better filtering. > > A decent news filter sh

Re: What is a class?

2008-03-06 Thread castironpi
On Mar 6, 12:17 am, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > > > Where to begin? > > > What does exec( open( 'modA.py' ).read() ) do? > > The most appropriate list to ask those questions is: > > http://mail.python.org/mailman/listinfo/tutor Thanks for the reference. I'm basically experien

Re: Please keep the full address

2008-03-06 Thread D'Arcy J.M. Cain
On Thu, 6 Mar 2008 08:00:58 -0800 (PST) Carl Banks <[EMAIL PROTECTED]> wrote: > > I'm talking about castironpi. I find his posts a waste of my time > > "His" posts? Whatever. I'm too old to worry about searching for politically correct, gender neutral pronouns. -- D'Arcy J.M. Cain <[EMAIL PRO

help on file storage for split multi part download

2008-03-06 Thread coolman . guron
HI everyone on this group! i am want to write a split part downloading software for use in some projects. (something like a download accelerator) what i think i need is ( my brain is totally exausted at this moment so pls ignore any typos i make) storage class which can write the file splits tha

Data aggregation

2008-03-06 Thread vedranp
Hi, I have a case where I should aggregate data from the CSV file, which contains data in this way: DATETIMECOUNTRY ZIP CITYVALUE1 VALUE2 VALUE3 21.2.2008 00:00 A 1000CITY1 1 2 3 21.2.2008 00:00 A 1000CITY2 4 5 6 21

Re: Does python support working with password protected zip files?

2008-03-06 Thread Greg Armer
On 3/6/08, Malcolm Greene <[EMAIL PROTECTED]> wrote: > I'm new to Python and trying to figure out how to read and write to > password protected zip files. > > I can work with plain zip files no problem. > > I've googled this topic and am coming up empty except for a post on > Nabbler.com that s

Re: Hi

2008-03-06 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: > Hello > > can u plz tell how to send and read msg from device(telit-863-GPS) and > the coding is in python. > > if this can happen then plz send the source code to my mail account Sounds like a new development model. You should patent this. Just e-mail lists with cry

Re: What is a class?

2008-03-06 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > And white to play. What does exec( open( 'modA.py' ).read() ) do? RTFM -- http://mail.python.org/mailman/listinfo/python-list

Re: for-else

2008-03-06 Thread Jeffrey Barish
Terry Reedy wrote: > A for-loop is equivalent to a while loop with the condition 'iterator is > not exhausted'.  So do_else when that condition is false -- the iterator > is exhausted. I think that this is the most important statement in this thread. As others have expressed, I too found for-els

Re: Please keep the full address

2008-03-06 Thread Carl Banks
On Mar 5, 8:07 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Wed, 5 Mar 2008 14:00:17 -0800 (PST) > > Mike Driscoll <[EMAIL PROTECTED]> wrote: > > What are you talking about? I didn't change the address at all. I'm > > not even sure what you mean. Are you talking about the post subject > >

Does python support working with password protected zip files?

2008-03-06 Thread Malcolm Greene
I'm new to Python and trying to figure out how to read and write to password protected zip files. I can work with plain zip files no problem. I've googled this topic and am coming up empty except for a post on Nabbler.com that seemed to imply that password protected zip files may(???) be supporte

Re: Identifying messages in a thread (was: Please keep the full address)

2008-03-06 Thread Carl Banks
On Mar 5, 8:11 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Thu, 06 Mar 2008 09:36:29 +1100 > > Ben Finney <[EMAIL PROTECTED]> wrote: > > > Those of us who identify the time wasters would also like to drop > > > the responses to their posts and changing the address makes this > > > imposs

Py-Extension Irregularity

2008-03-06 Thread Michael Wieher
Observe. Python Code Snippet: ... 66 while i < (self.nPCodes): 67# print "%s:%s" % (self.nPCodes,i) 68 (c,l,sn,f,fn,sz) = tabmodule.getQuestion(i,self.mx3Path) 69 if _debug and sz>0: 70 _newPtrLoc = tabmodule.get

Pydev 1.3.14 Released

2008-03-06 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.14 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: --

Re: Checking if a variable is a dictionary

2008-03-06 Thread Neil Cerutti
On Thu, Mar 6, 2008 at 8:06 AM, Guillermo <[EMAIL PROTECTED]> wrote: > I want to iterate recursively a dictionary whose elements might be > strings or nested tuples or dictionaries and then convert values to a > tagged format according to some rules. > > d = {'a':"i'm a", 'b':(1,2,3),'c':{'a':"

Re: Licence confusion: distributing MSVC?71.DLL

2008-03-06 Thread jim-on-linux
> > If someone has worked their way through > > this maze before and has an answer, I'd > > be keen to hear it. This is what someone wrote on 1-21-2007 to this help site about this pain in the a... MSVCR71 stuff. " I believe this problem doesn't exist. Licensees of Python are permitted to re

Re: Checking if a variable is a dictionary

2008-03-06 Thread Bruno Desthuilliers
Jeffrey Seifried a écrit : (snip) > if type(a)==type({}): > print 'a is a dictionary' This instanciates a dict, call type() on it, and discard the dict - which is useless since the dict type is a builtin. Also, when you want to test identity, use an identity test. if type(a) is dict: pr

Re: Checking if a variable is a dictionary

2008-03-06 Thread Bruno Desthuilliers
Guillermo a écrit : > Wow, I think I'm gonna like this forum. Thank you all for the prompt > answers! Welcome onboard !-) >> What makes you say you "need" to know this ? Except for a couple corner >> cases, you usually don't need to care about this. If you told us more >> about the actual problem

  1   2   >