Re: Python Object Systems
Il giorno mercoledì 13 agosto 2014 19:13:16 UTC+2, thequie...@gmail.com ha scritto: > What is the difference between traits and roles? People keep using the same names to mean different concepts. For me traits are the things described here: http://www.iam.unibe.ch/~scg/Archive/Papers/Scha03aTraits.pdf I have no idea of what you mean by roles. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
On Wednesday, August 13, 2014 4:32:04 AM UTC-4, Michele Simionato wrote: > Years ago I wrote strait: https://pypi.python.org/pypi/strait What is the difference between traits and roles? -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
Years ago I wrote strait: https://pypi.python.org/pypi/strait I wonder who is using it and for what purpose, since surprisingly enough it has 50+ downloads per day. For me it was more of an experiment than a real project. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
On 14-08-11 04:26 PM, thequietcen...@gmail.com wrote: ... Hello, has anyone created a survey of Python Object Systems? The two I am aware of are: - elk https://github.com/frasertweedale/elk - Traits http://code.enthought.com/projects/traits/ Here's the ones from my talk at Pycon 2005 (http://www.vrplumber.com/programming/descriptors-pycon2005.pdf): OpenGLContext/PyVRML97 http://bazaar.launchpad.net/~mcfletch/pyvrml97/trunk/files Observable, auto-coercing data properties w/ Numeric/numpy array support, defaults BasicProperty (now largely abandoned): http://bazaar.launchpad.net/~mcfletch/basicproperty/trunk/files Again, observable auto-coercing typed properties, defaults, introspection Zope2 FieldProperty, DublinCore, Validation, Observability PEAK Defaults, delegation, implicit feature loading Traits Delegation, typing, validation, defaults, Observability, introspection PyObjc, ctypes, JythonC, IronPython Function-like things with lots of metadata There's also a listing of the other tasks for which descriptors/object systems were expected to show up at the time, if you look for Python + that key-word you'll likely find a few dozen more "object systems" out there. You'll also likely find about a thousand metaclasses these days. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
thequietcen...@gmail.com: > I personally get tired of manually assigning attributes in a > __init__() method. It's not all that bad. Just do it. Marko -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
On 11/08/2014 22:26, thequietcen...@gmail.com wrote: On Monday, August 11, 2014 5:09:35 PM UTC-4, Marko Rauhamaa wrote: Elk and Traits implement a C++-style object model on top of Python. The systems enforce member access, type constraints etc and result in ugly code that barely looks like Python. I personally get tired of manually assigning attributes in a __init__() method. So at the bare minimum something like Atom will do if nothing else: https://github.com/nucleic/atom And I imagine yuppy would make you upchuck as well: https://github.com/kuujo/yuppy Would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the double line spacing and single line paragraphs above, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
On Monday, August 11, 2014 5:09:35 PM UTC-4, Marko Rauhamaa wrote: > > Elk and Traits implement a C++-style object model on top of Python. The > > systems enforce member access, type constraints etc and result in ugly > > code that barely looks like Python. I personally get tired of manually assigning attributes in a __init__() method. So at the bare minimum something like Atom will do if nothing else: https://github.com/nucleic/atom And I imagine yuppy would make you upchuck as well: https://github.com/kuujo/yuppy -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
Skip Montanaro : > On Mon, Aug 11, 2014 at 3:26 PM, wrote: >> has anyone created a survey of Python Object Systems? > > For the uninitiated, can you back up a step and define what you mean > by an "object system"? Elk and Traits implement a C++-style object model on top of Python. The systems enforce member access, type constraints etc and result in ugly code that barely looks like Python. Marko -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
On Monday, August 11, 2014 4:37:29 PM UTC-4, Skip Montanaro wrote: > On Mon, Aug 11, 2014 at 3:26 PM, wrote: > > > has anyone created a survey of Python Object Systems? > > > > For the uninitiated, can you back up a step and define what you mean > > by an "object system"? I mean a system by which one creates and manages Python objects. For instance, Python ships with an object system as documented here: https://docs.python.org/2/tutorial/classes.html However, some developers have found the need to add features to the standard Python object system (e.g. delegation, typing, etc), thus offering a new object system. So far, the following object systems have been found: * elk https://github.com/frasertweedale/elk * Traits http://code.enthought.com/projects/traits/ * yuppy https://github.com/kuujo/yuppy -- Terrence -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Object Systems
On Mon, Aug 11, 2014 at 3:26 PM, wrote: > has anyone created a survey of Python Object Systems? For the uninitiated, can you back up a step and define what you mean by an "object system"? The term seems kind of broad for Google ( number of hits for CLOS, etc), and Wikipedia just directs to a page on object-oriented programming. Thx, Skip -- https://mail.python.org/mailman/listinfo/python-list
Python Object Systems
(Cross-posted from http://www.reddit.com/r/Python/comments/2d9f7i/survey_of_python_object_systems/) Hello, has anyone created a survey of Python Object Systems? The two I am aware of are: - elk https://github.com/frasertweedale/elk - Traits http://code.enthought.com/projects/traits/ -- https://mail.python.org/mailman/listinfo/python-list