#python - Wed 16 May 2007 between 06:24 and 07:15



TenOfTensorry, cant help then
JD-Multihehe,
hydananyone from alabama?
ivan`JD-Multi: pyopengl 3 doesn't need a binary
just setup.py install
_andy_at_workhi, all. How to compare unicode string in right wway? x == y crashes python when strings isn't ascii/
sonmez_andy_at_work: did you look at unicode methods? i have never worked with unicodes but it should support it..
luks_andy_at_work: if it raises an unicode error, then one of the strings isn't unicode
lesshasteis there any work on getting jython for mobile phones?
or python in general on non-python phones
I mean non-symbian phones
_andy_at_workluks, ok. How to compare their in this case? Unfortunaly, I don't know what the string isn't unicode.
Yhg1s_andy_at_work: then you'll have to fix that.
_andy_at_work: mixing unicode and non-unicode strings is a bad thing
_andy_at_work: because you cannot compare them sensibly.
_andy_at_workI try to use repr - this works fine
Yhg1s_andy_at_work: so, find out what the type of each is -- by asking whoever gave them to you what type they are.
'fine' how?
_andy_at_workit really compares their
Yhg1sthe repr() of a unicode string will show u'...', whereas the repr of a bytestring will just show '...'. you can't really compare them that way, they'll always be different.
_andy_at_workAh, thanks.
Yhg1sof course, if you don't really *want* them to ever compare equal, that's fine, but I doubt that's what you really want.
_andy_at_workYes, it's my wrong
thanks for explanation
how to check is the string unicode or not?
Yhg1s_andy_at_work: the question is, why don't you know? You would know if it was an int instead of a unicode string, wouldn't you?
strings and unicode are distinct types. there should never be confusing about what the type is.
deitarionDoes python stdlib include a function for paging console output? (similar to piping something through the `more` command)
Yhg1sdeitarion: the 'pydoc' module has a 'pager' function.
deitarionThanks.
kushalCan I take screenshot using python ?
dave_vHi, using MySQLdb for Python does anyone know a way to make it treat warnings as errors? or to raise an exception when getting a MySQL warning rather than just putting it to stdout?
kushalin GNU/Linux ?
TFKylekushal: probably, I've no idea how though
kushalTFKyle, ok
moldykushal: i am sure there are some libraries that have support for it, but i don't know any details either
kushal: i'd look at some X libraries
kushalmoldy, ok
nuloophello. what's the best way to check that a char is in a dict of allowable characters ?
TFKylenuloop: char in d?

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 

IrcArchive