Re: python equivalent of php implode

2005-04-27 Thread Maxim Kasimov
i'm tying to run example, and then get a traceback. am i something missed? mysql> create table tmp_tmp (id int not null auto_increment primary key, sd varchar(255) not null default '', si int not null default 1); >>> import MySQLdb >>> db = MySQLdb.connect("localhost", "login", "password", "

Re: help needed :-pgdb givig error

2005-04-25 Thread Maxim Kasimov
Please try to check out permisions on the library. Perhaps there is no permissions for reading the library with uid of web-server "Ram" <[EMAIL PROTECTED]> ???/ ? ?: news:[EMAIL PROTECTED] Dear All I am very new to python . i would appreciate any help from you all on

Re: goto statement

2005-04-21 Thread Maxim Kasimov
' ... ... ... sql = """ another query """ ... ... ... print "goodbye world" -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Maxim Kasimov
Sergei Organov wrote: Maxim Kasimov <[EMAIL PROTECTED]> writes: 1. comment for debug It can be used in the same way, as the comments for debugging are used, but it will be easier than to use """ or ''', or using features of text-editors, when it is n

Re: goto statement

2005-04-21 Thread Maxim Kasimov
nstall new software (it is critical for remote working, for example, installing X11 may be impossible at all) 2) enables to make new, better software (better obfuscators) -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Troll? was: Re: goto statement

2005-04-20 Thread Maxim Kasimov
André Roberge wrote: Maxim Kasimov wrote: by the way, "goto" statement will be useful for writing more powerful obfuscators Let me get that clear: you want a goto to help with debugging. And you want to obfuscate your code even more? !? Perhaps you need to write in Perl, or some oth

Re: goto statement

2005-04-20 Thread Maxim Kasimov
by the way, "goto" statement will be useful for writing more powerful obfuscators -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Christos TZOTZIOY Georgiou wrote: On Wed, 20 Apr 2005 16:13:32 +0300, rumours say that Maxim Kasimov <[EMAIL PROTECTED]> might have written: but what if i just can't to do this becouse i'm working thrue ssh, and have to use only installed editors (such as vi) If you use plain

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Peter Hansen wrote: Maxim Kasimov wrote: Torsten Bronger wrote: HallÃchen! Maxim Kasimov <[EMAIL PROTECTED]> writes: WOW, just greate! ... but i'd like to relax at some more interesting way than to comment each of rows but what if i just can't to do this becouse i'm working

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Torsten Bronger wrote: HallÃchen! Maxim Kasimov <[EMAIL PROTECTED]> writes: [...] WOW, just greate! ... but i'd like to relax at some more interesting way than to comment each of rows but what if i just can't to do this becouse i'm working thrue ssh, and have to use only in

Re: goto statement

2005-04-20 Thread Maxim Kasimov
e singles. ''' Or, if you really like the spirit of goto, use "if 0:". ... and add tabs to each string Reinhold -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Robert Kern wrote: Maxim Kasimov wrote: Simon Brunning wrote: On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: it would be quite useful for debuging porposes How does goto help you to remove bugs? I can certainly see how it helps you put them in in the first place... if you need to com

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Simon Brunning wrote: On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: it would be quite useful for debuging porposes How does goto help you to remove bugs? I can certainly see how it helps you put them in in the first place... if you need to comment a couple of code (and then unc

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Mage wrote: praba kar wrote: Dear All, In Python what is equivalent to goto statement You shouldn't use goto in high-level languages. it would be quite useful for debuging porposes -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode converting

2005-03-16 Thread Maxim Kasimov
Serge Orlov wrote: utf-16 is basically a superset of ucs-2. See here for more detail: http://www.azillionmonkeys.com/qed/unicode.html If you ensure that ord() of each output character is < 0x1 you'll get valid ucs-2 output if you use utf-16 encoding. If you build python with --enable-unicode=uc

Re: unicode converting

2005-03-16 Thread Maxim Kasimov
Christos TZOTZIOY Georgiou wrote: If unicode_data references your unicode data, all you have to send is: unicode_data.encode('utf-16') # maybe utf-16be for network order is utf-16 string the same ucs-2? my question is how to get string encoded as UCS-2 -- Best regards, Maxim -- http://mail.python.

Re: unicode converting

2005-03-15 Thread Maxim Kasimov
Diez B. Roggisch wrote: Maxim Kasimov wrote: there are a few questions i can find answer in manual: 1. how to define which is internal encoding of python unicode strings (UTF-8, UTF-16 ...) It shouldn't be your concern - but you can specify it using " ./configure --enable-unicod

unicode converting

2005-03-15 Thread Maxim Kasimov
there are a few questions i can find answer in manual: 1. how to define which is internal encoding of python unicode strings (UTF-8, UTF-16 ...) 2. how to convert string to UCS-2 (Python 2.2.3 on freebsd4) -- Best regards, Maxim -- http://mail.python.org/mailman/listinfo/python-list

Re: portable text user interface

2004-12-30 Thread Maxim Kasimov
Grant Edwards wrote: On 2004-12-30, Maxim Kasimov <[EMAIL PROTECTED]> wrote: yes i'm telneting (sshing), that is the reason why i'm looking for libs for making text interfaces. i know there is a project named "anakonda" - red hat linux installer, but it is uses speci

Re: portable text user interface

2004-12-30 Thread Maxim Kasimov
Grant Edwards wrote: On 2004-12-30, Maxim Kasimov <[EMAIL PROTECTED]> wrote: yes i'm telneting (sshing), that is the reason why i'm looking for libs for making text interfaces. i know there is a project named "anakonda" - red hat linux installer, but it is uses speci

Re: portable text user interface

2004-12-30 Thread Maxim Kasimov
Steve Holden wrote: Maxim Kasimov wrote: Miki Tebeka wrote: Hello Fuzzyman, Are there widely used and recommended Python libraries that will let me makes a portable text user interface? If you just need a text-like interface you can use Tkinter. See (shameless plug) http://developer.berlios.de

Re: portable text user interface

2004-12-30 Thread Maxim Kasimov
Miki Tebeka wrote: Hello Fuzzyman, Are there widely used and recommended Python libraries that will let me makes a portable text user interface? If you just need a text-like interface you can use Tkinter. See (shameless plug) http://developer.berlios.de/projects/bcd/ and http://developer.berlios.d

portable text user interface

2004-12-29 Thread Maxim Kasimov
Hi. Are there widely used and recommended Python libraries that will let me makes a portable text user interface? -- Best regards, Maxim -- http://mail.python.org/mailman/listinfo/python-list