Re: [Ironpython-users] Hashing a directory is magnitudes slower than in cPython

2014-02-25 Thread Curt Hagenlocher
"Basically, there's a mismatch between what .NET provides and what Python needs for perfect compatibility." Yes. I think I remember implementing this and that's exactly the problem I ran into. I think we looked into incorporating a modified version of the BCL code directly into IronPython, but at

[Ironpython-users] Python 3 pickle format

2013-06-16 Thread Curt Hagenlocher
I could probably look this up, but I'm feeling lazy :). Does IronPython have code yet to support protocol format 3 for pickling? Thanks, -Curt ___ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpytho

Re: [Ironpython-users] IronPython float_info values (was: IronPython always in 32-bit mode on 64bit machine even when running ipy64.exe)

2013-05-08 Thread Curt Hagenlocher
Web: codesys.com <http://www.codesys.com>| > CODESYS store: > store.codesys.com > CODESYS forum: forum.codesys.com > > *Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner* | *Trade > register: Kempten HRB 6186* | *Tax ID No.: DE 167014915** * > > *Von

Re: [Ironpython-users] IronPython float_info values (was: IronPython always in 32-bit mode on 64bit machine even when running ipy64.exe)

2013-05-08 Thread Curt Hagenlocher
You can get precise values of these without depending on the compiler's ability to convert text to floating point values by saying sys.float_info.min = System.BitConverter.Int64BitsToDouble(0x0010) # i.e. 2^-1023 sys.float_info.epsilon = System.BitConverter.Int64BitsToDouble(0x3cb

Re: [Ironpython-users] IronPython always in 32-bit mode on 64bit machine even when running ipy64.exe

2013-05-07 Thread Curt Hagenlocher
Can you use corflags.exe to confirm that your ipy64.exe is actually not marked for 32-bit execution? Your output should look like this: PS D:\Program Files\Sho\bin> corflags .\ipy64.exe Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 3.5.30729.1 Copyright (c) Microsoft Corporation

Re: [Ironpython-users] ipy64 Unicode file vs. pipe

2013-04-04 Thread Curt Hagenlocher
The culprit here is actually Powershell, which likes to convert text output to UTF-16. I bet you won't see this if you run from cmd.exe. On Wed, Apr 3, 2013 at 11:32 PM, Markus Schaber wrote: > Hi, Slide, > > Hi, Malcolm, > > ** ** > > Both Python and .NET itself have some heuristics to

Re: [Ironpython-users] socketFile.readline never returns

2013-03-28 Thread Curt Hagenlocher
How was __socketFile created? Is there a possibility that it's looking for "\r\n" but only getting "\n"? (I can't remember anything about IronPython's handling of eol.) On Thu, Mar 28, 2013 at 3:53 PM, Claudio C wrote: > Hello everybody, > > I'm calling this method with IronPython but this never

Re: [Ironpython-users] Ironpython works with Framework 4 all or framework client profile ?

2013-01-16 Thread Curt Hagenlocher
It's possible that this is a consequence of the TargetFrameworkAttribute that's on the assemblies. It's set to [assembly: TargetFramework(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")] rather than [assembly: TargetFramework(".NETFramework,Version=v4.0,Profile=Client", Fr

Re: [Ironpython-users] crash on Win8 64bit at IronPython expression evaluation

2013-01-15 Thread Curt Hagenlocher
Is it possible to launch the application directly and then attach the debugger to it before the code in question executes? How is the background thread created? On Tue, Jan 15, 2013 at 3:51 AM, Zsidó Zoltán wrote: > Hi Jeff, > > > > You were right. > > On windows 7 I managed to reproduce the

Re: [Ironpython-users] ironpython and windows services

2013-01-03 Thread Curt Hagenlocher
When you add a reference to something in the GAC, don't add ".dll" to the name. That is, clr.AddReference('System.ServiceProcess') On Thu, Jan 3, 2013 at 6:34 AM, Peter Schwalm wrote: > Hello, > I am trying to convert an Ironpython filewatcher program into a windows > service. I started by tra

Re: [Ironpython-users] Using System.Diagnostics.Process results in Errno 22

