Slashdot Mirror


User: percivall

percivall's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Re:Not a Python Programmer... on Python 2.4 Final Released · · Score: 2, Informative

    The feeling was that it was unnecessary since metaclasses already provide the functionality that class decorators would have provided.

    For those of you who aren't Python programmers: Metaclasses are to classes as classes are to instances. At compile-time (at runtime) the metaclass constructor is given the newly created class object for initialization. This provides the possibility for manipulation and more.

  2. Re:genexps on Python 2.4 Final Released · · Score: 2, Informative

    Yeah, generators do kick ass.

    But it's important to remember that generator expressions are slower than list comprehensions. This is mainly because functions calls are expensive in Python, and when dealing with generators each iteration means one more function call.