<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/descrobject.c, branch 2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/descrobject.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/descrobject.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-04-09T17:06:31Z</updated>
<entry>
<title>Backport from trunk:</title>
<updated>2003-04-09T17:06:31Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-04-09T17:06:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c927c8a3ea4d58197a0f559b9bebc640e307d42f'/>
<id>urn:sha1:c927c8a3ea4d58197a0f559b9bebc640e307d42f</id>
<content type='text'>
property_traverse() should also traverse into prop_doc -- there's no
typecheck that guarantees it's a string, and BTW string subclasses
could hide references.
</content>
</entry>
<entry>
<title>SF bug #493561: incorrect format string descrobject.c (Neal Norwitz)</title>
<updated>2001-12-15T05:00:30Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-15T05:00:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2b8235e485f875d95809b0092c52dc6c49ad3130'/>
<id>urn:sha1:2b8235e485f875d95809b0092c52dc6c49ad3130</id>
<content type='text'>
%300s should be %.300s, twice.
</content>
</entry>
<entry>
<title>Well what do you know.  The Python implementation contained the same</title>
<updated>2001-12-10T18:06:21Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-10T18:06:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7171f1c8d8b6f8509026d7b91d41edecd828e12d'/>
<id>urn:sha1:7171f1c8d8b6f8509026d7b91d41edecd828e12d</id>
<content type='text'>
bug as the C code. :-(
</content>
</entry>
<entry>
<title>Fix the Python property class in a comment right.</title>
<updated>2001-12-10T18:03:34Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-10T18:03:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ba2485f9470c9ce6040a88336f998f5f7e73e8aa'/>
<id>urn:sha1:ba2485f9470c9ce6040a88336f998f5f7e73e8aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>property_descr_get(): Fix a curious bug in the property() type: when</title>
<updated>2001-12-10T18:00:15Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-10T18:00:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b75ba918d6f8e9744c7da4660721a0058a6968a5'/>
<id>urn:sha1:b75ba918d6f8e9744c7da4660721a0058a6968a5</id>
<content type='text'>
no get function was defined, the property's doc string was
inaccessible.  This was because the test for prop_get was made
*before* the test for a NULL/None object argument.

Also changed the property class defined in Python in a comment to test
for NULL to decide between get and delete; this makes it less Python
but then, assigning None to a property doesn't delete it!
</content>
</entry>
<entry>
<title>Methods of built-in types now properly check for keyword arguments</title>
<updated>2001-10-22T00:43:43Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-22T00:43:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c8e5645f15054a87945d5f62dc23c6e49a394db5'/>
<id>urn:sha1:c8e5645f15054a87945d5f62dc23c6e49a394db5</id>
<content type='text'>
(formerly these were silently ignored).  The only built-in methods
that take keyword arguments are __call__, __init__ and __new__.
</content>
</entry>
<entry>
<title>Adding missing "static" declarations (found by "make smelly").</title>
<updated>2001-10-21T22:26:43Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-10-21T22:26:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2677512fc17487fc8cb0989353face9bd112dd67'/>
<id>urn:sha1:2677512fc17487fc8cb0989353face9bd112dd67</id>
<content type='text'>
</content>
</entry>
<entry>
<title>*EXPERIMENTAL* speedup of slot_sq_item.  This sped up the following</title>
<updated>2001-10-03T12:09:30Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-03T12:09:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f4593e0b657a29f93a74a578cb4d78aafdf384ea'/>
<id>urn:sha1:f4593e0b657a29f93a74a578cb4d78aafdf384ea</id>
<content type='text'>
test dramatically:

    class T(tuple): __dynamic__ = 1
    t = T(range(1000))
    for i in range(1000): tt = tuple(t)

The speedup was about 5x compared to the previous state of CVS (1.7
vs. 8.8, in arbitrary time units).  But it's still more than twice as
slow as as the same test with __dynamic__ = 0 (0.8).

I'm not sure that I really want to go through the trouble of this kind
of speedup for every slot.  Even doing it just for the most popular
slots will be a major effort (the new slot_sq_item is 40+ lines, while
the old one was one line with a powerful macro -- unfortunately the
speedup comes from expanding the macro and doing things in a way
specific to the slot signature).

An alternative that I'm currently considering is sketched in PLAN.txt:
trap setattr on type objects.  But this will require keeping track of
all derived types using weak references.
</content>
</entry>
<entry>
<title>Add Garbage Collection support to new-style classes (not yet to their</title>
<updated>2001-10-02T21:24:57Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-02T21:24:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=048eb75c2dca8bf6d483b290c901a53510c9b78a'/>
<id>urn:sha1:048eb75c2dca8bf6d483b290c901a53510c9b78a</id>
<content type='text'>
instances).

Also added GC support to various auxiliary types: super, property,
descriptors, wrappers, dictproxy.  (Only type objects have a tp_clear
field; the other types are.)

One change was necessary to the GC infrastructure.  We have statically
allocated type objects that don't have a GC header (and can't easily
be given one) and heap-allocated type objects that do have a GC
header.  Giving these different metatypes would be really ugly: I
tried, and I had to modify pickle.py, cPickle.c, copy.py, add a new
invent a new name for the new metatype and make it a built-in, change
affected tests...  In short, a mess.  So instead, we add a new type
slot tp_is_gc, which is a simple Boolean function that determines
whether a particular instance has GC headers or not.  This slot is
only relevant for types that have the (new) GC flag bit set.  If the
tp_is_gc slot is NULL (by far the most common case), all instances of
the type are deemed to have GC headers.  This slot is called by the
PyObject_IS_GC() macro (which is only used twice, both times in
gcmodule.c).

I also changed the extern declarations for a bunch of GC-related
functions (_PyObject_GC_Del etc.): these always exist but objimpl.h
only declared them when WITH_CYCLE_GC was defined, but I needed to be
able to reference them without #ifdefs.  (When WITH_CYCLE_GC is not
defined, they do the same as their non-GC counterparts anyway.)
</content>
</entry>
<entry>
<title>Make properties discoverable from Python:</title>
<updated>2001-09-24T21:17:50Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-24T21:17:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=66c1a525e08fda439ddda3b6371236df1398cfd5'/>
<id>urn:sha1:66c1a525e08fda439ddda3b6371236df1398cfd5</id>
<content type='text'>
- property() now takes 4 keyword arguments:  fget, fset, fdel, doc.
  Note that the real purpose of the 'f' prefix is to make fdel fit in
  ('del' is a keyword, so can't used as a keyword argument name).

- These map to visible readonly attributes 'fget', 'fset', 'fdel',
  and '__doc__' in the property object.

- fget/fset/fdel weren't discoverable from Python before.

- __doc__ is new, and allows to associate a docstring with a property.
</content>
</entry>
</feed>
