
March 9th, 2003, 05:19 PM
|
 |
Wacky hack
|
|
Join Date: Apr 2001
Location: London, England
Posts: 513
Time spent in forums: 1 h 38 m 37 sec
Reputation Power: 13
|
|
|
TypeError for int with read-only attributes?
Hullo, I've got some code that keeps putting out the following error:
PHP Code:
Traceback (most recent call last): File "./quickrip.py", line 174, in updateTrack self.track.size = self.fileSize.text() TypeError: 'int' object has only read-only attributes (assign to .size)
self.track.size is assigned as a string object, and is later copied to be an int object when I need it as an int. I can't see why it wouldn't be mutable, so why do I keep getting this error
|