[issue41992] Unable to install lxml using pip in Python 3.9

2020-10-10 Thread Eric V. Smith
Eric V. Smith added the comment: Closing as third party. -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33894] tempfile.tempdir cannot be unset

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

[issue41967] Handle annotations in the parser to avoid the need for roundtrip

2020-10-07 Thread Eric V. Smith
Eric V. Smith added the comment: It's true that f-string expressions can't contain newlines. f-strings are definitely easier, because the tokenizer has already tokenized the string from the input, so I'm just remembering pointers inside the tokenized string. I was thinking

[issue41967] Handle annotations in the parser to avoid the need for roundtrip

2020-10-07 Thread Eric V. Smith
Eric V. Smith added the comment: For what it's worth, here's how f-strings with the "=" feature work: I remember the char* pointer where the expression starts, then I parse the expression into an AST, then I note the char* pointer where the expression ended. The text bet

[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker <https://bugs.python

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-05 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> rejected ___ Python tracker <https://bugs.python.org/issue41934> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You could try setting EXTRATESTOPTS, although I haven't tried it. This question is probably better asked on python-list or StackOverflow. -- ___ Python tracker <https://bugs.python.org/is

[issue41947] Tests When Building Python

2020-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: >From the test.regrtest help: -j PROCESSES, --multiprocess PROCESSES run PROCESSES processes at once So, if you want to run 4 processes in parallel: ./python -m test.regrtest -j4 -- nosy: +eric.sm

[issue41934] Add `has` method to `pathlib.Path` class.

2020-10-04 Thread Eric V. Smith
Eric V. Smith added the comment: Isn't this just: (project_path / "main.py").exists() ? I don't think .has would be any more efficient. -- nosy: +eric.smith ___ Python tracker <https://bug

[issue41907] Regression in IntFlag behaviour in f-string

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

[issue41905] add update_abstractmethods function to update an ABC's abstract methods

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

[issue41892] use both "for in" and "ElementTree.remove" has a index bug

2020-10-01 Thread Eric V. Smith
Eric V. Smith added the comment: I can't say how ElementTree works without more checking, but this solution cannot work in general. Given a pointer to an object that's in a list, how would you get to the next item? Say the parent list-like object has a C array of pointers to the

[issue41899] Poor example for Element.remove()

2020-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: As you've seen, the example is correct. I made the same mistake earlier today. For others: see also #41891 for a suggestion to improve the documentation. As was pointed out in that issue, it's generally true in Python that you should not mutate

[issue41893] remove() method is not working as expected(Hard to explain)

2020-09-30 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker <https://bugs.python

[issue41892] use both "for in" and "ElementTree.remove" has a index bug

2020-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: The example is iterating over the list returned by root.findall(), but removing from a different data structure in root, so it won't have a problem. -- ___ Python tracker <https://bugs.python.org/is

[issue41892] use both "for in" and "ElementTree.remove" has a index bug

2020-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: Ah, good point. I agree the example should make that clear. And I think a note in .remove() about using it while iterating would be a good idea, too. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41892] use both "for in" and "ElementTree.remove" has a index bug

2020-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: I think the only action here is to improve the documentation. That example is especially problematic. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41892] use both "for in" and "ElementTree.remove" has a index bug

2020-09-30 Thread Eric V. Smith
Eric V. Smith added the comment: I assume that ElementTree doesn't support mutation while iterating. However, the docs at https://docs.python.org/3/library/xml.etree.elementtree.html#modifying-an-xml-file show removing an item while iterating. It probably only works because the child

[issue41885] Unexpected behavior re.sub() with raw f-strings

2020-09-29 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41885> ___ ___

[issue41885] Unexpected behavior re.sub() with raw f-strings

2020-09-29 Thread Eric V. Smith
Eric V. Smith added the comment: f-strings are indeed evaluated when the value of the string is needed. Your example is equivalent to: >>> re.sub(r'([a-z]+)', fr"\112345", 'something') 'J345' As always with regexes, you need to be careful

[issue41838] Value error is showing in docset python (class)

2020-09-28 Thread Eric V. Smith
Eric V. Smith added the comment: If you can provide the information requested, please reopen this issue. In the meantime, I’m closing it. -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracke

