Re: [Python-3000] Another generic functions/adaptation use case

2006-04-14 Thread Manuzhai
Nick Coghlan wrote: > Another potential generic function use case that occurred to me is the open() > builtin. I think this is a great idea. For example, I'd like to use open() to do simple HTTP fetching (for simple GET requests). This would allow for things somewhat similar to PHP's streams AP

Re: [Python-3000] Another generic functions/adaptation use case

2006-04-14 Thread Guido van Rossum
On 4/14/06, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Another potential generic function use case that occurred to me is the open() > builtin. > > If that was extensible, the discussion about providing a nice filesystem path > abstraction in the standard lib wouldn't need to waste any time on the >

[Python-3000] Another generic functions/adaptation use case

2006-04-13 Thread Nick Coghlan
Another potential generic function use case that occurred to me is the open() builtin. If that was extensible, the discussion about providing a nice filesystem path abstraction in the standard lib wouldn't need to waste any time on the question of whether or not to inherit from unicode - it wou