Re: [IronPython] .Net attributes/decorators

2010-05-18 Thread Hank Fay
com [mailto: > users-boun...@lists.ironpython.com] *On Behalf Of *Hank Fay > *Sent:* Tuesday, May 18, 2010 11:11 AM > *To:* Discussion of IronPython > *Subject:* [IronPython] .Net attributes/decorators > > > > In reviewing the discussion of .Net decorators in the list (thank

Re: [IronPython] .Net attributes/decorators

2010-05-18 Thread Dino Viehland
ing change - so for example if some code as doing dir() it's not going to freak out because there's some unexpected attributes. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Hank Fay Sent: Tuesday, May 18, 2010 11:11 AM To: Di

Re: [IronPython] .Net attributes/decorators

2010-05-18 Thread Lepisto, Stephen P
n.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Hank Fay Sent: Tuesday, May 18, 2010 11:11 AM To: Discussion of IronPython Subject: [IronPython] .Net attributes/decorators In reviewing the discussion of .Net decorators in the list (thank you Google Groups), I did not come acr

[IronPython] .Net attributes/decorators

2010-05-18 Thread Hank Fay
In reviewing the discussion of .Net decorators in the list (thank you Google Groups), I did not come across a discussion of what I saw as the central issue: is IronPython to be a Superset of Python (every Python program will run in IronPython, not every IronPython program will run in Python), or is

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
* users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Lukas Cenovsky *Sent:* Friday, November 13, 2009 5:42 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] .NET attributes for methods This looks very promising but I cannot make it work. I h

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
13, 2009 5:42 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] .NET attributes for methods This looks very promising but I cannot make it work. I have changed product.py in DevHawk's example to: #from clrtypeold import ClrMetaclass import clrtype class Product(object): #__

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Shri Borde
operty( fget=self.fget, fset=newsetter, fdel=self.fdel, doc=self.__doc__) From: Lukas Cenovsky [mailto:cenov...@bakalari.cz] Sent: Thursday, November 12, 2009 11:01 AM To: Shri Borde Subject: Re: [IronPython] .NET attributes for methods Shri Borde wrot

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
doc=self.__doc__) *From:* Lukas Cenovsky [mailto:cenov...@bakalari.cz] *Sent:* Thursday, November 12, 2009 11:01 AM *To:* Shri Borde *Subject:* Re: [IronPython] .NET attributes for methods Shri Borde wrote: So the new clrtype.py still works - cool! Yep ;-) I am not

Re: [IronPython] .NET attributes for methods

2009-11-13 Thread Lukas Cenovsky
fset=newsetter, fdel=self.fdel, doc=self.__doc__) *From:* Lukas Cenovsky [mailto:cenov...@bakalari.cz] *Sent:* Thursday, November 12, 2009 11:01 AM *To:* Shri Borde *Subject:* Re: [IronPython] .NET attributes for methods Shri Borde wrote: So the new c

Re: [IronPython] .NET attributes for methods

2009-11-12 Thread Curt Hagenlocher
t; > > > *From:* Lukas Cenovsky [mailto:cenov...@bakalari.cz] > *Sent:* Thursday, November 12, 2009 8:09 AM > *To:* Shri Borde > *Subject:* Re: [IronPython] .NET attributes for methods > > > > Thanks, that works! > > What do you think would be the best approach to

Re: [IronPython] .NET attributes for methods

2009-11-12 Thread Shri Borde
.html use any feature not available in Silverlight? From: Lukas Cenovsky [mailto:cenov...@bakalari.cz] Sent: Thursday, November 12, 2009 8:09 AM To: Shri Borde Subject: Re: [IronPython] .NET attributes for methods Thanks, that works! What do you think would be the best approach to create notif

Re: [IronPython] .NET attributes for methods

2009-11-10 Thread Shri Borde
to inspect the object and also make sure that no exceptions were thrown? From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Tuesday, November 10, 2009 2:59 PM To: Discussion of IronPython Subject: Re: [IronPython] .NET attribu

Re: [IronPython] .NET attributes for methods

