From dinov at microsoft.com Wed Oct 1 05:12:13 2014 From: dinov at microsoft.com (Dino Viehland) Date: Wed, 1 Oct 2014 03:12:13 +0000 Subject: [Ironpython-users] static analysis tool In-Reply-To: References: Message-ID: <951ae583ab284f378d00da01f6a5bab3@DM2PR03MB592.namprd03.prod.outlook.com> Do you want to create your own static analysis rules or just use an existing checker? If it's the latter you could use PTVS's analyzer (I can point you to some example code if so). If it's the former we eventually want to add it to PTVS and when we do that we should pick up IronPython support for free. We'd also accept it as a contribution ;) From: Ironpython-users [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Joseph Mortensen Sent: Tuesday, September 30, 2014 10:29 AM To: ironpython-users at python.org Subject: [Ironpython-users] static analysis tool I'm trying to static analysis on python code that has very heavy usage of .NET libraries. I've seen pyflakes, pylint, and pychecker as the main tools to do this stuff in python, but I haven't gotten any of them working properly with IronPython in windows. Are there any recommendations for something that could analyze: import clr clr.AddReference("System") from System import String stuff = String("my string") print stuff stuff.ThisDoesntExist() without tripping up on the System and String imports and find that "stuff.ThisDoesntExist()" doesn't actually exist? Thanks, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Wed Oct 1 09:23:50 2014 From: no_reply at codeplex.com (CodePlex) Date: 1 Oct 2014 00:23:50 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 9/30/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] BaseHTTPServer doesn't accept empty string as server address like CPython does 2. [New comment] ast.literal_eval in IronPython raises exception for negative numbers in expressions ---------------------------------------------- ISSUES 1. [New comment] BaseHTTPServer doesn't accept empty string as server address like CPython does http://ironpython.codeplex.com/workitem/29477 User paweljasinski has commented on the issue: "

I found this old post.
http://lists.ironpython.com/pipermail/users-ironpython.com/2010-April/012518.html

socket.getfqdn does not behave as expected.

```
>>> import socket
>>> socket.getfqdn()
''
>>> socket.getfqdn("")
''
>>> socket.getfqdn("0.0.0.0")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: IPv4 address 0.0.0.0 and IPv6 address ::0 are unspecified addresses that cannot be used as
a target address.
Parameter name: hostNameOrAddress
```

"----------------- 2. [New comment] ast.literal_eval in IronPython raises exception for negative numbers in expressions http://ironpython.codeplex.com/workitem/35572 User paweljasinski has commented on the issue: "

The formatting is giving me a headache. I swear it looked good in preview.
This is one more test:

