[issue40160] documentation example of os.walk should be less destructive

2020-04-03 Thread John Taylor
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.org/issue40

[issue40160] documentation example of os.walk should be less destructive

2020-04-03 Thread John Taylor
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

[issue40160] documentation example of os.walk should be less destructive

2020-04-02 Thread John Taylor
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

[issue40160] documentation example of os.walk should be less destructive

2020-04-02 Thread John Taylor
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

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-07-20 Thread John Taylor
John Taylor added the comment: Bump -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29284> ___ ___ Python-bugs-list mailing list

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-04-13 Thread John Taylor
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 <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-01-22 Thread John Taylor
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 'http

[issue29285] Unicode errors occur inside of multi-line comments

2017-01-17 Thread John Taylor
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 <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29285] Unicode errors occur inside of multi-line comments

2017-01-16 Thread John Taylor
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 escape I think

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-01-16 Thread John Taylor
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

[issue28467] Installer should be a 64-bit executable

2016-10-18 Thread John Taylor
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

[issue28467] Installer should be a 64-bit executable

2016-10-18 Thread John Taylor
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

[issue26422] printing 1e23 and up is incorrect

2016-02-23 Thread John Taylor
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

[issue25169] multiprocess documentation

2015-09-18 Thread John Taylor
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 <rep...@bugs.python.org>

[issue25169] multiprocess documentation

2015-09-18 Thread John Taylor
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:'

[issue21253] unittest assertSequenceEqual can lead to Difflib.compare() crashing on mostly different sequences

2015-08-20 Thread John Taylor
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,dir 2,True) File C

[issue24904] Patch: add timeout to difflib SequenceMatcher ratio() and quick_ratio()

2015-08-20 Thread John Taylor
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

[issue15972] wrong error message for os.path.getsize

2012-09-21 Thread John Taylor
John Taylor added the comment: OP here. These error messages are much better. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15972

[issue15972] wrong error message for os.path.getsize

2012-09-19 Thread John Taylor
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: Can't convert 'list

[issue15973] Segmentation fault on timezone comparison

2012-09-19 Thread John Taylor
John Taylor added the comment: Crashes Python 3.2.3 and Python 3.3.0rc2 on Windows 7 as well. -- nosy: +jftuga ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15973

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
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. -- import platform

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
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 module c.execute(query, (2012-18-20, ) ) sqlite3.IntegrityError: constraint failed

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
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 rep...@bugs.python.org

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
John Taylor added the comment: Chris, I will try naming the constraints and will then follow-up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15754

[issue15754] Traceback message not returning SQLite check constraint details

2012-08-21 Thread John Taylor
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 failed