Issue1683

classification
Title: TempConverter returns : 'modul' object has no attribut 'main'
Type: behaviour Severity: normal
Components: Documentation Versions: Jython 2.5
Milestone:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, pjenvey, sensagent
Priority: Keywords:

Created on 2010-12-07.08:21:59 by sensagent, last changed 2013-02-19.23:17:15 by fwierzbicki.

Messages
msg6270 (view) Author: Dominique (sensagent) Date: 2010-12-07.08:21:59
TempConverter.py doesn't work

On windows platform, you get :
Jython 2.5.2rc2 ...
>>> import os
>>> os.chdir('Demo')
>>> os.chdir('bean')
>>> import TempConverter
>>> TempConverter.main()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'main'
>>>

But the __main__ is well finishing the script as it possible to check it:

if __name__ == "__main__":
  c = TempConverter()
  print c
msg6305 (view) Author: Philip Jenvey (pjenvey) Date: 2010-12-29.01:38:05
What documentation refers to calling TempConverter.main?
msg7706 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2013-02-19.23:17:15
Two years without an answer probably means we can close this.
History
Date User Action Args
2013-02-19 23:17:15fwierzbickisetstatus: open -> closed
resolution: out of date
messages: + msg7706
nosy: + fwierzbicki
versions: + Jython 2.5, - 25rc4
2010-12-29 01:38:05pjenveysetnosy: + pjenvey
messages: + msg6305
2010-12-07 08:21:59sensagentcreate