```
import ast

class Fix(ast.NodeTransformer):
def visit_UnaryOp(self, node):
if isinstance(node.operand, ast.Num):
if isinstance(node.op, ast.USub):
node.operand.n=-node.operand.n
return node.operand
if isinstance(node.op, ast.UAdd):
return node.operand
return node

def literal_eval_fix(string_only):
tree = ast.parse(string_only, mode="eval" )
tree = Fix().visit(tree)
return ast.literal_eval(tree)

print literal_eval_fix("42")
print literal_eval_fix("-42")
print literal_eval_fix("{ -1:-2, 2:'aaaaa'}")
```

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmortensen at bungie.com Wed Oct 1 18:02:26 2014 From: jmortensen at bungie.com (Joseph Mortensen) Date: Wed, 1 Oct 2014 16:02:26 +0000 Subject: [Ironpython-users] static analysis tool In-Reply-To: <951ae583ab284f378d00da01f6a5bab3@DM2PR03MB592.namprd03.prod.outlook.com> References: <951ae583ab284f378d00da01f6a5bab3@DM2PR03MB592.namprd03.prod.outlook.com> Message-ID: I'd prefer to have my own rules eventually, but for starters just an existing one would be great. Could you point me to some example code using PTVS's analyzer? Thanks, Joe From: Dino Viehland [mailto:dinov at microsoft.com] Sent: Tuesday, September 30, 2014 8:12 PM To: Joseph Mortensen; ironpython-users at python.org Subject: RE: static analysis tool Do you want to create your own static analysis rules or just use an existing checker? If it's the latter you could use PTVS's analyzer (I can point you to some example code if so). If it's the former we eventually want to add it to PTVS and when we do that we should pick up IronPython support for free. We'd also accept it as a contribution ;) From: Ironpython-users [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Joseph Mortensen Sent: Tuesday, September 30, 2014 10:29 AM To: ironpython-users at python.org Subject: [Ironpython-users] static analysis tool I'm trying to static analysis on python code that has very heavy usage of .NET libraries. I've seen pyflakes, pylint, and pychecker as the main tools to do this stuff in python, but I haven't gotten any of them working properly with IronPython in windows. Are there any recommendations for something that could analyze: import clr clr.AddReference("System") from System import String stuff = String("my string") print stuff stuff.ThisDoesntExist() without tripping up on the System and String imports and find that "stuff.ThisDoesntExist()" doesn't actually exist? Thanks, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From rabidgremlin at gmail.com Mon Oct 6 01:57:55 2014 From: rabidgremlin at gmail.com (rabidgremlin) Date: Mon, 6 Oct 2014 12:57:55 +1300 Subject: [Ironpython-users] [PythonHidden] not working? Message-ID: 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 should be able to add [PythonHidden] to my class methods to achieve this, however it doesn't appear to work. eg I have a Layer class with the following method [PythonHidden] public Canvas GetLayerCanvas() { return layerCanvas; } In my Python script I am still able to call this method and a dir() command on a Layer object results in: ['AddElement', 'Delete', 'GetElements', 'GetLayerCanvas', 'GetName', 'MoveBottom', 'MoveDown', 'MoveElementBottom', 'MoveElementDown', 'MoveElementTop', 'MoveElementUp', 'MoveTop', 'MoveUp', 'RemoveElement', 'SetName', '__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__'] Any ideas? Thanks Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Tue Oct 7 09:21:55 2014 From: no_reply at codeplex.com (CodePlex) Date: 7 Oct 2014 00:21:55 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/6/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] IronPython.dll has wrong assembly version 2. [New comment] IronPython.dll has wrong assembly version ---------------------------------------------- ISSUES 1. [New comment] IronPython.dll has wrong assembly version http://ironpython.codeplex.com/workitem/35119 User DanielWolf has commented on the issue: "

Any chance of having this issue fixed in 2.7.5? I feel that with every new 2.7 release we migrate to, the chances of an earlier 2.7 version being installed increase...

"----------------- 2. [New comment] IronPython.dll has wrong assembly version http://ironpython.codeplex.com/workitem/35119 User jdhardy has commented on the issue: "

Yes, this will change in 2.7.5 - the AssemblyVersion will be 2.7.5.0, and there will be publisher policy files to redirect anything that depends on 2.7.0.40 to 2.7.5.0 is installed.

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pawel.jasinski at gmail.com Wed Oct 8 22:31:42 2014 From: pawel.jasinski at gmail.com (Pawel Jasinski) Date: Wed, 8 Oct 2014 22:31:42 +0200 Subject: [Ironpython-users] [PythonHidden] not working? In-Reply-To: References: Message-ID: 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 should be able to add [PythonHidden] to > my class methods to achieve this, however it doesn't appear to work. > > eg I have a Layer class with the following method > > [PythonHidden] > public Canvas GetLayerCanvas() > { > return layerCanvas; > } > > In my Python script I am still able to call this method and a dir() command > on a Layer object results in: > > ['AddElement', 'Delete', 'GetElements', 'GetLayerCanvas', 'GetName', > 'MoveBottom', 'MoveDown', 'MoveElementBottom', 'MoveElementDown', > 'MoveElementTop', 'MoveElementUp', 'MoveTop', 'MoveUp', 'RemoveElement', > 'SetName', '__class__', '__delattr__', '__doc__', '__format__', > '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', > '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', > '__subclasshook__'] > > Any ideas? > > Thanks > > Jonathan > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > From no_reply at codeplex.com Thu Oct 9 09:22:28 2014 From: no_reply at codeplex.com (CodePlex) Date: 9 Oct 2014 00:22:28 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/8/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Telnetlib exception - "getaddrinfo returns an empty list" 2. [New comment] -X:Tracing argument problem? 3. [New comment] ast.literal_eval in IronPython raises exception for negative numbers in expressions 4. [New comment] ipy-2.7-maint does't compile under windows 5. [New comment] socket.create_connection() causes exception "getaddrinfo returns an empty list" ---------------------------------------------- ISSUES 1. [New comment] Telnetlib exception - "getaddrinfo returns an empty list" http://ironpython.codeplex.com/workitem/35388 User paweljasinski has commented on the issue: "

this is very likely duplicate with 35576.
The 35576 has been resolved.

"----------------- 2. [New comment] -X:Tracing argument problem? http://ironpython.codeplex.com/workitem/35469 User jdhardy has commented on the issue: "

The issue is in Runtime\Microsoft.Dynamic\Debugging\DebugInfoRewriter.cs:361, which checks for a file name. I don't think file name is required but I'll have to check further.

"----------------- 3. [New comment] ast.literal_eval in IronPython raises exception for negative numbers in expressions http://ironpython.codeplex.com/workitem/35572 User paweljasinski has commented on the issue: "

fix in 2a21c7a

"----------------- 4. [New comment] ipy-2.7-maint does't compile under windows http://ironpython.codeplex.com/workitem/35575 User paweljasinski has commented on the issue: "

fix in 7f53b88

"----------------- 5. [New comment] socket.create_connection() causes exception "getaddrinfo returns an empty list" http://ironpython.codeplex.com/workitem/35576 User paweljasinski has commented on the issue: "

fix in bd5e881

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Thu Oct 9 12:29:11 2014 From: m.schaber at codesys.com (Markus Schaber) Date: Thu, 9 Oct 2014 10:29:11 +0000 Subject: [Ironpython-users] Contracted work to fix memory leaks Message-ID: <727D8E16AE957149B447FE368139F2B539CD9108@SERVER10> Hi, Is anyone currently working on the memory leak issues (especially http://ironpython.codeplex.com/workitem/31764)? If not, does anyone know of people we can hire to fix that bug? I did such a search (including the mailing list) already about 2 years ago, to no avail - back then, no one seems to offer paid contract work on IronPython. http://grokbase.com/t/python/ironpython-users/12ajhx34v8/commercial-support-bugfixes-for-ironpython Now, as 2 years passed, maybe the situation changed. Best regards Markus Schaber CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From jdhardy at gmail.com Thu Oct 9 16:56:32 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Thu, 9 Oct 2014 15:56:32 +0100 Subject: [Ironpython-users] [PythonHidden] not working? In-Reply-To: References: Message-ID: On Mon, Oct 6, 2014 at 12: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 should be able to add [PythonHidden] to > my class methods to achieve this, however it doesn't appear to work. > > eg I have a Layer class with the following method > > [PythonHidden] > public Canvas GetLayerCanvas() > { > return layerCanvas; > } > > In my Python script I am still able to call this method and a dir() command > on a Layer object results in: > > ['AddElement', 'Delete', 'GetElements', 'GetLayerCanvas', 'GetName', > 'MoveBottom', 'MoveDown', 'MoveElementBottom', 'MoveElementDown', > 'MoveElementTop', 'MoveElementUp', 'MoveTop', 'MoveUp', 'RemoveElement', > 'SetName', '__class__', '__delattr__', '__doc__', '__format__', > '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', > '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', > '__subclasshook__'] > > Any ideas? [PythonHidden] requires the class to have the [PythonType] (or [PythonModule]) attribute. - Jeff From rabidgremlin at gmail.com Fri Oct 10 03:40:25 2014 From: rabidgremlin at gmail.com (rabidgremlin) Date: Fri, 10 Oct 2014 14:40:25 +1300 Subject: [Ironpython-users] [PythonHidden] not working? In-Reply-To: References: Message-ID: ahhh, Yep adding [PythonType] to my class made it work. Thanks Jonathan On Fri, Oct 10, 2014 at 3:56 AM, Jeff Hardy wrote: > On Mon, Oct 6, 2014 at 12: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 should be able to add [PythonHidden] > to > > my class methods to achieve this, however it doesn't appear to work. > > > > eg I have a Layer class with the following method > > > > [PythonHidden] > > public Canvas GetLayerCanvas() > > { > > return layerCanvas; > > } > > > > In my Python script I am still able to call this method and a dir() > command > > on a Layer object results in: > > > > ['AddElement', 'Delete', 'GetElements', 'GetLayerCanvas', 'GetName', > > 'MoveBottom', 'MoveDown', 'MoveElementBottom', 'MoveElementDown', > > 'MoveElementTop', 'MoveElementUp', 'MoveTop', 'MoveUp', 'RemoveElement', > > 'SetName', '__class__', '__delattr__', '__doc__', '__format__', > > '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', > > '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', > > '__subclasshook__'] > > > > Any ideas? > > [PythonHidden] requires the class to have the [PythonType] (or > [PythonModule]) attribute. > > - Jeff > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.schaber at codesys.com Fri Oct 10 16:25:36 2014 From: m.schaber at codesys.com (Markus Schaber) Date: Fri, 10 Oct 2014 14:25:36 +0000 Subject: [Ironpython-users] Installation of IronPython 2.7.4b2 killed stable 2.7.4 installation Message-ID: <727D8E16AE957149B447FE368139F2B539CDA7FB@SERVER10> Hi, It seems that the installation of IronPython 2.7.5b2 did silently uninstall my IronPython 2.7.4 installation, despite the fact that I did chose a different installation directory. Is this intentional? What is the reason? Best regards Markus Schaber CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions ________________________________ 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: 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 ________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Sat Oct 11 09:22:53 2014 From: no_reply at codeplex.com (CodePlex) Date: 11 Oct 2014 00:22:53 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/10/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] types in assemblies loaded with .AddReferenceToFileAndPath() are not importable if they reference other assemblies ---------------------------------------------- ISSUES 1. [New comment] types in assemblies loaded with .AddReferenceToFileAndPath() are not importable if they reference other assemblies http://ironpython.codeplex.com/workitem/25124 User GuillaumeA has commented on the issue: "

As a workaround, I propose to add path to the sys.path and then use AddReferenceToFile just as AddReferenceToFileAndPath is supposed to do. It fixed the problem for me.

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dascalos at hotmail.com Fri Oct 10 20:45:12 2014 From: dascalos at hotmail.com (Chuck Dascalos) Date: Fri, 10 Oct 2014 14:45:12 -0400 Subject: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL Message-ID: Greetings IronPython friends. I am putting together an Azure Worker Role which is a combination of C# and IronPython code. I have included the IronPython Nuget package which drops in IronPython.dll and IronPython.Modules.dll among other things. The IronPython.Modules.dll includes several popular python modules such as binascii, socket, cmath, etc... My IronPython code has a dependency on the Python Azure SDK. I would prefer to generate my own dll similar to the Modules.dll that could hold the dependencies I need for my project. Is this possible? I would prefer to do it with a dll instead of including all the py files I need. I have been looking at the documentation for IronPython and using pyc.py to do such tasks. So I am guessing this is the route to go. I don't understand how to build a .dll for the azure sdk when it is made up of several folders of py files. Any help would be greatly appreciated! Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Mon Oct 13 10:29:26 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 13 Oct 2014 09:29:26 +0100 Subject: [Ironpython-users] Installation of IronPython 2.7.4b2 killed stable 2.7.4 installation In-Reply-To: <727D8E16AE957149B447FE368139F2B539CDA7FB@SERVER10> References: <727D8E16AE957149B447FE368139F2B539CDA7FB@SERVER10> Message-ID: It's a side-effect of how the installer is written; 2.7.5 will replace 2.7.4 (or 2.7.4, etc.), and I just never considered the pre-release replacing production case.* However, I can see how that could be an issue. Can you open a CodePlex issue and I'll get it sorted for beta 3? - Jeff * I don't usually have IronPython installed; when I want to use it I open VS and hit F5. :) On Fri, Oct 10, 2014 at 3:25 PM, Markus Schaber wrote: > Hi, > > > > It seems that the installation of IronPython 2.7.5b2 did silently uninstall > my IronPython 2.7.4 installation, despite the fact that I did chose a > different installation directory. > > > > Is this intentional? What is the reason? > > > > Best regards > > Markus Schaber > > CODESYS? a trademark of 3S-Smart Software Solutions GmbH > > Inspiring Automation Solutions > > ________________________________ > > 3S-Smart Software Solutions GmbH > Dipl.-Inf. Markus Schaber | Product Development Core Technology > Memminger Str. 151 | 87439 Kempten | Germany > Tel. +49-831-54031-979 | Fax +49-831-54031-50 > > E-Mail: m.schaber at codesys.com | Web: 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 > > ________________________________ > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received > this e-mail in error) please notify the sender immediately and destroy this > e-mail. Any unauthorised copying, disclosure > or distribution of the material in this e-mail is strictly forbidden. > > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > From m.schaber at codesys.com Mon Oct 13 13:28:57 2014 From: m.schaber at codesys.com (Markus Schaber) Date: Mon, 13 Oct 2014 11:28:57 +0000 Subject: [Ironpython-users] Installation of IronPython 2.7.4b2 killed stable 2.7.4 installation In-Reply-To: References: <727D8E16AE957149B447FE368139F2B539CDA7FB@SERVER10> Message-ID: <727D8E16AE957149B447FE368139F2B539CDB430@SERVER10> Hi, Jeff, https://ironpython.codeplex.com/workitem/35615 Thanks a lot! Best regards Markus Schaber CODESYS? a trademark of 3S-Smart Software Solutions GmbH Inspiring Automation Solutions 3S-Smart Software Solutions GmbH Dipl.-Inf. Markus Schaber | Product Development Core Technology Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 | Fax +49-831-54031-50 E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com CODESYS forum: http://forum.codesys.com Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > -----Urspr?ngliche Nachricht----- > Von: Jeff Hardy [mailto:jdhardy at gmail.com] > Gesendet: Montag, 13. Oktober 2014 10:30 > An: Markus Schaber > Cc: Discussion of IronPython > Betreff: Re: [Ironpython-users] Installation of IronPython 2.7.4b2 > killed stable 2.7.4 installation > > It's a side-effect of how the installer is written; 2.7.5 will > replace > 2.7.4 (or 2.7.4, etc.), and I just never considered the pre-release > replacing production case.* However, I can see how that could be an > issue. Can you open a CodePlex issue and I'll get it sorted for beta > 3? > > - Jeff > > * I don't usually have IronPython installed; when I want to use it I > open VS and hit F5. :) > > On Fri, Oct 10, 2014 at 3:25 PM, Markus Schaber > wrote: > > Hi, > > > > > > > > It seems that the installation of IronPython 2.7.5b2 did silently > > uninstall my IronPython 2.7.4 installation, despite the fact that I > > did chose a different installation directory. > > > > > > > > Is this intentional? What is the reason? > > > > > > > > Best regards > > > > Markus Schaber > > > > CODESYS? a trademark of 3S-Smart Software Solutions GmbH > > > > Inspiring Automation Solutions > > > > ________________________________ > > > > 3S-Smart Software Solutions GmbH > > Dipl.-Inf. Markus Schaber | Product Development Core Technology > > Memminger Str. 151 | 87439 Kempten | Germany Tel. +49-831-54031-979 > | > > Fax +49-831-54031-50 > > > > E-Mail: m.schaber at codesys.com | Web: 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 > > > > ________________________________ > > > > This e-mail may contain confidential and/or privileged information. > If > > you are not the intended recipient (or have received this e-mail in > > error) please notify the sender immediately and destroy this e- > mail. > > Any unauthorised copying, disclosure or distribution of the > material > > in this e-mail is strictly forbidden. > > > > > > _______________________________________________ > > Ironpython-users mailing list > > Ironpython-users at python.org > > https://mail.python.org/mailman/listinfo/ironpython-users > > From jdhardy at gmail.com Mon Oct 13 19:33:08 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 13 Oct 2014 18:33:08 +0100 Subject: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL In-Reply-To: References: Message-ID: pyc.py is the route you want to go, although I'll have to look up the exact syntax to use (Alex might know, I cc'd him). Also, does the Azure Python SDK work with IronPython? That would be great if it did. - Jeff On Fri, Oct 10, 2014 at 7:45 PM, Chuck Dascalos wrote: > Greetings IronPython friends. I am putting together an Azure Worker Role > which is a combination of C# and IronPython code. I have included the > IronPython Nuget package which drops in IronPython.dll and > IronPython.Modules.dll among other things. The IronPython.Modules.dll > includes several popular python modules such as binascii, socket, cmath, > etc... > > My IronPython code has a dependency on the Python Azure SDK. I would prefer > to generate my own dll similar to the Modules.dll that could hold the > dependencies I need for my project. Is this possible? I would prefer to do > it with a dll instead of including all the py files I need. > > I have been looking at the documentation for IronPython and using pyc.py to > do such tasks. So I am guessing this is the route to go. > > I don't understand how to build a .dll for the azure sdk when it is made up > of several folders of py files. > > Any help would be greatly appreciated! Thank you. > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > From slide.o.mix at gmail.com Mon Oct 13 19:33:55 2014 From: slide.o.mix at gmail.com (Slide) Date: Mon, 13 Oct 2014 10:33:55 -0700 Subject: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL In-Reply-To: References: Message-ID: Can you give an example of the file hierarchy for the Azure Python SDK? On Mon, Oct 13, 2014 at 10:33 AM, Jeff Hardy wrote: > pyc.py is the route you want to go, although I'll have to look up the > exact syntax to use (Alex might know, I cc'd him). > > Also, does the Azure Python SDK work with IronPython? That would be > great if it did. > > - Jeff > > On Fri, Oct 10, 2014 at 7:45 PM, Chuck Dascalos > wrote: > > Greetings IronPython friends. I am putting together an Azure Worker Role > > which is a combination of C# and IronPython code. I have included the > > IronPython Nuget package which drops in IronPython.dll and > > IronPython.Modules.dll among other things. The IronPython.Modules.dll > > includes several popular python modules such as binascii, socket, cmath, > > etc... > > > > My IronPython code has a dependency on the Python Azure SDK. I would > prefer > > to generate my own dll similar to the Modules.dll that could hold the > > dependencies I need for my project. Is this possible? I would prefer > to do > > it with a dll instead of including all the py files I need. > > > > I have been looking at the documentation for IronPython and using pyc.py > to > > do such tasks. So I am guessing this is the route to go. > > > > I don't understand how to build a .dll for the azure sdk when it is made > up > > of several folders of py files. > > > > Any help would be greatly appreciated! Thank you. > > > > _______________________________________________ > > Ironpython-users mailing list > > Ironpython-users at python.org > > https://mail.python.org/mailman/listinfo/ironpython-users > > > -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dascalos at hotmail.com Tue Oct 14 00:15:25 2014 From: dascalos at hotmail.com (Chuck Dascalos) Date: Mon, 13 Oct 2014 18:15:25 -0400 Subject: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL In-Reply-To: References: , , Message-ID: I've figured out how to compile the library into a dll with the following command (running this from the root of the azure sdk directory)... ipy "C:\Program Files (x86)\IronPython 2.7\Tools\Scripts\pyc.py" /target:dll /out:IronPython.Azure *.py http/*.py servicebus/*.py servicemanagement/*.py storage/*.py And yes, the azure sdk works with IronPython. For my scenario, I did have to slightly hack the library. You can read about what I did here... http://stackoverflow.com/questions/26245365/ironpython-azure-sending-service-bus-message-assertion-error OK, my question now is, how does my project know to use this dll now? Date: Mon, 13 Oct 2014 10:33:55 -0700 Subject: Re: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL From: slide.o.mix at gmail.com To: jdhardy at gmail.com CC: dascalos at hotmail.com; ironpython-users at python.org Can you give an example of the file hierarchy for the Azure Python SDK? On Mon, Oct 13, 2014 at 10:33 AM, Jeff Hardy wrote: pyc.py is the route you want to go, although I'll have to look up the exact syntax to use (Alex might know, I cc'd him). Also, does the Azure Python SDK work with IronPython? That would be great if it did. - Jeff On Fri, Oct 10, 2014 at 7:45 PM, Chuck Dascalos wrote: > Greetings IronPython friends. I am putting together an Azure Worker Role > which is a combination of C# and IronPython code. I have included the > IronPython Nuget package which drops in IronPython.dll and > IronPython.Modules.dll among other things. The IronPython.Modules.dll > includes several popular python modules such as binascii, socket, cmath, > etc... > > My IronPython code has a dependency on the Python Azure SDK. I would prefer > to generate my own dll similar to the Modules.dll that could hold the > dependencies I need for my project. Is this possible? I would prefer to do > it with a dll instead of including all the py files I need. > > I have been looking at the documentation for IronPython and using pyc.py to > do such tasks. So I am guessing this is the route to go. > > I don't understand how to build a .dll for the azure sdk when it is made up > of several folders of py files. > > Any help would be greatly appreciated! Thank you. > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users at python.org > https://mail.python.org/mailman/listinfo/ironpython-users > -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Tue Oct 14 09:21:52 2014 From: no_reply at codeplex.com (CodePlex) Date: 14 Oct 2014 00:21:52 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/13/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] compile() does not recognize CO_FUTURE_PRINT_FUNCTION 2. [New issue] Installing a beta removes stable installation 3. [New comment] Installing a beta removes stable installation 4. [New issue] ScriptSource.Execute returns null if expression is inside a condition 5. [New comment] ScriptSource.Execute returns null if expression is inside a condition 6. [Status update] ScriptSource.Execute returns null if expression is inside a condition ---------------------------------------------- ISSUES 1. [New comment] compile() does not recognize CO_FUTURE_PRINT_FUNCTION http://ironpython.codeplex.com/workitem/35354 User jdhardy has commented on the issue: "

Fixed in f064bdf.

"----------------- 2. [New issue] Installing a beta removes stable installation http://ironpython.codeplex.com/workitem/35615 User MarkusSchaber has proposed the issue: "Even though I chose a different installation directory when installing IronPython 2.7.5b2, it did uninstall my stable 2.7.4 installation. This should be changed that several IronPython installations can reside on the same machine, as long as the user specifies different installation directories."----------------- 3. [New comment] Installing a beta removes stable installation http://ironpython.codeplex.com/workitem/35615 User MarkusSchaber has commented on the issue: "

Discussion on the mailing list:
https://mail.python.org/pipermail/ironpython-users/2014-October/017263.html

"----------------- 4. [New issue] ScriptSource.Execute returns null if expression is inside a condition http://ironpython.codeplex.com/workitem/35617 User kbranch38 has proposed the issue: "I'm trying to use IronPython as an expression evaluator by hosting it from .NET. After I discovered the SourceCodeKind.AutoDetect option, it works great when the final statement is on its own, like this: if True: y = "True" else: y = "False" y ScriptSource.Execute will return "True" for the above, as expected. However, this code will return null: if True: "True" else: "False" This works as expected when entered into the IronPython interactive console, just not when run from the .NET hosting side. The same seems to be true any time the desired return value is inside another statement (a loop, function, etc.). Here's the hosting code (in VB.NET): Dim engine As ScriptEngine = Python.CreateEngine() Dim scope As ScriptScope = engine.CreateScope() Dim source As ScriptSource = engine.CreateScriptSourceFromString(str, SourceCodeKind.AutoDetect) Dim result As Object = source.Execute(scope) Is this a known limitation? Are there other options to achieve the same result? I'm trying to make things as simple for the user as possible - the alternatives I've found so far require a little more from them, like setting a specific variable or using 'return' with their value."----------------- 5. [New comment] ScriptSource.Execute returns null if expression is inside a condition http://ironpython.codeplex.com/workitem/35617 User jdhardy has commented on the issue: "

It's a limitation of the Python language. In Ruby, if blocks are actually expressions and can have a return value like your example. In Python, they're statements and have no value. I'm afraid it can't be done in Python the way you want - the script writers will have to set a variable or use `return` or `yield`.

"----------------- 6. [Status update] ScriptSource.Execute returns null if expression is inside a condition http://ironpython.codeplex.com/workitem/35617 User jdhardy has updated the issue: Status has changed from Proposed to Closed with the following comment, "If you have any further questions, please ask on StackOverflow or the mailing list (http://ironpython.net/support/)." ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Oct 14 12:00:53 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Tue, 14 Oct 2014 11:00:53 +0100 Subject: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL In-Reply-To: References: Message-ID: You should be able to do a clr.AddReference (r clr.AddReferenceToFileAndPath) on the DLL and then import modules as usual. - Jeff On Mon, Oct 13, 2014 at 11:15 PM, Chuck Dascalos wrote: > I've figured out how to compile the library into a dll with the following > command (running this from the root of the azure sdk directory)... > > ipy "C:\Program Files (x86)\IronPython 2.7\Tools\Scripts\pyc.py" /target:dll > /out:IronPython.Azure *.py http/*.py servicebus/*.py servicemanagement/*.py > storage/*.py > > And yes, the azure sdk works with IronPython. For my scenario, I did have > to slightly hack the library. You can read about what I did here... > > http://stackoverflow.com/questions/26245365/ironpython-azure-sending-service-bus-message-assertion-error > > OK, my question now is, how does my project know to use this dll now? > > ________________________________ > Date: Mon, 13 Oct 2014 10:33:55 -0700 > Subject: Re: [Ironpython-users] Compiling and Deploying IronPython > Dependencies to DLL > From: slide.o.mix at gmail.com > To: jdhardy at gmail.com > CC: dascalos at hotmail.com; ironpython-users at python.org > > > Can you give an example of the file hierarchy for the Azure Python SDK? > > On Mon, Oct 13, 2014 at 10:33 AM, Jeff Hardy wrote: > > pyc.py is the route you want to go, although I'll have to look up the > exact syntax to use (Alex might know, I cc'd him). > > Also, does the Azure Python SDK work with IronPython? That would be > great if it did. > > - Jeff > > On Fri, Oct 10, 2014 at 7:45 PM, Chuck Dascalos > wrote: >> Greetings IronPython friends. I am putting together an Azure Worker Role >> which is a combination of C# and IronPython code. I have included the >> IronPython Nuget package which drops in IronPython.dll and >> IronPython.Modules.dll among other things. The IronPython.Modules.dll >> includes several popular python modules such as binascii, socket, cmath, >> etc... >> >> My IronPython code has a dependency on the Python Azure SDK. I would >> prefer >> to generate my own dll similar to the Modules.dll that could hold the >> dependencies I need for my project. Is this possible? I would prefer to >> do >> it with a dll instead of including all the py files I need. >> >> I have been looking at the documentation for IronPython and using pyc.py >> to >> do such tasks. So I am guessing this is the route to go. >> >> I don't understand how to build a .dll for the azure sdk when it is made >> up >> of several folders of py files. >> >> Any help would be greatly appreciated! Thank you. >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users at python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > > > > > -- > Website: http://earl-of-code.com From jmortensen at bungie.com Wed Oct 15 00:43:57 2014 From: jmortensen at bungie.com (Joseph Mortensen) Date: Tue, 14 Oct 2014 22:43:57 +0000 Subject: [Ironpython-users] static analysis tool In-Reply-To: <951ae583ab284f378d00da01f6a5bab3@DM2PR03MB592.namprd03.prod.outlook.com> References: <951ae583ab284f378d00da01f6a5bab3@DM2PR03MB592.namprd03.prod.outlook.com> Message-ID: Could anyone link me on how to use PTVS's analyzer? From: Dino Viehland [mailto:dinov at microsoft.com] Sent: Tuesday, September 30, 2014 8:12 PM To: Joseph Mortensen; ironpython-users at python.org Subject: RE: static analysis tool Do you want to create your own static analysis rules or just use an existing checker? If it's the latter you could use PTVS's analyzer (I can point you to some example code if so). If it's the former we eventually want to add it to PTVS and when we do that we should pick up IronPython support for free. We'd also accept it as a contribution ;) From: Ironpython-users [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Joseph Mortensen Sent: Tuesday, September 30, 2014 10:29 AM To: ironpython-users at python.org Subject: [Ironpython-users] static analysis tool I'm trying to static analysis on python code that has very heavy usage of .NET libraries. I've seen pyflakes, pylint, and pychecker as the main tools to do this stuff in python, but I haven't gotten any of them working properly with IronPython in windows. Are there any recommendations for something that could analyze: import clr clr.AddReference("System") from System import String stuff = String("my string") print stuff stuff.ThisDoesntExist() without tripping up on the System and String imports and find that "stuff.ThisDoesntExist()" doesn't actually exist? Thanks, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From dinov at microsoft.com Wed Oct 15 01:54:27 2014 From: dinov at microsoft.com (Dino Viehland) Date: Tue, 14 Oct 2014 23:54:27 +0000 Subject: [Ironpython-users] static analysis tool In-Reply-To: References: <951ae583ab284f378d00da01f6a5bab3@DM2PR03MB592.namprd03.prod.outlook.com> Message-ID: <32b65638767944a897c0c37bbae78ba0@DM2PR03MB592.namprd03.prod.outlook.com> Sorry for the delay... One thing to note is you won't get any warnings like PyLint provides, but it will let you interrogate the analysis. Here's the basic code: string code = "def f(): pass"; // create an interpreter instance and an analyzer for that interpreter. var factory = new IronPythonInterpreterFactory(ProcessorArchitecture.X86); // IronPython specific //var factory = InterpreterFactoryCreator.CreateAnalysisInterpreterFactory(new Version(2, 7)); // generic CPython interpreter var analyzer = new PythonAnalyzer(factory, factory.CreateInterpreter(), "__builtin__"); // add some code into the interpreter. var sourceUnit = new StringReader(code); var entry = analyzer.AddModule("foo.py", "foo.py", null); using (var parser = Parser.CreateParser(sourceUnit, PythonLanguageVersion.V27, new ParserOptions() { BindReferences = true })) { entry.UpdateTree(parser.ParseFile(), null); } // analyze that code entry.Analyze(CancellationToken.None); // now you can query the resulting analysis entry.Analysis.GetTypesByIndex("f", code.Length); To reference this you just need to add a reference to Microsoft.PythonTools.Analysis for the core analyzer/interpreter support and Microsoft.PythonTools.IronPython.Interpreter for the IronPython specific interpreter support (which understands all of the .NET namespaces). This is just analyzing a single file but you can easily expand it to analyze multiple files, pull those files off disk, etc... Hopefully that can get you started... From there you can start digging into the analyzer code to extend it to support any additional warnings you want. From: Ironpython-users [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Joseph Mortensen Sent: Tuesday, October 14, 2014 3:44 PM To: ironpython-users at python.org Subject: Re: [Ironpython-users] static analysis tool Could anyone link me on how to use PTVS's analyzer? From: Dino Viehland [mailto:dinov at microsoft.com] Sent: Tuesday, September 30, 2014 8:12 PM To: Joseph Mortensen; ironpython-users at python.org Subject: RE: static analysis tool Do you want to create your own static analysis rules or just use an existing checker? If it's the latter you could use PTVS's analyzer (I can point you to some example code if so). If it's the former we eventually want to add it to PTVS and when we do that we should pick up IronPython support for free. We'd also accept it as a contribution ;) From: Ironpython-users [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Joseph Mortensen Sent: Tuesday, September 30, 2014 10:29 AM To: ironpython-users at python.org Subject: [Ironpython-users] static analysis tool I'm trying to static analysis on python code that has very heavy usage of .NET libraries. I've seen pyflakes, pylint, and pychecker as the main tools to do this stuff in python, but I haven't gotten any of them working properly with IronPython in windows. Are there any recommendations for something that could analyze: import clr clr.AddReference("System") from System import String stuff = String("my string") print stuff stuff.ThisDoesntExist() without tripping up on the System and String imports and find that "stuff.ThisDoesntExist()" doesn't actually exist? Thanks, Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Wed Oct 15 09:26:36 2014 From: no_reply at codeplex.com (CodePlex) Date: 15 Oct 2014 00:26:36 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/14/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] -X:Tracing argument problem? 2. [New issue] Create Chocolatey package for IronPython 3. [New issue] missing _meta attribute for django ---------------------------------------------- ISSUES 1. [New comment] -X:Tracing argument problem? http://ironpython.codeplex.com/workitem/35469 User jdhardy has commented on the issue: "

Fixed in c92aec2.

"----------------- 2. [New issue] Create Chocolatey package for IronPython http://ironpython.codeplex.com/workitem/35619 User jdhardy has proposed the issue: "Create a Chocolatey package for IronPython."----------------- 3. [New issue] missing _meta attribute for django http://ironpython.codeplex.com/workitem/35620 User dsy73 has proposed the issue: "Hello Django does not work. django-1.7-py2.7 ironpython 2.7.4 or 2.7.5.20 I execute: ipy64.exe -X:FullFrames "%IRONPYTHONPATH%"\Scripts\django-admin.py startproject djtest cd djtest ipy64 -X:FullFrames manage.py runserver I have this error: AttributeError: 'NoneType' object has no attribute '_meta' Full stack Traceback (most recent call last): File "manage.py", line 10, in File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\__init__.py", line 21, in setup File "C:\Program Files (x86)\IronPython 2.7\Lib\importlib\__init__.py", line 37, in import_module File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\core\management\__init__.py", line 385, in execute_from_command_line File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\core\management\__init__.py", line 354, in execute File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\apps\registry.py", line 108, in populate File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\apps\config.py", line 197, in import_models File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\contrib\auth\models.py", line 360, in File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\db\models\base.py", line 253, in __new__ File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\db\models\base.py", line 300, in add_to_class File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\db\models\fields\related.py", line 2244, in contribute_to_class File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\django-1.7-py2.7.egg\django\db\models\fields\related.py", line 1168, in __set__ AttributeError: 'NoneType' object has no attribute '_meta' Same error with the stable version 2.7.4 of IronPython before I read this issue 35231." ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Fri Oct 17 09:27:01 2014 From: no_reply at codeplex.com (CodePlex) Date: 17 Oct 2014 00:27:01 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/16/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] dict.copy() raises SystemError if None is used as a key 2. [New comment] dict.copy() raises SystemError if None is used as a key ---------------------------------------------- ISSUES 1. [New issue] dict.copy() raises SystemError if None is used as a key http://ironpython.codeplex.com/workitem/35626 User tcalmant has proposed the issue: "When copying a dictionary containing a key set to None, a SystemError is raised: IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.34014 (32-bit) Type "help", "copyright", "credits" or "license" for more information. >>> {1: 2}.copy() {1: 2} >>> {None: 2}.copy() Traceback (most recent call last): File "", line 1, in SystemError: Object reference not set to an instance of an object. FYI, the copy.copy() method works well in that case: >>> import copy >>> copy.copy({None:2}) {None: 2} "----------------- 2. [New comment] dict.copy() raises SystemError if None is used as a key http://ironpython.codeplex.com/workitem/35626 User tcalmant has commented on the issue: "

The exception occurs only when trying to access the content of the dictionary, not during the copy process.

```
>>> {None: 2}.copy()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet.
>>> b = {None: 2}.copy()
>>> id(b)
43
>>> b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: Object reference not set to an instance of an object.
```

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Oct 21 00:17:14 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 20 Oct 2014 23:17:14 +0100 Subject: [Ironpython-users] requests hang on get or post http request In-Reply-To: References: Message-ID: On Wed, Aug 27, 2014 at 12:03 AM, Daniel Fernandez wrote: > Hi Jeff, > > Is this something we want to go forward with the change in the > PythonBinaryReader:Read > > if(size == 0) { > return string.Empty; > } > > Thanks. I had thought this was included in some other changes but it appears it was not. Is it still needed? - Jeff From jdhardy at gmail.com Tue Oct 21 00:35:21 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 20 Oct 2014 23:35:21 +0100 Subject: [Ironpython-users] IronPython 2.7.5 Beta 3 Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Oct 21 00:38:50 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 20 Oct 2014 23:38:50 +0100 Subject: [Ironpython-users] IronPython 2.7.5 Beta 3 Released Message-ID: On behalf of the IronPython team, I'm happy to announce the third and final beta release of IronPython 2.7.5. This release includes everything from IronPython 2.7.4 and earlier. Like all IronPython 2.7-series releases, .NET 4 is required to install it. Installing this release will replace any existing IronPython 2.7-series installation. Assemblies for embedding are provided for .NET 3.5, .NET 4, .NET 4.5, and Silverlight 5. IronPython 2.7.5 Beta 3 is primarily a collection of bug fixes which smooths off many of the remaining rough edges. The complete list of changes is also available. *Note:* *The assembly version of IronPython has changed to 2.7.5.0.* All previous 2.7 versions had the same version (2.7.0.40) which caused issues when different versions were installed. Publisher policy files are used to so that applications don't have to be recompiled, but recompiling is strongly recommended. A huge thanks goes out to Pawel Jasinski , who contributed most of the changes in this release. Thanks is also due to Simon Opelt , Alex Earl , Jeffrey Bester , yngipy hernan , Alexander K?plinger ,Vincent Ducros , and fdanny . For Visual Studio integration, check out Python Tools for Visual Studio which has support for IronPython as well as CPython, and many other fantastic features. IronPython 2.7.5 Beta 3 is also available for embedding via NuGet . The main package is IronPython, and the standard library is in IronPython.StdLib. - Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Tue Oct 21 00:40:30 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Mon, 20 Oct 2014 23:40:30 +0100 Subject: [Ironpython-users] IronPython 2.7.5 Release Schedule Message-ID: Unless anything goes wrong, I'mplanning on releasing 2.7.5 RC around Nov. 1 and 2.7.5 final around Nov. 15. Apologies for the long delay between B2 and B3 - I tend to overestimate how much time I have available in the summer (especially given what passes for "summer" in Ireland). - Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Tue Oct 21 09:20:37 2014 From: no_reply at codeplex.com (CodePlex) Date: 21 Oct 2014 00:20:37 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/20/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Trivial: SyntaxError for invalid indentation gives different line number 2. [New comment] Ctrl-Z dosn't work right after KeyboardInterrupt 3. [Status update] Could not get dependencies for project reference 'PythonLibrary1' 4. [Status update] Sample: IronPython-1.0.1-Samples-WebServices - doesn't work for few RSS feeds 5. [New comment] test_ipyc.test_cached_types failed throwing SystemError under .NET 4.0 Beta 6. [New comment] "TypeError: find_module() takes exactly 2 arguments" during debug a script load customize DLLs 7. [New issue] ElementTree does not handle UTF-8 encoding ---------------------------------------------- ISSUES 1. [New comment] Trivial: SyntaxError for invalid indentation gives different line number http://ironpython.codeplex.com/workitem/5736 User slide_o_mix has commented on the issue: "

This is working correctly in the latest.

"----------------- 2. [New comment] Ctrl-Z dosn't work right after KeyboardInterrupt http://ironpython.codeplex.com/workitem/9135 User slide_o_mix has commented on the issue: "

This works in latest.

"----------------- 3. [Status update] Could not get dependencies for project reference 'PythonLibrary1' http://ironpython.codeplex.com/workitem/10245 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "Not enough information to reproduce."----------------- 4. [Status update] Sample: IronPython-1.0.1-Samples-WebServices - doesn't work for few RSS feeds http://ironpython.codeplex.com/workitem/11587 User slide_o_mix has updated the issue: Status has changed from Active to Closed with the following comment, "This sample is no longer valid."----------------- 5. [New comment] test_ipyc.test_cached_types failed throwing SystemError under .NET 4.0 Beta http://ironpython.codeplex.com/workitem/24509 User slide_o_mix has commented on the issue: "

I don't get the same issue with the latest code. I get the following:

TypeError: : unsupported base type for new-style class Microsoft.Scripting.Actions.NamespaceTracker:IronPythonTest.BinderTest

"----------------- 6. [New comment] "TypeError: find_module() takes exactly 2 arguments" during debug a script load customize DLLs http://ironpython.codeplex.com/workitem/32989 User slide_o_mix has commented on the issue: "

This works in the latest, so it seems it was fixed at some point in the past.

"----------------- 7. [New issue] ElementTree does not handle UTF-8 encoding http://ironpython.codeplex.com/workitem/35635 User ysitu has proposed the issue: ">>> import tempfile >>> from xml.etree.ElementTree import ElementTree >>> xml = '\n\n' >>> with tempfile.TemporaryFile() as f: ... f.write(bytes(xml, 'utf-8')) # use xml.encode('utf-8') in CPython 2.7 ... f.flush() ... f.seek(0) ... tree = ElementTree(file=f) ... name = next(tree.iter()).get('name') ... print(repr(name)) ... assert name == unichr(169) ... u'\xc2\xa9' Traceback (most recent call last): File "", line 8, in AssertionError unichr(169) is the copyright sign "?" and is encoded in UTF-8 as b'\xc2\xa9'. The two-byte encoding is ignored by ElementTree and gets interpreted as two separate characters." ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernandez_dan2 at hotmail.com Wed Oct 22 02:12:06 2014 From: fernandez_dan2 at hotmail.com (Daniel Fernandez) Date: Tue, 21 Oct 2014 18:12:06 -0600 Subject: [Ironpython-users] requests hang on get or post http request In-Reply-To: References: Message-ID: Hi Jeff, I thought I checked in that in. I guess I lost it when I branched. Is there time to still check it in? Danny -----Original Message----- From: Jeff Hardy [mailto:jdhardy at gmail.com] Sent: Monday, October 20, 2014 4:17 PM To: Daniel Fernandez Cc: ironpython-users at python.org Subject: Re: [Ironpython-users] requests hang on get or post http request On Wed, Aug 27, 2014 at 12:03 AM, Daniel Fernandez wrote: > Hi Jeff, > > Is this something we want to go forward with the change in the > PythonBinaryReader:Read > > if(size == 0) { > return string.Empty; > } > > Thanks. I had thought this was included in some other changes but it appears it was not. Is it still needed? - Jeff From jdhardy at gmail.com Wed Oct 22 10:02:49 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Wed, 22 Oct 2014 09:02:49 +0100 Subject: [Ironpython-users] requests hang on get or post http request In-Reply-To: References: Message-ID: Yep, it'll go in the RC. On Wed, Oct 22, 2014 at 1:12 AM, Daniel Fernandez wrote: > Hi Jeff, > > I thought I checked in that in. I guess I lost it when I branched. Is there time to still check it in? > > Danny > > -----Original Message----- > From: Jeff Hardy [mailto:jdhardy at gmail.com] > Sent: Monday, October 20, 2014 4:17 PM > To: Daniel Fernandez > Cc: ironpython-users at python.org > Subject: Re: [Ironpython-users] requests hang on get or post http request > > On Wed, Aug 27, 2014 at 12:03 AM, Daniel Fernandez wrote: >> Hi Jeff, >> >> Is this something we want to go forward with the change in the >> PythonBinaryReader:Read >> >> if(size == 0) { >> return string.Empty; >> } >> >> Thanks. > > I had thought this was included in some other changes but it appears it was not. Is it still needed? > > - Jeff From no_reply at codeplex.com Thu Oct 23 09:22:13 2014 From: no_reply at codeplex.com (CodePlex) Date: 23 Oct 2014 00:22:13 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/22/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] datetime.now() should be class method ---------------------------------------------- ISSUES 1. [New comment] datetime.now() should be class method http://ironpython.codeplex.com/workitem/21478 User slide_o_mix has commented on the issue: "

This is partially fixed in d4c063, the now and utcnow methods are now class methods, however, the print is still incorrect, it prints datetime.datetime(...) instead of mydate(...). I can't find a way to get the python class name in the C# code that will give me mydate instead of datetime.

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Fri Oct 24 03:03:28 2014 From: no_reply at codeplex.com (CodePlex) Date: 23 Oct 2014 18:03:28 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/22/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] datetime.now() should be class method ---------------------------------------------- ISSUES 1. [New comment] datetime.now() should be class method http://ironpython.codeplex.com/workitem/21478 User slide_o_mix has commented on the issue: "

This is partially fixed in d4c063, the now and utcnow methods are now class methods, however, the print is still incorrect, it prints datetime.datetime(...) instead of mydate(...). I can't find a way to get the python class name in the C# code that will give me mydate instead of datetime.

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Mon Oct 27 00:53:52 2014 From: slide.o.mix at gmail.com (Slide) Date: Sun, 26 Oct 2014 16:53:52 -0700 Subject: [Ironpython-users] Bytecode Skeleton Implementation Message-ID: I pushed a branch with a skeleton implementation (very minimal) of bytecode support. The __hello__ and __phello__ modules are implemented and work (they are built-in to CPython). Please take a look at [1] and let me know if you have any feedback. Thanks, slide 1 - https://github.com/IronLanguages/main/compare/bytecode_skeleton?expand=1 -- Website: http://earl-of-code.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Mon Oct 27 08:21:54 2014 From: no_reply at codeplex.com (CodePlex) Date: 27 Oct 2014 00:21:54 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/26/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] The exception message of SyntaxError is different between CPy and IPy 2. [New comment] NotImplementedError: buffer_info not implemented for the array module ---------------------------------------------- ISSUES 1. [New comment] The exception message of SyntaxError is different between CPy and IPy http://ironpython.codeplex.com/workitem/23681 User slide_o_mix has commented on the issue: "

Fixed in 6298f5e. The message was updated to what Python 2.7 uses, which is different from what is in the bug for 2.5.

"----------------- 2. [New comment] NotImplementedError: buffer_info not implemented for the array module http://ironpython.codeplex.com/workitem/23778 User slide_o_mix has commented on the issue: "

IronPython now behaves the same as CPython 2.7

```
IronPython 2.9.9a0 DEBUG (2.9.0.0) on .NET 4.0.30319.34014 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> import array
>>> a=array.array('c', 's')
>>> a.buffer_into()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'array' object has no attribute 'buffer_into'
```

```
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import array
>>> a=array.array('c', 's')
>>> a.buffer_into()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'array.array' object has no attribute 'buffer_into'
```

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Wed Oct 29 08:30:25 2014 From: no_reply at codeplex.com (CodePlex) Date: 29 Oct 2014 00:30:25 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/28/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Ipy Crash...Please help ---------------------------------------------- ISSUES 1. [New comment] Ipy Crash...Please help http://ironpython.codeplex.com/workitem/34567 User slide_o_mix has commented on the issue: "

Does this work under CPython?

" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Baron.Oldenburg at leviathansecurity.com Wed Oct 29 23:43:24 2014 From: Baron.Oldenburg at leviathansecurity.com (Baron Oldenburg) Date: Wed, 29 Oct 2014 22:43:24 +0000 Subject: [Ironpython-users] using IronPython with pycrypto Message-ID: Hello! I'm attempting to import a module (KillerBee) in IronPython. I've encountered a couple of issues along the way, some of which I've been able to fix. I'm hoping the mailing list can help me out with what I haven't fixed. Here are the problems I've encountered and the steps I've taken: 1. "Exception during object creation: no module named killerbee" a. Per http://stackoverflow.com/questions/1371994/importing-external-module-in-ironpython, I added the following which allowed IronPython to recognize killerbee as a module and let me import it: var paths = engine.GetSearchPaths(); paths.Add(@"/usr/lib/python2.7/site-packages/"); engine.SetSearchPaths(paths); 2. "Exception during object creation: cannot import _AES from Crypto.Cipher" a. I tracked this error down to this line in a killerbee file "dot154decode.py": "from Crypto.Cipher import AES" and then further to /usr/lib/python2.7/site-packages/Crypto/Cipher/AES.py: "from Crypto.Cipher import _AES" In the same directory as AES.py there is an _AES.so. b. If I attempt this from the python interpreter, there are no errors: $ python Python 2.7.8 (default, Sep 24 2014, 18:26:21) [GCC 4.9.1 20140903 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from Crypto.Cipher import AES >>> import Crypto >>> print Crypto.__version__ 2.6.1 >>> c. If I attempt this from IronPython with the following code (instead of importing killerbee): engine.ImportModule("Crypto.Cipher.AES"); I get the same error ("cannot import _AES from Crypto.Cipher"). d. If I attempt to just import Crypto.Cipher ("engine.ImportModule("Crypto.Cipher");") there are no errors. Before I start trying increasingly complicated workarounds, does anyone have an idea as to the possible root cause? I've searched around on the Internet generally and in outstanding IronPython issues specifically for other people with this problem, but I've only found the following semi-related hits around IronPython and pycrypto: * http://stackoverflow.com/questions/2365661/how-to-create-a-package-in-c-sharp-for-use-in-ironpython * http://www.pyinstaller.org/ticket/881 * http://lists.ironpython.com/pipermail/users-ironpython.com/2006-November/018956.html * https://bitbucket.org/mvdk/ironpycrypto The relevant parts of the source look like this: using IronPython; using IronPython.Hosting; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; ScriptEngine engine = Python.CreateEngine(); var paths = engine.GetSearchPaths(); paths.Add(@"/usr/lib/python2.7/site-packages/"); engine.SetSearchPaths(paths); engine.ImportModule("Crypto.Cipher.AES"); Thanks for your time! I'm happy to provide any other details or source code necessary to continue debugging. Baron -------------- next part -------------- An HTML attachment was scrubbed... URL: From no_reply at codeplex.com Fri Oct 31 08:22:10 2014 From: no_reply at codeplex.com (CodePlex) Date: 31 Oct 2014 00:22:10 -0700 Subject: [Ironpython-users] IronPython, Daily Digest 10/30/2014 Message-ID: Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] simplify use of .net enumeration ---------------------------------------------- ISSUES 1. [New issue] simplify use of .net enumeration http://ironpython.codeplex.com/workitem/35650 User paweljasinski has proposed the issue: "http://stackoverflow.com/questions/26637765/comparing-enum-values-within-ironpython there must be a better way" ---------------------------------------------- ---------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From slide.o.mix at gmail.com Fri Oct 31 11:25:25 2014 From: slide.o.mix at gmail.com (Slide) Date: Fri, 31 Oct 2014 03:25:25 -0700 Subject: [Ironpython-users] Bytecode Skeleton Implementation In-Reply-To: References: Message-ID: Sure, that shouldn't be a problem, right now it's 90% of them :-) I'll add some info. On Oct 31, 2014 3:23 AM, "Jeff Hardy" wrote: > On Sun, Oct 26, 2014 at 11:53 PM, Slide wrote: > > I pushed a branch with a skeleton implementation (very minimal) of > bytecode > > support. The __hello__ and __phello__ modules are implemented and work > (they > > are built-in to CPython). Please take a look at [1] and let me know if > you > > have any feedback. > > I've only taken a quick glance but it looks like a good start. It > would be helpful to have comments on the opcodes that still need to be > implemented. > > - Jeff > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdhardy at gmail.com Fri Oct 31 11:23:46 2014 From: jdhardy at gmail.com (Jeff Hardy) Date: Fri, 31 Oct 2014 10:23:46 +0000 Subject: [Ironpython-users] Bytecode Skeleton Implementation In-Reply-To: References: Message-ID: On Sun, Oct 26, 2014 at 11:53 PM, Slide wrote: > I pushed a branch with a skeleton implementation (very minimal) of bytecode > support. The __hello__ and __phello__ modules are implemented and work (they > are built-in to CPython). Please take a look at [1] and let me know if you > have any feedback. I've only taken a quick glance but it looks like a good start. It would be helpful to have comments on the opcodes that still need to be implemented. - Jeff From tbanister at primarycapital.com Fri Oct 31 18:23:18 2014 From: tbanister at primarycapital.com (Todd Banister) Date: Fri, 31 Oct 2014 17:23:18 +0000 Subject: [Ironpython-users] Newbie Mac IronPython Forms Question Message-ID: I am just getting started with IronPython and working my way through the IronPython In Action book by Manning publishing. So far, I am able to do all of the examples on my Windows 8 VM on my Mac without any problems (running the latest 2.7.5 beta 3 version). But I am running into some issues with generating Forms on the Mac side. On my Mac, I am trying to run the following code: import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import Application, Form form=Form() Application.Run(form) When I try to run this simple code to create a blank form, the command line interpreter hangs when it gets to the form=Form() line. I have tried running this code using the built in IronPython (listed as version 3.0.0.0) in Mono as well as running the 2.7.5 beta 3 version (using mono /Library/Frameworks/IronPython.framework/Versions/2.7.5/ipy.exe). Both seem to hang at the exact same spot. What am I missing? Is there something that I have not set up correctly in my Mac environment? Does this simply not work the way I am trying it? Sorry for such a simple question. Thanks for your time, TB Todd Banister, CTO Primary Capital Mortgage, LLC - NMLS #3076 1000 Parkwood Circle, Suite 600 Atlanta, GA 30339 P 678.298.0210 C 770.378.5295 F 678.303.0210 [cid:5C14F6A1-A200-4851-AF56-EDFFEA5A9EFD] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo_signature[7].png Type: image/png Size: 31332 bytes Desc: logo_signature[7].png URL: