On Nov 18, 2014, at 3:21 AM, Sibylle Koczian <[email protected]> 
wrote:

> I'm afraid that isn't even necessary:
> 
> sib@gespenst-lubuntu:~$ python
> Python 2.7.8 (default, Oct 20 2014, 15:05:29)
> [GCC 4.9.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from dabo.lib.utils import ustr
> >>> ustr(13) < ustr(2)
> True
> >>>

Well, that's expected, since ustr() casts to a basestring. In python:

Python 2.7.6 (default, Sep  9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print "13" < "2"
True
>>>

-- Ed Leafe







--- StripMime Report -- processed MIME parts ---
multipart/signed
  text/plain (text body -- kept)
  application/pgp-signature
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to