2009-11-10 Thread Lukas Cenovsky
lf Of Lukas Cenovsky Sent: Thursday, October 22, 2009 10:37 AM To: Discussion of IronPython Subject: [IronPython] .NET attributes for methods Hi, I have read all DewHawk blogposts about .Net attributes in IronPython via __clrtype__ metaclass (http://devhawk.net/CategoryView,category,__clrtype_

Re: [IronPython] .NET attributes for methods

2009-11-02 Thread Shri Borde
et a dll. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Monday, November 02, 2009 9:29 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes for methods I was thinking about this... Does ir mean that (af

Re: [IronPython] .NET attributes for methods

2009-11-02 Thread Lukas Cenovsky
d not get called") This does not work today... *From:* users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Lukas Cenovsky *Sent:* Friday, October 30, 2009 10:41 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] .NET attributes f

Re: [IronPython] .NET attributes for methods

2009-10-30 Thread Shri Borde
cussion of IronPython Subject: Re: [IronPython] .NET attributes for methods Thanks. I wanted to implement WCF service in pure Ironpython but I overlooked the [OperationContract] method attribute is used in the interface declaration. Anyway, thanks to class attributes it is now possible to impleme

Re: [IronPython] .NET attributes for methods

2009-10-30 Thread Lukas Cenovsky
utes for (other than DllImport for pinvokes)... -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Thursday, October 22, 2009 10:37 AM To: Discussion of IronPython Subject: [IronPython] .NET attributes

Re: [IronPython] .NET attributes for methods

2009-10-25 Thread Shri Borde
ethod attributes for (other than DllImport for pinvokes)... -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Lukas Cenovsky Sent: Thursday, October 22, 2009 10:37 AM To: Discussion of IronPython Subject: [IronPython] .NET attri

[IronPython] .NET attributes for methods

2009-10-22 Thread Lukas Cenovsky
Hi, I have read all DewHawk blogposts about .Net attributes in IronPython via __clrtype__ metaclass (http://devhawk.net/CategoryView,category,__clrtype__.aspx). He describes how to add attributes to classes but not to methods. Is there any example how to add attributes to a method. It looks li

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
ord http://www.voidspace.org.uk/python/index.shtml > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Moad > Sent: Friday, September 15, 2006 7:46 AM > To: Discussion of IronPython > Subject: Re: [IronPython] .NET attributes > > On

Re: [IronPython] .NET attributes

2006-09-15 Thread Hernan M Foffani
> Charlie's earlier point about all the different targets is a really good one > though - worse than even properties are things like arguments, return types, > etc... that won't fit in at all w/ decorators. You could imagine allowing > the > syntax anywhere, but there'd be no way to disambiguate

Re: [IronPython] .NET attributes

2006-09-15 Thread Dino Viehland
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Moad Sent: Friday, September 15, 2006 7:46 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote: > Charlie Moad wrote: > >> Take away

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: > On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote: > >> Charlie Moad wrote: >> Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: > On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote: > >> Charlie Moad wrote: >> Take away decorator support and you'll lose at least this Python programmer... Decorators and attributes have at least some commonality, which is why this syntax ended

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote: > Charlie Moad wrote: > >> Take away decorator support and you'll lose at least this Python > >> programmer... > >> Decorators and attributes have at least some commonality, which is why > >> this syntax ended up in Python in the first place... >

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: >> Take away decorator support and you'll lose at least this Python >> programmer... >> Decorators and attributes have at least some commonality, which is why >> this syntax ended up in Python in the first place... >> Allowing decorator syntax in places CPython doesn't is better

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
> Take away decorator support and you'll lose at least this Python > programmer... > Decorators and attributes have at least some commonality, which is why > this syntax ended up in Python in the first place... > Allowing decorator syntax in places CPython doesn't is better than not > allowing it w

Re: [IronPython] .NET attributes

2006-09-15 Thread David Fraser
Charlie Moad wrote: > On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote: > >> Charlie Moad wrote: >> >>> On 9/14/06, Dino Viehland <[EMAIL PROTECTED]> wrote: >>> >>> We're tentatively thinking that this is a 2.0 feature but if we figured out a syntax we really liked we'd

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
On 9/15/06, Michael Foord <[EMAIL PROTECTED]> wrote: > Charlie Moad wrote: > > On 9/14/06, Dino Viehland <[EMAIL PROTECTED]> wrote: > > > >> We're tentatively thinking that this is a 2.0 feature but if we figured > >> out a syntax we really liked we'd try to get it into 1.1. > >> > >> > > > > It s

Re: [IronPython] .NET attributes

2006-09-15 Thread Hernan M Foffani
> >> We're tentatively thinking that this is a 2.0 feature but if > >> we figured out a syntax we really liked we'd try to get it into 1.1. > >> > > It seems as if there are two clean ways to do this in my mind. > > > > 1. Use python2.4's decorator sytax and extend it to allow class and > > class v

Re: [IronPython] .NET attributes

2006-09-15 Thread Michael Foord
Charlie Moad wrote: > On 9/14/06, Dino Viehland <[EMAIL PROTECTED]> wrote: > >> We're tentatively thinking that this is a 2.0 feature but if we figured out >> a syntax we really liked we'd try to get it into 1.1. >> >> > > It seems as if there are two clean ways to do this in my mind. > >

Re: [IronPython] .NET attributes

2006-09-15 Thread Charlie Moad
On 9/14/06, Dino Viehland <[EMAIL PROTECTED]> wrote: > We're tentatively thinking that this is a 2.0 feature but if we figured out a > syntax we really liked we'd try to get it into 1.1. > It seems as if there are two clean ways to do this in my mind. 1. Use python2.4's decorator sytax and exten

Re: [IronPython] .NET attributes

2006-09-14 Thread Dino Viehland
cussion of IronPython Subject: [IronPython] .NET attributes What is the expected timeline for support for .NET attributes in IronPython? -- Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo

Re: [IronPython] .NET attributes

2006-09-13 Thread Aaron Marten
From: [EMAIL PROTECTED] On Behalf Of Charlie Moad Sent: Wednesday, September 13, 2006 5:42 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET attributes I have seen these examples, but my impression was that they are not useable. The generic web site one may be, but I am pr

Re: [IronPython] .NET attributes

2006-09-13 Thread Charlie Moad
I have seen these examples, but my impression was that they are not useable. The generic web site one may be, but I am pretty sure the web service example does not expose any methods as services. On 9/13/06, S H Yoon <[EMAIL PROTECTED]> wrote: > "C:\Program Files\Visual Studio > 2005SDK\2006.08\V

Re: [IronPython] .NET attributes

2006-09-13 Thread S H Yoon
"C:\Program Files\Visual Studio 2005SDK\2006.08\VisualStudioIntegration\Samples\IronPythonIntegration\WebSiteProject\WebSiteProject.proj"Seems like here and below this tree. I see plenty of examples of IPY web including Webservice. Is there a good guide to these? I am compeletly ignorant about ASP.

Re: [IronPython] .NET attributes

2006-09-13 Thread Charlie Moad
On 9/13/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote: > What is the expected timeline for support for .NET attributes in IronPython? I know this has probably been brought up before, but I wanted to speak up to maybe put a little more priority behind this. I personally feel limited many times becau

[IronPython] .NET attributes

2006-09-13 Thread Sanghyeon Seo
What is the expected timeline for support for .NET attributes in IronPython? -- Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] NET Attributes.

2006-07-27 Thread Tim Riley
OTECTED]] *On Behalf Of *Tim Riley> *Sent:* Wednesday, July 26, 2006 10:17 AM > *To:* Discussion of IronPython> *Subject:* [IronPython] NET Attributes.>> Is it possible to use .NET attributes in IronPython? For example I> have C# code that looks like:>> [CommandMethod("MyC

