:
print "Valid"
output :
sys:1: DeprecationWarning: Non-ASCII character '\xc3' in file regu1.py
on line 3, but no encoding declared; see
http://www.python.org/peps/pep-0263.html
for details
Valid
when i make comment #value="this is Praveen" and released comment
value
acter so the decode fails. You should
specify whatever encoding you used for the source file. From the error
message it looks like you used utf-8, so "string.decode('utf-8')" should
give you a unicode string to work with.
Or just specify source encoding like that:
#!/usr/bi
more
can be found on http://www.europython.org/community
Any other information can be found on
http://www.python.org/community/workshops/
Regards,
Soltys
--
http://mail.python.org/mailman/listinfo/python-list
Penny Y. pisze:
> I saw some scripts have a line at its begin:
>
> # encoding:gb2312
>
> what's this? Why need it? thanks.
>
Have a look at PEP-0263 (http://www.python.org/dev/peps/pep-0263/)
--
http://mail.python.org/mailman/listinfo/python-list
that we can set the proxy?
I did sth. like this:
proxy_url = "http://user:[EMAIL PROTECTED]:8080"
proxy_support = urllib2.ProxyHandler({'http': proxy_url})
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
src = urllib2.urlopen(url)
now you can easi
tml#logger-objects
First thing mentioned is Logger.propagate which is, what I believe, you're
looking for ;)
--
Soltys
"Free software is a matter of liberty not price"
--
http://mail.python.org/mailman/listinfo/python-list
Ron Barak pisze:
On Nov 24, 3:45 pm, Soltys wrote:
Barak, Ron pisze:
Hi,
I'm trying to add the logging module to my application, but I seem to be
missing something.
My application (a wxPython one) has a main script that calls various helper
classes.
I want the log messages fro
it, and found nothing in this area.
I installed pychecker using python setup.py install
from virtualenv. I looked at pychecker script - it uses correct python.
Any help appreciate,
Soltys
--
http://mail.python.org/mailman/listinfo/python-list
at remains is, I need to review the grammar and how
processing
happens that I reach that limit with GAE.
Thanks guys,
Soltys
--
http://mail.python.org/mailman/listinfo/python-list