[issue43872] Unable to compile cpython in Visual Studio 2019

2021-04-16 Thread Eric V. Smith
Eric V. Smith added the comment: Okay, and good luck! -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue43872> ___ ___ Python-

[issue43872] Unable to compile cpython in Visual Studio 2019

2021-04-16 Thread Eric V. Smith
Eric V. Smith added the comment: It's almost certainly not a bug in CPython. But you haven't even shown us what the error is, so it's impossible to say. What error are you seeing? -- nosy: +eric.smith ___ Python tracker <https://bugs.python.

[issue43858] Provide method to get list of logging level names

2021-04-15 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue43858> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43858] Provide method to get list of logging level names

2021-04-15 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43858> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43835] Dataclasses don't call base class __init__

2021-04-14 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker <https://bugs.python.org/issue43835> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43820] Remove namespace copy from dataclasses.make_dataclass()

2021-04-14 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43835] Dataclasses don't call base class __init__

2021-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, I'm sure it happens. from dataclasses import dataclass @dataclass class Foo: foo: int def __init__(self, a, b, c): self.foo = a * b * c @dataclass class Bar(Foo): bar: int print(Bar(1, 2)) print(Foo(1, 2, 3

[issue43835] Dataclasses don't call base class __init__

2021-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: But Bar(1, 2), Bar(1, foo=2), Bar(bar=1, foo=2) all give errors. These are all valid if both Foo and Bar are decorated with @dataclass. Calling base class __init__() functions is an incompatible change, and I don't think we'll make any change to do so

[issue43835] Dataclasses don't call base class __init__

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: > The dataclass doesn't need to know what arguments the parent __init__ > accepts. It should consume the arguments it needs to initialize its instance > attributes, and forward the rest to the parent __init__. The generated __init__() uses every

[issue43080] pprint for dataclass instances

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for all of the work, LewisGaul. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43080] pprint for dataclass instances

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 11159d2c9d6616497ef4cc62953a5c3cc8454afb by Lewis Gaul in branch 'master': bpo-43080: pprint for dataclass instances (GH-24389) https://github.com/python/cpython/commit/11159d2c9d6616497ef4cc62953a5c3cc8454afb

[issue43835] Dataclasses don't call base class __init__

2021-04-13 Thread Eric V. Smith
Eric V. Smith added the comment: dataclasses doesn't know the signature of the base class's __init__, so it can't know how to call it. I realize you've given an example that would accept any parameters, but that isn't typical. What if the base class was: @dataclasses.dataclass class Foo

[issue43820] Remove namespace copy from dataclasses.make_dataclass()

2021-04-12 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +24105 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25372 ___ Python tracker <https://bugs.python.org/issu

[issue43820] Remove namespace copy from dataclasses.make_dataclass()

2021-04-12 Thread Eric V. Smith
New submission from Eric V. Smith : In make_dataclasses(), the "namespace" argument is copied because it is mutated. This isn't really necessary: the callback passed to types.new_class() could just update its "ns" parameter with "namespace" and with the n

[issue43816] Missing 'extern "C"' for _Py_ctype_table

2021-04-12 Thread Eric V. Smith
Eric V. Smith added the comment: These files were probably added as part of str.format() or short float repr. I think the fact that they've been moved to Include/cpython means that user code shouldn't be using them. See https://bugs.python.org/issue35134 and https://vstinner.github.io/split

[issue43815] documentation for types.new_class() mention misleading default for exec_body

2021-04-12 Thread Eric V. Smith
New submission from Eric V. Smith : https://github.com/python/cpython/blob/3.8/Lib/types.py The documentation says "If no callback is provided, it has the same effect as passing in lambda ns: ns." I read this as saying that the callback should return the namespace, but in reality

[issue43808] Add .isfloat() method to str

