[issue42605] dir_util.copy_tree crashes if folder it previously created is removed

2020-12-08 Thread Aleksey Vlasenko
New submission from Aleksey Vlasenko : Minimal example: import os import shutil from distutils import dir_util shutil.rmtree('folder1') os.makedirs('folder1/folder2/folder3/') with open('folder1/folder2/folder3/data.txt', 'w') as fp: fp.write(&#x

[issue37975] Typo in the documentation by C-API DateTime Objects¶

2019-08-29 Thread Aleksey
New submission from Aleksey : In the documentation by Python 3.5 C-API DateTime Objects (https://docs.python.org/3.5/c-api/datetime.html) method PyDateTime_DELTA_GET_MICROSECOND has not "S" in the end of method name. But in the header file "datetime.h", this method

[issue29823] mimetypes guesses XSL mimetype when passed an XML file

2017-03-15 Thread Aleksey Bilogur
Changes by Aleksey Bilogur : -- title: ython guesses XSL mimetype when passed an XML file -> mimetypes guesses XSL mimetype when passed an XML file ___ Python tracker <http://bugs.python.org/issu

[issue29823] ython guesses XSL mimetype when passed an XML file

2017-03-15 Thread Aleksey Bilogur
New submission from Aleksey Bilogur: Copied over from an unanswered StackOverflow thread (http://stackoverflow.com/questions/42542433/why-does-python-mimetype-guess-xsl-when-passed-an-xml-file): When passed a file with a mimetype application/xml, the Python std lib mimetypes.guess_extension

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-22 Thread Aleksey Kladov
Aleksey Kladov added the comment: >I disagree, we can do better than documenting "bugs" :-) The result of `select.select([], [], [], None)` should defintelly be documented. Three platoforms made three different decisions in similar situation, so any behavior is reasonable and

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-21 Thread Aleksey Kladov
Aleksey Kladov added the comment: >What's the point of your bug report? To show surprising platform-dependent API behavior. I don't know what is the correct behavior here, but it should be cross platform. Seems like the most sane option is to throw an exception. >Does

[issue25680] Selector.select() hangs when there is nothing to select

2015-11-20 Thread Aleksey Kladov
New submission from Aleksey Kladov: The following hangs on Linux ```Python >>> import selectors >>> s = selectors.DefaultSelector() >>> s.select() ``` On Mac it returns an empty list. ------ messages: 254975 nosy: Aleksey Kladov priority: normal severity

[issue15951] string.Formatter returns str for empty unicode template

2012-09-16 Thread Aleksey Sivokon
New submission from Aleksey Sivokon: Expected behavior of string.Formatter() is to return unicode strings for unicode templates, and "byte" strings for str templates. Which is exactly what it does, with one frustrating exception: for empty unicode string it returns byte str. Te

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2012-08-29 Thread Aleksey Filippov
Aleksey Filippov added the comment: It may be implemented simplier. fcntl(fd, F_DUPFD_CLOEXEC, min_fd_number) will allocate new fd at least min_fd_number. So, it is not necessary to do a lot of dup() calls. -- ___ Python tracker <h

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2012-08-28 Thread Aleksey Filippov
New submission from Aleksey Filippov: System info: kernel: 3.4.8-1-ARCH dist: Arch linux python: 3.2.3 subprocess.Popen() fails if python interpreter is started with closed 0, 1 or 2 descriptor. Traceback (most recent call last): File "", line 14, in File "/us

[issue13466] new timezones

2011-11-23 Thread Aleksey
New submission from Aleksey : Hi Guys, Since 31 august 2011 in Russian Federation always DST time. http://worldtimezone.net/dst_news/dst_news_russia36.html But >>> time.tzname ('MSK', 'MSK') >>> time.localtime().tm_isdst 0 >>> time.timezone -10800

[issue3244] multipart/form-data encoding

2011-10-06 Thread Aleksey Frolov
Changes by Aleksey Frolov : -- nosy: +atommixz ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Aleksey Zhurbitsky
New submission from Aleksey Zhurbitsky : I use http://svn.python.org/projects/python/trunk/Demo/sockets/mcast.py to receive multicast stream. When i run one instance of this script to receive certain multicats stream all is fine, but when i run two instance of this script simultaneously to