|
| 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:
>
|
|