[IronPython] ipy in Emacs with TabCompletion

2006-09-07 Thread S H Yoon
This is not really a bug, but I am attempting to use XEmacs in WinXP with TabCompletion and XEmacs basically goes into a infinite loop printing below.---c:\Documents and Settings\Hoon\Desktop>ipy -X:TabCompletionipy -X:TabCompletionIronPython 1.0.60816 on .NET 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.>>> Traceback (most recent call last):  File mscorlib, line unknown, in get_CursorTop  File mscorlib, line unknown, in GetBufferInfo  File mscorlib, line unknown, in GetBufferInfo  File mscorlib, line unknown, in WinIOErrorIOError: The handle is invalid.>>> Traceback (most recent call last):  File mscorlib, line unknown, in get_CursorTop  File mscorlib, line unknown, in GetBufferInfo  File mscorlib, line unknown, in GetBufferInfo  File mscorlib, line unknown, in
 WinIOErrorIOError: The handle is invalid.>>> Traceback (most recent call last):  File mscorlib, line unknown, in get_CursorTop  File mscorlib, line unknown, in GetBufferInfo  File mscorlib, line unknown, in GetBufferInfo  File mscorlib, line unknown, in WinIOErrorIOError: The handle is invalid...  
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] IDE status info

2006-09-07 Thread J. Merrill
I am not affiliated with the company or product I'm about to discuss in any 
way; I have not purchased it myself.

For those who are discouraged by the need to have a version of Visual Studio 
that costs money (as the Express version doesn't support plug-ins) in order to 
get IronPython integration with a commercial-quality IDE, there is a cheaper 
alternative than purchasing the full Visual Studio.

The company RemObjects has built Chrome -- a .NET-only compiler for the Delphi 
language (aka Object Pascal), and they've made a number of enhancements to it 
to better support .NET concepts.  (In many ways it compares to Delphi like 
IronPython compares to CPython.  Do not expect VCL support, however.)  The 
command-line version of the compiler is free to download, and is available for 
Mono as well as for Windows.  What they sell is the integration of Chrome into 
the Visual Studio IDE (and other products unrelated to Chrome); they have a 
"student / non-commercial academic" version for [as of today] EUR 49.

Until recently, you had to own VS to use Chrome's IDE integration.  They have 
now made it possible to buy "Chrome for Visual Studio" as before, or you can 
buy "Chrome with Visual Studio" (Chrome inside a copy of VS) for about EUR 50 
more (EUR 26 more for student version).  It is my impression that you will be 
able to plug IronPython into that version of VS, as they discuss on their site 
the value of being able to use 3rd-party plug-ins for VS in conjunction with 
Chrome.  You can see the prices at
http://www.remobjects.com/order/
Scroll down past the subscriptions and suites (averting your eyes from the 
prices on the right, lest yee be scared off!) until you get to the Chrome 
section.  Also, Delphi users get a price break.

My apologies if anyone thinks this is an inappropriate post; I'm just trying to 
help those with small wallets get a good IDE for IronPython -- and there's 
little wrong with Chrome for those (Delphi users) who already have their heads 
around Object Pascal.

At 05:52 PM 8/30/2006, S H Yoon wrote
>http://community.sharpdevelop.net/forums/thread/3770.aspx
>
>This gentleman Andy Tao appears to be working on IPY IDE and hit some problems,
[snip] 

J. Merrill / Analytical Software Corp


___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-07 Thread Martin Maly
Thank you for letting us know. I've corrected your name. Please accept our 
apologies for misspelling it.

Martin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Szymon Kobalczyk
Sent: Thursday, September 07, 2006 2:33 AM
To: Discussion of IronPython
Subject: Re: [IronPython] [ANN] IronPython 1.0 released today!

On behalf of BizMind team at SoftwareMind, congratulations and thank you
for making this such a great product and sharing it with the community
starting from the early stages. Also thanks for all the people in this
mailing list for helping us all.

--
Szymon Kobalczyk
SoftwareMind
[EMAIL PROTECTED]

PS: Thanks for mentioning me on the IP wiki pages, but my first name is
Szymon not Syzmon -- this is a common mistake.
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] CherryPy 3 on top of IronPython 1.0... kind of working

