[issue13466] new timezones
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 >>> time.altzone -14400 i think tm_isdst must be always 1 for my zone, or timezone must be equal altzone -- messages: 148204 nosy: Rioky priority: normal severity: normal status: open title: new timezones type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue13466> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37975] Typo in the documentation by C-API DateTime Objects¶
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 has "S" and so named PyDateTime_DELTA_GET_MICROSECONDS. -- assignee: docs@python components: Documentation messages: 350758 nosy: Nukopol, docs@python priority: normal severity: normal status: open title: Typo in the documentation by C-API DateTime Objects¶ type: behavior versions: Python 3.5 ___ Python tracker <https://bugs.python.org/issue37975> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3244] multipart/form-data encoding
Changes by Aleksey Frolov : -- nosy: +atommixz ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12373] Duplicate packets in Multicast Receiver
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 join different multicats stream whith same port - starts mess. Each script gets his packets and packets from other multicast group. Examples of multicast groups: rtp://224.1.1.1:1234 rtp://224.1.1.2:1234 I also try to use other code to recive multicast but got the same result - http://stackoverflow.com/questions/6387535/duplicate-packets-in-python-multicast-receiver -- components: Demos and Tools, Library (Lib) messages: 138696 nosy: Aleksey Zhurbitsky priority: normal severity: normal status: open title: Duplicate packets in Multicast Receiver type: behavior versions: Python 2.6, Python 3.1 ___ Python tracker <http://bugs.python.org/issue12373> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42605] dir_util.copy_tree crashes if folder it previously created is removed
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('hello') print(os.path.exists('folder1/new_folder2')) # -> prints false dir_util.copy_tree('folder1/folder2', 'folder1/new_folder2') # -> works shutil.rmtree('folder1/new_folder2') print(os.path.exists('folder1/new_folder2')) # -> prints false dir_util.copy_tree('folder1/folder2', 'folder1/new_folder2') # -> crashes --- FileNotFoundError Traceback (most recent call last) /opt/conda/lib/python3.7/distutils/file_util.py in _copy_file_contents(src, dst, buffer_size) 40 try: ---> 41 fdst = open(dst, 'wb') 42 except OSError as e: FileNotFoundError: [Errno 2] No such file or directory: 'folder1/new_folder2/folder3/data.txt' dir_util caches folders it previously created in a static global variable _path_created which is a bad idea: https://github.com/python/cpython/blob/master/Lib/distutils/dir_util.py -- components: Distutils messages: 382782 nosy: dstufft, eric.araujo, vlasenkoalexey priority: normal severity: normal status: open title: dir_util.copy_tree crashes if folder it previously created is removed type: crash versions: Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue42605> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29823] ython guesses XSL mimetype when passed an XML file
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 method guesses an .xsl extension. This is actually hard-coded in. This seems wrong to me. But what do I know? -- components: Library (Lib) messages: 289705 nosy: Aleksey Bilogur priority: normal severity: normal status: open title: ython guesses XSL mimetype when passed an XML file versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issue29823> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29823] mimetypes guesses XSL mimetype when passed an XML file
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/issue29823> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed
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 "/usr/lib/python3.2/subprocess.py", line 745, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.2/subprocess.py", line 1197, in _execute_child restore_signals, start_new_session, preexec_fn) ValueError: errpipe_write must be >= 3 -- messages: 169276 nosy: sarum9in priority: normal severity: normal status: open title: subprocess.Popen() fails if 0, 1 or 2 descriptor is closed versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue15798> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed
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 <http://bugs.python.org/issue15798> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15951] string.Formatter returns str for empty unicode template
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. Test follows: import string template = u"" result = string.Formatter().format(template) assert isinstance(result, unicode) # AssertionError -- components: Library (Lib) messages: 170551 nosy: Aleksey.Sivokon priority: normal severity: normal status: open title: string.Formatter returns str for empty unicode template type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue15951> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
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: normal status: open title: Selector.select() hangs when there is nothing to select versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
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 your application really rely on the behaviour of the selector when no >file descriptor is registered? It was developed on Mac and relied (quite probably incorrectly) on the empty list result. When I run it on linux, it unexpectedly hanged. So, I would like to either * observe an exception on all platforms * observe an empty list on all platforms * observe infinite blocking on all platforms I think this special case should also be mentioned in the docs. -- ___ Python tracker <http://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25680] Selector.select() hangs when there is nothing to select
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 it should be made clear which one is used by Python. -- ___ Python tracker <http://bugs.python.org/issue25680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com