[issue13790] In str.format an incorrect error message for list, tuple, dict, set

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

[issue41799] splunklib.client does not handle Unicode characters

2020-09-26 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> third party stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.or

[issue41838] Value error is showing in docset python (class)

2020-09-24 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue41838> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41838] Value error is showing in docset python (class)

2020-09-23 Thread Eric V. Smith
Eric V. Smith added the comment: It would be helpful if you can: - simplify the example - attach the simplified code to this issue - show how the code runs with no errors, and how you invoke it - show how you invoke the code when it does have errors Please do no attach images: they are not

[issue41827] 2D array issue

2020-09-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, Serhiy. That's a better section than I found. I'm going to close this. @jeetshahj12375: If you can show that this is a bug in python, please re-open this issue. -- resolution: -> not a bug stage: -> resolved status

[issue41827] 2D array issue

2020-09-22 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue41827> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41828] No longer able to override DATA_UPLOAD_MAX_MEMORY_SIZE outside of settings.py

2020-09-22 Thread Eric V. Smith
Eric V. Smith added the comment: No problem. Good luck! -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41836] Improve ctypes error reporting with missing DLL path

2020-09-22 Thread Eric V. Smith
Eric V. Smith added the comment: My understanding is that Windows doesn't tell you which DLL is missing. I think the best we could do is append something to the error message saying "or one its dependencies". -- components: +Windows nosy: +eric.smith, paul.moo

[issue41828] No longer able to override DATA_UPLOAD_MAX_MEMORY_SIZE outside of settings.py

2020-09-22 Thread Eric V. Smith
Eric V. Smith added the comment: This seems like a Django specific error, in which case this isn't the correct bug tracker to report the problem. Can you reproduce a problem with just straight Python, without using Django? -- nosy: +eric.

[issue41827] 2D array issue

2020-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: Your example is too complex to work through in my head, but I suspect this is the issue you're seeing: https://docs.python.org/3/faq/programming.html#why-did-changing-list-y-also-change-list-x In any event, this is almost certainly not a bug in Python

[issue41810] Consider reintroducing `types.EllipsisType` for the sake of typing

2020-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for doing the research, Bas! It sounds like adding back in NoneType, NotImplementedType, and EllipsisType is appropriate, then. +1 The commit should have a comment about the reason: for type checkers which can't use type(Ellipsis), etc. I

[issue41820] ipaddress allows "00" in ipv4 address octets

2020-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: The first point should have been "RFC 790 uses 000 in examples, so I think ipaddress is doing the correct thing already." -- ___ Python tracker <https://bugs.python.o

[issue41820] ipaddress allows "00" in ipv4 address octets

2020-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this, for two reasons: - RFC 790 uses 000 in examples, do I think ipaddress is doing the correct thing already. - We'd be unlikely to change this in any event, for fear of breaking existing, working code. @anudeepballa07: if y

[issue41827] 2D array issue

2020-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: Please provide the output you see and the output you expect. And it would be better if you could just post the code into the comment window. I, for one, cannot run your .ipynb file. -- nosy: +eric.smith ___ Python

[issue41810] Consider reintroducing `types.EllipsisType` for the sake of typing

2020-09-21 Thread Eric V. Smith
Eric V. Smith added the comment: Does anyone know why types.EllipsisType was removed to begin with? I just want to make sure we're not repeating some mistake of the past. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/is

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Given that RFC 790 uses 000 as an octet (thanks Serhiy), I think the bug here, if there is one, is in the other validator that you're using. Without a standard saying not to accept 00 or 000, I think we won't make any c

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Please do not include screen shots in bug reports. They've unfriendly to people who use screen readers or other accessibility software. Instead, please copy and paste (or retype, if needed) the text into the comment section. > '172.16.25

[issue41820] ipaddress Library gives me incorrect results

2020-09-20 Thread Eric V. Smith
Eric V. Smith added the comment: Simplified: >>> import ipaddress >>> print(ipaddress.ip_address('172.16.254.00').version) 4 So your concern is that you think '172.16.254.00' (or equivalently, '172.16.254.0') shouldn't be treated as a vali

[issue29526] Documenting format() function

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

[issue41803] Robots.txt

2020-09-17 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue41803> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41803] Robots.txt

