<div class="gmail_quote">On Mon, May 16, 2011 at 10:48 PM, Navkirat Singh <span dir="ltr"><<a href="mailto:n4vpython@gmail.com">n4vpython@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Guys,<div><br></div><div>I have been trying to fight this issue for sometime now. I know that a large part of the python 3rd party software base has not been ported to python 3 yet. I am trying to build a web-based enterprise solution for my client. Most of reputed frameworks like Django and Turbo gears are yet in the 2.x stage. I know that these frameworks are extremely good. But I wanted to build my base with python 3 as that is what is going to prevail in the future. </div>

<div><br></div><div>I have built my own little architecture using python3. Here is what I have accomplished till now:</div><div><br></div><div>a) A multiprocessing webserver built directly using low level sockets for maximum control, conforming to RFC 2616 (not completely right now).</div>

<div>b) A HTTP message parser  for parsing HTTP/1.1 requests and generating response messages</div><div>c) A session control base using python multiprocessing dictionary manager</div><div>d) A partially build MVC model, without a templating engine at the moment. I am planning to put Jinja 3 there.</div>

<div><br></div><div>I have spent months of free time doing this. I have learnt a lot, but well I am not sure if the path I am on is the right one. </div><div><br></div><div>My question to everyone is whether I should go ahead with this approach, or should I just use 2.x technology? I am not sure if I will be able to port all the code to python3 later.</div>

<div><br></div><div>I will really appreciate any input.</div><div><br></div><div>Thanks and regards,</div><div>Navkirat</div>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><div>I would say go Python 3, unless you have a dependency that prevents it.  There was a lot of talk at pycon this year about how the rate of Python 3 transition is drastically increasing.   Many of the large projects (as well as pypy, ironpython, and jython) talked about their transition plans for Python 3 in the next year or two. </div>
<div><br></div><div>The expectation is that this year will see a switch across many projects.  It is a snowball effect, as more dependencies transition the remaining ones have less reason to stay on Python 2.  The anticipation was to see everyone on Python 3 by 5 years after its release.  It was released  just over 2.5 years ago.</div>
<div><br></div><div>Here are some references that you might find helpful:</div><div><br></div><div><a href="http://wiki.python.org/moin/Python2orPython3">http://wiki.python.org/moin/Python2orPython3</a></div><div><a href="http://py3ksupport.appspot.com/">http://py3ksupport.appspot.com/</a></div>
<div><a href="http://dev.pocoo.org/~gbrandl/py3pkgs.png">http://dev.pocoo.org/~gbrandl/py3pkgs.png</a></div><div><br></div><div>Cheers,</div><div><br></div><div>-eric</div><div><br></div><div><br></div>