Re: [Tutor] attribute of built-in type
On Fri, Nov 28, 2008 at 3:55 PM, spir <[EMAIL PROTECTED]> wrote: > I try to find a way to give a cutom type ('s instances) attributes like some > built-in types have, for instance __name__. (For any reason, such attributes > are not equally shared by all kinds of objects.) > I tried to achieve that with inheritance, but I couldn't make it work with > built-in types. I suspect I should use metatypes -- but have no experience > in that field. It is probably not a proper use, anyway. I'm not sure what you are trying to accomplish. Custom classes have __name__ attributes; instances of built-in and custom classes don't have __name__ attributes. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] attribute of built-in type
Hello, I try to find a way to give a cutom type ('s instances) attributes like some built-in types have, for instance __name__. (For any reason, such attributes are not equally shared by all kinds of objects.) I tried to achieve that with inheritance, but I couldn't make it work with built-in types. I suspect I should use metatypes -- but have no experience in that field. It is probably not a proper use, anyway. Any hints welcome, thank you, denis ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] mod_python
"Jason DeBord" <[EMAIL PROTECTED]> wrote in using Python instead of PHP and would like to use Python's template style as well as a framework such as Pylons or Django. I can't speak for those two but ISTR that TurboGears had a fairly comprehensive set of notes on how to configure with lots of front ends including mod_python. Try checking out your preferred framework site you might find all you need there. mod_python is almost certainly not the *only* option, but it might be the best for you. Alan G ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] mod_python
Wsgi is also more portable than mod_python: mod_python is solely available on the Apache httpd, whereas wsgi is available on many more. --- Richard "Roadie Rich" Lovely Part of the JNP|UK Famille www.theJNP.com (Sent from my iPod - please allow me a few typos: it's a very small keyboard) On 28 Nov 2008, at 03:59 PM, "Serdar Tumgoren" <[EMAIL PROTECTED]> wrote: mod_wsgi is another option that supposedly has a smaller memory footprint and, in my case, proved easier to configure than mod_python http://code.google.com/p/modwsgi/ http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] mod_python
mod_wsgi is another option that supposedly has a smaller memory footprint and, in my case, proved easier to configure than mod_python http://code.google.com/p/modwsgi/ http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] mod_python
Is mod_python the only way to integrate python and apache2 ? I am interested in using Python instead of PHP and would like to use Python's template style as well as a framework such as Pylons or Django. Thanks in advance! -- - - - - - - - - - - - - - Jason Limoges, France ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor