Tagged Questions
81
votes
11answers
79k views
Python: Best way to check for Python version in a program that uses new language features?
If I have a Python script that requires at least a particular
version of Python, what is the correct way to fail gracefully
when an earlier version of Python is used to launch the script?
How do I ...
60
votes
9answers
12k views
Standard way to embed version into python package?
Is there a standard way to associate version string with a python package in such way that I could do the following?
import foo
print foo.version
I would imagine there's some way to retrieve that ...
82
votes
7answers
66k views
How do I check what version of Python is running my script?
How can I check what version of the Python Interpreter is interpreting my script?
39
votes
3answers
23k views
Checking python module version at runtime
Many 3rd party python modules have an attribute which holds the version info for the module (usually something like module.VERSION or module.__version__), however some do not.
Particular examples of ...
5
votes
5answers
799 views
Is it advisable to go with Python 3.1 for a beginner? [duplicate]
Possible Duplicate:
What version of Python should I use if I’m a new to Python?
Is it advisable to go with Python 3.1 for a beginner? Or are there any severe drawbacks I would have to ...
3
votes
3answers
1k views
buildout - using different python version
i have set up buildout project (django to be specific) that has to run in old machine, it works fine in my local system with python 2.7.
In production server it runs python 2.5 and i want to ...
3
votes
2answers
517 views
Database Version Control for MySQL
What method do you use to version-control your database? I've committed all our database tables as separate .sql scripts to our respository (mercurial). In that way, if any member of the team makes a ...
21
votes
3answers
10k views
easy_install force a version
Mac os x 10.6.
Hello I'm trying to install lxml to solve an inkscape message. I've had a look at the website, and version 2.2.8 looked reasonable to me but when I did easy_install lxml it installed ...
8
votes
5answers
673 views
Is it still Python 2.6 versus Python 3?
G'day,
I'm wanting to go back to Python after not using it for a while and I saw this question "Python Version for a Newbie" while wondering about getting back into Python 2.6 or Python 3.
Almost ...
1
vote
1answer
182 views
Store versioned history of Field in a Django model
I have a model with a text field, that needs to be versioned.
class Book(models.Model):
title = models.CharField(max_length=100)
summary = models.TextField()
The expected behavior is as ...
1
vote
1answer
177 views
I am getting same version name for WSS and MOSS 2007?
I am getting same version name for WSS and MOSS 2007?
response = urllib2.urlopen(url)
print response.info().getheader('MicrosoftSharePointTeamServices')
I am using the above python code to get the ...