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

Nick Coghlan ncoghlan at iinet.net.au
Fri Apr 14 06:41:52 CEST 2006


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 would just register a 
new open() signature for path objects.
Ditto for if we later added objects to represent URLs/URIs.
Cheers,
Nick.
-- 
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
 http://www.boredomandlaziness.org


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /