"More About Unicode in Python 2 and 3"

R

rdsteph

I'm so sorry for the mess in my post above, I apologize to all, I accidentally hit return ...

I just meant to say that internet programming using ASCII urls is so commonand important that it hurts that Python 3 makes it so much harder. It surewould be great if Python 3 could be improved to allow such programming to be done using ASCII urls without requiring all the unicode overhead.

Armin is right. Calling his post a rant doesn't help.
 
C

Chris Angelico

I just meant to say that internet programming using ASCII urls is so common and important that it hurts that Python 3 makes it so much harder. It sure would be great if Python 3 could be improved to allow such programming to be done using ASCII urls without requiring all the unicode overhead.

Armin is right. Calling his post a rant doesn't help.

There's one big problem with that theory. We've been looking, on this
list and on python-ideas, at some practical suggestions for adding
something to Py3 that will help. So far, lots of people have suggested
things, and the complainers haven't attempted to explain what they
actually need. Hard facts and examples would help enormously.

Incidentally, before referring to "all the Unicode overhead", it would
help to actually measure the overhead of encoding and decoding.

Python 2.7:8.787162614242874

Python 3.4:1.7354552045022515

Since 3.3, the cost of UTF-8 encoding/decoding an all-ASCII string is
extremely low. So the real cost isn't in run-time performance but in
code complexity. Would it be easier to work with ASCII URLs with a
one-letter-name helper function? I never got an answer to that
question.

ChrisA
 
M

Mark Lawrence

I'm so sorry for the mess in my post above, I apologize to all, I accidentally hit return ...

I just meant to say that internet programming using ASCII urls is so common and important that it hurts that Python 3 makes it so much harder. It sure would be great if Python 3 could be improved to allow such programming to be done using ASCII urls without requiring all the unicode overhead.

Armin is right. Calling his post a rant doesn't help.

I disagree. If you want to make friends and influence people, your
opening sentence is not "It's becoming increasingly harder to have
reasonable discussions about the differences between Python 2 and 3
because one language is dead and the other is actively developed." If
Python 2 is dead, why are the core developers wasting their time
committing patches to the Python 2 source code, because they have
nothing better to do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top