2006-09-07 Thread Sylvain Hellegouarch
> 2006/9/6, Sylvain Hellegouarch <[EMAIL PROTECTED]>:
>> a. First string.encode('hex') is not implemented so:
>> LookupError: unknown encoding: hex
>
> This is CodePlex 1214.
> http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1214
>
> As I commented, this can be easily "fixed" by adding this line to site.py:
> import encodings
>
> CPython does this import implicitly inside _PyCodecRegistry_Init:
> http://pxr.openlook.org/pxr/source/Python/codecs.c?v=2.4.2#828
>

You are precious Seo!

Thanks,
- Sylvain
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] CherryPy 3 on top of IronPython 1.0... kind of working

2006-09-07 Thread Sanghyeon Seo
2006/9/6, Sylvain Hellegouarch <[EMAIL PROTECTED]>:
> a. First string.encode('hex') is not implemented so:
> LookupError: unknown encoding: hex

This is CodePlex 1214.
http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=1214

As I commented, this can be easily "fixed" by adding this line to site.py:
import encodings

CPython does this import implicitly inside _PyCodecRegistry_Init:
http://pxr.openlook.org/pxr/source/Python/codecs.c?v=2.4.2#828

Seo Sanghyeon
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


[IronPython] Passing Arguments in hosted enviroment

2006-09-07 Thread Bernd Rössl
Title: Passing Arguments in hosted enviroment







Hello list,


Great to see 1.0 prod. Is out :)


Anyway, currently i'm embedding ironpython to a web application. This gives us the ability to write extension and modules in python. One requirement is the possibility to pass arguments from the user context to the python enviroment. Till now i've done this by adding or setting object to the globals. Unfortunetly this approach isn't multi user suitable since the python enviroment is static and the same instance for all users respectivly for all sessions. So it could happen that a passed value of session2 overrides the passed value of session1.

My thoughts:


1. Each session has it's own python enviroment: this results in higher memory usage and needs time each time a session loads it's python enviroment

2. The arguments are not passed directly to the enviroment but to a session dependent object: each script has to take care what args of what session will be taken

3. ? Is there a possibility to pass args to a "ExecuteFile" context? I mean my hosting application call's the method "executeFile" each time a script will be executed and the passed args should be reachable ONLY in this execution. 

What is the best solution to handle this challenge?


Thanks for your hint's!


Regards, bernd 



___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-07 Thread Szymon Kobalczyk
On behalf of BizMind team at SoftwareMind, congratulations and thank you 
for making this such a great product and sharing it with the community 
starting from the early stages. Also thanks for all the people in this 
mailing list for helping us all.

--
Szymon Kobalczyk
SoftwareMind
[EMAIL PROTECTED]

PS: Thanks for mentioning me on the IP wiki pages, but my first name is 
Szymon not Syzmon -- this is a common mistake.
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


[IronPython] xmlrpclib example

2006-09-07 Thread Sanghyeon Seo
Python has a great xmlrpclib module to do XML-RPC as part of its
standard library:
http://docs.python.org/lib/module-xmlrpclib.html

Today I tried it with IronPython and it just worked.

You need to be able to load Python standard libraries. In addition,
you need pyexpat.py I wrote:
http://sparcs.kaist.ac.kr/~tinuviel/fepy/lib/pyexpat.py

An example code is here. It should print "Alabama".
http://sparcs.kaist.ac.kr/~tinuviel/fepy/example/xmlrpc_test.py

Seo Sanghyeon
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-07 Thread Mark Spink
I had the same problem, but it downloaded fine after several retries.

Mark


