Re: Encoding

2006-02-13 Thread Lad
Yes, 'some data'.decode('utf8').encode('windows-1250') works great. Thanks L.B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jedit

2006-02-13 Thread Lad
Pythonwin is not good,if you use non Ascii characters.I had to moved to Jedit. L.B -- http://mail.python.org/mailman/listinfo/python-list

How to send an email with non-ascii characters in Python

2006-02-24 Thread Lad
Can anyone give an example how to send email with non-ascii characters( both in subject and body). I would like to use windows-1250 code page Thank you L.B. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send an email with non-ascii characters in Python

2006-02-24 Thread Lad
Sybren, and can give me an example of Python code that can send such email?? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Lad
Finally I have the working version,It looks like this # from email.Message import Message from email.MIMEText import MIMEText from email.Header import Header import smtplib msg = Message() Body='Rídících Márinka a Školák Kája Marík'.decode('utf8').encode('windows-1250')# I use the text

ICQ module ?

2005-05-02 Thread Lad
Hello , Is there an ICQ module? I would like to send a message to users in my contact list, check if a user is online etc. Is there a support in Python? Thanks L.B -- http://mail.python.org/mailman/listinfo/python-list

How to run external program?

2007-01-12 Thread Lad
How can I run external program from Python? I use Python with XP Thank you for help LB -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run external program?

2007-01-12 Thread Lad
Gary Herron wrote: > Lad wrote: > > How can I run external program from Python? > > I use Python with XP > > Thank you for help > > LB > > > > > The subprocess module is what you want for this. > > It's got ways of running external executables

How to read and write huge binary files

2007-01-18 Thread Lad
What is a good way to read binary data from HUGE file and write it to another file? Thanks for help La. -- http://mail.python.org/mailman/listinfo/python-list

Decorator

2006-05-11 Thread Lad
I use Python 2.3. I have heard about decorators in Python 2.4. What is the decorator useful for? Thanks for reply L. -- http://mail.python.org/mailman/listinfo/python-list

How to find out a date/time difference

2006-05-24 Thread Lad
I use datetime class in my program and now I have two fields that have the datetime format like this datetime.datetime(2006, 5, 24, 16, 1, 26) How can I find out the date/time difference ( in days) of such two fields? Thank you for help? L -- http://mail.python.org/mailman/listinfo/python-lis

How to convert

2006-03-18 Thread Lad
How can I covert in Python a variable of a long type to variable of Integer type? Thank you for reply L. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2