Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New comment] ValueError: Index was out of range. Must be non-negative and 
less than the size of the collection.
2. [New issue] How to direct print output to the Console in a windows 
standalone?

----------------------------------------------

ISSUES

1. [New comment] ValueError: Index was out of range. Must be non-negative and 
less than the size of the collection.
http://ironpython.codeplex.com/workitem/35682
User s3e3 has commented on the issue:

"<p>This piece of code is run:</p><p>```<br>&gt;&gt;&gt; from config.datastores 
import datastores<br>&gt;&gt;&gt; ds = datastores['remote']<br>&gt;&gt;&gt; p = 
ds.products[1]<br>&gt;&gt;&gt; pds = ds.product(p)<br>&gt;&gt;&gt; from 
version_number import IncrementalVersionNumber<br>&gt;&gt;&gt; v2 = 
IncrementalVersionNumber('14.14.0')<br>&gt;&gt;&gt; v1 = 
IncrementalVersionNumber('14.13.0')<br>&gt;&gt;&gt; r = 
pds.reports.build_spec_diff(v2, v1)<br>```</p><p>Result of this code 
(&quot;r&quot; variable) should be build specification difference, i.e. new 
component versions in a particular product version compared to some older 
product version.</p><p>Build specification difference is calculated by first 
instantiating build specification objects from build datastore (huge collection 
of yaml documents) and diff-ing them afterwards.</p><p>For one run result 
is:</p><p>```<br>Traceback (most recent call last):<br>  File 
&quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;<br>  File 
&quot;D:\Build\lib\datastore\reports.py&quot;, line 122, in build_spec_diff<br> 
   frombuild = self._get_cached_build_spec(fromversion) if fromversion \<br>  
File &quot;D:\Build\lib\datastore\reports.py&quot;, line 108, in 
_get_cached_build_spec<br>    bs = self._pdatastore.buildspecs[version]<br>  
File &quot;D:\Build\lib\datastore\__init__.py&quot;, line 1693, in 
__getitem__<br>    return self._denormitem(self._normalized_item(path),<br>  
File &quot;D:\Build\lib\datastore\__init__.py&quot;, line 1703, in 
_denormitem<br>    item.workitems = 
self._denorm_work_items(normalized_item.work_item_ids,<br>  File 
&quot;D:\Build\lib\datastore\__init__.py&quot;, line 1712, in 
_denorm_work_items<br>    return 
WorkItemsSequence([self._remove_other_builds_dependencies(<br>  File 
&quot;D:\Build\lib\datastore\reports.py&quot;, line 23, in f<br>    depsseq = 
AutoSortableMutableSequence(deps)<br>  File &quot;D:\Build\lib\coll.py&quot;, 
line 20, in __init__<br>    self._items = sorted(sequence)<br>  File 
&quot;D:\Build\lib\util.py&quot;, line 171, in __lt__<br>    return 
self._compare(other, operator.lt)<br>  File &quot;D:\Build\lib\util.py&quot;, 
line 177, in _compare<br>    return comparison_func(self._comparison_key,<br>  
File &quot;D:\Build\lib\datastore\collitem.py&quot;, line 81, in 
_comparison_key<br>    return self.id<br>ValueError: Index was out of range. 
Must be non-negative and less than the size of the collection.<br>Parameter 
name: index<br>```</p><p><br>Result for another run:</p><p>```<br>Exception in 
generator &lt;generator object at 0x0000000000000040&gt; ignored<br>Traceback 
(most recent call last):<br>ValueError: Index was out of range. Must be 
non-negative and less than the size of the collection.<br>Parameter name: 
index<br>```</p><p><br>For yet another run:</p><p>```<br>Exception in generator 
&lt;generator object at 0x0000000000000040&gt; ignored<br>Traceback (most 
recent call last):<br>ValueError: Index was out of range. Must be non-negative 
and less than the size of the collection.<br>Parameter name: 
index</p><p>Exception in generator &lt;generator object at 
0x000000000000005F&gt; ignored<br>Traceback (most recent call 
last):<br>ValueError: Index was out of range. Must be non-negative and less 
than the size of the collection.<br>Parameter name: index</p><p>Exception in 
generator &lt;generator object at 0x0000000000000061&gt; ignored<br>Traceback 
(most recent call last):<br>ValueError: Index was out of range. Must be 
non-negative and less than the size of the collection.<br>Parameter name: 
index<br>```</p><p><br>For some other code run there is no exception at all, 
for another there is different stack trace, etc...<br></p>"-----------------

2. [New issue] How to direct print output to the Console in a windows 
standalone?
http://ironpython.codeplex.com/workitem/35688
User johntrinder has proposed the issue:

"Hi, 
I didn't know whether this is the correct site for help from the IP community 
but here goes.

I have a DLL written in C# that opens a Console window inside a Windows app. I 
am utilizing this for use with IronPython when creating a Windows app as a 
standalone that needs the Console window along with the other windows.

It works fine doing for eg, Console.WriteLine() but output from the IP print 
method is not displayed.

How can I tell IP to send output from 'print' to the Console? I'm sure the 
answer is simple but I'm out of ideas.

Thanks for any help given.

PS I've attached the .cs file if anyone's interested in how it's done (NB. I 
didn't create the code)"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on 
CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue 
Tracker. You can unsubscribe or change your issue notification settings on 
CodePlex.com.
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to