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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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))
# {
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
Vlad Shcherbina added the comment:
Any chance this could get into 3.7.3?
--
nosy: +vlad
___
Python tracker
<https://bugs.python.org/issue34776>
___
___
Pytho
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
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
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
Vlad Shcherbina added the comment:
https://github.com/pypa/pip/issues/6582
--
___
Python tracker
<https://bugs.python.org/issue37204>
___
___
Python-bugs-list m
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
40 matches
Mail list logo