|
I have no experience compiling code other than using Visual Studio's Build command. I am hoping we can create a step by step guide for compiling mod_python on windows. Please be as descriptive as possible.
This is what I've done so far:
Download and install...
Started by John on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
It to "C:\Apache"
After installing python, make sure it is in your PATH
The SVN trunk will incluce a Windows build script for mod_python that builds two products, mod_python itself and "PSP", which stands for "Python Server....
|
|
I am about to learn Python and was wondering what is recommended, learning python 2.6 or 3.1? (any tips on learning python is welcomed as well =)
edit: Is the difference really big between the two? If I learn python 2 will i have trouble learning python...
Answer Snippets (Read the full thread at stackoverflow):
If you're looking to learn....
I feel it's an easy (and awesome) language to pick up .
Python 2.6 and the rest of the 2.x versions Python? Just start using it and find online documentation for it.
You really want to stick with the later version.
|
|
How do I execute a string containing Python code in Python?
Started by hekevintran on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Function .Another solution is to write that string to a temporary python file and execute.
|
Ask your Facebook Friends
|
I have no experience compiling code other than using Visual Studio's Build command. I am hoping we can create a step by step guide for compiling mod_python on windows. Please be as descriptive as possible.
This is what I've done so far:
Download and install...
Started by John on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You should check this link: http://old.nabble.com/APR_BRIGADE_SENTINEL-macro-causes-compile-error-td20873779.html.
One already exists.
|
|
If I learn python 3.0 and code in it, will my code be still compatible with Python 2.6 (or 2.5 too!)?
Remarkably similar to:
If I'm Going to Learn Python, Should I Learn 2.x or Just Jump Into 3.0?
Started by Xolve on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
There honestly aren't very many.
Python 2.6 and Python 3.0 are very compatible with each other.
Python 3 code .
Mostly intended for library developers to port to it so that it can be usable .
|
|
Is it possible to capture Python interpreter's output from a Python script? Is it possible to capture Windows CMD's output from a Python script? If so, which librar(y|ies) should I look into?
Started by guillermooo on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're talking ....
If you are talking about the python interpreter or CMD.exe that is the 'parent' of your to the console, but redirection is possible using the pipe notation:
python script_a.py | python on Wikipedia.
In 17.1.2.
|
|
It seems they all on Python 2.x.
(Actually I want a more widely-used engine that has Python 3.x support.)
Started by sjthebat on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://lucumr.pocoo.org/2010/2/10/jinja-2-3-released.
Just released Jinja 2.3 has experimental support for Python 3.
Which says it works on Python 2.4, 2.5, 2.6 and 3.0 .
|
|
I'm trying to refactor a fairly hefty view function in Django. There are too many variables floating around and it's a huge function.
Ideally, I want to modularize the view into logical functions. However, I have to pass the function context around to...
Started by vaughnkoch on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Doing this also lets you turn similar views into object instances:
class .
Python classes can be callable just like functions, if you define a __call__ method any other python function.
Passes to it.
|
|
If I'm absolutely new to Python and am literally reading about printing statements to console, variable types, collections, etc:
What version of Python should I use?
I'm aware that there is an abundance of 3rd party libraries for Python 2.6.x, but I'm...
Started by John McClane on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
For 2.6 (not sure about 2.5) , if you require the new print functionality, you can always do speaking Python 3 "isn't ....
Read the documents on Python 3.0 and what's new in its in Python 3.0.
Right now is to learn the language well.
|
|
Possible Duplicate:
Is switching from PHP to Python worth the trouble
I consider myself knowledgeable enough in PHP, what are some of the big reasons I should make the investment in learning python? Is there anything that is stunningly better in python...
Started by ACBurk on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Off the top of my head, Python:
Syntax is way cleaner active development and documentation....
Python is a do anything language, PHP is for web scripting.
There really is not comparison here.
It's worthwhile to read its official tutorials.
|