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(
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
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
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
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
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
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
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
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
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
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
Changes by Aleksey Frolov :
--
nosy: +atommixz
___
Python tracker
<http://bugs.python.org/issue3244>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
13 matches
Mail list logo