![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: PEP on path module for standard library
From: Andrew Dalke <dalke@dalkescientific.com>
Date: Sun Jul 31 2005 - 09:28:13 CEST
Peter Hansen wrote:
I have been able to do this by inserting my own module-scope function
For example,
module.open = mock_open
By looking at the call stack it is possible to replace the built-in
> Object-oriented solutions like Path make it near trivial to substitute a
By analogy to the other builtins, another solution is to have a
> So, for the PEP, another justification for Path is that its use can
But then what does the constructor for the file object take?
I've also heard mention that a future (Py3K era) 'open' may allow
Andrew
|