[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-08-27 Thread Vlad Shcherbina
New submission from Vlad Shcherbina: When directory exists with a name chosen for new temporary file, OSError with EACCESS errno is thrown on windows, while attempts to chose another name only happen on EEXIST errors. To reproduce, run --- 8 - import sys import

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-08-30 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file31518/fix_for_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31518/fix_for_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-03 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-04 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31579/temp_dir_exists_retry_test_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-04 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31580/temp_dir_exists_retry_test_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-04 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: 1. I agree that consistency between 2.7 and 3.* have some value, but maybe it's better to take less permissive approach in 3.* instead and only retry when exception is PermissionError _and_ errno is EACCES? 2. Currently it's being reraised unless

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31580/temp_dir_exists_retry_test_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31579/temp_dir_exists_retry_test_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31601/temp_dir_exists_retry_test_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31605/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31604/temp_dir_exists_retry_test_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31602/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31604/temp_dir_exists_retry_test_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31605/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31601/temp_dir_exists_retry_test_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31602/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31607/temp_dir_exists_retry_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31606/temp_dir_exists_retry_test_33_34.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31608/temp_dir_exists_retry_test_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18849] Failure to try another name for tempfile when directory with chosen name exists on windows

2013-09-05 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31609/temp_dir_exists_retry_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18849

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-06 Thread Vlad Shcherbina
New submission from Vlad Shcherbina: I intend to add test for (existing dir)-(new file) collision in http://bugs.python.org/issue18849, but file-file, file-dir and dir-dir collisions are yet to be covered. -- components: Tests messages: 197062 nosy: vlad priority: normal severity

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-07 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: Probably yes, I'm just not sure when I'll get the time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18945

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-09 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file31697/tempfile_collision_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18945

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-11 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31730/tempfile_collision_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18945

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-11 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Removed file: http://bugs.python.org/file31697/tempfile_collision_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18945

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-13 Thread Vlad Shcherbina
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com: Added file: http://bugs.python.org/file31739/tempfile_collision_tests_27 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18945

[issue31239] namedtuple comparison ignores types

2017-08-18 Thread Vlad Shcherbina
New submission from Vlad Shcherbina: Toy example: >>> from collections import namedtuple >>> Rectangle = namedtuple('Rectangle', 'width height') >>> Ellipse = namedtuple('Ellipse', 'x_axis y_axis') >>> Rectangle(width=1, height=2) == Ellipse(x_axis=1, y_axi

[issue31239] namedtuple comparison ignores types

2017-08-18 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: While we are at it, namedtuple inherits other operations that make no sense for fixed-length tuples: >>> Rectangle(width=1, height=2) * 3 (1, 2, 1, 2, 1, 2) >>> Rectangle(width=1, height=2) + Ellipse(x_axis=3, y_axis=4) (1, 2, 3, 4) Bu

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Vlad Shcherbina
New submission from Vlad Shcherbina <vlad.shcherb...@gmail.com>: from typing import * def f(arg: str = None): pass print(get_type_hints(f)) # {'arg': typing.Union[str, NoneType]} # as expected class T(NamedTuple): field: str = None print(get_type_hints(T)) # {

[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value

2018-03-14 Thread Vlad Shcherbina
Vlad Shcherbina <vlad.shcherb...@gmail.com> added the comment: If the maintainers agree that it's desirable to automatically deduce optionality, I'll implement it. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue34776] Postponed annotations break inspection of dataclasses

2019-03-02 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: Any chance this could get into 3.7.3? -- nosy: +vlad ___ Python tracker <https://bugs.python.org/issue34776> ___ ___ Pytho

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-22 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: There is no need to add explicit knowledge of reprlib to the Row object or vice versa. Those who use reprlib to limit output size will have no problem. Reprlib already truncates arbitrary reprs at the string level: https://github.com/python/cpython/blob

[issue35889] sqlite3.Row doesn't have useful repr

2019-02-02 Thread Vlad Shcherbina
New submission from Vlad Shcherbina : To reproduce, run the following program: import sqlite3 conn = sqlite3.connect(':memory:') conn.row_factory = sqlite3.Row print(conn.execute("SELECT 'John' AS name, 42 AS salary").fetchone()) It prints ''. It would be nice if it printed some

[issue37204] Scripts and binaries in PYTHON_PREFIX/Scripts contain unnecessarily lowercased path to Python location on Windows

2019-06-08 Thread Vlad Shcherbina
New submission from Vlad Shcherbina : To reproduce: 1. Download and run Python installer (I used python-3.7.3-amd64-webinstall.exe). 2. Modify install settings: - Install for all users: yes - Customize install location: "C:\Python37" (don't know if it's relevant, mentioni

[issue37204] Scripts and binaries in PYTHON_PREFIX/Scripts contain unnecessarily lowercased path to Python location on Windows

2019-06-08 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: https://github.com/pypa/pip/issues/6582 -- ___ Python tracker <https://bugs.python.org/issue37204> ___ ___ Python-bugs-list m

[issue35889] sqlite3.Row doesn't have useful repr

2019-08-29 Thread Vlad Shcherbina
Vlad Shcherbina added the comment: 1. "This patch adds too many lines of code and not enough value." If the maintainers judge it so, I have nothing to say. You have the responsibility to keep the codebase relatively simple. 2a. "Existing programs made with the assumptio