.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-Original Message-
From: [email protected]
[mailto:ironpython-users-bounces+rome=wintellect
I don't mind seeing them.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-Original Message-
From: ironpython-users-bounces+rome=wintellect@pytho
sual
tree (really a grid with indentation), and as they drill down into those
objects I just walk down one step further into the data structure. It isn't the
fastest thing in the world, but then again it doesn't have to be - the script
is effectively paused until I allow the breakpoint to
eturn new string[] { };
}
}
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-Original Message-
From: [email protected]
[mailto:ironpython-us
u can also intercept via the
script engine's IO property. Perhaps that kind of trace output is what you are
looking for?
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-O
oblem writing out a new python file that
includes the modified parameters / items.
Hack? Yes. But far simpler than dealing with AST and generic code emit.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | kr...@wintellec
27;t exist. The official response seemed to always fall
back to "you can still do it in 'classic' non-metro desktop apps in win8 if you
need to".
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | kr...@winte
right thing to do.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintellect.com<http://www.wintellect.com/>
From: ironpython-users-bounces+rom
If you implement IDisposable, then it is generally expected that you would also
implement a finalizer. Implementing one without the other is usually not a good
idea.
http://msdn.microsoft.com/en-us/library/b1yfkh5e(v=vs.100).aspx
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD
n the assembly into
scope.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintellect.com<http://www.wintellect.com/>
From: ironpython-users-bounce
l (or Foobar.dll) and then simply rename the
resulting assembly file to Foobar.Snafu.dll, does your consuming code work?
Also, what is the name of the py file you are compiling, and what does the
import statement that is failing look like?
Keith Rome
Senior Consultant and Architect
MCPD-EAD,
mport, as
well as much easier to maintain (and the distributed assembly would also be
much smaller due to zip compression).
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-
in our WPF / Silverlight products.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintellect.com<http://www.wintellect.com/>
From: ironpython-users-b
er way to solve this problem? Or failing that, is
this the type of update that could ever make its way back into the main
distribution?
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | kr...@wi
rely? And related to my first question, does it also include a Silverlight
version of the binary?
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintellect.com
302. In addition to everything zipimport
does, I am also setting __file__ to "", and setting __path__ to an
empty List. I also ensure that the module is added to sys.modules before
executing the initialization code, and I check sys.modules at the very start of
my load_module() me
work:
var options = new Dictionary();
ScriptRuntimeSetup setup = Python.CreateRuntimeSetup(options);
_runtime = new ScriptRuntime(setup);
_python = Python.GetEngine(_runtime);
This code should work exactly the same on desktop CLR and Silverlight.
Keith Rome
Senior Consultant and Architect
MCPD
from GetPrefix()? I am not familiar with the importance of that
call.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintellect.com<http://www.wintellect.com/&
s\krome\main\Runtime\Microsoft.Dynamic\Utils\ReflectionUtils.cs(495,41):
error CS0103: The name 'RuntimeReflectionExtensions' does not exist in the
current context
Perhaps this might help shed light on the issue.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-W
onary)context.LanguageContext.SystemState.__dict__.get("modules")
Is there a better way to reach sys.modules when all I have is a CodeContext?
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | kr...@wintelle
Yes, it seems that is a much better way to go, and appears to work for SL4/5
and v2 profiles where dynamic was causing issues.
Even though I know my way around a little, there is still a lot to be learned.
I didn't even notice the existence of that property before.
Keith Rome
S
ated by the editor on a background
thread.
So yes, it is certainly possible to do what you want. But the coding effort is
relative to the feature set you want to expose. There are several people on the
mailing list like myself who have done similar implementations who I am sure
would have pro
on't be able to move to it. This is further complicated
because we are also exploring concepts for supporting the Android, WinRT and
(perhaps) iOS platforms - and I would be very worried about 2.7's stability on
those once v3 becomes the norm.
Keith Rome
Senior Consultant and Archit
also eliminate the problem of having variant outcomes since the program will
become deterministic.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintelle
d by the script then they will be raised in the hosting
runtime environment - ultimately bubbling up to where you made the call to
execute the script.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | kr...@win
ooldown"). And you can imagine numerous additional mechanics that build on the
general principle... but the main idea is that you have one model (the "state
machine") that ensures that the AI must adhere to the rules of your game. In
other words, making sure a robot is not able to
_inner.Write(value);
Console.ForegroundColor = original;
}
public override Encoding Encoding
{
get { return _inner.Encoding; }
}
}
}
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect
dColor = Color;
_inner.Write(value);
Console.ForegroundColor = original;
}
public override Encoding Encoding
{
get { return _inner.Encoding; }
}
}
}
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MC
isted for
your host environment.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]<mailto:[email protected]>
www.wintellect.com<http://www.wintellect.com/>
From: Ironpython-users
[mailto
in WinDBG/SoS, I find SciTech to be the most powerful and stable
(ANTS tends to be particularly unstable).
http://memprofiler.com/
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wint
= engineInstance.GetSysModule();
sys.meta_path.append(importer);
sys.path = new List();
return engineInstance;
}
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-Original Messa
at is done
for you when the scripting runtime is initialized.
How are you creating the script runtime?
Running from a background thread shouldn't have any bearing on it, unless this
were a race issue. And since the crash is happening in a static ctor, that
pretty much rules out thread race
me
information about the problem.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
-Original Message-
From: Ironpython-users
[mailto:ironpython-users-bounces+rome=wintellect
"I added the correct search paths from the working command-line output"
Can you elaborate on this? The error message seems to point toward a bad search
path or a faulty importer as it tries to import a module.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF
2.7 or 3.0 at this point (2.7 has been out for quite a while). So that is
probably a big part of the reason you haven't seen much response.
But yeah, it looks like that last activity on IronClad was at least 3.5 years
ago. I didn't even know what it was and had to look it up.
Ke
Sounds like it might be a problem with your Intranet security zone settings in
IE (assuming you are using IE).
We use IP in Silverlight, but it is a secondary compilation target (WPF is
primary). It still works as far as I know.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA
a service
threading model if you aren't experienced in such things.
Keith Rome
Principal Architect @ Wintellect (www.wintellect.com<http://www.wintellect.com>)
770.617.4016 | [email protected]<mailto:[email protected]>
[cid:DB4B3CED-8E4A-4404-A5B0-2853E1AA014D]
Register today<
.
Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | [email protected]
www.wintellect.com
> On Dec 8, 2013, at 4:44 PM, "Lee Armeanu" wrote:
>
> Hi all,
> I am trying to populate a simple Property
f you pre-import the
modules prior to forking then it's fine - using a cached module is OK, it's
just adding newly loaded modules to the cache that causes trouble. And I'm sure
there are other similar situations.
Actual execution of scripts that are side-effect-free is perfectl
ation about the source code file and
line number too.
It requires some effort to get advanced debugging features, but it is certainly
possible.
Keith Rome
Principal Architect @ Wintellect (www.wintellect.com<http://www.wintellect.com>)
770.617.4016 | [email protected]<mailto:r...@
relevant" would be enough to
catch the things that fall through the cracks.
Keith Rome
Principal Architect @ Wintellect (www.wintellect.com<http://www.wintellect.com>)
770.617.4016 | [email protected]<mailto:[email protected]>
[cid:2DEFD770-1220-4AAA-A244-9FE29A4C2
- in that it relies heavily on (and accepts)
>pull requests from non-Microsoft persons. The others seem to often follow more
>of a "top down" contributions model.
Keith Rome
Principal Architect @ Wintellect (www.wintellect.com<http://www.wintellect.com>)
770.617.4016 | kr...
42 matches
Mail list logo