[issue46281] Python 3.10.1 build errors on Ubuntu 18.04

2022-01-07 Thread Bob Rivoir
Bob Rivoir added the comment: According to synaptic, I have openssl 1.1.1-1ubuntu2.1~18.04-14 installed. On the openssl.org site they mention that this version doesn't eol till 2023. Shouldn't this still work? Or does python require the 3

[issue46281] Python 3.10.1 build errors on Ubuntu 18.04

2022-01-06 Thread Bob Rivoir
New submission from Bob Rivoir : _hashlib and _ssl modules failed to compile on my Ubuntu 18.04 system. Attached is a file with the error outputs. -- files: python-3.10.1-build-errors.txt messages: 409853 nosy: rhr242 priority: normal severity: normal status: open title: Python

[issue42297] [argparse] Bad error message formatting when using custom usage text

2021-08-06 Thread Bob Blanchett
Change by Bob Blanchett : -- nosy: +bobblanchett ___ Python tracker <https://bugs.python.org/issue42297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43790] CLA check fails with a 500 error

2021-04-10 Thread Bob Kline
Bob Kline added the comment: And now it's working for me as well. Thanks, @Mariatta. -- resolution: third party -> fixed status: open -> closed ___ Python tracker <https://bugs.python.

[issue43790] CLA check fails with a 500 error

2021-04-10 Thread Bob Kline
Bob Kline added the comment: I can, if you prefer, close this ticket and create a new one on GitHub (even though this is the same issue, not a different "further" issue). -- ___ Python tracker <https://bugs.python.o

[issue43790] CLA check fails with a 500 error

2021-04-10 Thread Bob Kline
Bob Kline added the comment: To reproduce, enter "bkline" in the GitHub username field and press Check. -- ___ Python tracker <https://bugs.python.o

[issue43790] CLA check fails with a 500 error

2021-04-10 Thread Bob Kline
Bob Kline added the comment: Sorry, it's still failing with the same error message. -- status: closed -> open ___ Python tracker <https://bugs.python.org

[issue43790] CLA check fails with a 500 error

2021-04-10 Thread Bob Kline
Bob Kline added the comment: Super, thanks! -- ___ Python tracker <https://bugs.python.org/issue43790> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Bob Kline
Bob Kline added the comment: Apparently, it doesn't fail when you enter a name for which it can't find a b.p.o. account. So it knows how to say "beelzebub does not have bpo account" but fails when I put in "bkline" in the GitHub username field. It's temp

[issue43777] Remove description of "pip search" command from tutorial

2021-04-09 Thread Bob Kline
Bob Kline added the comment: I have reported the failure of the CLA check tool. https://bugs.python.org/issue43790 -- ___ Python tracker <https://bugs.python.org/issue43

[issue43790] CLA check fails with a 500 error

2021-04-09 Thread Bob Kline
New submission from Bob Kline : The tool to check whether the CLA has been received fails with a 500 error. Steps to reproduce: 1. Add your GitHub name to your b.p.o. record. 2. Navigate to https://check-python-cla.herokuapp.com/ 3. Enter your GitHub name and press the "Check" butt

[issue43777] Remove description of "pip search" command from tutorial

2021-04-09 Thread Bob Kline
Bob Kline added the comment: Thanks for the clarification. I submitted a PR, but I'm unable to remove the "CLA not signed" tag from it (even though I have signed the CLA) and form at https://check-python-cla.herokuapp.com/ ("You can check yourself to see if the C

[issue43777] Remove description of "pip search" command from tutorial

2021-04-08 Thread Bob Kline
Bob Kline added the comment: PR submitted: https://github.com/python/cpython/pull/25287 -- ___ Python tracker <https://bugs.python.org/issue43777> ___ ___ Pytho

[issue43777] Remove description of "pip search" command from tutorial