On Wed, 2006-09-06 at 11:10 -0700, Keith J. Farmer wrote:
> I saw that.  After logging in, I was able to successfully download.  I don't 
> know if it was a timing issue or a login issue.
> 
> 
> 
> From: [EMAIL PROTECTED] on behalf of Tim Riley
> Sent: Wed 9/6/2006 6:32 AM
> To: Discussion of IronPython
> Subject: Re: [IronPython] [ANN] IronPython 1.0 released today!
> 
> 
> I keep getting an error from codeplex when I try to download 1.0.bin. Am I 
> the only one?
> 
> 
> On 9/5/06, Jim Hugunin < [EMAIL PROTECTED]  > 
> wrote: 
> 
>   I'm extremely happy to announce that we have released IronPython 1.0 
> today!
>   http://www.codeplex.com/IronPython
>   
>   I started work on IronPython almost 3 years ago.  My initial motivation 
> for the project was to understand all of the reports that I read on the web 
> claiming that the Common Language Runtime (CLR) was a terrible platform for 
> Python and other dynamic languages.  I was surprised to read these reports 
> because I knew that the JVM was an acceptable platform for these languages.  
> About 9 years ago I'd built an implementation of Python that ran on the JVM 
> originally called JPython and later shortened to Jython.  This implementation 
> ran a little slower than the native C-based implementation of Python 
> (CPython), but it was easily fast enough and stable enough for production use 
> - testified to by the large number of Java projects that incorporate Jython 
> today. 
>   
>   I wanted to understand how Microsoft could have screwed up so badly 
> that the CLR was a worse platform for dynamic languages than the JVM.  My 
> plan was to take a couple of weeks to build a prototype implementation of 
> Python on the CLR and then to use that work to write a short pithy article 
> called, "Why the CLR is a terrible platform for dynamic languages".  My plans 
> quickly changed as I worked on the prototype, because I found that Python 
> could run extremely well on the CLR - in many cases noticeably faster than 
> the C-based implementation.  For the standard pystone benchmark, IronPython 
> on the CLR was about 1.7x faster than the C-based implementation.
>   
>   The more time I spent working on IronPython and with the CLR, the more 
> excited I became about its potential to finally deliver on the vision of a 
> single common platform for a broad range of languages.  At that same time, I 
> was invited to come out to Microsoft to present IronPython and to talk with 
> members of the CLR team about technical issues that I was running into.  I 
> had a great time that day working through these issues with a group of really 
> smart people who all had a deep understanding of virtual machines and 
> language implementation.  After much reflection, I decided to join the CLR 
> team at Microsoft where I could work with the platform to make it an even 
> better target for dynamic languages and be able to have interesting technical 
> discussions like that every day. 
>   
>   The first few months at Microsoft were a challenge as I learned what 
> was involved in working at a large company.  However, once the initial hurdle 
> was over I started experiencing the things that motivated me to come here in 
> the first place.  The team working on dynamic languages in general and 
> IronPython in particular began to grow and I got to have those great 
> technical discussions again about both how to make IronPython as good as it 
> could be and how to make the CLR an even better platform.  We began to take 
> advantage of the great new features for dynamic languages already shipping in 
> .NET 2.0 such as DynamicMethods, blindingly fast delegates and a new generics 
> system that was seamlessly integrated with the existing reflection 
> infrastructure.
>   
>   We were also able to release IronPython publicly from Microsoft with a 
> BSD-style license.  In the agile spirit of the project, we put out a new 
> release of IronPython once every three weeks (on average) over the course of 
> the project.  This helped us connect well with our daring early adopters and 
> receive and incorporate their feedback to make IronPython better.  We've had 
> countless excellent discussions on the mailing list on everything from 
> supporting value types to calling overloaded methods.  Without the drive and 
> input of our users, IronPython would be a much weaker project. 
>   
>   IronPython is about bringing together two worlds.  The key value in 
> IronPython is that it is both a true implementation of Python and is 
> seamlessly integrated with the .NET platform.  Most features were easy and 
> natural choices where the language and the platform fit together with almost 
> no work.  However, there were challenges from the obvious cases like 
> exception type hierarchies to the some

[IronPython] CherryPy on IronPython update

2006-09-07 Thread Sanghyeon Seo
This post updates:
http://lists.ironpython.com/pipermail/users-ironpython.com/2006-May/002254.html

Summary: it's still flaky. At least on Mono, it randomly segfaults.
However, the patch is much shorter.

Files are available on the same place:
http://sparcs.kaist.ac.kr/~tinuviel/fepy/ironcherry/

My test environment is now Mono 1.1.17.1 and IronPython 1.0 Production.

