This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Two lines in object.c seem useless.
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, josiahcarlson
Priority: normal Keywords:

Created on 2004-01-27 06:22 by josiahcarlson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg19836 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2004-01-27 06:22
The lines numbered 749 and 758 that read:
	PyTypeObject *vtp;
and
	vtp = v->ob_type;
respectively, seem to have no use in implementation of
PyObject_Compare in the current CVS.

One would hope that a sane compiler would optimize
those lines out, but one cannot be certain.
msg19837 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-01-27 08:17
Logged In: YES 
user_id=357491

Looks like you are right, Josiah.  I am compiling now and will run 
the test suite quickly to make sure our eyes aren't lying to us.
msg19838 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-01-27 20:19
Logged In: YES 
user_id=357491

OK, compiled with no problem so the line removals have been 
checked in.
msg19839 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-01-27 20:19
Logged In: YES 
user_id=357491

OK, compiled with no problem so the line removals have been 
checked in.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39873
2004-01-27 06:22:42josiahcarlsoncreate