Aye, thank you. I do like that syntax better.
Sometimes it's time to just quit and try again later when I'm not so
frustrated. That's when I make silly bugs.
But, we got it!
Thank you again. I think it's a nifty hack.
M
On Sat, May 28, 2011 3:53 pm, Alexandre Conrad wrote:
> Marilyn,
>
>
Marilyn,
You miss-typed the line, it should have a semicolon right after the
word "coding", such as:
# coding: utf-8
not
# coding utf-8
as you showed from your file.
The syntax suggested syntax # -*- coding: utf8 -*- by Martin is
equivalent, but I always have a hard time remembering it from t
Thank you Martin,
This:
#!/usr/bin/env python
# -*- coding: utf8 -*-
'''Unicode handling for 2.6.
'''
[rest of module deleted]
produces an emacs warning:
Warning (mule): Invalid coding system `utf8' is specified
for the current buffer/file by the :coding tag.
It is highly recommended to fix it
Thank you Alexandre for your quick reply.
I tried your suggestion (again) and I still get:
./uni.py
File "./uni.py", line 20
SyntaxError: Non-ASCII character '\xa5' in file ./uni.py on line 21, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
Can you suggest a
Hello there,
: I'm still on Python 2.6 and I'm trying to work some unicode
: handling.
:
: I've spent some hours on this snippet of code, trying to follow
: PEP 0263, since the error tells me to see it. I've tried other
: docs too and I am still clueless.
OK, so this is PEP 0263. htt
When Python loads your file from your file system, it assumes all
characters in the file are ASCII. But when it hits non-ASCII
characters (currency symbols), Python doesn't know how to interpret
it. So you can give Python a hint by putting at the top of your file
the encoding of your file:
After t
Hi,
I'm still on Python 2.6 and I'm trying to work some unicode handling.
I've spent some hours on this snippet of code, trying to follow PEP 0263,
since the error tells me to see it. I've tried other docs too and I am
still clueless.
The code works, except for the comment at the end.
I would
As a new user of Pytrhon and previous user of Java,C(+),Php. There is very
little difference. In some cases Python might be slower but I don't think it
would mnake that much difference. The major differnce is the syntax of how
you write and layout your code.
Chreers Dave
On Sat, May 28, 2011 at 1
On Saturday 28 May 2011 05:25:45 Steven D'Aprano wrote:
> >> Not sure what you're saying here Alan -- are you saying you consider
> >> Java "hard enough language to seperate great programmers from plodders"
> >
> > Yes, I'm saying the language just isn't that significant.
>
> Sorry Alan, you confus