Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > web frameworks that support Python 3

Reply
Thread Tools

web frameworks that support Python 3

 
 
David Prager Branner
Guest
Posts: n/a
 
      08-23-2009
I use Chinese and therefore Unicode very heavily, and so Python 3 is
an unavoidable choice for me. But I'm frustrated by the fact that
Django, Pylons, and TurboGears do not support Python 3 yet and
(according to their development websites) will not for a very long
time to come.

So I am asking for recommendations for web frameworks that support
Python 3. I am running Ubuntu 9.04 (Jaunty).

Thanks!
 
Reply With Quote
 
 
 
 
Albert Hopkins
Guest
Posts: n/a
 
      08-23-2009
On Sun, 2009-08-23 at 13:13 -0700, David Prager Branner wrote:
> I use Chinese and therefore Unicode very heavily, and so Python 3 is
> an unavoidable choice for me. But I'm frustrated by the fact that
> Django, Pylons, and TurboGears do not support Python 3 yet and
> (according to their development websites) will not for a very long
> time to come.
>
> So I am asking for recommendations for web frameworks that support
> Python 3. I am running Ubuntu 9.04 (Jaunty).


Python 2.x has Unicode. In fact Django and the like use unicode
heavily.

What's different about Python 3 is that there is only unicode strings,
whereas Python 2 has a string type and a unicode type.

So it's not true that Python 3 is an unavoidable choice for using
unicode.


 
Reply With Quote
 
 
 
 
Sebastian Wiesner
Guest
Posts: n/a
 
      08-23-2009
At Sunday 23 August 2009 22:13:16 you wrote:
> I use Chinese and therefore Unicode very heavily, and so Python 3 is
> an unavoidable choice for me.

Python 2.x supports Unicode just as well as Python 3. Every common web
framework works perfectly with unicode.

In any case, there is bottle [1], which provides a *very minimal* framework
for WSGI web development. Don't expect too much, it is really small, and
doesn't do much more than routing and minimal templating.

However, it is the only Python-3-compatible web framework I know of.

[1] http://bottle.paws.de/page/start

--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)

iEYEABECAAYFAkqRp/EACgkQGV4vxEMMOxeGJACeM6Gb37XUOuHeES63orhSzHmr
7ScAn0+LkKDGifoCrQOPX4B2RIMpq6Vd
=vsNE
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Stefan Behnel
Guest
Posts: n/a
 
      08-23-2009
David Prager Branner wrote:
> I use Chinese and therefore Unicode very heavily, and so Python 3 is
> an unavoidable choice for me.


As others noted before, this statement is not true by itself.


> But I'm frustrated by the fact that
> Django, Pylons, and TurboGears do not support Python 3 yet and
> (according to their development websites) will not for a very long
> time to come.


http://wiki.python.org/moin/PortingDjangoTo3k

Stefan
 
Reply With Quote
 
Graham Dumpleton
Guest
Posts: n/a
 
      08-24-2009
On Aug 24, 6:34*am, Sebastian Wiesner <basti.wies...@gmx.net> wrote:
> At Sunday 23 August 2009 22:13:16 you wrote:> I use Chinese and therefore Unicode very heavily, and so Python 3 is
> > an unavoidable choice for me.

>
> Python 2.x supports Unicode just as well as Python 3. *Every common web
> framework works perfectly with unicode.
>
> In any case, there is bottle [1], which provides a *very minimal* framework
> for WSGI web development. *Don't expect too much, it is really small, and
> doesn't do much more than routing and minimal templating.
>
> However, it is the only Python-3-compatible web framework I know of.
>
> [1]http://bottle.paws.de/page/start


There is one big flaw with your claim. That is the there is no WSGI
specification for Python 3.0 as yet. Anything that claims to work with
WSGI and Python 3.0 is just a big guess as far as how WSGI for Python
3.0 may work.

I would therefore be a bit cautious with your claim.

Graham

 
Reply With Quote
 
Nobody
Guest
Posts: n/a
 
      08-25-2009
On Sun, 23 Aug 2009 16:32:09 -0400, Albert Hopkins wrote:

> What's different about Python 3 is that there is only unicode strings,
> whereas Python 2 has a string type and a unicode type.


Python 2 has "str" (char) and "unicode" (wchar) types.

Python 3 has "bytes" (char) and "str" (wchar) types.

The main difference is that Python 3 uses unicode "by default", i.e.
string literals are unicode rather than byte strings, variables
such as sys.argv and os.environ contain unicode strings, etc.

There are other differences, e.g.:

+ Passing a "bytes" object where "str" is expected will raise an exception
rather than using an automatic conversion
+ Subscripting a "bytes" object returns an integer between 0 and 255
+ upper(), isalpha(), etc assume ASCII rather than the system encoding

 
Reply With Quote
 
Aahz
Guest
Posts: n/a
 
      08-26-2009
