[issue22678] An OSError subclass for "no space left on device" would be nice: NoSpaceError

2021-11-05 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> rejected
stage: patch review -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for "no space left on device" would be nice: NoSpaceError

2021-10-22 Thread Irit Katriel


Irit Katriel  added the comment:

Shall we conclude from 7 years of no activity that there isn't much interest in 
this exception?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice: NoSpaceError

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice: NoSpaceError

2014-10-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
title: An OSError subclass for no space left on device would be nice - An 
OSError subclass for no space left on device would be nice: NoSpaceError

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-27 Thread STINNER Victor

STINNER Victor added the comment:

The PEP 3151 introduced specialized subclasses of OSError. Antoine Pitrou 
conducted a survey to decide which errors are common enough to merit a builtin 
exception:
http://legacy.python.org/dev/peps/pep-3151/#appendix-a-survey-of-common-errnos

ENOSPC is not mentionned in the PEP. According to 
0002-Use-the-new-NoSpaceError.patch the error is rare: only used *once* in 
Python... and only in a very specific unit test (to workaround an issue on a 
specific buildbot...).

It looks like ENOSPC is available on Linux, Windows, FreeBSD and Mac OS X. It 
is part of the POSIX standad, ex:
http://pubs.opengroup.org/onlinepubs/009604599/basedefs/errno.h.html

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

That said I am not against adding a new error for this, but I agree the need is 
probably rather rare (the error is rare in itself, and there's not much to do 
if you hit a disk space issue, usually).

I'm going to wait for other people to come with comments and possible use 
cases. In any case, thank you for submitting a patch, this is appreciated.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-26 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-25 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-22 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +barry, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon

New submission from Mathieu Bridon:

I found myself writing the following code the other day:

try:
os.mkdir(path)

except PermissionError:
do_something()

except FileExistsError:
do_something_else()

except FileNotFoundError:
do_yet_another_thing()

except OSError as e:
import errno
if e.errno == errno.ENOSPC:
and_do_one_more_different_thing()

else:
raise e

The OSError subclasses in Python 3 are amazing, I love them.

I just wish there'd be more of them. :)

--
components: Library (Lib)
messages: 229729
nosy: bochecha
priority: normal
severity: normal
status: open
title: An OSError subclass for no space left on device would be nice
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon

Changes by Mathieu Bridon boche...@daitauha.fr:


--
keywords: +patch
Added file: http://bugs.python.org/file36981/0001-New-NoSpaceError.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon

Changes by Mathieu Bridon boche...@daitauha.fr:


Added file: http://bugs.python.org/file36982/0002-Use-the-new-NoSpaceError.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
components: +Interpreter Core -Library (Lib)
stage:  - patch review
type:  - enhancement
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com