2020-09-17 Thread Eric V. Smith
Eric V. Smith added the comment: It's not clear what bug you're describing, or how it relates to Python. Can you provide more information, and show what behavior your seeing, and what behavior you're expecting? -- nosy: +eric.smith ___

[issue41799] splunklib.client does not handle Unicode characters

2020-09-16 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue41799> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41799] splunklib.client does not handle Unicode characters

2020-09-16 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like an issue with splunklib, which is not distributed with python. I'm not sure if it's the same splunklib, but you might try https://github.com/IntegralDefense/splunklib -- nosy: +

[issue41776] Revise example of "continue" in the tutorial documentation

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

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-15 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset a0da90720d5330c53b8083272374ede1c7a1e33a by Miss Islington (bot) in branch '3.8': bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22256) https://github.com/p

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-15 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0cc037f8a72c283bf64d1968e34cbdc22b0e3010 by Miss Islington (bot) in branch '3.9': bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) (GH-22255) https://github.com/p

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-15 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 7bcc6456ad4704da9b287c8045768fa53961adc5 by Neeraj Samtani in branch 'master': bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234) https://github.com/python/cpython/commit/7bcc6456ad4704da9b28

[issue41783] Standard Color class

2020-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: Yeah, I don't want to give any false hope on getting such a class accepted to the stdlib. It's not super likely to be accepted unless there's a more compelling motivation on why it needs to be in the stdlib and n

[issue41783] Standard Color class

2020-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: The normal way for something like this to be added to the stdlib would first be for a version on PyPI to be widely used. Then it would be evaluated for suitability for inclusion in the stdlib. Having it first on PyPI would flesh out the API and use cases

[issue41782] No f-string in logging.basicConfig()

2020-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: Vinay raises a good point about performance that's well worth being aware of, especially with expensive objects (as he says). But since f-strings are much faster than other formatting (and especially .format()), there's a tradeoff. If I have someth

[issue41782] No f-string in logging.basicConfig()

2020-09-14 Thread Eric V. Smith
Eric V. Smith added the comment: Since an f-string just evaluates to a regular string at the call site, before any logging code is invoked, there's nothing for the logging code to do. As far as it's concerned, it just gets a regular string. -- nosy: +

[issue41779] add BLOB photo to sqlite3 python

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: The bug tracker is not the correct place to request help on using Python. You might try the python-list mailing list. You can find information on it at https://mail.python.org/mailman/listinfo/python-list. Or you might wait until someone answers your Stack

[issue41778] Change a punctuation on documentation

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

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset b3d11abcbc0fcf794f9be29aa78bb3d100a54960 by Emmanuel Arias in branch '3.9': [3.9] bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22232) https://github.com/python/cpython/commit/b3d11abcbc0fcf794f9be29aa78bb3

[issue41778] Change a punctuation on documentation

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset d09bead93990eed26ecb8fcd02a8a3f6e8fa73b7 by Miss Islington (bot) in branch '3.8': bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22230) https://github.com/python/cpython/commit/d09bead93990eed26ecb8fcd02a8a3

[issue41776] Revise example of "continue" in the tutorial documentation

2020-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: I think that's a good change. It makes it clear when reading the source that the print statement at the end of the loop is only executed for odd numbers. Sure, you know this if you execute the code, or if you know how python for loops and continue work

[issue41772] Zipfile.testzip considers wrong password as correct

2020-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: I believe what testzip is doing is validating the structural integrity of the file, which appears can be tested without decrypting the contents. Although it is odd that if you don't call setpassword, even with the wrong password, testzip will ra

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: Removing Windows and IDLE devs from nosy list, since this isn't related to either of those areas. -- nosy: -paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware ___ Python tracker <https://bugs.py

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Documentation -IDLE, Windows ___ Python tracker <https://bugs.python.org/issue41774> ___ ___ Python-bugs-list mailin

[issue41774] While removing element from list using for and remove(), which has same items output is not right

2020-09-12 Thread Eric V. Smith
Eric V. Smith added the comment: You should not mutate a list while iterating over it. See, for example https://stackoverflow.com/questions/6260089/strange-result-when-removing-item-from-a-list I couldn't find a place where this is mentioned in the python list docs. If it's not

[issue41753] subprocess.run on windows does not convert path to string