2021-04-11 Thread Eric V. Smith
Eric V. Smith added the comment: Wouldn't the next thing you do be to convert it to a float, so you'd call float() twice? I think you'd be better off just catching the exception yourself, and using the result of float(). I'm opposed to such a simple function being a member of str

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 750f484752763fe9ac1d6455780aabcb67f25508 by Eric V. Smith in branch 'master': bpo-43764: Add match_args=False parameter to dataclass decorator and to make_dataclasses function. (GH-25337) https://github.com/python/cpython/commit

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +24072 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25337 ___ Python tracker <https://bugs.python.org/issu

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: I can go either way. It's easy enough for the user to add their own __match_args__, so I won't link them. Here's what I have for the documentation, which is why the issue came up: - ``match_args``: If true (the default is ``True

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: > Are there other cases where suppressing one thing affects others? Only the complex interactions among the unsafe_hash, eq, and frozen parameters. It feels like if __init__ is not being generated, then the @dataclass code would have no idea what it sho

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: Here's a question. If __init__ is not being generated, either because the user supplied one to this class, or if init=False is specified, should __match_args__ be generated? I think the answer should be no, since the code has no idea what the parameters

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: Okay, I'll re-open this to just add @dataclass(match_args=False). -- resolution: rejected -> stage: resolved -> needs patch status: closed -> open ___ Python tracker <https://bugs.python.or

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: > So, should we reopen this ad add the flag to suppress __match_args__ > generation after all? I think so, although I'm still contemplating it. I can't decide if we should also add match_arg=False to field(). Or is it good enough to just tell th

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-10 Thread Eric V. Smith
Eric V. Smith added the comment: > Do you need anything from me here? No, I don't think so. Thanks. -- ___ Python tracker <https://bugs.python.org/issu

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: Hmm, good point on the inheritance case. I'd forgotten that this is where init=False and others would come in handy. Although I'm having a hard time figuring out why you'd want a derived class that adds fields but wants to use the parent's __match_args__

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: I do think it's worth mentioning that __match_args__ is automatically generated by @dataclass (if the class doesn't already define __match_args__). That seems like behavior that's very specific to @dataclass. Where else would you find out that defining your

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-09 Thread Eric V. Smith
Eric V. Smith added the comment: init=False is used to make sure there's no __init__ defined, because there's a difference between a class with an __init__ and one without. If there was a difference between __match_args__ being not present and __match_args__=(), then I'd support a matchargs

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Can you put together an example we can run? Either from a single file, or multiple modules in the current directory? The "..." import makes it complicated to reproduce. -- ___ Python track

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Eric V. Smith
Change by Eric V. Smith : -- Removed message: https://bugs.python.org/msg390548 ___ Python tracker <https://bugs.python.org/issue43746> ___ ___ Python-bugs-list m

[issue43746] Weird typing annotation closure behavior

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Can you put together an example we can actually run? -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43

[issue43747] Can't create new interpreter in multi thread

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: You might have more luck asking on the capi-sig mailing list: https://mail.python.org/mailman3/lists/capi-sig.python.org/ I'm going to close this, because it looks like a usage question and not a bug. If it turns out to be a bug, please re-open this issue

[issue43661] api-ms-win-core-path-l1-1.0.dll, redux of 40740 (which has since been closed)

2021-04-08 Thread Eric V. Smith
Eric V. Smith added the comment: Closing as a duplicate. Any discussion should be on the original issue. -- nosy: +eric.smith resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: This is documented behavior. See https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Address "The following constitutes a valid IPv4 address: ... An integer packed into a bytes object of length 4 (most significant octet

[issue43769] ipaddress module takes bytes input as valid ip address

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: The reproducer is: >>> ipaddress.IPv4Address(b"PING") IPv4Address('80.73.78.71') -- components: +Library (Lib) -Unicode nosy: +eric.smith ___ Python tracker <https://bugs

[issue43764] Turning off generation of __match_args__ for dataclasses

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: What's the situation where having __match_args__ is actually harmful in some way? I understand that if the generated version is wrong, you'd want to specify it yourself. But what's the use case for not having __match_args__ at all? -- assignee

[issue43761] Documenting dataclass and namedtuple changes for structural pattern matching

2021-04-07 Thread Eric V. Smith
Eric V. Smith added the comment: Turning off the generation of __match_args__ should be a separate issue. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43759] StreamHandler does not print to sys.stderr immediately

