As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm working on an open source project (Master of Mana, a mod for Civilization 4) which uses Python 2.4.1 for several game mechanics. Is there a chance for a performance improvement if I try to upgrade to Python 2.7.3 or even 3.3.0?
Related to this, has anyone done a performance analysis on different Python versions?
Most newer Python versions bring new features.
Existing code parts are probably updated as well, either for performance or for extended functionality.
The former kind of changes bring a performance benefit, but extended functionality might lead to a poorer performance.
I don't know what is the relationship between these kinds of changes. Probably you will have to do some profiling on yourself.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need a noSQL solution that is fast, small, embedded (because I don't have root privilege) and supports Python. For now I just have two names: DyBASE, CodernityDB. Please help me find others and choose the best one. Thank you!!!
ZODB - It is not "small", I guess - but it is fast, it is native to Python - and it can certainly be installed without root privileges using buildout or even only virtualenv -
Here is a blog post showing how ZODB compares against sqlite - (and sqlite, in its turn, for single threaded code, performes quite well against larger SQL database systems - just look for benchmarks):
http://pyinsci.blogspot.com.br/2007/09/zodb-vs-relational-database-simple.html
Here is a link to the tutorial -
for being able to install it as in the tutorial, without adm privileges on the system,
first create a virtualenv and activate it:
http://www.zodb.org/en/latest/documentation/tutorial.html
Here is the link for ZODB and install instructions:
https://pypi.python.org/pypi/ZODB3/3.8.2
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm working on a project that requires me to bind some C++ libraries to Python. Just today I found out the details about SWIG, and I got excited to use it, but the website:
http://www.swig.org/ seems to be down, and not just for me. I don't know if I just came on a wrong day, or if the project has disappeared. Does anyone know what happened?
I was able to get a copy off of a GitHub mirror repo, and from Homebrew, but I'm not sure I should invest time in using it if the project has been dropped.
Thanks, I hope this is the right place to ask.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I'm looking for a good IDE to programming with Python, I found this http://ninja-ide.org/.
Did anyone try Ninja-IDE to programming Python or Django Apps, any suggestions about its use?
I personally use Netbeans for Python development mostly because I also use it for PHP and Java development. It works quite well for Python.
I prefer Aptana Studio 3, try it here!
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Although this question is very popular here in StackOverflow, after spending some time here and in the Google, I still haven't find a concrete answer on what is the most appropriate way to do SOAP consuming in Python 3.
I took a look at Does a Python 3 SOAP client module exist?, and I hope it is outdated and today some solution to this may have appeared.
I was thinking about some ideas:
Use 2to3 script to port some existing libraries to Python 3 (SOAPy, suds, etc).
Load an external module, by mixing technologies (Py3k + Jython, Py3k + Python 2.6, etc.)
Write in hardcode Python classes that corresponds to definitions of WSDL files (which implies in tight-coupling/high maintenance).
Write the software in Python 3.0, call the "python2.6-only" module functions through the execnet package. Which requires the Python 2.6 to be installed on the machine and the software written in Python3.0 to be a frozen binary.
Any ideas?
Thanks in advance
I would probably start by trying your suggested 2to3 port. For many things, it works pretty well. It would still be a day or two worth of work to convert something like suds, I imagine.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
We think about whether we should convert a quite large python web application to Python 3 in the near future.
All experiences, possible challenges or guidelines are highly appreciated.
My suggestion is that you stick with Python 2.6+, but simply add the -3 flag to warn you about incompatibilities with Python 3.0. Then you can make sure your Python 2.6 can be easily upgraded to Python 3.0 via 2to3, without actually making that jump quite yet. I would suggest you hold back at the moment, because you may at some point want to use a library and find out that it is only available for 2.6 and not 3.0; if you make sure to cleanup things flagged by -3, then you will be easily able to make the jump, but you will also be able to take advantage of the code that is only available for 2.6+ and which is not yet ready for 3.0.
For each third-party library that you use, make sure it has Python 3 support. A lot of the major Python libraries are migrated to 3 now. Check the docs and mailing lists for the libraries.
When all the libraries you depend on are supported, I suggest you go for it.