Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Trivial: IronPython.Hosting.PythonEngine().CreateOptimizedModule(...).Globals.GetEnumerator().DoReset() broken #275

Closed
ironpythonbot opened this issue Dec 9, 2014 · 1 comment

Comments

@ironpythonbot
Copy link

ironpythonbot commented Dec 9, 2014

It seems that the DoReset method of DictionaryEnumerator in AdapterDict.cs is
broken:

>>> pe = IronPython.Hosting.PythonEngine()  
oem = pe.CreateOptimizedModule("temp_opt_model.py", "opt", True)  
ator = oem.Globals.GetEnumerator()  
[x for x in ator]  
[<System.Collections.DictionaryEntry object at 0x000000000000002B
[System.Collections.DictionaryEntry]>, <System.Collect  
ions.DictionaryEntry object at 0x000000000000002C
[System.Collections.DictionaryEntry]>, <System.Collections.DictionaryE  
ntry object at 0x000000000000002D [System.Collections.DictionaryEntry]>]  
ator.DoReset()  
[x for x in ator]  
Traceback (most recent call last):  
File , line 0, in <stdin>##30  
SystemError: Enumeration already finished.  

As you can see, it does not actually reset the IEnumerator.

Work Item Details

Original CodePlex Issue: Issue 6711
Status: Active
Reason Closed: Unassigned
Assigned to: Unassigned
Reported on: Dec 20, 2006 at 11:57 PM
Reported by: dfugate
Updated on: Feb 22, 2013 at 2:16 AM
Updated by: jdhardy

@slide
Copy link
Contributor

slide commented Aug 23, 2016

CreateOptimizedModule doesn't exist

@slide slide closed this as completed Aug 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants