[issue45546] Unable to pickle enum with nested frozen dataclass?

2021-10-20 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +ethan.furman ___ Python tracker <https://bugs.python.org/issue45546> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45546] Unable to pickle enum with nested frozen dataclass?

2021-10-20 Thread Eric V. Smith
Eric V. Smith added the comment: I get an error with 3.8.10, but not on the main branch (3.11). I don't have other versions handy to test. Removing 3.6, as it's no longer getting bug fixes, and this doesn't look like a security issue. -- nosy: +eric.smith versions: -Python 3.6

[issue45531] field "mro" behaves strangely in dataclass

2021-10-20 Thread Eric V. Smith
Eric V. Smith added the comment: I think the only other thing that could be done is to have a special test for "default is type.mro", and if so, don't assume it's a default value. Which means that you could never actually use: @dataclass class A: mro: object = type.mro But it'

[issue45531] field "mro" behaves strangely in dataclass

2021-10-19 Thread Eric V. Smith
Eric V. Smith added the comment: I agree on your analysis. You'll get the same error on any name that type defines (like __class__), but "mro" looks like the only one without dunders. I'm not sure the best way to fix this. I'll give it some thought. Another problem is that

[issue45531] field "mro" behaves strangely in dataclass

2021-10-19 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45531> ___ ___ Python-bugs-list mai

[issue45497] Argparse: Refactor '%' interpolation to f-strings

2021-10-16 Thread Eric V. Smith
Eric V. Smith added the comment: As a rule, we don’t accept such wholesale changes. If there’s a performance problem, or a bug, then we’d look at individual cases. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-16 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45485> ___ ___

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: It sounds like you're using python 2.7, which is unsupported. You've not even shown us what line produces the error you're seeing. I don't see "type(a[0])" anywhere in the code you posted. Lacking a way to reproduce this on our own with python 3.x,

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: If you want us to check if there's a bug in Python here, please reduce this to 5 or 10 lines, with no external dependencies. As it is, we cannot run this code. You also need to show how you run the program, what version of Python you're using, and what

[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the correction, Ned! -- ___ Python tracker <https://bugs.python.org/issue45480> ___ ___ Python-bugs-list mailin

[issue45485] datetime.strptime issues message attribute of type 'NoneType' is not callableTraceback

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: Please provide a code snippet we can run that demonstrates the problem. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45481] gc is disabled without explict calling gc.disable()

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: Sorry, but since this is a 2.7 issue, I'm going to close it here. I know this isn't the answer you wanted, but this is really the wrong venue. I suggest you ask on StackOverflow or the python-list mailing list (https://mail.python.org/mailman/listinfo/python

[issue45480] Missing link(s) to the "Python Module Index" page

2021-10-15 Thread Eric V. Smith
Eric V. Smith added the comment: I think https://github.com/python/pythondotorg/issues is the correct place to report issues with the web site. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45468] Add support for preloading a Python script

2021-10-14 Thread Eric V. Smith
Eric V. Smith added the comment: Can you accomplish what you want with .pth files? -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45446] Add a way to hide fields in dataclasses

2021-10-13 Thread Eric V. Smith
Eric V. Smith added the comment: "hide" is not a good name for this. Does attrs have anything equivalent? This seems like a pretty niche usage, so I'm not inclined to include it without evidence of a wide-spread need for it. -- assignee: -&g

[issue45448] PIP package installation failure for multiple packages

2021-10-12 Thread Eric V. Smith
Eric V. Smith added the comment: You should report these problems to the numpy and tensorflow projects. I'm assuming they don't support 3.10 yet. -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -&g

[issue45446] Add a way to hide fields in dataclasses

2021-10-12 Thread Eric V. Smith
New submission from Eric V. Smith : Please explain what "hiding" does. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45446> ___ ___

[issue45427] importlib.readers.MultiplexedPath

2021-10-11 Thread Eric V. Smith
Eric V. Smith added the comment: Can you provide a short code snippet that we can run that demonstrates the problem? Looking at the code, and not knowing much about it, maybe iterating over the paths with .iterdir() is what you want? -- nosy: +eric.smith

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-11 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-11 Thread Eric V. Smith
Eric V. Smith added the comment: Please report this on the pandas bug tracker: https://github.com/pandas-dev/pandas/issues -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45384] Accept Final as indicating ClassVar for dataclass

2021-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: I was waiting for someone smarter than me to chime in on one of the discussions. I wouldn't worry about whether it's a bug or feature, at this point. Assuming buy-in from type checkers, I'd probably call it a bug, but I can be reasoned with. One thing I

[issue45351] List all sockets in TCP echo server using streams

2021-10-07 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not clear why you're suggesting this change. Is this additional functionality, or is the current example broken? Is the text wrong, or just the code? -- nosy: +eric.smith ___ Python tracker <ht

[issue45377] Default python 3 docs still pointing to 3.9.7

2021-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You should report this at https://github.com/python/pythondotorg/issues -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue45384] Accept Final as indicating ClassVar for dataclass

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

[issue42914] pprint numbers with underscore

2021-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: The safest thing to do is never make it the default. It would always be an opt-in behavior. -- ___ Python tracker <https://bugs.python.org/issue42

[issue45368] ~(True) and ~(False) gives incorrect result

2021-10-04 Thread Eric V. Smith
Eric V. Smith added the comment: What were you expecting? I think those are correct. See: >>> ~1 -2 >>> ~0 -1 -- nosy: +eric.smith ___ Python tracker <https://bugs.

[issue44674] dataclasses should allow frozendict default value

2021-10-03 Thread Eric V. Smith
Change by Eric V. Smith : -- type: compile error -> behavior ___ Python tracker <https://bugs.python.org/issue44674> ___ ___ Python-bugs-list mailing list Un

[issue44674] dataclasses should allow frozendict default value

2021-10-03 Thread Eric V. Smith
Eric V. Smith added the comment: That's a good idea, Raymond. >>> [x.__hash__ is None for x in (list, dict, set, frozenset)] [True, True, True, False] I don't think this change would cause any backward compatibility issues, except it would now allow a default of something

[issue45349] configparser.ConfigParser: 2 newlines at end of file (EOF)

2021-10-02 Thread Eric V. Smith
Eric V. Smith added the comment: Please provide code that we can run that shows the problem. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45345] Equalized lists depend to each other after equalizing

2021-10-02 Thread Eric V. Smith
Eric V. Smith added the comment: This isn't a bug. In python, the assignment doesn't make a copy, it makes ts and s refer to the same object. So there's really only one list to change, and you can refer to it by either name, ts or s. -- nosy: +eric.smith resolution: -> not a

[issue45333] += operator and accessors bug?

2021-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: Please show what result you're getting, and what result you're expecting. "will not work" is not very helpful for us to replicate it. -- components: -2to3 (2.x to 3.x conversion tool) nosy: +eric.smith

[issue45327] Reading from a file is stuck infinitely when the file name is Boolean

2021-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: The issue is that False is causing a read from stdin, since False == 0. >>> open(0).readlines() test ['test\n'] Here I typed "test", followed by Ctrl-D (end of file). readlines() then completed and printed its result. I think the basic an

[issue45327] Reading from a file is stuck infinitely when the file name is Boolean

2021-09-30 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Interpreter Core -Library (Lib) title: json loads is stuck infinitely when the file name is Boolean -> Reading from a file is stuck infinitely when the file name is Boolean type: -> behavior ___

[issue45327] json loads is stuck infinitely when the file name is Boolean

2021-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: You can demonstrate this without the json module: # python2 >>> open(False) Traceback (most recent call last): File "", line 1, in TypeError: coercing to Unicode: need string or buffer, bool found # python3 >>> open(False).read

[issue45313] Counter.elements() wrong error message

2021-09-28 Thread Eric V. Smith
Eric V. Smith added the comment: When reporting a bug, please give a full example that we can run. I assume aCounter is of type collections.Counter? Assuming so, the "1 positional argument" is "self". The second argument is the number 1, which is an error. So

[issue45293] List inplace addition different from normal addition

2021-09-26 Thread Eric V. Smith
Eric V. Smith added the comment: For those not in front of a computer, the error is: >>> l = l + 'de' Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate list (not "str") to list

[issue20524] format error messages should provide context information

2021-09-24 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the improvement, @sobolevn! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue20524] format error messages should provide context information

2021-09-24 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 8d8729146f21f61af66e70d3ae9501ea6bdccd09 by Nikita Sobolev in branch 'main': bpo-20524: adds better error message for `.format()` (GH-28310) https://github.com/python/cpython/commit/8d8729146f21f61af66e70d3ae9501ea6bdccd09

[issue45202] Add 'remove_barry_from_BDFL' future to revert effects of 'from __future__ import barry_as_FLUFL'

2021-09-15 Thread Eric V. Smith
Eric V. Smith added the comment: I agree this should be rejected due to pointlessness and complexity. I'll give my usual advice: if you really want to see this happen, I suggest opening a discussion on the python-ideas mailing list. Then if there's consensus to go ahead, this issue can

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: > log_dir = Path('logs/{date}') > log_file = Path(str(path).format(time.strftime('%Y-%m-%d')) / 'log.txt' (I think you're missing "date=" in the call to .format().) Could you show what you think this would look like if Path.__format__ existed

[issue45170] tarfile missing cross-directory checking

2021-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: This is documented in the tarfile docs: Warning Never extract archives from untrusted sources without prior inspection. It is possible that files are created outside of path, e.g. members that have absolute filenames starting with "/" or filename

[issue45165] alighment format for nullable values

2021-09-10 Thread Eric V. Smith
Change by Eric V. Smith : -- type: behavior -> enhancement versions: -Python 3.10 ___ Python tracker <https://bugs.python.org/issue45165> ___ ___ Python-

[issue45165] alighment format for nullable values

2021-09-10 Thread Eric V. Smith
Eric V. Smith added the comment: Why would you only want alignment, and not all string formatting options? And if that's the case, just convert it to a string: >>> f'{None!s:>8} {1:>8}' 'None1' -- nosy: +eric.smith ___

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Changes merged to master and 3.10. Thanks, everyone! @pablogsal: You can merge this to 3.10.0 if you see fit, but I'm going to close this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue45151] Logger library with task scheduler

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Can you simplify this to not use any external libraries? -- components: -IO, Windows nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: @pablogsal: You might want to merge this back to 3.10.0, once it's merged to 3.10. I'll merge it shortly, once the tests have run. -- keywords: -patch nosy: +pablogsal stage: patch review -> ___ Python trac

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks to both of you. Unfortunately, I have to pick one PR to use, and since dlintin had the earlier one, I'll use it. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Please see the dev guide https://devguide.python.org/ for setting the description of the PR. If it's set correctly, the PR will be attached to this issue. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45147] Typo in "What's New In Python 3.10" documentation

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

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +easy, newcomer friendly ___ Python tracker <https://bugs.python.org/issue45147> ___ ___ Python-bugs-list mailin

[issue45135] dataclasses.asdict() incorrectly calls __deepcopy__() on values.

2021-09-08 Thread Eric V. Smith
Eric V. Smith added the comment: The intent was that asdict() returns something that, if mutated, doesn't affect the original object tree. I'd sort of like to just deprecate it, it's got a lot of corner cases that are poorly handled. It probably needs the same kind of controls

[issue45130] shlex.join() does not accept pathlib.Path objects

2021-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: I was using str.join() as an analogy. I apologize if that was confusing. I'll state this as clearly as I can: I don't think shlex.join() should automatically convert any arguments to str, not even those that are Path's. Nothing is going to be solved

[issue45130] shlex.join() does not accept pathlib.Path objects

2021-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: My point is that shlex.join() shouldn’t convert any arguments to strings, no matter their type. Just like str.join() doesn’t, and for the same reason. Within the last few years there was a discussion on making str.join() auto-convert it’s arguments to str

[issue45130] shlex.join() does not accept pathlib.Path objects

2021-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: I disagree. In my mind, there's no more reason for shlex.join() to take Path objects than there is for str.join() to take them, or for shlex.join() to convert int's to str's. I'd rather shlex.join() continue to raise an exception if passed something that's

[issue45121] Regression in 3.9.7 with typing.Protocol

2021-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: Sorry I didn't notice your reference to issue 45081. -- ___ Python tracker <https://bugs.python.org/issue45121> ___ ___ Pytho

[issue45111] whole website translation error

2021-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: Per PEP 545, you should probably raise this on the doc-sig mailing list (https://mail.python.org/mailman/listinfo/doc-sig), and/or one of the repos https://github.com/python/python-docs-zh-cn or https://github.com/python/python-docs-zh-cn. I'm going

[issue45121] Regression in 3.9.7 with typing.Protocol

2021-09-06 Thread Eric V. Smith
Eric V. Smith added the comment: Possibly related to issue 45081, which ended up not having anything to do with dataclasses (despite the title). Can you check if that fix solves your problem? -- nosy: +eric.smith ___ Python tracker <ht

[issue45086] f-string unmatched ']'

2021-09-03 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think it really makes a difference, but here's some background: For f-strings, the parser itself does not break apart the f-string into (, ) parts. There's a custom parser (at https://github.com/python/cpython/blob

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I (and many others) think the error message is fine the way it is. Also, it's hard for the error to be more specific about the method it's being called on. But if you have some concrete suggestions that can be implemented, you can add them to this issue

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: You said: """ b''.split(',') # gives strange error message. TypeError: a bytes-like object is required, not 'str' """ It is not a strange error message. You passed in a str (the ','), and yo

[issue45087] Confusing error message when trying split bytes.

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: This is working as designed. The error is telling you that the argument to bytes.split() must be a string: >>> b''.split(',') Traceback (most recent call last): File "", line 1, in TypeError: a bytes-like object is required, not 'st

[issue45086] f-string unmatched ']'

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's basically this error: >>> num] File "", line 1 num] ^ SyntaxError: unmatched ']' Although I'd have to look at it more to see why that's the error it chose to display, instead

[issue45086] f-string unmatched ']'

2021-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I think the error is short for "I found a ']' without a matching '['". -- nosy: +eric.smith ___ Python tracker <https://bugs.python.o

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

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

[issue45047] Update demo files

2021-08-29 Thread Eric V. Smith
Eric V. Smith added the comment: It looks like they want to add a RatinMaze.py demo program, which solves a maze. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue45

[issue44993] enum.auto() starts with one instead of zero

2021-08-26 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> closed ___ Python tracker <https://bugs.python.org/issue44993> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44993] enum.auto() starts with one instead of zero

2021-08-24 Thread Eric V. Smith
Eric V. Smith added the comment: I think everyone understands, we just feel that it doesn't matter. You can see if PEP 435 answers your question. Changing to an enhancement request for 3.11, for the proposal to add a optional argument to auto(). -- nosy: +ethan.furman type

[issue44993] enum.auto() starts with one instead of zero

2021-08-24 Thread Eric V. Smith
Eric V. Smith added the comment: Other than it’s not what you expect, do you have a concrete example of what problem this is causing you? We’re unlikely to change anything without knowing what problem is being solved. -- nosy: +eric.smith

[issue44985] Inconsistent returned value of inspect.getfullargspec(object.__init__).

2021-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: Well, as you note, technically object.__init__ does take args and kwargs. It just raises an exception if if finds any. What are you proposing to change here? -- components: -Distutils, Parser nosy: +eric.smith

[issue44981] wildcard imports should normalise names in `__all__`

2021-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: How about making it an error to have non-NFKC normalized names in __all__? -- ___ Python tracker <https://bugs.python.org/issue44

[issue44981] `module has no attribute` when `__all__` includes certain unicode characters

2021-08-22 Thread Eric V. Smith
Eric V. Smith added the comment: I'd be okay with changing it to a 3.11 enhancement to normalize elements of __all__, or maybe a request to change the documentation. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44981] `module has no attribute` when `__all__` includes certain unicode characters

2021-08-22 Thread Eric V. Smith
Eric V. Smith added the comment: Python normalizes identifiers with NFKC (see PEP 3131): >>> e0 = "ϵ" >>> import unicodedata >>> e1 = unicodedata.normalize("NFKC", e0) >>> e0 == e1 False >>> unicodedata.name(e0) 'GREEK LUNATE EPS

[issue44979] pathlib: support relative path construction

2021-08-22 Thread Eric V. Smith
Eric V. Smith added the comment: To be clear, by "file", you mean python source file, or I guess .pyc file if only that exists. I can't say I've given it much thought. What about built-in modules? Or frozen modules? I'm not sure this is a great idea. In general, we've frown

[issue44943] Integrate PyHyphen into the textwrap module?

2021-08-20 Thread Eric V. Smith
Eric V. Smith added the comment: I agree this doesn’t belong in the stdlib. For future reference, my principal objections are 1) the need to manage and distribute per-language dictionaries and 2) difficulty in determining the best algorithm for the stdlib. There are a lot of ways to tweak