In article <e9b627c8-eb88-4312-8777->,
Graham Dumpleton <> wrote:
>On Aug 24, 6:34=A0am, Sebastian Wiesner <basti.wies...@gmx.net> wrote:
>>
>> In any case, there is bottle [1], which provides a *very minimal* framewo=

>rk
>> for WSGI web development. =A0Don't expect too much, it is really small, a=

>nd
>> doesn't do much more than routing and minimal templating.
>>
>> However, it is the only Python-3-compatible web framework I know of.
>>
>> [1]http://bottle.paws.de/page/start

>
>There is one big flaw with your claim. That is the there is no WSGI
>specification for Python 3.0 as yet. Anything that claims to work with
>WSGI and Python 3.0 is just a big guess as far as how WSGI for Python
>3.0 may work.


Perhaps you meant "library" instead of "specification"? I don't
understand how a language can be missing a specification.
--
Aahz () <*> http://www.pythoncraft.com/

"I support family values -- Addams family values" --www.nancybuttons.com
 
Reply With Quote
 
exarkun@twistedmatrix.com
Guest
Posts: n/a
 
      08-26-2009
On 01:41 am, wrote:
>In article
><e9b627c8-eb88-4312-8777->,
>Graham Dumpleton <> wrote:
>>On Aug 24, 6:34=A0am, Sebastian Wiesner <basti.wies...@gmx.net> wrote:
>>>
>>>In any case, there is bottle [1], which provides a *very minimal*
>>>framewo=

>>rk
>>>for WSGI web development. =A0Don't expect too much, it is really
>>>small, a=

>>nd
>>>doesn't do much more than routing and minimal templating.
>>>
>>>However, it is the only Python-3-compatible web framework I know of.
>>>
>>>[1]http://bottle.paws.de/page/start

>>
>>There is one big flaw with your claim. That is the there is no WSGI
>>specification for Python 3.0 as yet. Anything that claims to work with
>>WSGI and Python 3.0 is just a big guess as far as how WSGI for Python
>>3.0 may work.

>
>Perhaps you meant "library" instead of "specification"?


He meant specification.

Python 3.x is different enough from any Python 2.x release that PEP 333
no longer completely makes sense. It needs to be modified to be
applicable to Python 3.x.

So, in the sense that there is no written down, generally agreed upon
specification for what WSGI on Python 3.x means, there is no...
specification.

There is, however, apparently, a library.

Jean-Paul
 
Reply With Quote
 
Graham Dumpleton
Guest
Posts: n/a
 
      08-26-2009
On Aug 26, 12:19*pm, exar...@twistedmatrix.com wrote:
> On 01:41 am, a...@pythoncraft.com wrote:
>
>
>
>
>
> >In article
> ><e9b627c8-eb88-4312-8777-1b0064186...@v15g2000prn.googlegroups.com>,
> >Graham Dumpleton *<graham.dumple...@gmail.com> wrote:
> >>On Aug 24, 6:34=A0am, Sebastian Wiesner <basti.wies...@gmx.net> wrote:

>
> >>>In any case, there is bottle [1], which provides a *very minimal*
> >>>framewo=
> >>rk
> >>>for WSGI web development. =A0Don't expect too much, it is really
> >>>small, a=
> >>nd
> >>>doesn't do much more than routing and minimal templating.

>
> >>>However, it is the only Python-3-compatible web framework I know of.

>
> >>>[1]http://bottle.paws.de/page/start

>
> >>There is one big flaw with your claim. That is the there is no WSGI
> >>specification for Python 3.0 as yet. Anything that claims to work with
> >>WSGI and Python 3.0 is just a big guess as far as how WSGI for Python
> >>3.0 may work.

>
> >Perhaps you meant "library" instead of "specification"?

>
> He meant specification.
>
> Python 3.x is different enough from any Python 2.x release that PEP 333
> no longer completely makes sense. *It needs to be modified to be
> applicable to Python 3.x.
>
> So, in the sense that there is no written down, generally agreed upon
> specification for what WSGI on Python 3.x means, there is no...
> specification.
>
> There is, however, apparently, a library.


If you are talking about wsgiref then that was somewhat broken in
Python 3.0. In Python 3.1 it works for some definition of works. The
problem again being that since WSGI specification hasn't been updated
for Python 3.X, that how it works will likely not match what the
specification may eventually say. This will become more and more of a
problem if WSGI specification isn't updated. At the moment the
discussion is going around in circles, although, if I put my
optimistic face on, I would say it is a slow inward spiral. Not quite
a death spiral at least.

Graham
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Re: Groovy and Grails vs. Java for Web Interface (see Java web application frameworks / architecture) Roedy Green Java 0 09-24-2009 01:28 PM
Integration of globalization data in Python web frameworks GinTon Python 1 10-20-2006 01:04 PM
Re: why don't many test frameworks support file-output? kanchy kang Python 1 02-24-2006 03:43 PM
why don't many test frameworks support file-output? kanchy kang Python 2 02-24-2006 09:01 AM



Advertisments