Changes since Beta 6:
* patch-lib, a patch to inspect.py is needed no more. Mono bug on
GetEncodings() which it avoids is long fixed.
* IronPython's comparison bug involving None is long fixed.
* IronPython now has datetime.datetime class. Reverted patch on
timestamping code and sessionfilter.
* gzipfilter patch and cptools eval patch remains.

Current status:

[EMAIL PROTECTED]:~/sandbox$ ~/devel/fepy/1.0/ipy.exe test.py
sys:1: UserWarning: Your installation of Python doesn't have a profile
module. If you're on Debian, you can apt-get python2.4-profiler from
non-free in a separate step. See
http://www.cherrypy.org/wiki/ProfilingOnDebian for details.
07/Sep/2006:18:21:46 CONFIG INFO Server parameters:
07/Sep/2006:18:21:46 CONFIG INFO   server.environment: development
07/Sep/2006:18:21:46 CONFIG INFO   server.log_to_screen: True
07/Sep/2006:18:21:46 CONFIG INFO   server.log_file:
07/Sep/2006:18:21:46 CONFIG INFO   server.log_tracebacks: True
07/Sep/2006:18:21:46 CONFIG INFO   server.log_request_headers: True
07/Sep/2006:18:21:46 CONFIG INFO   server.protocol_version: HTTP/1.0
07/Sep/2006:18:21:46 CONFIG INFO   server.socket_host:
07/Sep/2006:18:21:46 CONFIG INFO   server.socket_port: 8080
07/Sep/2006:18:21:46 CONFIG INFO   server.socket_file:
07/Sep/2006:18:21:46 CONFIG INFO   server.reverse_dns: False
07/Sep/2006:18:21:46 CONFIG INFO   server.socket_queue_size: 5
07/Sep/2006:18:21:46 CONFIG INFO   server.thread_pool: 10
07/Sep/2006:18:21:46 HTTP INFO Serving HTTP on http://localhost:8080/

Accessing http://localhost:8080/

127.0.0.1 - - [07/Sep/2006:18:22:19] "GET / HTTP/1.1" 200 - ""
"Mozilla/5.0 (X11; U; Linux i686; ko-KR; rv:1.8.0.6) Gecko/20060728
Firefox/1.5.0.6 (Debian-1.5.dfsg+1.5.0.6-3)"

Log is printed, but content is *not* displayed. If you reload, page
build time and size is displayed, but content is still not. If you try
other URL, it segfaults instead of showing nice 404 page with a
traceback.

Seo Sanghyeon
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] IronPython is Referenced on SlashDot

2006-09-07 Thread Keith J. Farmer








.. with all the typical
slashdottiness.  For all the typing they do, there’s precious little reading
going on.

 



-

Keith J. Farmer

[EMAIL PROTECTED]







From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Martin Maly
Sent: Wednesday, 06 September 2006 17:17
To: Discussion of IronPython
Subject: [IronPython] IronPython is Referenced on SlashDot





 

In case you missed it, there is an IronPython discussion on
SlashDot:

 

http://developers.slashdot.org/developers/06/09/06/2134234.shtml

 

Martin






___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-07 Thread Thane Plummer
Here's a link to the Udell video:

http://weblog.infoworld.com/udell/screenroom/ironpython_wmv.html 

 

An excellent overview of ipy by Jim.

 

At the risk of sounding redundant, thanks to the entire IronPython team for
creating such a great 1.0 release! 

 

"import this"

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith J. Farmer
Sent: Tuesday, September 05, 2006 8:40 PM
To: Discussion of IronPython
Subject: Re: [IronPython] [ANN] IronPython 1.0 released today!

 

So when and where's the party?  I'm just a building or so over ;)

 

I just watched the Udell video.  Great stuff

 

  _  

From: [EMAIL PROTECTED] on behalf of Jim Hugunin
Sent: Tue 9/5/2006 1:27 PM
To: users@lists.ironpython.com
Cc: python-list@python.org
Subject: [IronPython] [ANN] IronPython 1.0 released today!

I'm extremely happy to announce that we have released IronPython 1.0 today!
 http://www.codeplex.com/IronPython

<>___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com