| shric | theCore, 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_Weed | why PyMsql is fetching me a LONG obj when the table field is INT ? by the way, im using cursorclass=MySQLdb.cursors.DictCursor |
| theCore | shric: ah! |
| Jj | hello |
| qebab | how 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 |
| Jj | qebab: what was it? |
| nealmcb | I"m missing something basic about appending to a list in a dictionary: http://deadbeefbabe.org/paste/4379 |
| qebab | Jj, I forgot a 'str' somewhere oh wait |
| Jj | huh? |
| qebab | this converts a string f. ex. '1000' from binary to base 10 I need it the other way around from base 10 to binary |
| Jj | there might be something already done in python..., wlthough the logic is quite simple |
| qebab | the 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 |
| Taggnostr | if 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? |
| nealmcb | any tips on how to append to a list in a dictionary? It works with tuples, but not lists: http://deadbeefbabe.org/paste/4379 |
| Jj | qebab: use python binary operators... |
| aFlag | Taggnostr: loop over int and print? s/int/it/ |
| Taggnostr | I've something like "first value is %d, second is %s, then we have %d and %d" % ... |
| Jj | qebab: ''.join([str((n >> y) & 1) for y in range(count-1, -1, -1)] |
| jsoft | :D |
| action | jsoft had great difficuilty trying to call quotactl the other day. |
| jsoft | had great difficuilty trying to call quotactl the other day. |
| synx | Okay. 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. |
| action | Zao pets synx. No idea. |
| Zao | pets synx. No idea. |
| pyguyy | hi folks |
| action | synx all ruffled *grumps* |
| synx | all ruffled *grumps* |
| pyguyy | please tell me how i can return an attribute of an object whose name is in a variable |