2021-04-08 Thread Bob Kline
New submission from Bob Kline : The official tutorial instructs users to find third-party packages by using the "pip search" command, which no longer works (and will be deprecated -- and presumably subsequently removed -- according to the error message). See https://docs.pytho

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-10 Thread Bob
Change by Bob : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43183> ___ ___ Python-bugs-list mailing list

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
Change by Bob : -- assignee: -> christian.heimes components: +SSL nosy: +christian.heimes versions: +Python 3.10, Python 3.7, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
Change by Bob : Added file: https://bugs.python.org/file49799/server.py ___ Python tracker <https://bugs.python.org/issue43183> ___ ___ Python-bugs-list mailin

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
New submission from Bob : I wrote a simple proxy with Python3.8 and Asyncio, but I found it couldn't handle passive close correctly, a lot of CLOSE_WAIT sockets couldn't be released. I had trouble shot it for a long time with no progress. netstat -anop tcp | grep CLOSE_WAIT tc

[issue43183] Asyncio can't close sockets properly on Linux cause CLOSE_WAIT

2021-02-09 Thread Bob
Change by Bob : -- components: asyncio nosy: Bob_2021, asvetlov, yselivanov priority: normal severity: normal status: open title: Asyncio can't close sockets properly on Linux cause CLOSE_WAIT type: behavior versions: Python 3.8 ___ Python tr

[issue41633] pydoc skips methods of nested classes

2020-08-25 Thread Bob Kline
Bob Kline added the comment: Here is the generated documentation. Note that no mention is made of the inner class's method. -- Added file: https://bugs.python.org/file49429/Screen Shot 2020-08-25 at 11.26.39 AM.png ___ Python tracker &

[issue41633] pydoc skips methods of nested classes

2020-08-25 Thread Bob Kline
New submission from Bob Kline : Although the documentation for the pydoc says that it produces documentation of the classes recursively, this isn't actually true. -- components: Library (Lib) files: repro.py messages: 375891 nosy: bkline priority: normal severity: normal status:

[issue41577] Cannot use ProcessPoolExecutor if in a decorator?

2020-08-18 Thread Bob Fang
Change by Bob Fang : -- versions: +Python 3.6, Python 3.7, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41577> ___ ___ Python-bugs-list mailin

[issue41577] Cannot use ProcessPoolExecutor if in a decorator?

