#python - Sun 15 Apr 2007 between 00:03 and 01:18



shrictheCore, a stack trace on the core file should have told you that.. given your nick i'd have assumed that would be the first thing you did :)
Need_Weedwhy PyMsql is fetching me a LONG obj when the table field is INT
?
by the way, im using cursorclass=MySQLdb.cursors.DictCursor
theCoreshric: ah!
Jjhello
qebabhow would I convert a string representation of an integer in base 10 to an integer in base 2?
it should be straight forward, so I'm clearly doing something wrong
int('4',2) won't work
TypeError: int() can't convert non-string with explicit base
oh
never mind
Jjqebab: what was it?
nealmcbI"m missing something basic about appending to a list in a dictionary: http://deadbeefbabe.org/paste/4379
qebabJj, I forgot a 'str' somewhere
oh wait
Jjhuh?
qebabthis converts a string f. ex. '1000' from binary to base 10
I need it the other way around
from base 10 to binary
Jjthere might be something already done in python..., wlthough the logic is quite simple
qebabthe logic is simple and it's 04:30 am here :P
so I'm looking for a shortcut
going to take a quick look at python.org/doc
Taggnostrif I've a list and I want to print all the value, do I have to do print "%d %d %d %d %d" % (l[0], l[1], l[2]...) or is there a better way?
nealmcbany tips on how to append to a list in a dictionary? It works with tuples, but not lists: http://deadbeefbabe.org/paste/4379
Jjqebab: use python binary operators...
aFlagTaggnostr: loop over int and print?
s/int/it/
TaggnostrI've something like "first value is %d, second is %s, then we have %d and %d" % ...
Jjqebab: ''.join([str((n >> y) & 1) for y in range(count-1, -1, -1)]
jsoft:D
actionjsoft had great difficuilty trying to call quotactl the other day.
jsofthad great difficuilty trying to call quotactl the other day.
synxOkay. So. distutils.
I have an image called 'splash.jpg'. I want to distribute that image with my python script, so that I can show a splash image when it starts up. Why is that impossible to do using distutils?
Because I stopped beating my wife last week, and I'd really like to know.
actionZao pets synx. No idea.
Zaopets synx. No idea.
pyguyyhi folks
actionsynx all ruffled *grumps*
synxall ruffled *grumps*
pyguyyplease tell me how i can return an attribute of an object whose name is in a variable

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive