F
franzferdinand
"Monty" < "Python"
True
False
What's the rule about that? Is it the number of letters or what?
thanks
True
False
What's the rule about that? Is it the number of letters or what?
thanks
Jan Oelze said:From the docs[0]:
"Strings are compared lexicographically using the numeric equivalents (the
result of the built-in function ord()) of their characters. Unicode and 8-bit
strings are fully interoperable in this behavior."
"Strings are compared lexicographically using the numeric equivalents
(the result of the built-in function ord()) of their characters. Unicode
and 8-bit strings are fully interoperable in this behavior."
"Strings are compared lexicographically using the numeric equivalents
(the result of the built-in function ord()) of their characters. Unicode
and 8-bit strings are fully interoperable in this behavior."
This isn't true in python 3:
Python 3.2.3 (default, Oct 19 2012, 19:53:57)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: bytes() < str()
Ian F
False
What's the rule about that?
Is it the number of letters or what?
I forgot Py33 is now optimized for ascii user, it is no more
unicode compliant and I stupidely tested/sorted lists of French
words...
it [Python3.3] is no more unicode compliant
----
Courageous people can try to do something with the unicode
collation algorithm (see unicode.org). Some time ago, for the fun,
I wrote something (not perfect) with a reduced keys table (see
unicode.org), only a keys subset for some scripts hold in memory.
It works with Py32 and Py33. In an attempt to just see the
performance and how it "can react", I did an horrible mistake,
I forgot Py33 is now optimized for ascii user, it is no more
unicode compliant and I stupidely tested/sorted lists of French
words...
"I did an horrible mistake" [...] is 'h' a vowel in french?
Ok, thanks everybody!
Larry Hudson said:The word "apron" was originally "napron", and over the years the phrase
"a napron" mutated to "an apron". So that became the accepted word.
Similarly, the snake was a nadder - congruent with the natterjack toad.
Terry Reedy said:Threads are like the Sorcerer's Apprentice. You can start 'em, but you
cannot stop 'em ;-)
Of course you can stop threads. Just call _exit(). No more threads!
Of course you can stop threads. Just call _exit(). No more threads!
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.