[issue37095] [Feature Request]: Add zstd support in tarfile

2020-04-03 Thread Ugra Dániel
Change by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <https://bugs.python.org/issue37095> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38940] Add a new functools.cast() function

2019-11-29 Thread Ugra Dániel
Ugra Dániel added the comment: Currently, the closest functionality I can think of (using standard library functions only): @functools.partial(lambda func: functools.wraps(func)(lambda *args, **keywords: list(func(*args, **keywords Or without proper wrapping: @functools.partial(lambda

[issue38940] Add a new functools.cast() function

2019-11-29 Thread Ugra Dániel
New submission from Ugra Dániel : In some cases it would be really helpful to have a decorator which automagically casts returned value to a different type. Particularly, instead of writing something like this: def example(): result = [] for ...: result.append(item

[issue18199] Windows: support path longer than 260 bytes using "\\?\" prefix

2016-02-26 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <http://bugs.python.org/issue18199> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23706] pathlib.Path.write_text should include a newline argument

2015-03-19 Thread Ugra Dániel
New submission from Ugra Dániel: The new pathlib.Path [read|write]_[binary|text] methods will be very useful, one thing I miss badly is the newline argument for write_text. In some cases text files need a specific line ending (independent from the platform the code is being executed on.) In

[issue22570] Better stdlib support for Path objects

2014-10-29 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <http://bugs.python.org/issue22570> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14910] argparse: disable abbreviation

2013-02-05 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <http://bugs.python.org/issue14910> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16270] ftplib hangs when closing connection

2012-10-17 Thread Ugra Dániel
New submission from Ugra Dániel: With version 3.3 (64 bit on Arch Linux) Python now hangs when closing FTP connection on some sites: url = "ftp://ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz"; with urllib.request.urlopen( url ): pass -- components: Li

[issue3244] multipart/form-data encoding

2011-10-21 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5178] Add context manager for temporary directory

2011-09-20 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <http://bugs.python.org/issue5178> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1666318] shutil.copytree doesn't give control over directory permissions

2011-08-24 Thread Ugra Dániel
Changes by Ugra Dániel : -- nosy: +daniel.ugra ___ Python tracker <http://bugs.python.org/issue1666318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12133] ResourceWarning in urllib.request

2011-07-18 Thread Ugra Dániel
Ugra Dániel added the comment: Sorry, I've forgotten to post a reference to the new bug: #12576 -- ___ Python tracker <http://bugs.python.org/issue12133> ___ ___

[issue12576] urlib.request fails to open some sites

2011-07-16 Thread Ugra Dániel
New submission from Ugra Dániel : Issue #12133 introduced a patch which seems to cause problems. I'm using Python 3.2.1 on 64-bit Arch Linux (this version already incorporates the changes from #12133). The following code: with urllib.request.urlopen(url) as page: pass raises "

[issue12133] ResourceWarning in urllib.request

2011-07-16 Thread Ugra Dániel
Ugra Dániel added the comment: This patch has introduced some problems for me with Python 3.2.1 (64-bit Arch Linux). The following code: with urllib.request.urlopen(url) as page: pass raises "ValueError: I/O operation on closed file." exception when url is "http

[issue6077] Unicode issue with tempfile on Windows

2009-05-26 Thread Ugra Dániel
New submission from Ugra Dániel : Opening a file with tempfile.TemporaryFile using "wt+" mode, then reading content back, will cause reading to stop (without any exception) when encountering byte '0x1a' (aka. Ctrl+Z) on Windows even tough UTF-16 encoding is used. When usin