<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/moduleobject.c, branch 2.3</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/moduleobject.c?h=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/moduleobject.c?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-07-16T22:04:11Z</updated>
<entry>
<title>Remove code that tried to warn about shadowing builtin names after a</title>
<updated>2003-07-16T22:04:11Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2003-07-16T22:04:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7555294576a642aac7359c51d9b806d17d17a678'/>
<id>urn:sha1:7555294576a642aac7359c51d9b806d17d17a678</id>
<content type='text'>
module had been compiled.  It gives too many spurious warnings.
</content>
</entry>
<entry>
<title>Warn about creating global variables by __setattr__ that shadow builtin</title>
<updated>2003-06-09T18:42:19Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2003-06-09T18:42:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4e3363e884062e1ad6002fc8cc85201a2dea43d7'/>
<id>urn:sha1:4e3363e884062e1ad6002fc8cc85201a2dea43d7</id>
<content type='text'>
names.  Unfortunately, this is not bulletproof since the module
dictionary can be modified directly.
</content>
</entry>
<entry>
<title>Patch #568124: Add doc string macros.</title>
<updated>2002-06-13T20:33:02Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-06-13T20:33:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f'/>
<id>urn:sha1:14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a docstring to the module type.</title>
<updated>2002-06-04T06:02:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-06-04T06:02:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ed3e09f28915eb382d8fdcab6734c382fd3f393c'/>
<id>urn:sha1:ed3e09f28915eb382d8fdcab6734c382fd3f393c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Surprising fix for SF bug 563060: module can be used as base class.</title>
<updated>2002-06-04T05:52:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-06-04T05:52:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c3a787e090dce76149ae86d70d4fecea3c285a40'/>
<id>urn:sha1:c3a787e090dce76149ae86d70d4fecea3c285a40</id>
<content type='text'>
Change the module constructor (module_init) to have the signature
__init__(name:str, doc=None); this prevents the call from type_new()
to succeed.  While we're at it, prevent repeated calling of
module_init for the same module from leaking the dict, changing the
semantics so that __dict__ is only initialized if NULL.

Also adding a unittest, test_module.py.

This is an incompatibility with 2.2, if anybody was instantiating the
module class before, their argument list was probably empty; so this
can't be backported to 2.2.x.
</content>
</entry>
<entry>
<title>PyObject_GC_Del can now be used as a function designator.</title>
<updated>2002-04-12T02:44:22Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2002-04-12T02:44:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=99b5d28467f87b3e5b28f35794a7111218e642f8'/>
<id>urn:sha1:99b5d28467f87b3e5b28f35794a7111218e642f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix for SF bug #529050 - ModuleType.__new__ crash.</title>
<updated>2002-03-12T20:37:02Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-12T20:37:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cd637aae5665d40c405a173efd5d9f174e63bf5c'/>
<id>urn:sha1:cd637aae5665d40c405a173efd5d9f174e63bf5c</id>
<content type='text'>
There were several places that assumed the md_dict field was always
set, but it needn't be.  Fixed these to be more careful.

I changed PyModule_GetDict() to initialize md_dict to a new dictionary
if it's NULL.

Bugfix candidate.
</content>
</entry>
<entry>
<title>Add missing "static" declarations (found by "make smelly").</title>
<updated>2001-10-21T22:28:58Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2001-10-21T22:28:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f23473f00834fb56a6f71cf18191261f1d083c8b'/>
<id>urn:sha1:f23473f00834fb56a6f71cf18191261f1d083c8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enable GC for new-style instances.  This touches lots of files, since</title>
<updated>2001-10-05T20:51:39Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-10-05T20:51:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9475a2310d9cdec4b4c36dee8bf30c72605ae928'/>
<id>urn:sha1:9475a2310d9cdec4b4c36dee8bf30c72605ae928</id>
<content type='text'>
many types were subclassable but had a xxx_dealloc function that
called PyObject_DEL(self) directly instead of deferring to
self-&gt;ob_type-&gt;tp_free(self).  It is permissible to set tp_free in the
type object directly to _PyObject_Del, for non-GC types, or to
_PyObject_GC_Del, for GC types.  Still, PyObject_DEL was a tad faster,
so I'm fearing that our pystone rating is going down again.  I'm not
sure if doing something like

void xxx_dealloc(PyObject *self)
{
	if (PyXxxCheckExact(self))
		PyObject_DEL(self);
	else
		self-&gt;ob_type-&gt;tp_free(self);
}

is any faster than always calling the else branch, so I haven't
attempted that -- however those types whose own dealloc is fancier
(int, float, unicode) do use this pattern.
</content>
</entry>
<entry>
<title>Add optional docstrings to member descriptors.  For backwards</title>
<updated>2001-09-20T20:46:19Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-20T20:46:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f7993765ac0989b5d13084240797913627a31d8'/>
<id>urn:sha1:6f7993765ac0989b5d13084240797913627a31d8</id>
<content type='text'>
compatibility, this required all places where an array of "struct
memberlist" structures was declared that is referenced from a type's
tp_members slot to change the type of the structure to PyMemberDef;
"struct memberlist" is now only used by old code that still calls
PyMember_Get/Set.  The code in PyObject_GenericGetAttr/SetAttr now
calls the new APIs PyMember_GetOne/SetOne, which take a PyMemberDef
argument.

As examples, I added actual docstrings to the attributes of a few
types: file, complex, instance method, super, and xxsubtype.spamlist.

Also converted the symtable to new style getattr.
</content>
</entry>
</feed>
