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 assumption th
Vlad Shcherbina added the comment:
https://github.com/pypa/pip/issues/6582
--
___
Python tracker
<https://bugs.python.org/issue37204>
___
___
Python-bugs-list m
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, m
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 wo
Vlad Shcherbina added the comment:
If the maintainers agree that it's desirable to automatically deduce
optionality, I'll implement it.
--
___
Python tracker
<https://bugs.python.o
New submission from Vlad Shcherbina :
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))
# {'field': }
# but it
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:
Toy example:
>>> from collections import namedtuple
>>> Rectangle = namedtuple('Rectangle', 'width height')
>>> Ellipse = namedtuple('Ellipse', 'x_axis y_axis')
>>> Rectangle(width
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31739/tempfile_collision_tests_27
___
Python tracker
<http://bugs.python.org/issue18945>
___
___
Pytho
Changes by Vlad Shcherbina :
Removed file: http://bugs.python.org/file31697/tempfile_collision_tests.patch
___
Python tracker
<http://bugs.python.org/issue18945>
___
___
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31730/tempfile_collision_tests.patch
___
Python tracker
<http://bugs.python.org/issue18945>
___
___
Changes by Vlad Shcherbina :
--
keywords: +patch
Added file: http://bugs.python.org/file31697/tempfile_collision_tests.patch
___
Python tracker
<http://bugs.python.org/issue18
Vlad Shcherbina added the comment:
Probably yes, I'm just not sure when I'll get the time.
--
___
Python tracker
<http://bugs.python.org/issue18945>
___
___
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
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31608/temp_dir_exists_retry_test_27.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31609/temp_dir_exists_retry_27.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31607/temp_dir_exists_retry_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Added file:
http://bugs.python.org/file31606/temp_dir_exists_retry_test_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Removed file: http://bugs.python.org/file31602/temp_dir_exists_retry_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Removed file:
http://bugs.python.org/file31604/temp_dir_exists_retry_test_27.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Removed file: http://bugs.python.org/file31605/temp_dir_exists_retry_27.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Removed file:
http://bugs.python.org/file31601/temp_dir_exists_retry_test_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31602/temp_dir_exists_retry_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31604/temp_dir_exists_retry_test_27.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31605/temp_dir_exists_retry_27.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Added file:
http://bugs.python.org/file31601/temp_dir_exists_retry_test_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Removed file:
http://bugs.python.org/file31579/temp_dir_exists_retry_test_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Removed file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Removed file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Removed file:
http://bugs.python.org/file31580/temp_dir_exists_retry_test_27.patch
___
Python tracker
<http://bugs.python.org/issue18
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 rerai
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31580/temp_dir_exists_retry_test_27.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Added file:
http://bugs.python.org/file31579/temp_dir_exists_retry_test_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Added file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Changes by Vlad Shcherbina :
Removed file: http://bugs.python.org/file31518/fix_for_27.patch
___
Python tracker
<http://bugs.python.org/issue18849>
___
___
Python-bug
Changes by Vlad Shcherbina :
--
keywords: +patch
Added file: http://bugs.python.org/file31518/fix_for_27.patch
___
Python tracker
<http://bugs.python.org/issue18
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
imp
40 matches
Mail list logo