Re: [IronPython] NET Attributes.

2006-07-26 Thread Michael Foord
:-( Fuzzyman http://www.voidspace.org.uk/python/index.shtml > Martin > > > > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] *On Behalf Of *Tim Riley > *Sent:* Wednesday, July 26, 2006 10:17 AM > *To:* Discussion of IronPython > *Subject:* [IronPython

Re: [IronPython] NET Attributes.

2006-07-26 Thread Martin Maly
.   Martin   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Riley Sent: Wednesday, July 26, 2006 10:17 AM To: Discussion of IronPython Subject: [IronPython] NET Attributes.   Is it possible to use .NET attributes in IronPython? For example I have C# code that looks like

[IronPython] NET Attributes.

2006-07-26 Thread Tim Riley
Is it possible to use .NET attributes in IronPython? For example I have C# code that looks like:[CommandMethod("MyCommand", CommandFlags.Modal)]public static void RunMyCommand(){    'code here }Can I do something similiar in IP? I'll take anything. ___ us

Re: [IronPython] .NET Attributes

2006-03-28 Thread J. Merrill
At 05:52 PM 3/28/2006, Dino Viehland wrote (in part) >[snip]There's actually a lot of interesting problems [with] runtime vs. >compile time. For example if we were to do a from __experimental__ import ... >for optional static typing [snip] At least one interpreter for a different dynamic langua

Re: [IronPython] .NET Attributes

2006-03-28 Thread Dino Viehland
m: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ernst, Nathan Sent: Tuesday, March 28, 2006 5:42 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes I wouldn't give up completely on using decorators for classes. True, Python 2.4 doesn't support them on

Re: [IronPython] .NET Attributes

2006-03-28 Thread Keith J. Farmer
, 28 March 2006 05:42 To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes I wouldn't give up completely on using decorators for classes. True, Python 2.4 doesn't support them on classes, only functions. I think consistency should be sought here. After reading PEP 318 (

Re: [IronPython] .NET Attributes

2006-03-28 Thread Ernst, Nathan
yntax. -Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent: Monday, March 27, 2006 11:45 PM To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes I like this too... It's interesting that while the syntax isn&#x

Re: [IronPython] .NET Attributes

2006-03-27 Thread Dino Viehland
this brings it all together. From: [EMAIL PROTECTED] On Behalf Of Sanghyeon Seo Sent: Monday, March 27, 2006 8:58 PM To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes 2006/3/28, Sanghyeon Seo <[EMAIL PROTECTED]>: > I like __attribu

Re: [IronPython] .NET Attributes

2006-03-27 Thread Sanghyeon Seo
2006/3/28, Sanghyeon Seo <[EMAIL PROTECTED]>: > I like __attributes__ solution. As pointed out already, decorators can't be used with classes as of 2.4. But __attributes__ can be attached to classes or functions. I agree that decorators would be nice. Perhaps something like the following in clr m

Re: [IronPython] .NET Attributes

2006-03-27 Thread Sanghyeon Seo
2006/3/28, Dino Viehland <[EMAIL PROTECTED]>: The second problem is also just as tough, but it's completely different. How do you even express an attribute on a class? There's no Python syntax for this so we'd have to add something new. It'd be great if we could use decorators here, but they don

Re: [IronPython] .NET Attributes

2006-03-27 Thread Eric Larson
My only point is that new decorators shouldn't be included unless they are available in the language. I know Guido said something about them at PyCon but I can't remember what :)I have no problems with decorators by the way. Cherrypy (a web framework/library) uses a decorator-ish syntax, so if impl

Re: [IronPython] .NET Attributes

2006-03-27 Thread Keith J. Farmer
For the purposes of consistency, the attribute decorators would need to apply everywhere an attribute is able to exist in .NET: types, members, etc. In the case of Serializable, merely subclassing ISerializable isn't necessarily the best way, since a class can be decorated with SerializableAtt

Re: [IronPython] .NET Attributes

2006-03-27 Thread Dino Viehland
:11 AM To: Discussion of IronPython Subject: Re: [IronPython] .NET Attributes   On the topic of decorators and integrating with .NET, it seems that in order to keep IronPython as close to CPython, it would be a good idea to consider adding .NET specific pieces as a "library" ins

Re: [IronPython] .NET Attributes

2006-03-27 Thread Eric Larson
On the topic of decorators and integrating with .NET, it seems that in order to keep IronPython as close to CPython, it would be a good idea to consider adding .NET specific pieces as a "library" instead of an addition to the language. That way people could write python code that works in IronPytho

Re: [IronPython] .NET Attributes

2006-03-27 Thread Dino Viehland
mic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrzej Krzywda Sent: Monday, March 27, 2006 4:55 AM To: users@lists.ironpython.com Subject:

[IronPython] .NET Attributes

2006-03-27 Thread Andrzej Krzywda
Hi, When there will be support for .NET Attributes in IronPython? Is there any way currently to mark my class as Serializable? -- Andrzej ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com