Re: [Ironpython-users] Retrieving Ironpython variables within .NET

2011-10-12 Thread Jeff Hardy
On Wed, Oct 12, 2011 at 9:04 AM, Luis Vallejo wrote: > And I want to retrieve the variable "x" from C# change its value and inject > it back to Ironpython the problem I face is that well.. i dont know how. I > have tried with the scope.GetItems() but it returns 0. the only time it > returns the va

[Ironpython-users] Retrieving Ironpython variables within .NET

2011-10-12 Thread Luis Vallejo
Hi Guys, Im new to Ironpython and I was reading the book Ironpython in Action now in Chapter 15, there is something i want to do but i just cant make it work. I have the following script class Item: def __init__(self,value,quality): self.value = value self.quality = quali

Re: [Ironpython-users] Patch: Warn user when using old print syntax

2011-10-12 Thread Jeff Hardy
Thanks! Can you make this a pull request on GitHub? It's much easier to manage patches from there. - Jeff On Wed, Oct 12, 2011 at 7:44 AM, Markus Schaber wrote: > Hi, > > Von: Markus Schaber >> Von: Dino Viehland [mailto:di...@microsoft.com] >> > So you want to warn if the file contains a print

[Ironpython-users] Patch: Warn user when using old print syntax

2011-10-12 Thread Markus Schaber
Hi, Von: Markus Schaber > Von: Dino Viehland [mailto:di...@microsoft.com] > > So you want to warn if the file contains a print statement w/o from > > __future__ import print_function? What if it's a call to print such > > as > > print('foo') which is valid in both 2.x and 3.x? > > Considering o

Re: [Ironpython-users] ErrorListener

2011-10-12 Thread Markus Schaber
Hi, Keith, Von: Keith Rome [mailto:r...@wintellect.com] > > Is there a notion of "Warning" in context of execution? My understanding is > that during execution you either get a single error, or you get the > resulting value (or void/null if the script does not eval to a return > value). Any print

Re: [Ironpython-users] ErrorListener

2011-10-12 Thread Keith Rome
Is there a notion of "Warning" in context of execution? My understanding is that during execution you either get a single error, or you get the resulting value (or void/null if the script does not eval to a return value). Any print() messages are routed to the stdout stream which you can also in

Re: [Ironpython-users] ErrorListener

2011-10-12 Thread Markus Schaber
Hi, Jimmy, Von: Jimmy Schementi [mailto:jscheme...@gmail.com] > >> Sorry for disturbing again, but I'm a little bit confused about the > >> ErrorListeners from the Hosting API. > >> > >> For compilation of a ScriptSource, I can pass an ErrorListener which > >> gets the errors and warnings, but it

Re: [Ironpython-users] ErrorListener

2011-10-12 Thread Jimmy Schementi
On Oct 12, 2011, at 4:55 AM, Markus Schaber wrote: >> Sorry for disturbing again, but I'm a little bit confused about the >> ErrorListeners from the Hosting API. >> >> For compilation of a ScriptSource, I can pass an ErrorListener which gets >> the errors and warnings, but it seems that I cannot

[Ironpython-users] IronPython, Daily Digest 10/11/2011

2011-10-12 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Lib/config directory not present in zip distribution. 2. [New comment] Implement _elementtree module 3. [New comment] Implement _elementtree module 4. [New issue] Update Elem

Re: [Ironpython-users] ErrorListener

2011-10-12 Thread Markus Schaber
Hi, Von: Markus Schaber > Sorry for disturbing again, but I'm a little bit confused about the > ErrorListeners from the Hosting API. > > For compilation of a ScriptSource, I can pass an ErrorListener which gets > the errors and warnings, but it seems that I cannot pass an ErrorListener > for the

[Ironpython-users] ErrorListener

2011-10-12 Thread Markus Schaber
Hi, Sorry for disturbing again, but I'm a little bit confused about the ErrorListeners from the Hosting API. For compilation of a ScriptSource, I can pass an ErrorListener which gets the errors and warnings, but it seems that I cannot pass an ErrorListener for the execution of the ScriptSource