2021-04-07 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: fixed -> not a bug ___ Python tracker <https://bugs.python.org/issue43759> ___ ___ Python-bugs-list mailing list Un

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 2df971afd5f29574be3bb44f2d8569cc240b800d by Miss Islington (bot) in branch '3.9': Fix blurb for bpo-43176. (GH-25215) (GH-25217) https://github.com/python/cpython/commit/2df971afd5f29574be3bb44f2d8569cc240b800d

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 1744c96ebc98b240f2564f75191097704b37244f by Eric V. Smith in branch 'master': Fix blurb for bpo-43176. (GH-25215) https://github.com/python/cpython/commit/1744c96ebc98b240f2564f75191097704b37244f

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: +23953 pull_request: https://github.com/python/cpython/pull/25215 ___ Python tracker <https://bugs.python.org/issue43

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 8a34a0793bcb830350dac675524310bb285e5e4f by Miss Islington (bot) in branch '3.9': bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205) https://github.com/python/cpython/commit/8a34a0793bcb830350dac675524310bb285e5e4f

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-04-06 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.or

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: @shreyanavigyan: Thank you for your efforts to improve Python! -- resolution: -> wont fix ___ Python tracker <https://bugs.python.org/issu

[issue43728] Change the exception message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Ned. This is why I'm not sure it’s worth changing the message: googling gives good information, and the exact thing to do in order resolve this (if it’s even possible) is dependent on a number of factors that the code raising the exception can’t

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 013c30e5fcee449cee63354d34585d6111782c82 by Miss Islington (bot) in branch '3.9': bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25200) https://github.com/python/cpython/commit

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset bdee2a389e4b10e1c0ab65bbd4fd03defe7b2837 by Miss Islington (bot) in branch '3.8': bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25201) https://github.com/python/cpython/commit

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: While I wouldn't object to tweaking the message associated with the exception, I'm not sure it's necessary. Googling "curses modulenotfound" gives a number of hits that have good information about the issue. Is there really a practical problem th

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Eric V. Smith
Eric V. Smith added the comment: > ModuleNotFoundError: _curses library not found. Install a supported _curses > library to use the curses module. Is installing _curses possible, on any supported platform? Or would a better message say that curses is not supported on this pl

[issue43695] Improve `=` in f-strings

2021-04-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. I agree with Serhiy that it's pushing f-strings too far. If you really want to pursue this, you'll need to specify the semantics much more clearly, and then bring it up on the python-ideas mailing list. But I don't want to give you

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43697> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43695] Improve `=` in f-strings

2021-04-01 Thread Eric V. Smith
Eric V. Smith added the comment: I don't see how this would be possible in general. What would you do with a function call that has side effects? f'{a()+b+c=}' ? You'd end up calling a() twice, or inventing your own expression evaluator. -- nosy: +eric.smith

[issue43678] TypeError: get() got an unexpected keyword argument 'vars'

2021-03-31 Thread Eric V. Smith
New submission from Eric V. Smith : Please provide example code that we can run which demonstrates the problem. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43

[issue43677] Descriptor.rst - Reference to Py_MethodType is not up to date

2021-03-31 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's PyMethod_Type. -- nosy: +eric.smith, rhettinger ___ Python tracker <https://bugs.python.org/issue43677> ___ ___

[issue43675] test

2021-03-30 Thread Eric V. Smith
Change by Eric V. Smith : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43675> ___ ___ Python-bugs-list

[issue43624] Add underscore as a decimal separator for string formatting

2021-03-29 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond. We can't make a change that would modify existing program output. Which is unfortunate, but such is life. And I'd prefer to see groupings of 5 on the right, but I realize I might be in the minority

[issue31907] doc: Clarify error message when attempting to call function via str.format()

2021-03-28 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 9a8e0780247acb256dd8b04c15b3dd0f59ef2fe1 by Miss Islington (bot) in branch '3.9': bpo-31907: [doc] clarify that str.format() does not support arbitrary expressions (GH-25053) (GH-25055) https://github.com/python/cpython/commit

[issue31907] doc: Clarify error message when attempting to call function via str.format()

2021-03-28 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31907] doc: Clarify error message when attempting to call function via str.format()

