#python - Tue 8 May 2007 between 21:26 and 21:40

NY Lost Funds



KirkMcDonaldCSWookie: Well, that, too.
Jowicheers deltab !
kbrooksdef before_rm(path): commit(path.basename(), path.read())
just a idea
KirkMcDonaldBackups are about protecting you from hardware failure. Version control is about protecting you from yourself. :-)
tieBlackhawk5193: you can also define a repr fucntion for your player class, which will simply return its name, so you can do print player
deltabJowi: the error message said an instance of NoneType didn't have that attribute; so the variable's value had to be an instance of NoneType, and indeed the only instance, None
CSWookieKirkMcDonald: And about branching and merging.
KirkMcDonaldYes, true.
deltabJowi: it could only have that value by having had it set, so look at what sets it: a call to get_widget
CSWookieKirkMcDonald: Syncronous multiple workers.
deltabJowi: and the documentation for get_widget explains when it returns None
CSWookieBah. I need to work more.
KirkMcDonaldCSWookie: s/yourself/yourselves/ :-)
polpakBlackhawk5193: use ATKPlayer.name
Darten1;2c1;2c1;2c1;2c
polpakBlackhawk5193: or whatever you called the variable
SnoronDoes anyone know anything about this error, "Fatal Python error: (pygame parachute) Segmentation Fault"
Jowideltab, I hear you. it sounds easy when you say it. I would have preffered an error like Error: line 83: referenced item to wTree.get_widget("comboafm") not found. lol
Snoronit's not very helpful as you can see! no code, no line numbers..
Blackhawk5193So how do I get it to pass the instance and show "Kyro" instead of "__main__.player instance at 0x0blablabla" ?
damnit
sorry wrong window
deltabJowi: well yes, had pygtk raised an exception instead of returning None, that what you'd've got
Jowideltab, I'm sitting with all the reference manuals open and couldn't get my head around it
qebab<3 exceptions with tracebacks
deltabSnoron: it's a bug in some C code, and python can't recover from that
Jowideltab, I can finally go to bed now :) g'night
Snorondeltab: so it's not my fault or anything? not my code, that is... hmm.. I can reproduce the bug but I can't figure out what's actually causing it, not by a long shot - it's a fairly complex app
tieBlackhawk5193: check the following approach about printing player's names: http://deadbeefbabe.org/paste/4673
deltabSnoron: no, it's very unlikely to be your fault
Snoron: are you able to reduce it to a small, repeatable example
qebabsegfaults
kbrooksok, please give me some programming _excercises_.
tiekbrooks: what about the HTTP session library ? :)
deltabtie: __str__ is better for that, in general
kbrookstie: that iis not a programming excercise
KirkMcDonaldkbrooks: Pick up a copy of Knuth, and do the exercises. :-)
deltabtie: __repr__ is meant to give something useful to people debugging
tiedeltab:yes, you are right, point taken, I have jst always used repr for some reason

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

IrcArchive

NY Lost Funds