<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/ceval.c, branch v2.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/Python/ceval.c?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/ceval.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-28T20:18:48Z</updated>
<entry>
<title>Backport to 2.2.1.</title>
<updated>2002-03-28T20:18:48Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-28T20:18:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fe34d0facd54a6f471d73f3cba114dedc4f04969'/>
<id>urn:sha1:fe34d0facd54a6f471d73f3cba114dedc4f04969</id>
<content type='text'>
Fix an issue that was reported in but unrelated to the main problem of
SF bug 535905 (Evil Trashcan and GC interaction).

The SETLOCAL() macro should not DECREF the local variable in-place and
then store the new value; it should copy the old value to a temporary
value, then store the new value, and then DECREF the temporary value.
This is because it is possible that during the DECREF the frame is
accessed by other code (e.g. a __del__ method or gc.collect()) and the
variable would be pointing to already-freed memory.

BUGFIX CANDIDATE!
</content>
</entry>
<entry>
<title>Backport tim_one's checkin of version 2.302:</title>
<updated>2001-12-28T10:22:15Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2001-12-28T10:22:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5fde86fad5cc7718d6b86353ea7f05b28bcc26bf'/>
<id>urn:sha1:5fde86fad5cc7718d6b86353ea7f05b28bcc26bf</id>
<content type='text'>
SF bug #496549 -Qnew and in-place division "/=".

eval_frame():  Under -Qnew, INPLACE_DIVIDE wasn't getting handed off to
INPLACE_TRUE_DIVIDE (like BINARY_DIVIDE was getting handed off to
BINARY_TRUE_DIVIDE).

Bugfix candidate.
</content>
</entry>
<entry>
<title>SF bug #494668:  PUSH() should assert-fail on overflow.</title>
<updated>2001-12-19T04:11:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-19T04:11:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b6d14daa1c48d8938a140a671bcd17cb40cdd54d'/>
<id>urn:sha1:b6d14daa1c48d8938a140a671bcd17cb40cdd54d</id>
<content type='text'>
eval_frame():  Added asserts to the top of the eval loop, to verify
that the eval stack pointer is in bounds, plus some comments.
</content>
</entry>
<entry>
<title>Patch #494384: Disable more Unicode API if Unicode is not used.</title>
<updated>2001-12-18T22:36:40Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-12-18T22:36:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8d3ce5a6b3b275fe58af51fe19a915216f69d3c9'/>
<id>urn:sha1:8d3ce5a6b3b275fe58af51fe19a915216f69d3c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>_PyEval_SliceIndex():  explain why a NULL argument is allowed (thanks</title>
<updated>2001-12-16T19:44:20Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-16T19:44:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b519638d1ee6715d4c262d804408041d4caf6b5a'/>
<id>urn:sha1:b519638d1ee6715d4c262d804408041d4caf6b5a</id>
<content type='text'>
to Guido for the revelation).
</content>
</entry>
<entry>
<title>_PyEval_SliceIndex():  Repaired the comments, and added XXX comments</title>
<updated>2001-12-16T19:11:44Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-16T19:11:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb479e78e0c6f57ffc130af3a81dff648262d069'/>
<id>urn:sha1:cb479e78e0c6f57ffc130af3a81dff648262d069</id>
<content type='text'>
about its dubious treatment of NULL (also opened a bug report on that,
but don't want to risk changing it this late in the 2.2 game).
</content>
</entry>
<entry>
<title>Fix for SF bug [ #492403 ] exec() segfaults on closure's func_code</title>
<updated>2001-12-13T19:51:56Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-12-13T19:51:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=733c8935f9dfd1be70c472649eb845ea22bbc878'/>
<id>urn:sha1:733c8935f9dfd1be70c472649eb845ea22bbc878</id>
<content type='text'>
Based on the patch from Danny Yoo.  The fix is in exec_statement() in
ceval.c.

There are also changes to introduce use of PyCode_GetNumFree() in
several places.
</content>
</entry>
<entry>
<title>Fix for SF bug #489671 (Neil Norwitz): memory leak in test_richcmp.</title>
<updated>2001-12-06T21:28:18Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-06T21:28:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=35974fbf31fd2e2a64fd13a6565f1478ed8cfa6e'/>
<id>urn:sha1:35974fbf31fd2e2a64fd13a6565f1478ed8cfa6e</id>
<content type='text'>
Had nothing to do with rich comparisons -- some stack cleanup code was
lost as a result of merging in Neil Schemenauer's generators patch.
Reinserted the stack cleanup code, skipping it when yielding.
</content>
</entry>
<entry>
<title>Fix a typo (probably caused by autocompletion &lt;blush&gt;) that caused a</title>
<updated>2001-12-06T14:09:56Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-06T14:09:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2556f2e1e251097818dd428cc22f0633bd9ba162'/>
<id>urn:sha1:2556f2e1e251097818dd428cc22f0633bd9ba162</id>
<content type='text'>
leak when a class defined a __metaclass__.  This fixes the problem
reported on python-dev by Ping; I dunno if it's the same as SF bug
#489669 (since that mentions Unicode).
</content>
</entry>
<entry>
<title>SF bug #488514: -Qnew needs work</title>
<updated>2001-12-06T06:23:26Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-06T06:23:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3caca2326e04ea3c0d1f8c6a588e646d8201af38'/>
<id>urn:sha1:3caca2326e04ea3c0d1f8c6a588e646d8201af38</id>
<content type='text'>
Big Hammer to implement -Qnew as PEP 238 says it should work (a global
option affecting all instances of "/").

pydebug.h, main.c, pythonrun.c:  define a private _Py_QnewFlag flag, true
iff -Qnew is passed on the command line.  This should go away (as the
comments say) when true division becomes The Rule.  This is
deliberately not exposed to runtime inspection or modification:  it's
a one-way one-shot switch to pretend you're using Python 3.

ceval.c:  when _Py_QnewFlag is set, treat BINARY_DIVIDE as
BINARY_TRUE_DIVIDE.

test_{descr, generators, zipfile}.py:  fiddle so these pass under
-Qnew too.  This was just a matter of s!/!//! in test_generators and
test_zipfile.  test_descr was trickier, as testbinop() is passed
assumptions that "/" is the same as calling a "__div__" method; put
a temporary hack there to call "__truediv__" instead when the method
name is "__div__" and 1/2 evaluates to 0.5.

Three standard tests still fail under -Qnew (on Windows; somebody
please try the Linux tests with -Qnew too!  Linux runs a whole bunch
of tests Windows doesn't):
    test_augassign
    test_class
    test_coercion
I can't stay awake longer to stare at this (be my guest).  Offhand
cures weren't obvious, nor was it even obvious that cures are possible
without major hackery.

Question:  when -Qnew is in effect, should calls to __div__ magically
change into calls to __truediv__?  See "major hackery" at tail end of
last paragraph &lt;wink&gt;.
</content>
</entry>
</feed>
