[issue38825] shutil.disk_usage - Lacking documentation

2021-07-11 Thread Tyler Crompton
Tyler Crompton added the comment: Not even the kernel knows how much space is available on a nonmounted partition. It doesn't know much beyond the fact that it exists and where it exists. There exist tools that can analyze nonmounted partitions, but these will vary by filesyste

[issue43201] sqlite3 import * ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.

2021-02-11 Thread Tyler Reed
Tyler Reed added the comment: It was an environment issue. There were pre-existing files (pyd and pyc) in the application folder (from builds done with Kivy) and apparently python was loading those instead of the libraries in the python39 folder. -- resolution: -> not a bug st

[issue43201] sqlite3 import * ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.

2021-02-11 Thread Tyler Reed
New submission from Tyler Reed : Running on a new, updated Windows 10 machine with no virtual environment. After removing all previous Python installations, rebooting and performing a fresh install if Python 3.9.1. I run the python console and type: import sqlite3 I receive the following

[issue43004] No type variables left in collections.abc.Callable

2021-01-22 Thread Tyler Yep
Tyler Yep added the comment: Got it, thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43004] No type variables left in collections.abc.Callable

2021-01-22 Thread Tyler Yep
New submission from Tyler Yep : The following code crashes when I try to run it, even though it passes when I use `from typing import Callable` instead. ``` from collections.abc import Callable from typing import Any, TypeVar V = TypeVar("V") Function = Callable[[list[V], V, V], fl

[issue38303] Make audioop PEP-384 compatible

2019-10-22 Thread Tyler Kieft
Change by Tyler Kieft : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38303] Make audioop PEP-384 compatible

2019-09-30 Thread Tyler Kieft
Change by Tyler Kieft : -- keywords: +patch pull_requests: +16085 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16497 ___ Python tracker <https://bugs.python.org/issu

[issue38303] Make audioop PEP-384 compatible

2019-09-28 Thread Tyler Kieft
New submission from Tyler Kieft : Working on a patch for this, will have it up in a couple days -- ___ Python tracker <https://bugs.python.org/issue38

[issue38303] Make audioop PEP-384 compatible

2019-09-27 Thread Tyler Kieft
Change by Tyler Kieft : -- components: Extension Modules nosy: Tyler Kieft priority: normal severity: normal status: open title: Make audioop PEP-384 compatible versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue38

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-06-25 Thread Tyler Wince
Tyler Wince added the comment: Another example of the breaking change here is in the security linter `PyCQA/bandit`. It may be a simple addition of a check in the meta parser for the ast but I would tend to agree with Anthony around whether or not it is worth it. Anyone else have any

[issue34215] streams.py:IncompleteReadError is message is unclear when expected is None

2019-05-17 Thread Tyler Bell
Tyler Bell added the comment: I've updated my PR to reflect a better message for the IncompleteReadError exception. When expected is None, the error reads, "IncompleteReadError: 1 bytes read on a total of None expected bytes" which is confusing. My PR changes this to "In

[issue34494] simple "sequence" class ignoring __len__

2018-08-24 Thread Tyler Reddy
New submission from Tyler Reddy : Downstream in NumPy we've noticed that a "sequence" object defined as below will hang (infinite __getitem__ calls) if we try to turn it into an array. The same holds in CPython for converting it to a list: class OneList: d

[issue34215] streams.py:readuntil IncompleteReadError is message is incorrect

2018-07-24 Thread Tyler Bell
New submission from Tyler Bell : This may have already been cleared as I opened the PR months ago But the gist is that the Exception is misleading and the test is incorrect. -- components: Library (Lib) messages: 322329 nosy: mrbell...@gmail.com priority: normal pull_requests: 7975

[issue29659] Expose the `length` arg from shutil.copyfileobj for public use

2017-02-26 Thread Tyler Goodlet
Changes by Tyler Goodlet : -- pull_requests: +288 ___ Python tracker <http://bugs.python.org/issue29659> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29659] Expose the `length` arg from shutil.copyfileobj for public use

2017-02-26 Thread tyler
New submission from tyler: It would be handy to be able to pass the `length` default argument defined by `shutil.copyfileobj()` to other public functions througout the module. When copying very large files (1GB +), increasing the memory buffer can divide the copy time in half and currently

[issue28352] winfo_pathname(..) | window id "xyz" doesn't exist in this application. | Python 3.4.4

2016-10-03 Thread Tyler Sweeden
New submission from Tyler Sweeden: This issue presents itself in 3.4.4.. Reverted back to 3.4.1 and the issue was gone. -- components: Tkinter messages: 278004 nosy: Tyler Sweeden priority: normal severity: normal status: open title: winfo_pathname(..) | window id "xyz" doe

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-14 Thread Tyler Crompton
Tyler Crompton added the comment: I suppose the only thing that could be left is adding remarks in the documentations for previous versions. If I understand correctly, this would only be added to the documentations for Python 2.7 and 3.5. Is this correct? Since this is the first issue in

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-06 Thread Tyler Crompton
Tyler Crompton added the comment: I couldn't think of a way to test input() with the unittest module without bypassing readline or requesting the input from the user. With that said, this informal script verifies proper behavior. -- status: open -> pending Added fi

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-06 Thread Tyler Crompton
Changes by Tyler Crompton : -- status: pending -> open ___ Python tracker <http://bugs.python.org/issue26870> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26870] Unexpected call to readline's add_history in call_readline

2016-05-06 Thread Tyler Crompton
Changes by Tyler Crompton : -- keywords: +patch Added file: http://bugs.python.org/file42748/set_auto_history.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26870] Unexpected call to readline's add_history in call_readline

2016-04-27 Thread Tyler Crompton
Tyler Crompton added the comment: I agree about the documentation. It would only take a few minutes to do. In regard to your inquiry about the second solution, more or less, yes. I left that one a bit ambiguous since there are many ways to skin that cat. But in retrospect, I probably

[issue26870] Unexpected call to readline's add_history in call_readline

2016-04-27 Thread Tyler Crompton
Changes by Tyler Crompton : -- nosy: +twouters ___ Python tracker <http://bugs.python.org/issue26870> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26870] Unexpected call to readline's add_history in call_readline

2016-04-27 Thread Tyler Crompton
New submission from Tyler Crompton: I was implementing a REPL using the readline module and noticed that there are extraneous calls to readline's add_history function in call_readline[1]. This was a problem because there were some lines, that, based on their compositions, I might not wa

[issue22012] struct.unpack('?', '\x02') returns (False,) on Mac OSX

2014-07-19 Thread Tyler Wade
New submission from Tyler Wade: On Mac OSX, struct.unpack incorrectly handles bools. Python 3.4.1 (default, May 19 2014, 13:10:29) [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin Type "help", "copyright", "credits" or "license"

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B
Tyler B added the comment: Here's a revised suggestion that has the order changed. I have additional concerns but please provide comment on this revision. Thanks # 2.7 "Raises an exception. argc indicates the number of parameters to the raise statement, ranging from 0 to 3. The para

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B
Tyler B added the comment: One last edit: Looked at the code and found differences between 3.4 and 2.7. 2.7 has 4 exceptions that can be raised while 3.4 has 3 exceptions. I propose including the full list of parameters but describing the exceptions in a way that's less specific abou

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B
Tyler B added the comment: I wanted to make an edit so here's my revised comment: Looked at the code and found differences between 3.4 and 2.7. 2.7 has 4 exceptions that can be raised while 3.4 has 3 exceptions. I propose removing the "list of parameters" from the docum

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-14 Thread Tyler B
Tyler B added the comment: Looked at the code and found differences between 3.4 and 2.7. 2.7 has 3 exceptions that can be raised while 3.4 has 4 exceptions. I propose removing the "list of parameters" from the documenation to keep things simple and not repeat the code. # 2.7

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-27 Thread Tyler Doyle
Changes by Tyler Doyle : Added file: http://bugs.python.org/file29591/17526_getsource.patch ___ Python tracker <http://bugs.python.org/issue17526> ___ ___ Python-bug

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-27 Thread Tyler Doyle
Changes by Tyler Doyle : Removed file: http://bugs.python.org/file29576/inspect.patch ___ Python tracker <http://bugs.python.org/issue17526> ___ ___ Python-bugs-list m

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-27 Thread Tyler Doyle
Changes by Tyler Doyle : Removed file: http://bugs.python.org/file29577/test_inspect.patch ___ Python tracker <http://bugs.python.org/issue17526> ___ ___ Python-bug

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-25 Thread Tyler Doyle
Tyler Doyle added the comment: Patch and test to accompany. -- Added file: http://bugs.python.org/file29577/test_inspect.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-25 Thread Tyler Doyle
Changes by Tyler Doyle : -- keywords: +patch Added file: http://bugs.python.org/file29576/inspect.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-25 Thread Tyler Doyle
Tyler Doyle added the comment: It looks like file is getting set to '' and then indexed on line 553 below, hitting the IndexError before we ever get to IOError. --550--- file = getfile(object) <-- file = '' sourcefile = getsourcefile(object

[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display

2013-02-19 Thread Tyler Crompton
Tyler Crompton added the comment: I will gladly test the changes. Where would I find these to download? -- status: pending -> open ___ Python tracker <http://bugs.python.org/issu

[issue17125] tokenizer.tokenize passes a bytes object to str.startswith

2013-02-04 Thread Tyler Crompton
New submission from Tyler Crompton: Line 402 in lib/python3.3/tokenize.py, contains the following line: if first.startswith(BOM_UTF8): BOM_UTF8 is a bytes object. str.startswith does not accept bytes objects. I was able to use tokenize.tokenize only after making the following changes

[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display

2012-11-26 Thread Tyler Crompton
Tyler Crompton added the comment: I can confirm that this works. The underscore does not appear when using the default font settings (Courier, size 10). I changed it to Courier New and all is fine. One may also want to increase the font size to 12 as the font is difficult to read when the

[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display

2012-08-08 Thread Tyler Crompton
New submission from Tyler Crompton: I think this is more of a Tkinter issue than IDLE but since IDLE uses Tkinter, it inherits this "bug". Many programs that were not developed for the Macbook Pro with Retina Display still look great. Whereas others, look pixelated in some areas

[issue15209] Re-raising exceptions from an expression

2012-07-25 Thread Tyler Crompton
Tyler Crompton added the comment: As for the losing valuable debug information, much worse can be done: import sys try: x except NameError: print('An error occurred.', file=sys.stderr) sys.exit(1) This is obviously not how one should handle errors in develo

[issue15383] Autocompletion crashes Python if the __builtins__ module cannot be found.

2012-07-17 Thread Tyler Crompton
New submission from Tyler Crompton : Doing one of the following crashes Python. del __builtins__ a{Tab} or builtins = __builtins__ del __builtins__ a{Tab} If you do a print screen, immediately, you will see the following error: *** Internal Error

[issue15209] Re-raising exceptions from an expression

2012-06-28 Thread Tyler Crompton
Tyler Crompton added the comment: I'm in a little over my head as I can't conceptualize __cause__, so I may be looking over things. First, you, Ethan, said the following: >It's also not difficult to work around if you really want to toss the extra >info: > &

[issue15208] Uparrow doesn't show previously typed variable or character

2012-06-27 Thread Tyler Crompton
Tyler Crompton added the comment: I recreated this issue on (mostly) fresh install of Ubuntu Server 12.04. I installed libreadline-dev and then removed and re-installed Python 3.3.0b1. This resolved the issue. -- nosy: +Tyler.Crompton status: pending -> o

[issue15209] Re-raising exceptions from an expression

2012-06-27 Thread Tyler Crompton
Changes by Tyler Crompton : -- nosy: +ncoghlan, stoneleaf ___ Python tracker <http://bugs.python.org/issue15209> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15209] Re-raising exceptions from an expression

2012-06-27 Thread Tyler Crompton
Tyler Crompton added the comment: Relevent PEP: http://www.python.org/dev/peps/pep-0409/ -- ___ Python tracker <http://bugs.python.org/issue15209> ___ ___ Pytho

[issue15209] Re-raising exceptions from an expression

2012-06-27 Thread Tyler Crompton
New submission from Tyler Crompton : As you know, a caught exception can be re-raised with a simple `raise` statement. Plain and simple. However, one cannot re-raise an error with this new `"from" expression` clause. For example: def getch(prompt=''):

[issue13460] urllib methods should demand unicode, instead demand str

2011-11-22 Thread Tyler Starke
Tyler Starke added the comment: Nevermind. I had to download the source to see that it encodes to 'utf-8', or a passed encoding method, in the methods that are causing problems in 2.6.5. -- ___ Python tracker <http://bugs.python.o

[issue13460] urllib methods should demand unicode, instead demand str

2011-11-22 Thread Tyler Starke
Tyler Starke added the comment: well that was closed fast. I noticed in the docs that Python 3 demands a str type also. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13460] urllib methods should demand unicode, instead demand str

2011-11-22 Thread Tyler Starke
New submission from Tyler Starke : It seems bad practice for urllib methods to demand a str instance and they should demand a unicode instance. By demanding a str instance the default behavior is too demanding, for the web space it is being used, for the English language. We would want Python

[issue12485] textwrap.wrap: new argument for more pleasing output

2011-07-11 Thread Tyler Romeo
Changes by Tyler Romeo : Removed file: http://bugs.python.org/file22573/textwrap.py-new-algorithm-2011-07-04_22-45-53_r71219+.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12485] textwrap.wrap: new argument for more pleasing output

2011-07-11 Thread Tyler Romeo
Tyler Romeo added the comment: OK, sorry to get back so late, but here's the updated patch without xrange. I saw the version change but forgot that I used xrange in the function (old habits I guess). -- Added file: http://bugs.python.org/file22626/textwrap.py-beautiful-2011-07-

[issue12499] textwrap.wrap: add control for fonts with different character widths

2011-07-05 Thread Tyler Romeo
Tyler Romeo added the comment: Normally I would have just added it as a function to be overloaded, but because of the nature of the textwrap.wrap function (all kwargs are passed to the TextWrapper constructor) I thought it made a lot more sense to keep it as an argument to __init__

[issue12485] textwrap.wrap: add control for custom length and orphans

2011-07-04 Thread Tyler Romeo
Changes by Tyler Romeo : Removed file: http://bugs.python.org/file22561/textwrap.py-improvement.diff ___ Python tracker <http://bugs.python.org/issue12485> ___ ___ Pytho

[issue12499] textwrap.wrap: add control for fonts with different character widths

2011-07-04 Thread Tyler Romeo
New submission from Tyler Romeo : Originally from http://bugs.python.org/issue12485 but separated. The textwrap modules uses len to determine the length of text, but in many (if not most) fonts, the width of a character differs depending on the letter, so it would be useful to have an option

[issue12485] textwrap.wrap: add control for custom length and orphans

2011-07-04 Thread Tyler Romeo
Tyler Romeo added the comment: OK, so here is the patch for just the new algorithm. -- Added file: http://bugs.python.org/file22573/textwrap.py-new-algorithm-2011-07-04_22-45-53_r71219+.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12485] textwrap.wrap: add control for custom length and orphans

2011-07-04 Thread Tyler Romeo
Tyler Romeo added the comment: Nah, they're both unrelated. I'll separate the changes and remake the patches. (I'll keep this entry for the beautification part.) -- ___ Python tracker <http://bugs.pyt

[issue12485] Improvement of textwrap module

2011-07-03 Thread Tyler Romeo
New submission from Tyler Romeo : Python's textwrap module can be helpful at times, but personally I think there are a couple of things that could be added. First, when it comes to text wrapping, usually you're not dealing with a monospace font where each letter is the same size.

[issue7336] threading module not properly handling shutdown

2009-11-16 Thread R. Tyler Ballance
New submission from R. Tyler Ballance : Receiving a traceback when shutting down an interpreter with threads spawned inside of it: Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 497, in __bootstrap self.__bootstrap_inner() File "/us

[issue3043] Recursion bug in deepcopy

2008-06-05 Thread Tyler Laing
Tyler Laing <[EMAIL PROTECTED]> added the comment: Same problem, even with new-style classes. Here, I'll show the function I use to generate the graph as well. class Vertex(object): def __init__(self, type): self.type = type se

[issue3043] Recursion bug in deepcopy

2008-06-05 Thread Tyler Laing
Tyler Laing <[EMAIL PROTECTED]> added the comment: Whoops, sorry, correction, when there are 100 vertexes and 500 edges. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3043] Recursion bug in deepcopy

2008-06-05 Thread Tyler Laing
New submission from Tyler Laing <[EMAIL PROTECTED]>: With the following code: class Vertex: def __init__(self, type): self.type = type self.color=-1 self.edges=[] class Edge: def __init__(self,