Re: Python equivalent to the "A" or "a" output conversions in C

2012-06-19 Thread Hemanth H.M
Are you looking for : >>> x=10 >>> hex(x) '0xa' >>> x=10.5 >>> float.hex(x) '0x1.5p+3' On Tue, Jun 19, 2012 at 9:53 PM, Edward C. Jones wrote: > hexadecimal -- *'I am what I am because of who we all are&

Re: string to list

2012-06-14 Thread Hemanth H.M
>>> list(literal_eval('"aa","bb 'b'","cc"')) ['aa', 'bb ', 'cc'] Strange? On Thu, Jun 14, 2012 at 1:09 PM, Hemanth H.M wrote: > @Annop Nice one, but you seem to have missed a parenthesis. > >

Re: string to list

2012-06-14 Thread Hemanth H.M
p Thomas Mathew wrote: > >>> list(literal_eval("'aa','bb','cc'") -- *'I am what I am because of who we all are'* h3manth.com <http://www.h3manth.com> *-- Hemanth HM * -- http://mail.python.org/mailman/listinfo/python-list

Re: Internationalized domain names not working with URLopen

2012-06-13 Thread Hemanth H.M
My bad, it worked; need to avoid http:// along with snowman, before encode. On Wed, Jun 13, 2012 at 9:02 PM, Hemanth H.M wrote: > Well not really! does not work with '☃.net' > > Traceback (most recent call last): > File "", line 1, in > File "/usr

Re: Internationalized domain names not working with URLopen

2012-06-13 Thread Hemanth H.M
hdr, value) >> File "C:\python27\lib\httplib.py", line 935, in putheader >>hdr = '%s: %s' % (header, '\r\n\t'.join([str(v) for v in values])) >> UnicodeEncodeError: 'ascii' codec can't encode characters in position >> 0-5: ordinal

Re: Creating OpenOffice doc's

2007-09-19 Thread hemanth
Go to http://ooolib.sourceforge.net/ and download the Python version and unzip the file. There are a few examples illustrating various features. I have used this to create simple OO spreadsheets. Regards, Hemanth Sethuram -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the use of changing func_name?

2005-05-18 Thread hemanth
could ildg wrote: > Thank you for your help. > I know the function g is changed after setting the func_name. > But I still can't call funciton g by using f(), when I try to do > this, error will occur: > > >>> g.func_name="f" > >>> print g > > >>> f() > Traceback (most recent call last): > File

Re: Encryption with Python?

2005-05-13 Thread hemanth
Anthra Norell wrote: > Thanks a lot for the feedback. This is certainly a great learning > experience. It's a fascinating topic too. Without wishing to annoy, I'd be > interested in knowing more. I insert questions below. > > You can google your questions and you will find them out answered in man

Re: Python LDAP Schema Pickle

2005-05-09 Thread hemanth
Why don't you check if ldaptor has implemented a similar functionality? I got the following link while googling: -- http://mail.python.org/mailman/listinfo/python-list

Re: BitKeeper for Python?

2005-05-03 Thread hemanth
John Smith wrote: > I am going to be working with some people on a project that is going to be > done over the internet. I am looking for a good method of keeping everyone's > code up to date and have everyone be able to access all the code including > all the changes and be able to determine what

Re: ANN: Veusz 0.5 - a scientific plotting package

2005-04-18 Thread hemanth
Why not matplotlib? Of late, it has seemed to have picked up a lot of attention. I would prefer that the different plotting packages developers join hands and implement missing features into a single plotting package and make this a part of Python standard library. In contrast to the various web fr

Re: How to write python plug-ins for your own python program?

2005-03-03 Thread hemanth
Andre wrote: > Mark Rowe <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > On Mar 3, 2005, at 9:33 PM, Simon Wittber wrote: > > > > >> You mean like 'import'? :) > > > > > > That's how I would do it. It's the simplest thing, that works. > > > > > > exec("import %s as plugin" % pl