2021-03-28 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset fb1d01b9630b5069fe975f16e07a027d90b89434 by Irit Katriel in branch 'master': bpo-31907: [doc] clarify that str.format() does not support arbitrary expressions (#25053) https://github.com/python/cpython/commit

[issue31907] doc: Clarify error message when attempting to call function via str.format()

2021-03-28 Thread Eric V. Smith
Eric V. Smith added the comment: > The syntax is related to that of formatted string literals, but it is less > sophisticated and, in particular, does not support arbitrary expressions. That seems fine to me. -- ___ Python tracker

[issue43624] Add underscore as a decimal separator for string formatting

2021-03-25 Thread Eric V. Smith
Eric V. Smith added the comment: If we do anything for float, we should do the same for decimal.Decimal. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43624] Add underscore as a decimal separator for string formatting

2021-03-25 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43624> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43618] random.shuffle loses most of the elements

2021-03-24 Thread Eric V. Smith
Eric V. Smith added the comment: Same advice as issue 43616: please provide an example we can run. This most likely a problem with how you're using lxml, and not a bug in python. But since we can't test it, we can't know for sure. -- nosy: +eric.smith

[issue41064] Specialise syntax error of **dict in f-string field

2021-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: The parens are added in fstring_compile_expr at https://github.com/python/cpython/blob/9feae41c4f04ca27fd2c865807a5caeb50bf4fc4/Parser/string_parser.c#L391 I don't recall if this is really only a "skip leading whitespace" problem, or if there's

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +easy -patch stage: patch review -> needs patch ___ Python tracker <https://bugs.python.org/issue43558> ___ ___ Python-

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: -23731 ___ Python tracker <https://bugs.python.org/issue43558> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: -23730 ___ Python tracker <https://bugs.python.org/issue43558> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43559] ctypes: Heap Pointer is damaged between C and Python

2021-03-19 Thread Eric V. Smith
Eric V. Smith added the comment: Are you using a 64-bit version of python? What is sys.maxsize? -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-19 Thread Eric V. Smith
New submission from Eric V. Smith : https://docs.python.org/3/library/dataclasses.html#post-init-processing should mention that if you need to call super().__init__, you should do it in __post_init__. Dataclasses cannot know what parameters to pass to the super class's __init__, so you'll

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-18 Thread Eric V. Smith
Eric V. Smith added the comment: I'd add a note to the docs about it, then open a feature request to change the behavior. You could turn this issue into a documentation fix. Unfortunately I don't know if there's a core dev who pays attention to the XML parsers. But I can probably find out

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-18 Thread Eric V. Smith
Eric V. Smith added the comment: I'm +0.5. Every time this bites me, I apply the same solution, so you're probably right that str.join should just do the work itself. And it's no doubt more performant that way, anyway. And I've probably got some code that's just waiting for the current

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +23671 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24909 ___ Python tracker <https://bugs.python.org/issu

[issue33129] Add kwarg-only option to dataclass

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: Closing this in favor of issue 43532, which has a slightly elaborated approach. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Add keyword-only fields to

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Eric V. Smith
New submission from Eric V. Smith : The idea is that a keyword-only field becomes a keyword-only argument to __init__(). For the proposal and a discussion, see https://mail.python.org/archives/list/python-id...@python.org/message/FI6KS4O67XDEIDYOFWCXMDLDOSCNSEYG/ The @dataclass decorator

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: I think that's good text, once the enhancement is made. But for existing versions of python, shouldn't we just document that the text might come back in chunks? I don't have a feel for what the limit should

[issue43471] Fails to import bz2 on Ubuntu

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. @xmm: If you can provide more information showing that this is a bug in Python or its build process, please re-open this issue. -- resolution: -> not a bug stage: -> resolved status: open -&g

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, that's very helpful. Does this only affect content text? This should definitely be documented. As far as changing it, I think the best thing to do is say that if the context text is less than some size (I don't know, maybe 1MB?) that it's guaranteed

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: Could you give an example (using a list of callbacks and values or something) that shows how it's behaving that you think is problematic? That's the part I'm not understanding. This doesn't have to be a real example, just show what the user is getting that's

[issue43516] python on raspberry pi

