[issue47121] math.isfinite() can raise exception when called on a number

2022-03-25 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue47121> ___ ___ Python-bugs-list mailing list Unsub

[issue43255] Ceil division with /// operator

2022-02-04 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue43255> ___ ___ Python-bugs-list mailing list Unsub

[issue46639] Ceil division with math.ceildiv

2022-02-04 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue46639> ___ ___ Python-bugs-list mailing list Unsub

[issue17519] unittest should not try to run abstract classes

2021-03-28 Thread Nathaniel Manista
Nathaniel Manista added the comment: michael.foord: I am now persuaded that the feature requested here ought be reconsidered (since my last comment there's been a lot of chatter about it behind closed doors at work, but I can at least cite https://github.com/abseil/abseil-py/issues/166

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue43596> ___ ___ Python-bugs-list mailing list Unsub

[issue17519] unittest should not try to run abstract classes

2021-03-11 Thread Nathaniel Manista
Nathaniel Manista added the comment: In the years since this was considered and declined, I wonder if the facts have changed sufficiently to make it now worth doing? I often find myself writing TestCases for interfaces, and those define test_* methods that call the interface under test

[issue43015] Add str.replaceall?

2021-01-24 Thread Nathaniel Manista
New submission from Nathaniel Manista : Chained str.replace calls can sometimes be pretty unattractive; what are the chances that we could have an str.replaceall method? Of type Callable[[Mapping[str, str]], str]? Check out absl::StrReplaceAll (https://github.com/abseil/abseil-cpp/blob

[issue41292] Dead link in Windows FAQ

2020-08-17 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue41292> ___ ___ Python-bugs-list mailing list Unsub

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2020-08-17 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue30757> ___ ___ Python-bugs-list mailing list Unsub

[issue27721] distutils strtobool returns 0 and 1 rather than False and True

2020-06-22 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue27721> ___ ___ Python-bugs-list mailing list Unsub

[issue34858] MappingProxy objects should JSON serialize just like a dictionary

2020-06-06 Thread Nathaniel Manista
Nathaniel Manista added the comment: Err, "... it's something that complicates writing code according to...", sorry. -- ___ Python tracker <https://bugs.python.o

[issue34858] MappingProxy objects should JSON serialize just like a dictionary

2020-06-06 Thread Nathaniel Manista
Nathaniel Manista added the comment: There's a great deal more additional discussion about this over at https://discuss.python.org/t/json-does-not-support-mapping-and-mutablemapping/2829, but I would like to heartily "hear hear" this issue for the way it is weird that

[issue17519] unittest should not try to run abstract classes

2020-04-23 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker <https://bugs.python.org/issue17519> ___ ___ Python-bugs-list mailing list Unsub

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-24 Thread Nathaniel Manista
Nathaniel Manista added the comment: > The question that needs to be answered here is "why we should support > Iterable[FrameSummary]?" and you're one the one who needs to answer > it Okay, here are a few reasons: 1) A function that requires that an input be a List invite

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Nathaniel Manista
Nathaniel Manista added the comment: > In 3.4, format_list() was documented to accept return values of extract_tb() > > and extract_stack() functions and they both were returned lists: > > def extract_tb(tb, limit=None): > return list(_extract_tb_it

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-12 Thread Nathaniel Manista
Nathaniel Manista added the comment: ... and while we're here, how about StackSummary.from_list's "a_list" parameter as well: 3) Can it be Iterable? It looks like it can be Iterable? Is it fine for it to be Iterable? 4) Should the component type of "a_list" be FrameSum

[issue34648] Confirm the type of traceback.format_list post-3.5

2018-09-12 Thread Nathaniel Manista
New submission from Nathaniel Manista : So I'm fixing a bug in typeshed's accounting of the traceback module (https://github.com/python/typeshed/pull/2436) and the documented semantics of traceback.format_list don't quite smell to me what I think they might be intended to be: 1) I know

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-09-11 Thread Nathaniel Manista
Nathaniel Manista added the comment: I’d like to try to steer this conversation back toward what I think is the actionable question: “does the exemplification of this practice in the Errors and Exceptions portion of The Python Tutorial bring about a net benefit or a net cost to its intended

[issue34590] "Logging HOWTO" should share an example of best practices for using logging in a library

2018-09-06 Thread Nathaniel Manista
Nathaniel Manista added the comment: Something... related, that may perhaps belong in a separate issue, but that I want to at least mention here because it would be solved if logging-in-libraries best practices were authoritatively documented and exemplified: it's just too consarn easy

[issue34590] "Logging HOWTO" should share an example of best practices for using logging in a library

2018-09-05 Thread Nathaniel Manista
New submission from Nathaniel Manista : https://docs.python.org/3.8/howto/logging.html#configuring-logging-for-a-library is a bit too short and doesn't answer some questions that I have as a library author about the best ways to use logging in a library. Should I make use of a single logger

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-28 Thread Nathaniel Manista
New submission from Nathaniel Manista : https://docs.python.org/3.8/tutorial/errors.html (and all other versions of that page back at least as far as 2.7) currently contain the guidance "When creating a module that can raise several distinct errors, a common practice is to create a base

[issue34133] ValueError documented as being restricted to only "a built-in operation or function"

2018-07-17 Thread Nathaniel Manista
Nathaniel Manista added the comment: Thank you both! -- ___ Python tracker <https://bugs.python.org/issue34133> ___ ___ Python-bugs-list mailing list Unsub

[issue34133] ValueError should not be documented as being restricted to only "a built-in operation or function"

2018-07-16 Thread Nathaniel Manista
New submission from Nathaniel Manista : The documentation for ValueError currently describes it as being "Raised when a built-in operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exce

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2018-05-26 Thread Nathaniel Manista
Change by Nathaniel Manista <nathan...@google.com>: -- nosy: +Nathaniel Manista ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-17 Thread Nathaniel Manista
Nathaniel Manista <nathan...@google.com> added the comment: As I am learning from the examples, I don't have the confidence to propose a fix to them. :-P For the IPv4-and-IPv6 "Echo server program": should s be closed at some point after "conn, addr = s.accept()

[issue31739] socket.close recommended but not demonstrated in same-page example code

2017-10-09 Thread Nathaniel Manista
New submission from Nathaniel Manista <nathan...@google.com>: https://docs.python.org/3.7/library/socket.html#socket.socket.close says "it is recommended to close() [sockets] explicitly, or to use a with statement around them", but in the example code on the sam

[issue22729] `wait` and `as_completed` depend on private api

2017-05-26 Thread Nathaniel Manista
Nathaniel Manista added the comment: gRPC Python is strongly affected by this as well. We use grpc.Future objects (https://github.com/grpc/grpc/blob/e5f99b587338164230b0b2121d242fb015c2ae5a/src/python/grpcio/grpc/__init__.py#L50) to represent RPCs taking place asynchronously. Despite our

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Nathaniel Manista
Nathaniel Manista added the comment: Wait, really? My report came out of a real bug that I had in my system and shipped to my users; it wasn't academic or contrived at all. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Nathaniel Manista
New submission from Nathaniel Manista: The attached file when executed should fail (raise an exception) one line above where it actually does. Right? I discovered this in 2.7 but have confirmed that it's still a problem in 3.6.0b2. -- components: Library (Lib) files: abc_what.py