Apache Mod-Python - Re: mod_python 3.2.3b available for testing

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > October 2005 > Re: mod_python 3.2.3b available for testing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: mod_python 3.2.3b available for testing
Nick

2005-10-25, 5:46 pm

Right, that's exactly what I'm having to do; I was thinking though that
mod_python should present a consistent interface, even if Python doesn't.

And, it is a bug in Python, even if it's a documentation bug (which claims
that the behavior of fdopen is to return a file object). I disagree that
documenting this fact in mod_python without changing the code doesn't amount
to saying you don't support Windows. It just means you support Windows to
the extent that Python itself does.

Nick

Indrek Järve wrote:[vbcol=seagreen]
> This behaviour has been with Python for quite a while, so claiming it's
> simply a Python bug will be the same as declaring we don't support Windows.
>
> Our company's software that runs on Windows and uses mod_python simply
> patches util.py with the following change:
> 227c227
> < if isinstance(item.file, FileType):
> ---
> (hasattr(item.file, 'file') and isinstance(item.file.file, FileType)):
>
> I haven't tried this with mp32 yet (we're still running on Python 2.3
> and I haven't had time to investigate how to compile mp on Windows), but
> on 3.0/3.1 it appears to work just fine for our customers.
>
> Best regards,
> Indrek Järve
> Inversion Software OÜ
>
> Nick wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com