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 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 <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
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
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
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):
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
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
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
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
Changes by Aleksey Frolov atomm...@gmail.com:
--
nosy: +atommixz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Python-bugs-list
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
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
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
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
@ 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
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
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:
19 matches
Mail list logo