2020-09-09 Thread Eric V. Smith
Eric V. Smith added the comment: Among others, see: issue 41649 issue 31961 In general, I think the consensus is that the caller should convert each argument to a string. It's not subprocess's job to convert each parameter to a string. -- nosy: +

[issue41724] SQLite returns "str" instead of "datetime.datetime" with aggregate queries.

2020-09-05 Thread Eric V. Smith
Eric V. Smith added the comment: [Adjusted title so that it displays correctly when not logged in. The text within less-than and greater-than was being dropped, probably because some piece of code didn't want to display unknown tags.] -- nosy: +eric.smith title: SQLite re

[issue41672] imaplib: wrong return type documented

2020-09-03 Thread Eric V. Smith
Eric V. Smith added the comment: For the case of returning a list of non-tuples, all of my code assumes bytes, so I think changing the docs to say bytes is good. "bytes-like" might be overkill. Unfortunately, I don't know enough to say what encoding is returned: I ju

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue41693> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not convinced. Isn't the real problem that exc_value is a str, and you're just hiding that problem now? -- ___ Python tracker <https://bugs.pyt

[issue41693] AttributeError: 'str' object has no attribute '__cause__' (python3.8/traceback.py", line 479, in __init__)

2020-09-02 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like a problem with jupyter, possibly related to the permission error. Have you tried a jupyter forum for help? -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue41

[issue41681] f-string error description seems wrong

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

[issue41681] f-string error description seems wrong

2020-09-01 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset c16a2a1b643d3e04f86780e2c9e66c3f9f322560 by Miss Islington (bot) in branch '3.9': bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036) (GH-22041) https://github.com/python/cpyt

[issue41681] f-string error description seems wrong

2020-09-01 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0d6aa7f0ee38eb453bc8f73bf4830e6172be2f35 by han-solo in branch 'master': bpo-41681: Fix for `f-string/str.format` error description when using 2 `,` in format specifier (GH-22036) https://github.com/python/cpyt

[issue41681] f-string error description seems wrong

2020-08-31 Thread Eric V. Smith
Change by Eric V. Smith : -- versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue41681> ___ ___ Python-bugs-list mailin

[issue41681] f-string error description seems wrong

2020-08-31 Thread Eric V. Smith
Eric V. Smith added the comment: It has to do with how the specification for the mini-language is parsed and how the defaults work. It could probably be fixed, but I'm personally not super motivated to track it down. But I'd look at a patch! I'm going to remove versions t

[issue39994] pprint handling of dict subclasses that override __repr__

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

[issue41645] Typo First Page of Documentation

2020-08-26 Thread Eric V. Smith
Eric V. Smith added the comment: I read it as "It HAS ... data structures and it HAS ... a simple but effective approach ...". So if I were changing it I might add the second "has". Or maybe adding "uses" would be better. But I'm not sure it's a gre

[issue41598] Adding support for rounding modes to builtin round

2020-08-26 Thread Eric V. Smith
Eric V. Smith added the comment: If you're using round(str(some_float), digits) and the result is a float, then that's a problem, since you're going to round it again for display at some point. If you want a string result, you're better off using format(float, format

[issue41598] Adding support for rounding modes to builtin round

2020-08-26 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think we should add this. It will often surprise the user. We get enough .1+.2 != .3 reports as it is, and this would be just as problematic. -- nosy: +eric.smith ___ Python tracker &

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like a problem in pyright, not in CPython. -- ___ Python tracker <https://bugs.python.org/issue41564> ___ ___ Pytho

[issue41605] t = re.sub(".*", "*", src) has different ouput

2020-08-21 Thread Eric V. Smith
Eric V. Smith added the comment: I'm suspicious that this differs per-OS. Please provide exact Python version information for each OS you list in your initial report. I suspect what you're seeing is related to this change: Changed in version 3.7: Empty matches for the pattern ar

[issue41600] Expected behavior of argparse given quoted strings

2020-08-20 Thread Eric V. Smith
Eric V. Smith added the comment: Completely agree with paul j3. The calling tool is breaking the "argv" conventions. If the OP can control the calling tool, it should be fixed there. -- ___ Python tracker <https://bugs.python.o

[issue41600] Expected behavior of argparse given quoted strings

2020-08-20 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: enhancement -> behavior ___ Python tracker <https://bugs.python

[issue41600] Expected behavior of argparse given quoted strings

2020-08-20 Thread Eric V. Smith
Eric V. Smith added the comment: This is all working as designed. We do not want to modify argparse to split parameters. You probably want to split the input with shlex.split(). See https://stackoverflow.com/questions/44945815/how-to-split-a-string-into-command-line-arguments-like-the-shell

[issue41589] Strange behavior with sparse.dok_matrix decimal is cast to integer

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: This seems like a scipy or numpy issue, not a Python bug. You might have better luck asking about this behavior on a scipy or numpy forum of some kind, or maybe on Stackoverflow. -- nosy: +eric.smith ___ Python

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: Okay. We'll see if someone else can provide more info. -- ___ Python tracker <https://bugs.python.org/issue41587> ___ ___

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: Sorry, I don't have any particular suggestion other than accounting for all virtual, shared, and physical memory of all types, and seeing how they're being used and allocated per-process by the various tools. There are probably guides for t

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: You'll have to play with it. I'm just saying that it's a very complicated subject, and not as simple as asking how much memory an individual process is using. For example, see https://www.howtogeek.com/659529/how-to-check-memory-usage-from-the

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: It's likely that the same memory is being counted by both processes, to the output is misleading. Shared memory is notoriously difficult to allocate per-process. For example, it's definitely true that the shared memory is consuming virtual addres

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-18 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker <https://bugs.python.org/issue41564> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-17 Thread Eric V. Smith
Eric V. Smith added the comment: We need to know how to trigger the problem you're seeing. You need to provide code we can run that shows the error you're seeing. -- ___ Python tracker <https://bugs.python.o

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-16 Thread Eric V. Smith
Eric V. Smith added the comment: Without some example code that shows the problem we can't help you. Have you considered that this is a bug with pyright, not a bug with python itself? -- nosy: +eric.smith status: open -> pending ___ Python

[issue39994] pprint handling of dict subclasses that override __repr__

2020-08-15 Thread Eric V. Smith
Eric V. Smith added the comment: Only 3.8 - 3.10 would be eligible for this fix. 3.7 is getting only security fixes. -- versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue39

[issue39994] pprint handling of dict subclasses that override __repr__

2020-08-15 Thread Eric V. Smith
Eric V. Smith added the comment: I realize it might break some corner cases, but I really think we should re-write pprint to use functools.singledispatch. Or if the breakage isn't acceptable, abandon it and create a new module that does use singledispatch. That way it would be e

[issue39994] Redundant code in pprint module.

2020-08-15 Thread Eric V. Smith
Eric V. Smith added the comment: I went ahead and closed the PR. Either @Palak Kumar Jha or someone else can create a new PR. The suggestions in the original PR should be addresses. -- nosy: +eric.smith ___ Python tracker <https://bugs.python.

[issue41554] PR proceeds to "awaiting core review" when changes are requested

2020-08-14 Thread Eric V. Smith
Eric V. Smith added the comment: I think this belongs under https://github.com/python/bedevere -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue41

[issue41410] Opening a file in binary mode makes a difference on all platforms in Python 3

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

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

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

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-11 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug status: open -> closed ___ Python tracker <https://bugs.python.org/issue41518> ___ ___ Python-bugs-

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: I agree, Steven. This doesn't seem to be a problem with Python. It's more likely a problem with the user's shell, or some other environment integration problem. If it can be duplicated in 3.8 or later, we can inve

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: Also, how are you running this? From the interactive shell (like I show in my previous message), or some other way? -- ___ Python tracker <https://bugs.python.org/issue41

[issue41518] incorrect printing behavior with parenthesis symbols

2020-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: Here's what I see: Python 3.6.9 (default, Jul 21 2019, 14:33:59) [GCC 7.4.0] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> stack = ['(', '(', &#x

[issue41517] Enum multiple inheritance loophole

2020-08-10 Thread Eric V. Smith
Eric V. Smith added the comment: With Python 3.7.4, which is all I have handy, that code does not give a runtime error. It prints "B.b". Your text says code "when creating a multiple inheritance like the following, it works". It sounds like you know the code samp

<    4   5   6   7   8   9   10   11   12   13   >