[issue38194] Consistently add exist_ok / missing_ok parameters to directory creation/deletion functions

2019-10-16 Thread Alori
Alori added the comment: +1 Encountered the same issue today working with Path.rmdir(). Also see a somewhat related issue here: (https://bugs.python.org/issue38499) -- nosy: +valorien ___ Python tracker <https://bugs.python.org/issue38

[issue38499] Add rmtree() to pathlib.Path

2019-10-16 Thread Alori
New submission from Alori : pathlib.Path supports deletion of both files (Path.unlink()) and directories (Path.rmdir()). Unfortunately, Path.rmdir() does not allow deletion of non-empty directories which means users must use shutil.rmtree() when deleting such paths. Since pathlib.Path

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Alori
Alori added the comment: ...would solve the issue (cut off from previous post) -- ___ Python tracker <https://bugs.python.org/issue38288> ___ ___ Python-bug

[issue38288] shutil.make_archive() should allow setting zipfile.ZipFile() 'strict_timestamps'

2019-09-26 Thread Alori
New submission from Alori : https://bugs.python.org/issue34097 addressed a zipfile.ZipFile() issue where zip files with timestamps prior to the year 1980 could not be created. The fix adds the strict_timestamps=True|False keyword argument to the ZipFile class. shutil.make_archive() is a high

[issue18896] Remove namedtuple 255 arguments restriction

2013-08-31 Thread Alori
Alori added the comment: @pitrou: Thank you for your answer. I agree they should not replace databases or files, but I think 255 is just way too lightweight. It feels unnatural to have this limitation for no specific reason. Recently, I've seen a lot of solutions that emulate the named

[issue18896] Remove namedtuple 255 arguments restriction

2013-08-31 Thread Alori
New submission from Alori: Named tuples offer a useful mix of features from both dict and tuple data structures. However, unlike dictionaries and tuples, Named tuples are only allowed to hold up to 255 items. This behavior seems inconsistent and un-Pythonic. Is there a way to remove this