[issue44944] Addition of _heappush_max method to complete the max heap implementation in Python's heapq module

2021-08-18 Thread Eric V. Smith
New submission from Eric V. Smith : This has been discussed and rejected in at least issue 27295 and issue 42240, and probably others. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue44

[issue44943] Integrate PyHyphen into the textwrap module?

2021-08-18 Thread Eric V. Smith
Eric V. Smith added the comment: Thank you for the suggestion. Hyphenation seems like a niche requirement to me, probably too niche and with too many design decisions to include it in the stdlib. It's also not clear to my why PyHyphen would be the best option for this, as opposed

[issue44922] isinstance breaks on imported dataclasses

2021-08-16 Thread Eric V. Smith
Eric V. Smith added the comment: You're importing main.py twice. The first is when you run "python main.py", where it has the module name '__main__'. The second time is in codegen.py, where it has the name 'main'. You create the AtomX instance as __main__.AtomX, but the isinst

[issue44922] isinstance breaks on imported dataclasses

2021-08-15 Thread Eric V. Smith
Eric V. Smith added the comment: I get a circular import error: Traceback (most recent call last): File "main.py", line 1, in import codegen File "/cygdrive/c/home/eric/codegen.py", line 1, in from main import AtomX File "/cygdrive/c/h

[issue44910] Floating point issue

