Message 97871 - Python tracker
Message97871
| Author | flox |
|---|---|
| Recipients | ezio.melotti, flox, pitrou |
| Date | 2010-01-16.11:42:31 |
| SpamBayes Score | 1.1184428e-05 |
| Marked as misclassified | No |
| Message-id | <1263642154.87.0.0508839370667.issue7712@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
A patch which provides a context manager and a decorator.
(with ideas from Ezio and Antoine)
Sample usages:
with temp_cwd() as cwd:
assert cwd == os.getcwd()
@writablecwd
def test_zipfile():
# do something useful
print os.path.abspath('.') |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2010-01-16 11:42:34 | flox | set | recipients: + flox, pitrou, ezio.melotti |
| 2010-01-16 11:42:34 | flox | set | messageid: <1263642154.87.0.0508839370667.issue7712@psf.upfronthosting.co.za> |
| 2010-01-16 11:42:32 | flox | link | issue7712 messages |
| 2010-01-16 11:42:32 | flox | create | |