2012-12-19 Thread Curt Hagenlocher
t; Thanks for the suggestion. I believe you are right. I no longer get the > error message, but the command itself is not successful. > > Is there any other way in IronPython to run commands ? > > ** ** > > Cheers, > > Jackie > > ** ** > > *Fro

Re: [Ironpython-users] Commercial Support / Bugfixes for Ironpython

2012-10-18 Thread Curt Hagenlocher
p://www.3s-software.com > CoDeSys internet forum: > http://forum.3s-software.com<http://forum-en.3s-software.com/> > Download CoDeSys sample projects: > http://www.3s-software.com/index.shtml?sample_projects > > *Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manf

Re: [Ironpython-users] Commercial Support / Bugfixes for Ironpython

2012-10-18 Thread Curt Hagenlocher
This doesn't directly address your question, but as I recall, DefineDynamicAssembly is only used under very particular circumstances. It can be avoided most of the time in non-debug usage of IronPython. The only way to release some of the memory usage forced by DefineDynamicAssembly is to tear down

Re: [Ironpython-users] [Ironruby-core] IronRuby scripting in Windows Store apps

2012-08-28 Thread Curt Hagenlocher
...as opposed to one of a set of predefined types whose source is compiled into IronRuby. On Tue, Aug 28, 2012 at 1:38 PM, Tomas Matousek < tomas.matou...@microsoft.com> wrote: > That's correct, new types can't be generated at runtime and hence it is > not possible to inherit from an arbitrary CL

Re: [Ironpython-users] Modifying ASTs when embedding IronPython

2012-03-01 Thread Curt Hagenlocher
I would argue that this is a bad idea. How Python-compatible do you want this simple Excel-like language to be? If it's really just a small subset of the full Python language, you may be better off writing a simple parser that emits Python text as its back end and prevents the users from doing anyt

Re: [Ironpython-users] PyPDF error

2011-12-29 Thread Curt Hagenlocher
This looks like a bug in IronPython when deriving a class from int. Here's a simple repro; file a bug! In IronPython 2.7.1, >>> class Integer(int): ... def __init__(self, value): ... int.__init__(value) ... >>> Integer(10) 10 >>> Integer('10') Traceback (most recent call last): File

Re: [Ironpython-users] Simulating Python's scoping at the DLR level

2011-12-20 Thread Curt Hagenlocher
I don't think you can replicate Python's semantics exactly, because Python compiles an entire block at once but your scope would only see reads and writes sequentially as they happen. For instance, in Python, the following code will generate an error: a = 1 def test(): print(a) a = 2 That

Re: [Ironpython-users] SciPy for .NET

2011-12-02 Thread Curt Hagenlocher
NumPy and SciPy aren't particularly suitable for use from non-Python environments, because a considerable amount of glue logic is actually implemented in Python. If you do an internet search for "svd .net", there doesn't seem to be a shortage of other implementations. Two I'm personally familiar wi

Re: [Ironpython-users] Recommended IDE for IronPython on Linux? (Advise for the poverty stricken)

2011-09-04 Thread Curt Hagenlocher
VS is a mixed native / managed program, so Mono isn't sufficient to make it run on a non-Windows OS. If your goal is to host IronPython in a C# program, you should definitely be able to use the Express version to develop that. But you won't be able to use any of the Python tooling inside that copy

Re: [Ironpython-users] Assembly references: file does not exist?

2011-06-29 Thread Curt Hagenlocher
If the C# app is in the same directory as the assembly you're trying to load from Python, it would automatically find dependent assemblies in that directory. ipy.exe probably isn't in that directory, so the managed loader (which is largely driven by the directory containing the launching executable

Re: [Ironpython-users] Assembly references: file does not exist?

2011-06-28 Thread Curt Hagenlocher
> >…. > > ** ** > > I’ve tried ( 2 ) as well, and while some of the known dependencies load > successfully – showing that the process works – some do not. This could > mean I’m confused on my dependencies – is there a tool which will show what > a

[Ironpython-users] Kinect and IronPython via Sho

2011-06-17 Thread Curt Hagenlocher
Very cool: http://blogs.msdn.com/b/the_blog_of_sho/archive/2011/06/16/connecting-to-kinect-from-sho.aspx -Curt ___ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users