[Ironpython-users] open xml sdk v2.0

2011-10-28 Thread Pawel Jasinski
hi, I am trying to use openxml sdk v2.0 together with python 2.7.1 (was 2.7.0). I have managed to generate the mini document out of the csharp (http://msdn.microsoft.com/en-us/library/dd440953%28v=office.12%29.aspx) However if I try to do it from python, the produced document is corrupted. Word c

Re: [Ironpython-users] Considering IronPython for a new project

2012-06-21 Thread Pawel Jasinski
hi, > sadly I don’t remember being able to run > PyChecker/PyLint/PyFlakes with IronPython, and since it’s going be using > a lot of .net libraries I don’t see how I can use CPython to run those. pylint works now with ironpython. You need the latest version of ironpython (2.7.3b1) and small patc

[Ironpython-users] raw_input and readline support in ironpython

2012-06-24 Thread Pawel Jasinski
hi, the documentation of raw_input says: "If the readline module was loaded, then raw_input() will use it to provide elaborate line editing and history features." Which translates to calling raw_input equivalent inside readline module. In case of cpython readline is built-in and there is no pub

[Ironpython-users] utf in source \u00F8

2012-09-27 Thread Pawel Jasinski
hi, Jeff pointed out that there is something strange with the code I have submitted. It is about main/Languages/IronPython/IronPython/Runtime/PythonModule.cs We have seen quite a few things with args\u00F8 e.g.: public static PythonModule/*!*/ __new__(CodeContext/*!*/ context, PythonType/*!*/ c

Re: [Ironpython-users] utf in source \u00F8

2012-09-27 Thread Pawel Jasinski
Short update I have looked at 2.6 in codeplex and the \u00f8 is there, so I think it is not my editor or my git settings. http://ironpython.codeplex.com/SourceControl/changeset/view/87420#992096 ___ Ironpython-users mailing list Ironpython-users@python.or

[Ironpython-users] How to find out -X:options passed to ipy

2012-10-01 Thread Pawel Jasinski
hi, is there a way to find out things passed to ipy.exe with -X:whatever analog to sys.flags? I would like to detect when -X:Frames or -X:FullFrames are provided and pass it to subprocess. thanks pawel ___ Ironpython-users mailing list Ironpython-users@

[Ironpython-users] importing .net assembly as module in a package

2013-01-11 Thread Pawel Jasinski
hi, I am looking for a way to use module created as .net assembly as part of the package So instead of having: import clr clr.AddReferenceToFileAndPath(".\maplookup.dll") import maplookup I prefer: import clr clr.AddReferenceToFileAndPath(".\maplookup.dll") import xmldiff.maplookup Is there

[Ironpython-users] Fwd: importing .net assembly as module in a package

2013-01-11 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Fri, Jan 11, 2013 at 5:58 PM Subject: Re: [Ironpython-users] importing .net assembly as module in a package To: Jeff Hardy On Fri, Jan 11, 2013 at 5:02 PM, Jeff Hardy wrote: > On Fri, Jan 11, 2013 at 6:37 AM, Pa

Re: [Ironpython-users] Fwd: importing .net assembly as module in a package

2013-01-11 Thread Pawel Jasinski
public static class maplookup { > public const string __doc__ = "test string"; > ... > } > > On Sat, Jan 12, 2013 at 4:00 AM, Pawel Jasinski > wrote: > > > > > > -- Forwarded message -- > > From: Pawel Jasinski >

[Ironpython-users] Fwd: Need to create a DOT.NET Object[]

2013-02-16 Thread Pawel Jasinski
Here is something what may help: >>> import System >>> a=System.Array[System.Object]([42,"foo"]) >>> a[0] 42 >>> a[1] 'foo' It is not answer for your question, but there is another way to use ADO http://pypi.python.org/pypi/adodbapi/2.4.2.2 --pawel On Feb 15, 2013 10:12 AM, "Bernd Viehmann"

[Ironpython-users] c# extentions

2013-07-19 Thread Pawel Jasinski
hi I wonder if anybody already made an equivalent of a module with c# extension, analog to c extension in cpython. What I am looking for is: - a way to structure a package - a way to distribute a package (mods to distutil?) - how can it coexist with c based extension in the same package - should i

Re: [Ironpython-users] pip & urlopen error [Errno Unknown field: ] Inc.

2013-11-11 Thread Pawel Jasinski
if you would like to use it with 2.7.4, your best chances are to use version from here: https://github.com/paweljasinski/pyreadline I have to double check, I swear I have created a pull request. --pawel On Mon, Nov 11, 2013 at 5:59 PM, Slide wrote: > Did it work previously? Is this a regression?

[Ironpython-users] pyzmq can be used with ironpython

2013-12-18 Thread Pawel Jasinski
hi, I have managed to get pyzmq to work under Ironpython. Anybody interested can take it from: https://github.com/paweljasinski/pyzmq/tree/iron https://github.com/paweljasinski/clrzmq/tree/iron It is usable ( ___ Ironpython-users mailing list Ironpython

Re: [Ironpython-users] pyzmq can be used with ironpython

2013-12-18 Thread Pawel Jasinski
way clrzmq is integrated with ironpython. In order to keep structure of the pyzmq, native C# modules must reference things from python. The code works, but ... Thanks Pawel The previous post got out unfinished. On Wed, Dec 18, 2013 at 12:41 PM, Pawel Jasinski wrote: > hi, > > I have m

[Ironpython-users] Fwd: pyzmq can be used with ironpython

2013-12-20 Thread Pawel Jasinski
On Fri, Dec 20, 2013 at 7:12 AM, Jeff Hardy wrote: > On Wed, Dec 18, 2013 at 4:49 AM, Pawel Jasinski > wrote: >> hi, >> >> I have managed to get pyzmq to work under Ironpython. >> Anybody interested can take it from: >> https://github.com/paweljasinski/p

[Ironpython-users] Fwd: pyzmq can be used with ironpython

2013-12-20 Thread Pawel Jasinski
> For the ipython itself, modifications are ugly (I will push it to my > github repo today). > Not all usage scenarios of ipython/zmq work. There are unittest in > ipython/zmq which I simply gave up. https://github.com/paweljasinski/ipython/tree/iron-wip --pawel _

[Ironpython-users] pipe dup and dup2

2013-12-26 Thread Pawel Jasinski
hi, I have fixed pipe and added dup and dup2 to nt/os module. The results can be seen here: https://github.com/paweljasinski/IronLanguages/tree/tinker-with-file However, I am not 100% sure, that the way it is now is right. At the moment IP manages its own file descriptors available via nt/os

[Ironpython-users] __future__.py

2014-01-01 Thread Pawel Jasinski
hi, There is a special version of __future__.py in IronLanguages/Languages/IronPython/IronPython/Lib which is getting in my way when running out of the development environment. I wonder why is it there? --pawel ___ Ironpython-users mailing list Ironpyt

[Ironpython-users] ipython with notepad

2014-01-02 Thread Pawel Jasinski
hi, I managed to get ipython notepad to work. For anybody interested, you need: - jinja2 - MarkupSafe - tornado (https://github.com/paweljasinski/tornado/tree/iron-wip) - zmq (https://github.com/paweljasinski/pyzmq/tree/iron) - ipython (https://github.com/paweljasinski/ipython) - ironpython (http

[Ironpython-users] identifying cli implementation

2014-01-03 Thread Pawel Jasinski
hi, until now, to detect IronPython I have checked sys.platform == 'cli' Now I need to distinguish between .net and mono. The check candidate is os.name, but is there a better one? --pawel ___ Ironpython-users mailing list Ironpython-users@python.org ht

[Ironpython-users] porting things to ironpython

2014-01-19 Thread Pawel Jasinski
hi, I have been playing with some cpython packages and tried to get them to work under ironpython. Ironpython, similar to jython, is a hybrid with true unicode strings (as it is defined in 3.x) and arguments and returned values of standard library and build-ins conforming to 2.x. Modules I have t

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

2014-02-27 Thread Pawel Jasinski
Is there any reason not to use code out of mono? It looks like it supports SHA2 and RIPEMD160. https://bugzilla.xamarin.com/show_bug.cgi?id=11703 On Thu, Feb 27, 2014 at 2:10 PM, Markus Schaber wrote: > Hi, > > Von: Jeff Hardy [mailto:jdha...@gmail.com] >> On Thu, Feb 27, 2014 at 11:11 AM, Markus

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

2014-02-27 Thread Pawel Jasinski
I just checked, the part in question is covered by MIT. On Thu, Feb 27, 2014 at 8:48 PM, Slide wrote: > I had asked this question before, but there was some hesitation based on the > licensing of Mono. I'm not sure if that is an issue anymore. > > > On Thu, Feb 27, 201

Re: [Ironpython-users] IronPython 2.7.5 Schedule

2014-02-27 Thread Pawel Jasinski
I have cp34837, cp34892, cp34910 fixed. I will make a PR. I also have some workarounds where I am not clear if they should get into release: 1. cp32331 - better unicode success rate in real application, but decreased number of unit test passed 2. update to installer to modify PATH and register .p

Re: [Ironpython-users] Splitting up the IronPython repo

2014-03-09 Thread Pawel Jasinski
I do realize it is over a month, but ... I managed to get git status reliably under 5 seconds (most of the time under 1 second). First improvement was an accident, as I installed some other stuff from cygwinports, my git version got updated to 1.8.x and it was already way better. Second, I have set

Re: [Ironpython-users] IronPython 3 Update

2014-03-21 Thread Pawel Jasinski
Hi, sometimes ago there was a plan to migrate from codeplex to github issue tracking. Since we are talking about a workflow, would it make sense to do migration now? --pawel ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.pyth

[Ironpython-users] ironpython3

2014-03-24 Thread Pawel Jasinski
hi, I started to tinker with parser. Does anybody else work on parser already? I think it would make sense to establish ironpython-devel list. --pawel ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinf

Re: [Ironpython-users] ironpython3

2014-03-25 Thread Pawel Jasinski
Here is my work in progress: https://github.com/paweljasinski/ironpython3/compare/parser3 Comments are welcome. On Tue, Mar 25, 2014 at 10:56 AM, Jeff Hardy wrote: > On Mon, Mar 24, 2014 at 3:47 PM, Pawel Jasinski > wrote: >> hi, >> >> I started to tinker with parser. D

Re: [Ironpython-users] ironpython3

2014-03-25 Thread Pawel Jasinski
On Tue, Mar 25, 2014 at 1:50 PM, Jeff Hardy wrote: > On Tue, Mar 25, 2014 at 10:23 AM, Pawel Jasinski > wrote: >> Here is my work in progress: >> https://github.com/paweljasinski/ironpython3/compare/parser3 >> Comments are welcome. > > My initial thought is that it&

Re: [Ironpython-users] .NET Foundation

2014-04-04 Thread Pawel Jasinski
On Thu, Apr 3, 2014 at 7:25 PM, Keith Rome wrote: > With the announcement today of .NET Foundation "umbrella" for all of > Microsoft's open-sourced products, I am curious about what distinguishes > the DLR/IronLanguages work from some of these others? Is it simply > forgotten about by Microsoft

Re: [Ironpython-users] SymPy and IronPython 2.7.4

2014-04-07 Thread Pawel Jasinski
this looks like https://ironpython.codeplex.com/workitem/34551 which is fixed post 2.7.4. Can you try 2.7.5b1 https://ironpython.codeplex.com/releases/view/115611 ? On Mon, Apr 7, 2014 at 12:03 PM, Andrew Ayre wrote: > Hello, > > I have embedded IronPython 2.7.4 into a .NET 4.0 C# application. I

Re: [Ironpython-users] SymPy and IronPython 2.7.4

2014-04-09 Thread Pawel Jasinski
comment the following line out in sympy/__init__.py from .core import * but, I can see already another import error. --pawel On Wed, Apr 9, 2014 at 10:07 AM, Andrew Ayre wrote: > OK. Is there a workaround I can use? > > Andy > > On 4/8/2014 8:04 PM, Pawel Jasinski wrote: >&

[Ironpython-users] Fwd: SymPy and IronPython 2.7.4

2014-04-09 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Wed, Apr 9, 2014 at 11:02 AM Subject: Re: [Ironpython-users] SymPy and IronPython 2.7.4 To: Andrew Ayre Here is the workaround which let me install the package: *** sympy/__init__.py.orig 2014-04-09 10:59:53.361779800

[Ironpython-users] Fwd: SymPy and IronPython 2.7.4

2014-04-09 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Wed, Apr 9, 2014 at 11:24 AM Subject: Fwd: [Ironpython-users] SymPy and IronPython 2.7.4 To: "ironpython-users@python.org" -- Forwarded message ------ From: Pawel Jasinski Date: Wed, Apr 9, 2014 at 11:02

[Ironpython-users] Fwd: SymPy and IronPython 2.7.4

2014-04-09 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Wed, Apr 9, 2014 at 1:00 PM Subject: Re: [Ironpython-users] SymPy and IronPython 2.7.4 To: Andrew Ayre What I did about unicode, is change directly in core/compatibility.py $ diff -u compatibility.py~ compatibility.py

[Ironpython-users] Fwd: Item 34263 in 2.7.5?

2014-04-10 Thread Pawel Jasinski
Sorry, it happens to me all the time, I reply to person and forget about mailing list. -- Forwarded message -- From: Pawel Jasinski Date: Thu, Apr 10, 2014 at 9:20 AM Subject: Re: [Ironpython-users] Item 34263 in 2.7.5? To: "Vernon D. Cole" I agree with Vernon. My t

Re: [Ironpython-users] SymPy and IronPython 2.7.4

2014-04-10 Thread Pawel Jasinski
> Hi, > > This workaround is working well, but will there be a fix to IronPython > so it isn't needed? > > I need to give feedback to the SymPy people. > > Thanks! Andy > > On 4/9/2014 10:02 AM, Pawel Jasinski wrote: >> Here is the workaround which let me

Re: [Ironpython-users] SymPy and IronPython 2.7.4

2014-04-11 Thread Pawel Jasinski
ot;C:\Program Files (x86)\WizoScript\PythonLib\subprocess.py", line > 588, in list2cmdline > TypeError: argument of type 'str' is not iterable > = > > Looking at the problem line, it is: > > needquote = (" " in arg) or ("\t" in arg) or not arg > > I&

[Ironpython-users] running asciidoc

2014-04-16 Thread Pawel Jasinski
hi, I have made an exercise of running asciidoc under ironpython It turned out to be a performance disappointment. Converting trivial document takes 30 seconds where cpython is done under a second. Can it be that asciidoc, which makes heavy use of regular expression, exposes weak part of ironpytho

Re: [Ironpython-users] running asciidoc

2014-04-17 Thread Pawel Jasinski
and it matches total profiling time. Can anybody tell what is going on here? On Wed, Apr 16, 2014 at 5:20 PM, Pawel Jasinski wrote: > hi, > > I have made an exercise of running asciidoc under ironpython > It turned out to be a performance disappointment. > Converting trivial do

Re: [Ironpython-users] running asciidoc

2014-04-17 Thread Pawel Jasinski
, Pawel Jasinski wrote: > hi, > > I have made an exercise of running asciidoc under ironpython > It turned out to be a performance disappointment. > Converting trivial document takes 30 seconds where cpython is done > under a second. > Can it be that asciidoc, which makes

Re: [Ironpython-users] running asciidoc

2014-04-17 Thread Pawel Jasinski
- no change Number of captured REs is 46253. For this particular sample, cpython implementation if regular expression appears to be 12 times faster than .net implementation --pawel On Wed, Apr 16, 2014 at 5:20 PM, Pawel Jasinski wrote: > hi, > > I have made an exercise of running ascii

Re: [Ironpython-users] running asciidoc

2014-04-22 Thread Pawel Jasinski
asciidoc calls frequently re.compile. In case of cpython re.compile uses cache, where ironpython performs compile unconditionally. https://ironpython.codeplex.com/workitem/35146 --pawel On Mon, Apr 21, 2014 at 3:09 PM, Pawel Jasinski wrote: > > > > On Fri, Apr 18, 2014 at 12:33 PM

Re: [Ironpython-users] running asciidoc

2014-04-23 Thread Pawel Jasinski
e methods of module re actually are > caching result from re.compile): > > https://docs.python.org/2/library/re.html#re.compile > > On 23 April 2014 08:34, Jeff Hardy wrote: > > On Wed, Apr 23, 2014 at 6:14 AM, Pawel Jasinski > > wrote: > >> asciidoc calls fre

Re: [Ironpython-users] running asciidoc

2014-04-23 Thread Pawel Jasinski
On Wed, Apr 23, 2014 at 9:34 AM, Jeff Hardy wrote: > On Wed, Apr 23, 2014 at 6:14 AM, Pawel Jasinski > wrote: > > asciidoc calls frequently re.compile. > > In case of cpython re.compile uses cache, where ironpython performs > compile > > unconditionally. > >

Re: [Ironpython-users] running asciidoc

2014-04-23 Thread Pawel Jasinski
I have added the test numbers: https://github.com/IronLanguages/main/pull/191 --pawel On Wed, Apr 23, 2014 at 11:37 AM, Jeff Hardy wrote: > On Wed, Apr 23, 2014 at 9:48 AM, Pawel Jasinski > wrote: > > asciidoc running with patched version of ironpython performs reasonably. >

Re: [Ironpython-users] running asciidoc

2014-04-23 Thread Pawel Jasinski
examined at https://github.com/IronLanguages/main/pull/191 --pawel On Wed, Apr 23, 2014 at 11:37 AM, Jeff Hardy wrote: > On Wed, Apr 23, 2014 at 9:48 AM, Pawel Jasinski > wrote: > > asciidoc running with patched version of ironpython performs reasonably. > > Can you run so

Re: [Ironpython-users] running asciidoc

2014-04-23 Thread Pawel Jasinski
uot;hello, world"' and `ipy.exe 'print "hello, world"'` > take on your machine? > > - Jeff > > On Wed, Apr 23, 2014 at 12:39 PM, Pawel Jasinski > wrote: > > Given the asciidoc workload using 3 different samples (hello world, user >

Re: [Ironpython-users] running asciidoc

2014-04-23 Thread Pawel Jasinski
this is the case On Wed, Apr 23, 2014 at 2:30 PM, Jeff Hardy wrote: > On Wed, Apr 23, 2014 at 1:25 PM, Pawel Jasinski > wrote: > > I added the measurements to the PR. > > Why is startup time of the ipy running out of development way up in > > comparison with rel

[Ironpython-users] tinkering with cp35180 - types.FunctionType(...) raise NotImplementedError

2014-05-08 Thread Pawel Jasinski
What I am trying to accomplish is minimal use case, where function globals are replaced/faked. The samples I am using can be examined at: https://gist.github.com/paweljasinski/1d3a18a885e3040449de I have replaced the context used by function, but the reference to global_variable out of fc0 is stuck

Re: [Ironpython-users] tinkering with cp35180 - types.FunctionType(...) raise NotImplementedError

2014-05-08 Thread Pawel Jasinski
Forget about the LookupGlobalVariable. I think something around RewriteBody with adjusted scope would be better. Comments? On Thu, May 8, 2014 at 2:21 PM, Pawel Jasinski wrote: > What I am trying to accomplish is minimal use case, where function globals > are replaced/faked. > The sam

Re: [Ironpython-users] Django & IronPython - Not working

2014-05-18 Thread Pawel Jasinski
[side question: which version of VS is recommended?] I am using VS2013 (update 2 did not break anything) and Resharper 8.2. In VS2010 and older version of Resharper lag after recompile was intolerable. I also believe (only subjective observation) that project dependency calculation improved. I re

Re: [Ironpython-users] Django & IronPython - Not working

2014-05-19 Thread Pawel Jasinski
If I have a moment, I will give it a spin under current state of 2.7.5 --pawel On Mon, May 19, 2014 at 9:03 AM, Jeff Hardy wrote: > On Sun, May 18, 2014 at 3:28 PM, Vernon D. Cole > wrote: > > Nevertheless, I hope to have an alpha-test version of django on > IronPython > > running in a few wee

[Ironpython-users] cython-for-ironpython

2014-06-03 Thread Pawel Jasinski
Hi, I am trying to get hello world with cython. I took a simple cnumop.cpp from tests and run: ipy cython.py --dotnet tests/compile/cnumop.pyx The resulting file (cnumop.cpp) is now part of project (cpp/clr/class library). After resolving usual reference dependencies I hit: PyErr_Format Since t

[Ironpython-users] Fwd: cython-for-ironpython

2014-06-03 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Tue, Jun 3, 2014 at 2:15 PM Subject: Re: [Ironpython-users] cython-for-ironpython To: Markus Schaber sorry I should mention it more explicit, I am trying to resurrect cython-for-ironpython https://bitbucket.org/jasonmccampbell

Re: [Ironpython-users] numpy in IronPython

2014-06-04 Thread Pawel Jasinski
I took the old version of numpy for a spin with 2.7.5b2 I had to adjust a couple of things, but it compiles and appears to work. The build instructions: https://github.com/numpy/numpy-refactor/wiki/Recompile --pawel ___

Re: [Ironpython-users] cython-for-ironpython

2014-06-04 Thread Pawel Jasinski
I have sorted it out. The cython-for-ironpython works as long as you stay with functionality used by numpy/scipy. Picking random test may expose thing which were simply not implemented. There is no dependency on ironclad. CallSite comes out of System.Core assembly - missing reference. --pawel _

Re: [Ironpython-users] numpy in IronPython

2014-06-05 Thread Pawel Jasinski
s the result > of building the rest (which includes C/C++ built with VS2012) but I don't > see a build project. > > -Doug > > > > On Wed, Jun 4, 2014 at 10:52 AM, Pawel Jasinski > wrote: > >> I took the old version of numpy for a spin with 2.7.5b2 >> <

[Ironpython-users] Fwd: numpy in IronPython

2014-06-05 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Thu, Jun 5, 2014 at 3:18 PM Subject: Re: [Ironpython-users] numpy in IronPython To: Doug Blank Projects are the same except: - Marc changed namespace - Marc removed some projects (e.g. f2py) - diff reports to much (numpy

[Ironpython-users] launcher cp#35064

2014-06-06 Thread Pawel Jasinski
we have a moded version of pylauncher https://gist.github.com/paweljasinski/5e0b0b59648c6f85c489 as described in https://ironpython.codeplex.com/workitem/35064 Vernon agreed to give it a spin. What I am trying to figure out is distribution and ip integration. I would be very happy if it could make

Re: [Ironpython-users] Embedding obspy and dependencies

2014-06-10 Thread Pawel Jasinski
I briefly checked what obspy is and as expected, main dependency is numpy Your first step would be to build numpy yourself: https://github.com/numpy/numpy-refactor/wiki/Recompile The last beta contains a quite a few cpython/python compatibility fixes. Please, use it: https://ironpython.codeplex.co

Re: [Ironpython-users] launcher cp#35064

2014-06-11 Thread Pawel Jasinski
4 at 3:46 PM, Vernon D. Cole >> wrote: >>> >>> On Tue, Jun 10, 2014 at 3:55 PM, Pawel Jasinski < >>> pawel.jasin...@gmail.com> wrote: >>> >>>> On Tue, Jun 10, 2014 at 4:30 PM, Jeff Hardy wrote: >>>> >>>>> On Tue, Jun

Re: [Ironpython-users] release date for 2.7.5

2014-06-26 Thread Pawel Jasinski
the only thing which is not likely to get accepted upstream for ensurepip/pip is the zlib hack. I would like to have it in 2.7.5. I hope I can handle the 'inflate' part. Once this is done, I promise to switch into regression/conservative mode. There is for sure a thing or two coming out of pylaunch

[Ironpython-users] test framework

2014-07-17 Thread Pawel Jasinski
First of all, there is a need to document where the tests are and how to run them. It took me a moment to figure it out, so it make sense to share it. The test config: IronLanguages/Test/IronPython.tests An individual test can be started by: ./test-ipy.cmd /test:test_zipimport_cpy I remember at o

[Ironpython-users] Adoption of IronPython

2014-07-17 Thread Pawel Jasinski
Recently I had 2 ideas or perhaps suggestions which may help IronPython to get better. I asked myself, what would help us to get more general python packages to get IP specific patches and keep things alive. Most of them use travis as a test framework and cover most of the python versions, includin

Re: [Ironpython-users] How can i use readline

2014-07-23 Thread Pawel Jasinski
check pull reqests. if it doesn't help, i have a version which used to work with ipython https://github.com/paweljasinski/pyreadline On Wednesday, July 23, 2014, wrote: > Hi All > I setup readline https://pypi.python.org/pypi/pyreadline-ais > and try import readline and get > File > "\lib\sit

Re: [Ironpython-users] How can i use readline

2014-07-23 Thread Pawel Jasinski
On Wednesday, July 23, 2014, wrote: > Thanks a lot fork works > but this https://docs.python.org/2/tutorial/interactive.html does not > work > Do you know why? > no, i only fixed what was required for ipython > > > Thanks > > > > check pull reqests. if it doesn't help, i have a version wh

Re: [Ironpython-users] https://www.enthought.com/repo/.iron/ gone again

2014-08-06 Thread Pawel Jasinski
It can be recreated: https://github.com/numpy/numpy-refactor/wiki/Recompile --pawel On Wed, Aug 6, 2014 at 10:43 AM, Jeff Hardy wrote: > On Wed, Aug 6, 2014 at 8:39 AM, Rickard Holmberg > wrote: >> >> Hi everyone, >> >> >> >> The old numpy/scipy eggs that used to be hosted at >> https://www.enth

Re: [Ironpython-users] bytearray encoding issue

2014-08-18 Thread Pawel Jasinski
I personally vote for as close to cpython as possible. This is based on porting experience with python packages. It is really a lot of effort effort to find the places where it trips in other packages, get the 'if' around it and get it accepted upstream. This appears to fix it: https://github.com/p

Re: [Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Pawel Jasinski
BytesConversion on argument fixes it: public static object b2a_base64([BytesConversion]string data) Short term workaround, try adding str() around an argument On Wed, Aug 27, 2014 at 5:17 PM, Slide wrote: > Can you file an issue on ironpython.codeplex.com? > > > On Wed, Aug 27, 2014 at 7:53

Re: [Ironpython-users] Unicode

2014-09-16 Thread Pawel Jasinski
On Tue, Sep 16, 2014 at 9:52 PM, Vernon D. Cole wrote: > Just out of curiosity, how does it work in CPython 3.4? > As expected I guess: Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> u"\U0001D4AE" '𝒮'

Re: [Ironpython-users] [PythonHidden] not working?

2014-10-08 Thread Pawel Jasinski
internal instead of public? --pawel On Mon, Oct 6, 2014 at 1:57 AM, rabidgremlin wrote: > Hi there, > > I'm using IronPython to add scripting to my app. I have some classes with > methods that I don't wish to expose to the IronPython scripting engine. > > Doing some googling it looks like I shoul

Re: [Ironpython-users] How to direct print output to the Console in a windows standalone?

2014-11-16 Thread Pawel Jasinski
hi, On Sun, Nov 16, 2014 at 10:48 PM, John Trinder wrote: > 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 crea

Re: [Ironpython-users] IronPython 2.7.5 RC 1 Released

2014-11-24 Thread Pawel Jasinski
On Sat, Nov 22, 2014 at 12:28 AM, Slide wrote: > Thanks Jeff for all your work! +1 ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users

Re: [Ironpython-users] WDB web debugger for IronPython

2014-11-24 Thread Pawel Jasinski
hi, just to be sure,are you using 2.7.5RC1? If not, please try it. There were quite a few cpython compatibility improvements including socket module. On Mon, Nov 24, 2014 at 1:53 PM, Kerray wrote: > Hi everyone, > We're using IronPython to script the insides of SharePoint (ASP.NET on IIS). > For

[Ironpython-users] converting issues from codeplex to github

2014-12-07 Thread Pawel Jasinski
hi, when will the conversion of issues from codeplex to github take place? Or simpler, where should I add new issues now? --pawel ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users

[Ironpython-users] mixed line ending in time.cs and nt.cs

2014-12-07 Thread Pawel Jasinski
hi, time.cs and nt.cs have mixed line ending. This is causing unnecessary pain when rebasing and produces ugly ^M in diff. Would it make sense to fix it now? Cheers, --pawel ___ Ironpython-users mailing list Ironpython-users@python.org https://mail.pyt

Re: [Ironpython-users] mixed line ending in time.cs and nt.cs

2014-12-07 Thread Pawel Jasinski
On Sun, Dec 7, 2014 at 9:11 PM, Jeff Hardy wrote: > On Sun, Dec 7, 2014 at 12:04 PM, Pawel Jasinski > wrote: >> >> hi, >> >> time.cs and nt.cs have mixed line ending. This is causing unnecessary >> pain when rebasing and produces ugly ^M in diff. >

Re: [Ironpython-users] converting issues from codeplex to github

2014-12-08 Thread Pawel Jasinski
onths ago or so. > https://github.com/slide/ipimport7/issues > > > On Sun, Dec 7, 2014, 13:10 Jeff Hardy wrote: >> >> On Sun, Dec 7, 2014 at 10:37 AM, Pawel Jasinski >> wrote: >>> >>> hi, >>> >>> when will the conversion of issues fr

Re: [Ironpython-users] mixed line ending in time.cs and nt.cs

2014-12-08 Thread Pawel Jasinski
On Mon, Dec 8, 2014 at 1:10 PM, Jeff Hardy wrote: > On Sun, Dec 7, 2014 at 11:58 PM, Pawel Jasinski > wrote: >> >> On Sun, Dec 7, 2014 at 9:11 PM, Jeff Hardy wrote: >> > On Sun, Dec 7, 2014 at 12:04 PM, Pawel Jasinski >> > >> > wrote: >> &g

Re: [Ironpython-users] mixed line ending in time.cs and nt.cs

2014-12-12 Thread Pawel Jasinski
I hope this is the last iteration of the line ending saga. This is in regards to IronLanguages (2.7) and does not apply to (ironpython3) 3.x I am leaning toward conservative approach, which can be summarized with: - Fix only mixed line endings -> LF only - No .gitattributes - core.autocrlf set to

[Ironpython-users] line ending normalization in ipy-2.7-maint

2015-01-31 Thread Pawel Jasinski
Hi, I have performed normalization of line ending over the ipy-2.7-maint in IronLanguages/main. The normalization steps are documented on wiki: https://github.com/paweljasinski/IronLanguages/wiki/Line-ending-normalization The changes fix our trouble with mixed line ending (eradicated on commit) ,

[Ironpython-users] Fwd: Error when installing package with pip

2015-01-31 Thread Pawel Jasinski
-- Forwarded message -- From: Pawel Jasinski Date: Sat, Jan 31, 2015 at 3:18 PM Subject: Fwd: [Ironpython-users] Error when installing package with pip To: "ironpython-users@python.org" I always hit the wrong reply :-( -- Forwarded message ------ F

[Ironpython-users] Fwd: Error when installing package with pip

2015-01-31 Thread Pawel Jasinski
I always hit the wrong reply :-( -- Forwarded message -- From: Pawel Jasinski Date: Sat, Jan 31, 2015 at 9:11 AM Subject: Re: [Ironpython-users] Error when installing package with pip To: aqw 31 when I try on my machine (not exactly 2.7.5), $ bin/Debug/ipy.exe -X:Frames -m

Re: [Ironpython-users] Error when installing package with pip

2015-01-31 Thread Pawel Jasinski
on the second thought, I checked where it trips, and it is a certificate extraction/validation. Are you using private pip repo? Can you show the certificate provided by the repo? --pawel On Fri, Jan 30, 2015 at 12:31 AM, aqw 31 wrote: > Hello, > > I get an error when I try to install a package vi

[Ironpython-users] product code for ironpython

2015-02-26 Thread Pawel Jasinski
hi, I am trying to find out how to automatically reinstall ironpython. In case of other products I follow the standard route: msiexec /q /x '{product-code}' followed by: msiexec /i product.msi /qn I tried to find out what is the product-code for ironpython and it looks like, it changes* on eac

Re: [Ironpython-users] Strange exception in os.walk

2015-03-04 Thread Pawel Jasinski
Do you have tracing enabled? https://github.com/IronLanguages/main/issues/208 On Wed, Mar 4, 2015 at 5:09 PM, Markus Schaber wrote: > Hi, > > One of my coworkers struggles with strange exceptions when he calls os.walk > from his python script. > > The script is running in IronPython 2.7.4, hoste

Re: [Ironpython-users] Fwd: weakref random "SystemError" and "ValueError" exception (affecting _weakrefset.py and abc.py)

2015-04-13 Thread Pawel Jasinski
did anybody try it with the 2.7.4? I wonder it is something we introduced in 2.7.5. --pawel On Mon, Apr 13, 2015 at 6:29 PM, Andres Sommerhoff wrote: > Thank you Andrew, good to know you could replicate it. I went to very > similar workarround with __contains__(), but yours is more elegant with t

Re: [Ironpython-users] Fwd: weakref random "SystemError" and "ValueError" exception (affecting _weakrefset.py and abc.py)

2015-04-14 Thread Pawel Jasinski
; > Can you try the script yourself? > > Thank you for helping on this! > > Regards, > Andres > >> El 13-04-2015, a las 19:41, Pawel Jasinski >> escribió: >> >> did anybody try it with the 2.7.4? >> I wonder it is something we introduced i

[Ironpython-users] sponsors

2016-08-01 Thread Pawel Jasinski
hi this hit the hackers news today https://news.ycombinator.com/item?id=12200777 and i remember some of us are in germany so perhaps it can be used to get someone working on ironpython full time for 6 months cheers --pawel ___ Ironpython-users mailing li

[Ironpython-users] string/unicode

2016-09-17 Thread Pawel Jasinski
hi, I have noticed that the long standing string/unicode subject surfaced again in chat (#1414) For long time I was convinced that jython uses the same strategy as ironpython in regards to str/unicode aliasing. There was hope to get cpython compatibility at similar level as jython (e.g. django wor

Re: [Ironpython-users] How to free memory in ironpython

2016-11-27 Thread Pawel Jasinski
*print *utils.ErrorMsg > *print *utils.LastErrorCode > *print *MapWinGIS.*GlobalSettingsClass*().GdalLastErrorNo > *print *MapWinGIS.*GlobalSettingsClass*().GdalLastErrorMsg > *print *MapWinGIS.*GlobalSettingsClass*().GdalLastErrorType > *else*: > *print *"MapWinGIS

Re: [Ironpython-users] IronPython 2.7.0 vs 2.7.5

2017-02-08 Thread Pawel Jasinski
hi, prior to 2.7.5, the strptime had a non standard fallback. If a format didn't match, it tried to guess format. This is not what standard lib from cpython does. If the string can not be converted using format, it fails. In you case %m translates to zero padded month decimal, 01 for January Try