2021-08-13 Thread Eric V. Smith
Eric V. Smith added the comment: This a limitation of the floating point type that python uses. See https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -&g

[issue44901] Info about used pickle protocol used by multiprocessing.Queue

2021-08-12 Thread Eric V. Smith
Eric V. Smith added the comment: Because this is a usage question and not a bug, you'll get more help using the python-list mailing list or Stack Overflow, or some other Q forum. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.

[issue44877] Python > 3.7 build fails with IBM XL compiler

2021-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: As to the actual problem, I think you're going to need to get out a debugger and at least get a stack trace. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44877] Python > 3.7 build fails with IBM XL compiler

2021-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: > P.S. The tarball I attached before contains the configure and make output for > tests on multiple python version branches. I differentiated them by adding a > version identifier suffix (_3.7, _3.8, _3.9, _3.10, _3.11) I was referring to the two fi

[issue44877] Python > 3.7 build fails with IBM XL compiler

2021-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: Rather than have us wading through all of the output, can you summarize the problem? After a brief look I don't see any actual compiler errors. In make.out_3.9, at least, it looks like "generate-posix-vars failed", but I can't see why. What does .

[issue44870] email.message_from_bytes not working on BytesIO() object

2021-08-09 Thread Eric V. Smith
Eric V. Smith added the comment: Use filecontent.getvalue(): https://docs.python.org/3/library/io.html#io.BytesIO.getvalue -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracke

