Re: Array programming

2005-05-06 Thread Sakesun Roykiattisak
V.C.Sekhar wrote: >Hi there, > I couldnt get to do the following task using Python. Can some pls >suggest me a way to do this. > >I have an array with duplicate strings filled in it. Now am looking for >a way to extract only the DISTINCT Values from that array. > >Could some one pls help me ou

Re: Fredrik Lundh

2005-05-08 Thread Sakesun Roykiattisak
>google for logix site:pythonware.com He's announced plenty non-python >stuff that is of interest to python users, including plenty of marketing >for his own software. > > IMHO, Pythonware.com does not have to be about python. It can be anything the maintainer want it to be. Get the point

Re: A Module on Time & Date

2005-05-10 Thread Sakesun Roykiattisak
import datetime print datetime.datetime.now() Sara Khalatbari wrote: >Is there a Module in Python that gives you the time & >date of today??? > > > > >__ >Do you Yahoo!? >Make Yahoo! your home page >http://www.yahoo.com/r/hs > > -- http://mail

Re: datetime

2005-05-19 Thread Sakesun Roykiattisak
> >Why doesn't work the next statments? > > You talk like Yoda.. >import datetime > >today = datetime.date.today() > >and I get the next error: > >today = datetime.date.today() >Traceback (most recent call last): > File "", line 1, in ? >AttributeError: time > >I can't understand it! > > U

Re: SQL Query via python

2005-05-20 Thread Sakesun Roykiattisak
Try cursor.execute ( """ SELECT name, month, day ,category, city FROM bday WHERE %s = %s """ %(arg1,arg2)) Jeff Elkins wrote: >I'm attempting to pass an SQL query via the console: > >$ ./getbd month 05 > >The arguments get seem to passed correctly (via print statements) and then: > >cu

Re: SQL Query via python

2005-05-21 Thread Sakesun Roykiattisak
*argh* You don't do any quoting of SQL-parameters, and that's more than bad! (leaves you up to the mercy of SQL-injection attacks, for example) I'm aware of the issue. But I think the one who start this question is too naive to explain anything more complex. Just give him a hint for fur

Re: __init__() not called automatically

2005-05-25 Thread Sakesun Roykiattisak
Does c++ call base class constructor automatically ?? If I'm not wrong, in c++ you also have to call base class constructor explicitly. Python just do not enforce the rule. You can leave it as desire. BTW, I've once been an C++ expert. Knowing python kill that skill. However, I'm not regret. I

Re: __init__() not called automatically

2005-05-26 Thread Sakesun Roykiattisak
Wow.. Andrew Koenig.. I found your name in many c++ books I read. Never know you are hanging around in python python mailing-list. (or perhaps python newsgroup, whatever it is) Thanks for the explanation. Andrew Koenig wrote: >"Sakesun Roykiattisak" <[EMAIL PROTECTED]> wrot

Re: Python Developers Handbook

2005-06-09 Thread Sakesun Roykiattisak
wooks wrote: >I thought that posting a link that contained the word ebay and a >subject title of Python Developers Handbook conveyed all the relevant >information and didn't want to patronise the NG. > >I have had 110 hits on the item but seem to have upset 3 people. > > >I am sorry. I don't hav

Re: Thoughts on Guido's ITC audio interview

2005-06-26 Thread Sakesun Roykiattisak
>What's being ignored is that type information is useful for other things >than compile type checking. The major case in point is the way IDEs >such as IntelliJ and Eclipse use type information to do refactoring, code >completion and eventually numerous other things. A Java programmer >using Intel