Re: a new object definition

2006-09-06 Thread Steven Bethard
Sylvain Ferriol wrote: > with the 'make' syntax, it will be really easy to translate a program or > a data structure defined in XML format into python syntax. Only if there are no ordering constraints and no need for multiple elements with the same name. The make statement was built to mirror t

Re: a new object definition

2006-09-04 Thread Sylvain Ferriol
> Michele Simionato already pointed you to `PEP 359`_. One of the reasons > that I withdrew it was that people seemed to feel that you could get > most of what you want now by defining appropriate metaclasses. In your > case, for example, the appropriate metaclass and its usage might look > l

Re: a new object definition

2006-09-01 Thread Steven Bethard
Sylvain Ferriol wrote: > hello everybody, > > i want to talk with you about a question i have in mind and i do not > find a answer. it 's simple: > why do we not have a beatiful syntax for object definition as we have > for class definition ? > > we can define a class in python in 2 ways: > 1. b

Re: a new object definition

2006-09-01 Thread Sylvain Ferriol
Michele Simionato a écrit : > Sylvain Ferriol wrote: > >>Michele Simionato a écrit : >> >>>See http://www.python.org/dev/peps/pep-0359 (already rejected by >>>Guido). >>> >> >>i do not understand the withdrawal note, what do "different level" mean ? >>do you have an example or is it python core i

Re: a new object definition

2006-09-01 Thread Michele Simionato
Sylvain Ferriol wrote: > Michele Simionato a écrit : > > > > See http://www.python.org/dev/peps/pep-0359 (already rejected by > > Guido). > > > i do not understand the withdrawal note, what do "different level" mean ? > do you have an example or is it python core implemantation problem ? I asked

Re: a new object definition

2006-09-01 Thread Sylvain Ferriol
Michele Simionato a écrit : > Sylvain Ferriol wrote: > >>hello everybody, >> >>i want to talk with you about a question i have in mind and i do not >>find a answer. it 's simple: >>why do we not have a beatiful syntax for object definition as we have >>for class definition ? > > > See http://www

Re: a new object definition

2006-09-01 Thread Bruno Desthuilliers
Sylvain Ferriol wrote: > hello everybody, > > i want to talk with you about a question i have in mind and i do not > find a answer. it 's simple: > why do we not have a beatiful syntax for object definition as we have > for class definition ? Python's classes are objects too - instances of their

Re: a new object definition

2006-09-01 Thread Michele Simionato
Sylvain Ferriol wrote: > hello everybody, > > i want to talk with you about a question i have in mind and i do not > find a answer. it 's simple: > why do we not have a beatiful syntax for object definition as we have > for class definition ? See http://www.python.org/dev/peps/pep-0359 (already r

a new object definition

2006-09-01 Thread Sylvain Ferriol
hello everybody, i want to talk with you about a question i have in mind and i do not find a answer. it 's simple: why do we not have a beatiful syntax for object definition as we have for class definition ? we can define a class in python in 2 ways: 1. by using the metaclass constructor my