a little more help with python server-side scripting

Kent Johnson kent at kentsjohnson.com
Fri Feb 24 10:49:02 EST 2006


John Salerno wrote:
> Kent Johnson wrote:
> 
>> John Salerno wrote:
>>
>>> Magnus Lycka wrote:
>>>
>>>> The other option is ASP. You have been given information about
>>>> that already. Be aware that ASP does not imply VBScript. You can
>>>> use Python in ASP as long as that's enabled. It seems to be exactly
>>>> what you are asking for, so I don't understand why you seem to reject
>>>> it. Don't you like the file name endings?
>>>
>>>
>>>
>>> Maybe I'm misunderstanding what is meant when you say to use ASP. I'm 
>>> thinking that it involves having to learn another language (such as 
>>> C# with ASP.NET), instead of writing my code in Python. Is that not 
>>> the case?
>>
>>
>> See http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B276494
>>
>> The last example on this page is exactly what you have been asking for.
>>
>> Kent
> 
> 
> But isn't this code:
> 
> Response.Write('Python Test<br>')
> Response.write('<h3>Smaller heading</hr>')
> 
> written using ASP instead of Python?

No, it's Python code that calls the Write() method on the Response 
object that is exposed by ASP.

Kent



More information about the Python-list mailing list