Issue1603314

classification
Title: PyModule.java is a classic class
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, leouserz, pjenvey
Priority: normal Keywords:

Created on 2006-11-26.18:57:15 by cgroves, last changed 2007-04-17.06:48:10 by cgroves.

Messages
msg1295 (view) Author: Charlie Groves (cgroves) Date: 2006-11-26.18:57:15
PyModule.java is a classic class which means it can't be subclasses.  This causes pymods and test_dir in test_descr.py to fail.  It should be given a template and generated to make it a new style class.
msg1296 (view) Author: Deleted User leouserz (leouserz) Date: 2007-01-19.18:09:20
Excellent, Im looking at test_dir in test_descr.py and saw that the PyReflectedConstructor was bombing.  Which lead me to the question as to why the PyReflectedConstructor was bombing: because according to PyType its a classic class.  Ill have to dig into this templating business to see what can be done. :)

leouser
msg1297 (view) Author: Deleted User leouserz (leouserz) Date: 2007-01-19.18:27:23
oops, I forgot to add that test_dir probably won't pass just by fixing this.  It uses "sys" as the type() arg which is not of type module... yet.  Ive done some early looking at converting PySystemState to a module since it causes problems with the inspect test passing.  On the surface, it doesn't appear that much needs to be changed there.

leouser
msg1298 (view) Author: Philip Jenvey (pjenvey) Date: 2007-03-16.21:14:25
I've submitted a patch converting PyModule to a new style class here:

http://sourceforge.net/tracker/index.php?func=detail&aid=1682423&group_id=12867&atid=312867
msg1299 (view) Author: Charlie Groves (cgroves) Date: 2007-04-17.06:48:10
Patch applied in r3157.
History
Date User Action Args
2006-11-26 18:57:15cgrovescreate