2021-03-16 Thread Eric V. Smith
Eric V. Smith added the comment: You’ve not told us the behavior you see or the behavior you expect, so we can’t tell if this is a bug in python. But it’s in all likelihood not a bug. If you want to get help with your code, I suggest asking on the python-list mailing list or maybe

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: I think we could document where a "quoted string of length 8 characters would be returned in multiple pieces" occurs. Which API is that? If we change that, and if we call it an enhancement instead of a bug fix, then it can't be backported. It woul

[issue43080] pprint for dataclass instances

2021-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: I'm leaning toward accepting this on the condition that it only be invoked for dataclasses where __repr__ was the version generated by @dataclass. And also that it use the same fields that the generated __repr__ would use (basically skipping repr=False

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-15 Thread Eric V. Smith
Eric V. Smith added the comment: Perhaps you could open a documentation bug? I think specific examples of where the documentation is wrong, and how it could be improved, would be helpful. Thanks! -- nosy: +eric.smith ___ Python tracker <ht

[issue43477] from x import * behavior inconsistent between module types.

2021-03-13 Thread Eric V. Smith
Eric V. Smith added the comment: "git blame" will help you identify the authors. It looks there are 5 people involved: Brett, Antoine, Nick, Eric Snow, and Dino. -- ___ Python tracker <https://bugs.python.o

[issue43477] from x import * behavior inconsistent between module types.

2021-03-12 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +brett.cannon, eric.smith ___ Python tracker <https://bugs.python.org/issue43477> ___ ___ Python-bugs-list mailing list Unsub

[issue43471] Fails to import bz2 on Ubuntu

2021-03-11 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue43471> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43471] Fails to import bz2 on Ubuntu

2021-03-10 Thread Eric V. Smith
Eric V. Smith added the comment: You're probably missing needed dependencies. For example, see https://stackoverflow.com/questions/12806122/missing-python-bz2-module If you look at the output of make, you should be able to see that _bz2 wasn't built. -- nosy: +eric.smith

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-10 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43463> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-09 Thread Eric V. Smith
Eric V. Smith added the comment: David: If you could give us an example showing the inputs, the actual outputs, and how they differ from what you expect, that would be helpful. Otherwise it's a lot of guessing on our part. -- nosy: +eric.smith

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 6d4273356764a3837c914b2aced7a668c534e0be by Miss Islington (bot) in branch '3.8': bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24791) https://github.com/python/cpython/commit/6d4273356764a3837c914b2aced7a668c534e0be

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset fb3b0310305acdfad7c26705c2ee9a8712a43cf4 by Miss Islington (bot) in branch '3.9': bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24790) https://github.com/python/cpython/commit/fb3b0310305acdfad7c26705c2ee9a8712a43cf4

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: docs@python -> eric.smith title: Typo -> Typo in dataclasses documentation ___ Python tracker <https://bugs.python.org/i

[issue43415] Typo

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c by Guilherme Martins Crocetti in branch 'master': bpo-43415: Fix typo on dataclasses.rst (#24789) https://github.com/python/cpython/commit/0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c

[issue43415] Typo

2021-03-06 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43415> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43355] __future__.annotations breaks inspect.signature()

2021-03-03 Thread Eric V. Smith
Eric V. Smith added the comment: I think this is all about: should inspect.signature() resolve string annotations into actual types (via get_type_hints, or whatever)? I don't use expect much, so I can't offer an opinion there. -- ___ Python

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread Eric V. Smith
Eric V. Smith added the comment: Was def createD(D): supposed to be: def createD(d): ? Not that that changes your problem. I just want to understand the exact issue. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43

[issue43355] __future__.annotations breaks inspect.signature()

2021-03-02 Thread Eric V. Smith
Eric V. Smith added the comment: Can you show the values of “expected” and “actual” for both the failures and successes? -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43

[issue43342] Error while using Python C API

2021-03-01 Thread Eric V. Smith
Eric V. Smith added the comment: You're going to get more help by posting your question elsewhere. This isn't a forum where we can help you debug your code: it's for reporting bugs in Python. You might try https://discuss.python.org/c/users/, or maybe the python-list mailing list. Good

  1   2   3   4   5   6   7   8   9   10   >