<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_super.py, branch benjamin-eval-loop-edit</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931)</title>
<updated>2018-05-20T05:48:12+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-05-20T05:48:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=f5e7b1999f46e592d42dfab51563ea5411946fb7'/>
<id>f5e7b1999f46e592d42dfab51563ea5411946fb7</id>
<content type='text'>
A DeprecationWarning was emitted in Python 3.6-3.7.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A DeprecationWarning was emitted in Python 3.6-3.7.</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused imports.</title>
<updated>2016-12-16T18:00:15+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-12-16T18:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=70d28a184c42d107cc8c69a95aa52a4469e7929c'/>
<id>70d28a184c42d107cc8c69a95aa52a4469e7929c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23722: improve __classcell__ compatibility</title>
<updated>2016-12-05T06:47:55+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2016-12-05T06:47:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=19d246745d9d013c12e9560dd020d778381780fb'/>
<id>19d246745d9d013c12e9560dd020d778381780fb</id>
<content type='text'>
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.

The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).

The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.

This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.

The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).

The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.

This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23722: Initialize __class__ from type.__new__()</title>
<updated>2016-09-11T04:45:49+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2016-09-11T04:45:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad'/>
<id>944368e1cc90a0bebaaf1a0a6f4346a81d8f46ad</id>
<content type='text'>
The __class__ cell used by zero-argument super() is now initialized
from type.__new__ rather than __build_class__, so class methods
relying on that will now work correctly when called from metaclass
methods during class creation.

Patch by Martin Teichmann.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The __class__ cell used by zero-argument super() is now initialized
from type.__new__ rather than __build_class__, so class methods
relying on that will now work correctly when called from metaclass
methods during class creation.

Patch by Martin Teichmann.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26718: super.__init__ no longer leaks memory if called multiple times.</title>
<updated>2016-04-13T12:27:33+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-04-13T12:27:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3d7497608ba8dd0b82d69944f484febdad7dc507'/>
<id>3d7497608ba8dd0b82d69944f484febdad7dc507</id>
<content type='text'>
NOTE: A direct call of super.__init__ is not endorsed!
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NOTE: A direct call of super.__init__ is not endorsed!
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #21741: Update 147 test modules to use test discovery.</title>
<updated>2015-04-13T20:00:43+00:00</updated>
<author>
<name>Zachary Ware</name>
<email>zachary.ware@gmail.com</email>
</author>
<published>2015-04-13T20:00:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=38c707e7e0322f9139bb51ad73ede1e3b46985ef'/>
<id>38c707e7e0322f9139bb51ad73ede1e3b46985ef</id>
<content type='text'>
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux.  The only differences I found were actually tests
that were previously *not* run.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux.  The only differences I found were actually tests
that were previously *not* run.
</pre>
</div>
</content>
</entry>
<entry>
<title>reset __class__, so multiple runs don't fail (closes #17999)</title>
<updated>2013-05-17T16:33:26+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2013-05-17T16:33:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a29ac45200ba89c474b7b5c7f2973b4d38116fe7'/>
<id>a29ac45200ba89c474b7b5c7f2973b4d38116fe7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hide the __class__ closure from the class body (#12370)</title>
<updated>2013-05-15T20:26:42+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2013-05-15T20:26:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=312595ce3a75e91d53222e486dfdd6f3668422ca'/>
<id>312595ce3a75e91d53222e486dfdd6f3668422ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>when an argument is a cell, set the local copy to NULL (see #17927)</title>
<updated>2013-05-12T23:16:06+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2013-05-12T23:16:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=159ae41da68ff1f1d85ed66fa6410bd9ba62ed5b'/>
<id>159ae41da68ff1f1d85ed66fa6410bd9ba62ed5b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make super() internal errors RuntimeError instead of SystemError (closes #15839)</title>
<updated>2012-09-02T03:04:38+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2012-09-02T03:04:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6a42bd67d7dc251ea96784c77dfc130a8456a486'/>
<id>6a42bd67d7dc251ea96784c77dfc130a8456a486</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
