>>6
More likely to be a scoping issue; the vector he wants to access are shadowed by something in a more local scope ganking the identifier. But who the fuck cares, let's read some SICP.
def AddToVector(self, n):
self.vector = map(lambda x: x + n, self.vector)
Name:
Anonymous2007-09-23 2:15 ID:Qi2XqiDM
>>7
it probably was a scope problem. I fixed it about 10 seconds after i wrote this thread, for some reason it deleted the vector after the function ended. I just moved the code to another function and it worked
this means I could have a buffer overflow somewhere in my program. hopefully I'll find it soon :/
Name:
Anonymous2007-09-23 6:16 ID:kFAe9np+
>>9 I don't really know what I'm doing. I just moved some code around and it worked. Hopefully I won't have any other bugs.
FIXED
Name:
Anonymous2007-09-23 6:20 ID:XLEYkpIK
/r/ing ANGERED EXPERT PROGRAMMER copypasta for >>9
Name:
Anonymous2007-09-23 6:23 ID:hPrdejKS
>>9
OKAY YOU FUQIN ANGERED AN EXPERT PROGRAMMER
GODFUCKIGNDAMN
FIRST OF ALL, YOU DONT FUQIN KNOW WHAT A MAN PAGE IS
SECONDLY, THIS IS /prog/ DO NOT DEMAND USEFUL ANSWERS THE WAY YOU WANT THEM TO BE
THIRDLY PROGRAMMING IS ALL ABOUT PHILOSOPHY AND ``ABSTRACT BULLSHITE'' THAT YOU WILL NEVER COMPREHEND
AND FUQIN LASTLY, FUCK OFF WITH YOUR BULLSHYT
EVERYTHING HAS ALREADY BEEN ANSWERED IN >>8,11,12