[issue41779] add BLOB photo to sqlite3 python

2021-08-06 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41779> ___ ___

[issue44842] String conversion of Path removes '/' from original url

2021-08-05 Thread Eric V. Smith
Eric V. Smith added the comment: But that's a perfectly valid filename: $ mkdir -p adl://myblob.azuredatalakestore.net/local/abc/xyz $ ls -R adl: 'adl:': myblob.azuredatalakestore.net/ 'adl:/myblob.azuredatalakestore.net': local/ 'adl:/myblob.azuredatalakestore.net/local': abc/ 'adl

[issue44842] String conversion of Path removes '/' from original url

2021-08-05 Thread Eric V. Smith
Eric V. Smith added the comment: pathlib is not designed to support URIs, so this behavior is not surprising. You want to use a different library, maybe urllib. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue44

[issue44837] os.symlink arg names are bad

2021-08-05 Thread Eric V. Smith
Eric V. Smith added the comment: There's really no way we'd consider breaking possibly millions of working programs to change the parameter names. I guess you could come up with some way of supporting both sets of parameter names, but I doubt we'd accept that, either. While maybe

[issue44837] os.symlink arg names are bad

2021-08-05 Thread Eric V. Smith
Eric V. Smith added the comment: @krey: What's your suggested change? We can change neither the parameter order nor parameter names without breaking code, so that won't happen. You created this as a documentation issue. Do you have a suggested documentation change? -- nosy

[issue44835] What does "Python for Windows will still be Python for DOS" mean?

2021-08-04 Thread Eric V. Smith
New submission from Eric V. Smith : Since this is not a bug in Python, this is not the appropriate place to ask. I suggest you try the python-list mailing list https://mail.python.org/mailman/listinfo/python-list And I don't know what it means. I've never heard of that saying before

[issue44833] VideoCapture is not installing

2021-08-04 Thread Eric V. Smith
Eric V. Smith added the comment: I don't know, and this isn't the right place to ask (since this is not a bug in Python). I suggest you ask on a VideoCapture specific forum. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44833] VideoCapture is not installing

2021-08-04 Thread Eric V. Smith
Eric V. Smith added the comment: Please do no post screen captures. Copy and paste the text into the bug report. It looks like VideoCapture has not released a 3.9 compatible wheel file on PyPI. You should follow up with that project directly, as it is not part of python’s standard library

[issue44818] '\t' (tab) support

2021-08-04 Thread Eric V. Smith
Eric V. Smith added the comment: Please show us an example that demonstrates your problem. Show us the code you tried, what you expected to happen, and what actually happened. Otherwise we can’t help you. -- nosy: +eric.smith ___ Python tracker

[issue44683] Can't subscript objects with the string "1" using str.format()

2021-08-04 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Interpreter Core -Unicode ___ Python tracker <https://bugs.python.org/issue44683> ___ ___ Python-bugs-list mailin

[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

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

[issue44799] typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar

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

[issue44787] Missing valid directive %D in datetime.strftime() documentation

2021-07-30 Thread Eric V. Smith
Eric V. Smith added the comment: It's dependent on the platform's C library's strftime(). I think (but don't promise) that we document the C89 codes, but each platform might provide additional ones. -- nosy: +eric.smith ___ Python tracker <ht

[issue44773] case_insensitive kwarg in str.replace()

2021-07-30 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond that this should be rejected. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue44

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Steven, but since I have this typed up I'll post it here. Yes, iterability is another namedtuple feature. Although that would actually be easy to add to dataclasses, so I didn't mention it. I don't really see the point of combining them, except

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread Eric V. Smith
Eric V. Smith added the comment: namedtuples have features like true immutability, being smaller, and being faster. -- versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44

<    1   2   3   4   5   6   7   8   9   10   >