Are there any Python template engines that support Python 3.x - templates

It seems they all run on Python 2.x.
(Actually I want a more widely-used engine that has Python 3.x support.)

Just released Jinja 2.3 has experimental support for Python 3. http://lucumr.pocoo.org/2010/2/10/jinja-2-3-released

If you don't mind using beta software, the newly-released moody-templates was written for Python 3 from the ground up.
https://github.com/etianen/moody-templates

Maybe very outdated, but Mako supports python 3.

The first search result is the templating wiki page; which includes at least one templating engine which says it works on Python 2.4, 2.5, 2.6 and 3.0.

Related

What is the last grpcio version to support Python 2.7?

The company I'm working for is still in the process of going over from Python 2.7 to Python 3, so I'm stuck with Python 2.7 even though it is officially already end of life.
For a project I'm looking into grpc, but I see that the latest versions do not support Python 2.7 anymore.
But since I'm stuck with Python 2.7 my question is simple: what is the latest version of grpcio which still supports Python 2.7?
You can find the supported version in PyPI pages. On the bottom left corner, if there is a "2.7" tag in the "Classifiers" section, that means 2.7 is supported. Using this method, we can find the latest grpcio version for 2.7 to be v1.39.0: https://pypi.org/project/grpcio/1.39.0/

Choosing the appropriate version of Python runtime to use along with TensorFlow

How can I choose the appropriate version of Python runtime to use along with TensorFlow 1.0 ?
I would invite you to check the TensorFlow installation page which gives all the detail for your specific system. At the moment, TensorFlow supports Python 2.7, 3.4, 3.5, 3.6, although it seems 3.6 does not yet have GPU support. If you're starting out with Python, you should probably get 3.5 (if you need GPU) or 3.6 (if you'll only use CPU). Python 2.7 was released a long time ago.
If you don't already have Python, you can get it from the Python website. However, I recommend you get Python through Anaconda so that you get all necessary packages to run things like TensorFlow.

Pyparsing for Python 3

I have recently installed PyParsing, but I saw that it's only available on Python 2, but I use Python 3.
I just don't want to learn Python 2, so is there a way to configure/port PyParsing to Python 3?
My suggestion would be to learn python-2.x. It isn't exactly learning, since you already know the language, you just need to familiarize yourself with the syntax, for which this link and this link help.

Django 1.5 : Python 2.7 or Python 3

Django just release their 1.5 version.
It now supports Python 3, my question is quite simple indeed: With this 1.5 Version, should I still use Python 2.7 or Python 3 ? I assume that with Python 3 there will be some issues with 3rd parties app no ?
In your case, what would you do ?
The release notes state clearly that Python 3 support in 1.5 is experimental. And yes, third-party apps will be a problem.
If I was starting a new development which I didn't expect to go live until well after version 1.6 is released (when Python 3 support is supposed to be production ready, and hopefully the 3rd party apps have caught up) , then yes, I would go with Python 3. It is significantly cleaner than Python 2.7.
But if you want your site up and running in the near future, stick with 2.7.
I would still use python 2.7 because many apps and libraries are not ready for python 3.x
PIL is not working correctly with python 3

Why does my Clojure import fail?

I'm running Clojure 1.3 with contrib 1.1 in IntelliJ. My program consists of a single line
(use 'clojure.contrib.prxml)
I get the following error upon running
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.RestFn.<init>(I)V
I'm running Clojure 1.3 with contrib 1.1
There's your problem. Clojure and contrib versions are linked against each other, and are not compatible across versions.
Even more, contrib has been split up into lots of smaller libraries as of 1.3, so there is really no version of "monolithic contrib" that you can use with 1.3.
In addition to the answers saying that contrib 1.1 is incompatible with clojure 1.3
Taken from here:
Versions of clojure-contrib are matched to versions of Clojure.
If you are using Clojure 1.0, use clojure-contrib 1.0.
If you are using Clojure 1.1, use clojure-contrib 1.1.
If you are using Clojure 1.2, use clojure-contrib 1.2, or the new modular Contrib libraries.
If you are using Clojure 1.3, use the new modular Contrib libraries.
As of the date of this reply I'm not sure if there is a version of clojure.contrib.prxml that is compatible with clojure-1.3 (Someone please correct me if I'm wrong).
So I would suggest using clojure-1.2.1 and clojure-contrib 1.2.0.
Nothing is wrong with the call works with clojure 1.2 and contrib 1.2
If you don't need anything 1.3 specific I would suggest sticking to 1.2 for the time being, use clojure 1.2 and contrib 1.2 until contrib authors properly make the transition to 1.3