Thank you for your quick reply Adam. Eheh seems it was a mistypo there :).
also checked the companion site where it has all the code in there and
it is easier to understand the formating.
cheers Ricardo
On 11/11/2011 03:02 AM, Adam Mechtley wrote:
Thanks for the feedback Ricardo. Unfortunately one of the biggest
lessons I learned from this experience is what a pain it is to try to
write a book with code samples—especially if they're Python! Including
images was one possibility we discussed, though it unfortunately has
other issues of its own. I'll make sure to pass your feedback on to
the publisher though.
As for your specific question, this part of Chapter 5 has you define a
method outside the class and then reassign the class's __repr__
attribute to point to this method, also outside the class's
definition. (While you would not often do this in practice, it is a
handy feature of the interactive interpreter that prevents us from
having to re-print the entire class definition with each modification).
Although your spacing doesn't come across for me in your email, the
issue looks like you are assigning the new method to a __rep__
attribute, instead of __repr__, which is the attribute it should be
overwriting.
On Thu, Nov 10, 2011 at 7:04 PM, David Shaw <[email protected]
<mailto:[email protected]>> wrote:
Hey,
Been away for a while, was going to to pick it up here in
australia and hardcover is AU$95.00!
Looks like an online version is the go!
Australia where books are printed with gold!
Dave
On Thu, Oct 13, 2011 at 2:43 AM, Adam Mechtley
<[email protected] <mailto:[email protected]>> wrote:
Hey folks,
For those interested, Ryan and I finally wrapped up our book
and (not that anyone is keeping me in the loop on release
dates) it's available on Kindle now, hardcover later this week
<http://www.amazon.com/Maya-Python-Games-Film-Reference/dp/0123785782/ref=sr_1_1?ie=UTF8&qid=1318437212&sr=8-1>.
Many thanks to Seth Gibson and Kristine Middlemiss for
contributing chapters, and to Dean Edmonds for technical
editing assistance. If you're curious, you can also check out
the companion web site at http://www.maya-python.com/
I mostly wanted to post here to ask that, if anyone on this
list happens to pick up a copy, please do get in touch with me
regarding any errors you find! It turns out writing a book is
really hard, so I'm sure there were plenty of things that made
it in under the radar in the final crunch ;) I just want to
make sure we have an opportunity to fix as many issues as
possible for the second printing. Thanks!
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe