[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('hello') print(os.path.exists('folder1

[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 <aleksey.bilo...@gmail.com>: -- title: ython guesses XSL mimetype when passed an XML file -> mimetypes guesses XSL mimetype when passed an XML file ___ Python tracker <rep...@bugs.python.org> <http

[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

[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

async fuction

2013-01-11 Thread aleksey
Hello. Can someone help me to resolv error. code: import threading class TimeoutError(RuntimeError): pass class AsyncCall(object): def __init__(self, fnc, callback = None): self.Callable = fnc self.Callback = callback def __call__(self, *args, **kwargs):

[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. Test follows

[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 rep

[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 string, line 14, in module File /usr/lib/python3.2

[issue13466] new timezones

2011-11-23 Thread Aleksey
New submission from Aleksey shits...@gmail.com: 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

[issue3244] multipart/form-data encoding

2011-10-06 Thread Aleksey Frolov
Changes by Aleksey Frolov atomm...@gmail.com: -- nosy: +atommixz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue12373] Duplicate packets in Multicast Receiver

2011-06-20 Thread Aleksey Zhurbitsky
New submission from Aleksey Zhurbitsky zhurbit...@gmail.com: 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

ANNOUNCE: PYBAG v0.4.0

2010-10-23 Thread Aleksey
This is first PYBAG announce on comp.lang.python. PYBAG implements a portable bag and is intended for fast synchronization and backup. It lets you use a portable digital storage device to carry your electronic documents similar to the way you can use a bag to carry paper documents. You can

Re: parsing string into dict

2010-09-02 Thread Aleksey
On Sep 2, 12:46 am, Tim Arnold a_j...@bellsouth.net wrote: Hi, I have a set of strings that are *basically* comma separated, but with the exception that if a comma occur insides curly braces it is not a delimiter.  Here's an example: [code=one, caption={My Analysis for \textbf{t}, Version

Re: parsing string into dict

2010-09-02 Thread Aleksey
On Sep 2, 12:46 am, Tim Arnold a_j...@bellsouth.net wrote: Hi, I have a set of strings that are *basically* comma separated, but with the exception that if a comma occur insides curly braces it is not a delimiter.  Here's an example: [code=one, caption={My Analysis for \textbf{t}, Version

Re: Optimising literals away

2010-08-31 Thread Aleksey
@ e710b888-bacd-4248-9ff7-1f7a348e1c8f @author@ Mazhugin Aleksey @score_common@ 1 a = 0 global gset while ntimes 0: a = gset a = gset a = gset a = gset a = gset a = gset a = gset a = gset a = gset

Re: Copying a file with a question mark in it's name in Windows

2010-08-12 Thread Aleksey
On 12 авг, 18:49, drodrig drod...@magicbrain.com wrote: A python script I use to backup files on a Windows 2003 server occasionally fails to retrieve the size of a file with a question mark in the name. The exception I get is OSError #123 The filename, directory name, or volume label syntax is

Problems with the date of modification of files on the flash drive in windows

2010-01-22 Thread Aleksey
Hi All, I write crossplatform program and have next problem under windows (under linux is all OK) : I'm trying to get the UTC modification date of files on the flash drive under windows. In the flash card system is FAT. In the winter time (2010 01 21) Date of modification: