John Taylor added the comment:
I made the suggested change to just print the os.remove() statements (instead
of executing them) and also removed the 'skip news'.
--
___
Python tracker
<https://bugs.python.o
John Taylor added the comment:
I would prefer an example that does not actually modify the file system. Is
there any way this could be achieved, yet still demonstrate why topdown=False
is necessary?
--
___
Python tracker
<ht
John Taylor added the comment:
https://github.com/python/cpython/pull/19313
I have just signed the CLA.
--
___
Python tracker
<https://bugs.python.org/issue40
New submission from John Taylor :
The example for os.walkdir should be less destructive. It currently
recursively removes all files and directories. I will be submitting a PR on
GitHub.
--
assignee: docs@python
components: Documentation
messages: 365625
nosy: docs@python, jftuga
John Taylor added the comment:
Bump
--
___
Python tracker
<http://bugs.python.org/issue29284>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
John Taylor added the comment:
Can this be added to Python 3.7?
https://docs.python.org/3.7/library/concurrent.futures.html#threadpoolexecutor-example
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue29
John Taylor added the comment:
I have updated the Python 3.6 example for 17.4.2.1. ThreadPoolExecutor Example.
Please see the attachment. On my system this is the output:
thread name: loader_0
thread name: loader_1
thread name: loader_2
thread name: loader_3
thread name: loader_4
'
John Taylor added the comment:
OP here, thanks for replying to this. I used Zach's suggestion of placing an
'r' in front of triple-quotes. This accomplishes my goal.
--
___
Python tracker
<http://bugs.pyt
New submission from John Taylor:
I am using Python 3.5.2 on OS X 10.11.6. The same error occurs with 3.5.2 on
Windows 10.
When I run the attached code, I get this error:
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in
position 23-24: truncated \u
New submission from John Taylor:
Please include how to use the thread_name_prefix method argument (new to Python
3.6) in the example: 17.4.2.1. ThreadPoolExecutor Example
--
assignee: docs@python
components: Documentation
messages: 285572
nosy: docs@python, jftuga
priority: normal
John Taylor added the comment:
python-3.6.0b2-embed-amd64.zip will load the interpreter as is easy to install.
The Python Embedded Distribution documentation mentions needing ucrtbase.dll,
which is already installed on Nano Server.
One small pain point is that ctrl-z seems to exit/suspend
New submission from John Taylor:
The python-3.6.0b2-amd64.exe binary installs the 64-bit version of python, but
the binary itself is only 32-bit. I would like this to be a 64-bit binary so
that Python can easily be installed on Windows Server 2016 Nano Server. Since
this OS version will
New submission from John Taylor:
The print statement does not display accurate results.
code:
print("%35d" % (1e21))
print("%35d" % (1e22))
print("%35d" % (1e23))
print("%35d" % (1e24))
print("%35d" % (1e25))
print(&qu
John Taylor added the comment:
To follow up on my previous message, I looked at the documentation for
os.getppid().
It states:
Changed in version 3.2: Added support for Windows.
--
___
Python tracker
<http://bugs.python.org/issue25
New submission from John Taylor:
In the Windows Help File for Python 3.5:
17.2 multiprocessing
17.2.1.1 The Process class
2nd code example: "To show the individual process IDs involved, here is an
expanded example"
def info(title):
print(title)
print('module name:
New submission from John Taylor:
SequenceMatcher in the difflib module contain ratio() and quick_ratio() methods
which can take a long time to run with certain input. One example is two
slightly different versions of jquery.min.js.
I have written a patch against python-350b4 that adds a
John Taylor added the comment:
I am seeing something similar in difflib.HtmlDiff.make_file() under Python
3.4.3 (windows 7). Do I need to file a separate bug report?
File "H:\test\test.py", line 522, in print_differ
diff = html.make_file(file1_data,file2_data,"dir 1",
John Taylor added the comment:
OP here. These error messages are much better. Thanks!
--
___
Python tracker
<http://bugs.python.org/issue15972>
___
___
Pytho
John Taylor added the comment:
Crashes Python 3.2.3 and Python 3.3.0rc2 on Windows 7 as well.
--
nosy: +jftuga
___
Python tracker
<http://bugs.python.org/issue15
New submission from John Taylor:
import os.path
a = [ r'c:\Windows\notepad.exe' ]
print( os.path.getsize(a) )
Under Python 3.2.3, this error message is returned:
File "c:\python32\lib\genericpath.py", line 49, in getsize
return os.stat(filename).st_size
TypeError:
John Taylor added the comment:
Please close this ticket. This is not a bug.
As per cjerdonek's suggestion, defining a constraint as follows:
constraint my_name check (...)
returns the actual name of the constraint, when it fails:
sqlite3.IntegrityError: constraint my_name f
John Taylor added the comment:
Chris,
I will try naming the constraints and will then follow-up.
--
___
Python tracker
<http://bugs.python.org/issue15
John Taylor added the comment:
I believe patching Python is beyond my programming capability. I would be very
interested in seeing this in 3.3.1. How else could I assist in making this
happen? Thanks!
--
___
Python tracker
<h
John Taylor added the comment:
When I run this under Windows 7:
Platform : CPython 3.3.0b2
SQLite : 3.7.12
Traceback (most recent call last):
File "C:bug.py", line 34, in
c.execute(query, ("2012-18-20", ) )
sqlite3.IntegrityErro
New submission from John Taylor:
According to:
http://www.sqlite.org/releaselog/3_7_12.html
SQLite has the ability to, "Report the name of specific CHECK constraints that
fail."
CPython 3.3.0b2 which uses SQLite version 3.7.12 does not report which
constraint failed.
--
impor
25 matches
Mail list logo