2020-08-18 Thread Bob Fang
New submission from Bob Fang : I have this minimal example: ``` from functools import wraps from concurrent import futures import random def decorator(func): num_process = 4 def impl(*args, **kwargs): with futures.ProcessPoolExecutor() as executor: fs

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

2020-07-27 Thread Bob Kline
New submission from Bob Kline : The documentation for tempfile.mkstemp() says "If text is specified, it indicates whether to open the file in binary mode (the default) or text mode. On some platforms, this makes no difference." That might have been true for Python 2.x, but in Pytho

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

2020-06-06 Thread Bob Ippolito
Bob Ippolito added the comment: I would certainly reconsider it at this point, I think a bona fide ABC *specific to JSON encoding* would be a good way to do it. simplejson has two ways to do this, the `for_json` parameter which will use a `for_json()` method on any object as the JSON

[issue38438] argparse "usage" overly-complex with nargs="*"

2019-10-10 Thread Bob Alexander
New submission from Bob Alexander : This program: import argparse ap = argparse.ArgumentParser() ap.add_argument("arg", nargs="*") ap.parse_args() Gives usage message: usage: help_complexity.py [-h] [arg [arg ...]] It's correct, but unnecessarily complex and chal

[issue38409] Typo in doc string for str.strip

2019-10-08 Thread Bob Dowling
New submission from Bob Dowling : The doc string for str.strip() has a typo: the "d" at the end of "removed" is missing. help(str.strip) Currently: Return a copy of the string with leading and trailing whitespace remove. Should be: Return a copy of the string with

[issue38003] Change 2to3 to replace 'basestring' with '(str,bytes)'

2019-09-07 Thread Bob Kline
Bob Kline added the comment: OK, I give up. In parting I will point out that the official Python 2 documentation says "basestring() This abstract type is the superclass for str and unicode. It cannot be called or instantiated, but it can be used to test whether an object is an instan

[issue38003] Incorrect "fixing" of isinstance tests for basestring

2019-09-06 Thread Bob Kline
Bob Kline added the comment: > Unless you have a specific proposal, ... I _do_ have a specific proposal: replace `basestring` with `(str, bytes)`, which preserves the behavior of the original code. So, if isinstance(value, basestring) becomes if isinstance(value, (str, by

[issue38003] Incorrect "fixing" of isinstance tests for basestring

2019-09-01 Thread Bob Kline
Bob Kline added the comment: > Use str instead. Sure. I understand the advantages of the new approach to strings. Which, by the way, weren't available when this project began. I don't disagree with anything you say in the context of writing new code. I was, however, surprised

[issue38003] Incorrect "fixing" of isinstance tests for basestring

2019-09-01 Thread Bob Kline
New submission from Bob Kline : We are attempting to convert a large Python 2 code base. Following the guidance of the official documentation (https://docs.python.org/2/library/functions.html#basestring) we created tests in many, many places that look like this: if isinstance(value

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: In fact, I suppose it's possible that the warning as I worded it is still not restrictive enough, and that there are subtle dependencies between the fixers which would make the action of one of them render the code no longer safely fixable as Python 2 co

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: Thanks, I understand. However, this highlights something which had slipped under my radar. You get one shot at running a code set through the tool. You can't do what I was doing, which was to run the tool in "don't write" mode, then fix

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: Ah, this is worse than I first thought. It's not just converting code by adding extra backslashes to regular expression strings, where at least the regular expression engine will do what the original code was asking the Python parser to do (unless user

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
Bob Kline added the comment: The original string had u"""...""" and the u had already been removed by hand in preparation for moving to Python 3. -- ___ Python tracker <h

[issue37996] 2to3 introduces unwanted extra backslashes for unicode characters in regular expressions

2019-08-31 Thread Bob Kline
New submission from Bob Kline : -UNWANTED = re.compile("""['".,?!:;()[\]{}<>\u201C\u201D\u00A1\u00BF]+""") +UNWANTED = re.compile("""['".,?!:;()[\]{}<>\\u201C\\u201D\\u00A1\\u00BF]+""") The

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
bob gailer added the comment: Thanks for explaining. Indeed range appears in __builtins__. It is a surprise to type range and get in response. sum otoh gives . The distinction between function, type and class seems muddy. When I enter "range" in the index box in the windows doc

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
New submission from bob gailer : In section 8.3 The for statement there is a reference to range as a built-in function. That was true in python 2. Now range is a built-in type. -- assignee: docs@python components: Documentation messages: 346745 nosy: bgailer, docs@python priority

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: I decided to check the file in notepad++ and I saw that there actually is an indentationerror... However, the save button wasn't working I guess. I can't tell you how many times i hit ctrl+s and clicked save. Wow, so it still

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: uhm, the current file is attached now is there some sort of error and you guys see it differently??? i can't be the only one getting this. I swear i have everything right, and i'll attach an image if i need too. -- Added file: https://bugs.

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: The error it gives is unexpected indent (sys32pack.py, line 41) (im also using IDLE) FYI. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
Bob Vegene added the comment: No, I removed that before. I actually did have one, but I removed that and it still shows. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37061] The strangest glitch I have ever seen - incorrect indenterror, even on commented out code.

2019-05-26 Thread Bob Vegene
New submission from Bob Vegene : So, I'm making a simple program that will allow me to quickly copy programs to System32 for use on the command line. When I tried testing this in a file called test.py in the same directory as sys32move.py, I got a very strange error. IndentError. I am

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-02-09 Thread Bob Kline
Bob Kline added the comment: I had to add $HOME/usr/lib64 to LD_LIBRARY_PATH to get make to work. -- nosy: +bkline ___ Python tracker <https://bugs.python.org/issue34

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: Here is a debugged version of mylife, which cloned life2.py to use a class for turtle-ing. Note the difficulties at the end of the code -- ontimer(fun, delay) calls for a zero arg function, so draw() cannot be inside the class. Greatly annoying. But now we know

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: Apparently the draw() function must call itself via ontimer. That is not in the docs. But 56 variations later...I just copied Grant Jenks. Apparently he knows what's what. And done() must be the last line. If first omitted, only one draw loop executed, b

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: Thanks. I appreciate the time and effort. But I disagree with the characterization of this problem as 'Resolved'. Turtle is supposed to be simple enough for children yet no one can fix simple turtle code and stop an endless loop? What is the rus

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: OK, thanks. The generated launcher shell command generated includes '-d -i' flags... so I tried running without those and voila, life.py terminates normally. Yay. :-) 2nd, I reviewed the order of commands and I saw that life2.py and mylife.py (the +1 ve

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: hi - i do not use ‘i’...just drag to launcher... and sequence of commands is a good tip but smells like some kind of bug to me if the commands follow written rules. thanks for looking - > > -- ___ Python t

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: I rewrote the life2.py using a class in order to eliminate global variable declarations, and some other things, such as bringing freegames.util#square() instream to be independent of freegames, carefully accounting for every pixel output, etc. Works a little

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: looking at the screen snapshot 'life.py alt-q once.jpg' -- the turtle code keeps running even though System.exit has been completed, and notice the traceback display in the shell caused by the alt-Q. a second press of alt-Q terminates the shell and the t

[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth
Change by bob moth : Added file: https://bugs.python.org/file47923/life2.py ___ Python tracker <https://bugs.python.org/issue35211> ___ ___ Python-bugs-list mailin

[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth
Change by bob moth : Added file: https://bugs.python.org/file47922/life.py ___ Python tracker <https://bugs.python.org/issue35211> ___ ___ Python-bugs-list mailin

[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth
bob moth added the comment: Here is the source, just simply Turtles... https://github.com/grantjenks/free-python-games <https://github.com/grantjenks/free-python-games> Attached life.py and life2.py I don't know what cause the problem. I suspect there is more of a problem than

[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth
bob moth added the comment: send to you? . > On Nov 10, 2018, at 14:41, Eric V. Smith wrote: > > > Eric V. Smith added the comment: > > Please create a small program that reproduces the problem. You should strip > out everything that isn't needed. There

[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread bob moth
New submission from bob moth : Running life.py from the Free Python Games requires alt-Q twice, and the GUI keeps running after System.exit. Running life2.py, (which is my clone, and I will happily share it if you want a great stress tester that gobbles 100% of a CPU core for as long as you

[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

2018-11-06 Thread Bob
Bob added the comment: Hi Josh thanks for answering me and so quick. So if I understood correctly, by inserting an unexpected and unchecked on value, it could lead to a potential vulnerability in the program? Or just a plain failure (which could be a denial of service also)? Thanks again

[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

2018-11-06 Thread Bob
New submission from Bob : ~Description of the problem: I was using ctypes to get a directory file descriptor, and to do so I found this mailing list (https://lists.gt.net/python/dev/696028) from 2008 where a user wrote a piece that could do what the asking user and me were looking for. What

[issue35111] Make Custom Object Classes JSON Serializable

2018-10-31 Thread Bob Ippolito
Bob Ippolito added the comment: That's what the for_json method is in simplejson, it does not have widespread usage. You can implement that when encoding: ``` def json_default(obj): try: return obj.__json__() except AttributeError: raise TypeError("{} can n

[issue35111] Make Custom Object Classes JSON Serializable

2018-10-30 Thread Bob Ippolito
Bob Ippolito added the comment: The trouble with having such a hook is that it would take precedence over any customization you might want or need to do to satisfy the protocol you're implementing. Other than the limited set of types that are part of the JSON specification, th

[issue35005] argparse should accept json and yaml argument types

2018-10-18 Thread Bob Ippolito
Bob Ippolito added the comment: I don't think that this has anything in particular to do with the json module, at least it certainly shouldn't need any additional functionality from there. YAML parsing isn't available in the stdlib last I checked, so that is probably no

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-30 Thread Bob Ippolito
Bob Ippolito added the comment: I suggested that each module would likely implement its own functions tailored to that project's IO and error handling requirements. The implementation may differ slightly depending on the protocol. This is consistent with how JSON is typically dealt

[issue34529] add the option for json.dumps to return newline delimited json

2018-08-29 Thread Bob Ippolito
Bob Ippolito added the comment: I think the best start would be to add a bit of documentation with an example of how you could work with newline delimited json using the existing module as-is. On the encoding side you need to ensure that it's a compact representation without emb

[issue34364] problem with traceback for syntax error in f-string

2018-08-08 Thread bob gailer
New submission from bob gailer : Inconsistent tracebacks. Note that the traceback for bug.py does not reference the module file and line number. # bug.py def f():   f'''   {d e}''' a=b import bug Traceback (most recent call last):   File "",

[issue31652] make install fails: no module _ctypes

2018-07-07 Thread Bob Kline
Bob Kline added the comment: Confirming that this is still failing with 3.7.0 released. -- nosy: +bkline ___ Python tracker <https://bugs.python.org/issue31

[issue1294959] Problems with /usr/lib64 builds.

2018-04-04 Thread Bob Vincent
Change by Bob Vincent : -- nosy: +pillarsdotnet ___ Python tracker <https://bugs.python.org/issue1294959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2018-03-27 Thread Bob Hossley
Bob Hossley added the comment: Mike, Thank you. I moved to Python 3 some time ago. I confirm that Python 3 does not have the problem. But I can't conveniently verify your workaround for Python 2. Regards, Bob bhoss...@ieee.org On 2018-03-27 11:30 AM, Mike Edmunds wrote: > > M

[issue33060] Installation hangs at "Publishing product information"

2018-03-12 Thread Bob Klahn
New submission from Bob Klahn : I am unable to install Python 2.7.14 on my Windows 7 PC. Using python-2.7.14.amd64.msi . The installation hangs at the "Publishing product information" step. Subsequent installation attempts result in the message "Python 2.7.14 (64-bit) setup

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: > ... jemalloc can reduce memory usage ... Thanks for the tip. I downloaded the source and successfully built the DLL, then went looking for a way to get it loaded. Unfortunately, DLL injection, which is needed to use this allocator in Python, seems to be m

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: Thanks for your responses to my comments. I'm working as hard as I can to get my customer's systems migrated into the Python 3 world, and I appreciate the efforts of the community to provide incentives (such as the resolution for this failure) for dev

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: Sorry, I should have used the language of the patch author ("the resolution"). Without the resolution, Python 2.7 eventually runs out of memory and crashes for some correctly written user code. -- ___ Pyth

[issue11849] glibc allocator doesn't release all free()ed memory

2018-01-16 Thread Bob Kline
Bob Kline added the comment: Would it be inappropriate for this fix to be applied to 2.7? -- nosy: +bkline ___ Python tracker <https://bugs.python.org/issue11

[issue29992] Expose parse_string in JSONDecoder

2018-01-11 Thread Bob Ippolito
Bob Ippolito added the comment: Generally speaking, parsing some things as decimal or datetime are schema dependent. It's unlikely that you would want to parse every string that looks enough like a decimal as a decimal, or that you would want to pay the cost of checking every string i

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: The light finally comes on. I actually *was* putting a backslash into the string value, with the raw flag (which is, of course, what you were trying to tell me). Thanks for your patience. :-) -- ___ Python tracker

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: I had been under the impression that "escaped" in this context meant that an escape character (the backslash) was part of the string value for the regular expression (there's a little bit of overloading going on with that word). Thanks for sett

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
New submission from Bob Kline : According to the documentation of the re module, "When this flag [re.VERBOSE] has been specified, whitespace within the RE string is ignored, except when the whitespace is in a character class or preceded by an unescaped backslash; this lets you organiz

[issue31519] Negative number raised to even power is negative (-1 ** even = negative)

2017-09-19 Thread Bob Hunkins
Bob Hunkins added the comment: Thanks. Stupid of me. Appreciate the correction. -- ___ Python tracker <https://bugs.python.org/issue31519> ___ ___ Python-bug

[issue31519] Negative number raised to even power is negative (-1 ** even = negative)

2017-09-19 Thread Bob Hunkins
New submission from Bob Hunkins: Hello, I'm only a novice with Python, so please take it easy on me if I have transgressed. I am using Python 3.6.2 on a win10 64 bit machine, and entered this: >>> a= [-1 ** x for x in range(1,10)] >>> print(a) [-1, -1, -1, -1, -1, -1, -

[issue29992] Expose parse_string in JSONDecoder

2017-05-02 Thread Bob Ippolito
Bob Ippolito added the comment: That's not a very convincing argument. Python 2 only returns byte strings if the input is a byte string and the contents of the string are all ASCII. Facilitating that sort of behavior in 3 would probably cause more issues than it s

[issue30114] json module: it is not possible to override 'true', 'false' values during encoding bool

2017-04-20 Thread Bob Ippolito
Bob Ippolito added the comment: Agreed, this does seem unnecessary. The library has been in active use for over a decade, and this is the first time I've seen this request. I would recommend preprocessing the data that you're going to encode if you have a need for this. --

[issue29992] Expose parse_string in JSONDecoder

2017-04-05 Thread Bob Ippolito
Bob Ippolito added the comment: I agree with that sentiment. If we were to want to support this use case I would rather put together a coherent way to augment the parsing/encoding of anything than bolt it on to what we have. -- ___ Python tracker

[issue29863] Add a COMPACT constant to the json module

2017-03-21 Thread Bob Ippolito
Bob Ippolito added the comment: I suppose I'm +0. I don't think this is particularly useful, but this is closer to the ideal of just having a boolean option. We should probably also plan to remove the documentation for what the type of separators is to give the impression that COMPA

[issue29636] Specifying indent in the json.tool command

2017-03-16 Thread Bob Ippolito
Bob Ippolito added the comment: Probably the best thing we could do here is to mirror the options available in similar tools, such as jq: https://stedolan.github.io/jq/manual/#Invokingjq The relevant options here would be: --indent --tab --compact-output --sort-keys The

[issue29667] socket module sometimes loses response packets

2017-02-27 Thread Bob Kline
New submission from Bob Kline: The socket module does not always return response packets which are successfully delivered to the client host. We ran into this problem with an HTTP request for which socket.recv() raised an exception instead of returning the 301 redirection response which the

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-19 Thread Bob Ippolito
Bob Ippolito added the comment: I would recommend a moratorium on new options until we have a plan to make the usage of the JSON APIs simpler overall. It's accumulated too many options over time. The real trouble is figuring out how to do this in a backwards compatible way that doe

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-14 Thread Bob Ippolito
Bob Ippolito added the comment: I agree, in isolation it's a fine proposal, but the interface here is already a bit too complex and the benefit is pretty minimal. When the size really does matter, you can take care to set it correctly once and be done wi

[issue24505] shutil.which wrong result on Windows

2016-04-04 Thread Bob Alexander
Bob Alexander added the comment: Oops, clarification... I just reread my kind of long previous post, and realized it wasn't very explicit that anything concerning file extensions or prepending the current directory to the PATH apply to Windows only; not Unix (of course). The "

[issue24505] shutil.which wrong result on Windows

2016-04-04 Thread Bob Alexander
Bob Alexander added the comment: Since there seems to be ongoing work on the "which" function, here are a few more thoughts on this function's future: - The existing version does not prepend the current directory to the path if it is already in the path. If the current

[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2015-09-28 Thread Bob Hossley
Bob Hossley added the comment: Thank you R. David Murray. I look forward to being able to move my application to Python 3. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2015-09-28 Thread Bob Hossley
New submission from Bob Hossley: In my function makeMsg(), there is: msg = email.mime.nonmultipart.MIMENonMultipart('text', 'plain', charset='utf-8') msg['Subject'] = email.header.Header(subject, 'utf-8') subject has no spac

[issue24949] Identifier lookup in a multi-level package is flakey

2015-08-31 Thread Bob Hossley
Bob Hossley added the comment: msg249272 Thank you Martin Panter for the documentation URL's. The import machinery is so complicated that I have given up trying to understand what is "correct" behavior.Depending on the code in the relevant __init__.py and/or explicitly re

[issue24949] Identifier lookup in a multi-level package is flakey

2015-08-31 Thread Bob Hossley
Bob Hossley added the comment: msg<249269> Thank you David Murray. I should have asked myself, what is reasonable behavior? In the case of email.mime.nonmultipart an explicit import is clearly needed. I was misled by my experience with the os library. As a "package" it is

[issue24949] Identifier lookup in a multi-level package is flakey

2015-08-27 Thread Bob Hossley
New submission from Bob Hossley: This seems like a bug to me, but it may be a recognized limitation even though I couldn't find any documentation suggesting that my tests should not work reliably. I see no reason why my tests should not work reliably. I have reliably reproduce

[issue24641] Log type of unserializable value when raising JSON TypeError

2015-07-18 Thread Bob Ippolito
Bob Ippolito added the comment: This seems like a very reasonable proposal. It would be great if we could also include a path in the error message (e.g. `obj["foo"][1]["bar"]`) as well to provide enough context to track do

[issue24518] json.dumps should accept key function for ``sort_keys``

2015-06-29 Thread Bob Ippolito
Bob Ippolito added the comment: On further investigation, simplejson has implemented this functionality under a different name since 2.5.0 (2012-03-29). """ If item_sort_key is a callable (not the default), then the output of dictionaries will be sorted with it. The callable wi

[issue24518] json.dumps should accept key function for ``sort_keys``

2015-06-29 Thread Bob Ippolito
Bob Ippolito added the comment: Seems like a good idea to me, I'll make sure this gets in simplejson as well. -- ___ Python tracker <http://bugs.python.org/is

[issue24505] shutil.which wrong result on Windows

2015-06-27 Thread Bob Alexander
Bob Alexander added the comment: Hi R. David -- My report is just to notify y'all of a bug that I noticed. The bug is causing me no problem, and it's your option as to whether to fix it or not. I offered a fix, but I haven't the time to perform diffs, etc. You could make tha

[issue24505] shutil.which wrong result on Windows

2015-06-24 Thread Bob Alexander
New submission from Bob Alexander: Python session with 3.5b2 Showing existing error: >>> from shutil import which Works OK >>> which("python") 'C:\\Python27\\python.EXE' Also works OK >>> which('C:\\Python27\\python.EXE') 'C:

[issue24223] argparse parsing (mingling --option and optional positional argument)

2015-05-21 Thread Bob Alexander
Bob Alexander added the comment: Thanks for the note, Martin. I agree that it's a duplicate. (I had done a brief search for possible dups, but didn't find that one!) Bob On Sun, May 17, 2015 at 8:29 PM, Martin Panter wrote: > > Martin Panter added the comment: > &g

[issue24223] argparse parsing bug

2015-05-17 Thread Bob Alexander
New submission from Bob Alexander: Here is simple example of failure to parse arguments that should parse OK. In the following little program, the second from last line contains an aargument sequence that parses OK, but the last line should but doesn't. import argpar

  1   2   3   >