[issue7756] Complete your registration to Python tracker -- key rt04e51ru5U1WqGum1kklK4ZYWEe1Mkf

2010-01-22 Thread Michael Smith
New submission from Michael Smith : Python tracker wrote: > To complete your registration of the user "msm...@cbnco.com" with > Python tracker, please do one of the following: > > - send a reply to rep...@bugs.python.org and maintain the subject line as is > (the >

[issue7757] sys.path is incorrect when prefix is ""

2010-01-22 Thread Michael Smith
New submission from Michael Smith : I've built Python 2.6.2 with a prefix of "" for an embedded system, so it's installed into /bin/python, /lib/python2.6/, etc. If I run a script with "python /tmp/script.py" or by putting in a #!/bin/python and executing it dir

[issue7757] sys.path is incorrect when prefix is ""

2010-01-25 Thread Michael Smith
Michael Smith added the comment: Yes, that does look related. The fix from Issue1676135 seems to handle --prefix="/" properly, and from what I can tell PREFIX does get set to "/". There is also code in getpath.c to set sys.prefix to "/" if it's "

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

2018-09-30 Thread Michael Smith
New submission from Michael Smith : If a mappingproxy object is a read-only proxy to a mapping, would it make sense for them to JSON serialize just like the mapping they come from? Currently, json.dumps throws the "I don't know how to serialize this" error: $ python -c '

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

2018-10-01 Thread Michael Smith
Michael Smith added the comment: OK, I appreciate the response. The MappingProxy objects I am working with are in a nested data structure, so accessing them to coerce them directly isn't feasible. I created class MappingProxyEncoder(JSONEncoder): def default(self, obj): if isins

[issue15400] int('12345L', 10) raises ValueError

2012-07-19 Thread Michael Smith
New submission from Michael Smith : The trailing 'L' in representations of long integers causes the int function to raise a ValueError. This is unexpected because it's reasonable to expect that `int` should be able to parse a number from any string when that string represented

[issue19076] Pdb.do_break calls error with obsolete file kwarg

2013-09-22 Thread Michael Smith
New submission from Michael Smith: Pretty straightforward: File "/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/pdb.py", line 675, in do_break self.error(err, file=self.stdout) TypeError: error() got an unexpected keyword argument &#

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-25 Thread Michael Smith
New submission from Michael Smith: It seems that the embedded distribution is missing bdist_wininst.pyc from the python35.zip . If you go to distutils\command, you'll notice only 23 compiled python files, where in the regular web based installer for the same Python version there a

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-26 Thread Michael Smith
Michael Smith added the comment: Thanks so much Steve I got it working right away! I peeked into the bdist_wininst.py and saw that it also depended on some local exe files. Copied both of those to the embedded and everything worked like a charm. I did read the documentation previously so I

[issue24113] shlex constructor unreachable code

2015-05-02 Thread Michael Smith
New submission from Michael Smith: In its __init__ method, shlex.shlex sets self.debug = 0. An `if self.debug:` statement follows shortly thereafter and without allowing the user to change self.debug. The code inside the if statement is unreachable. Users should either be permitted to set

[issue24113] shlex constructor unreachable code

2015-05-02 Thread Michael Smith
Michael Smith added the comment: Hat tip abarnert on StackOverflow for digging in. http://stackoverflow.com/questions/29996208/putting-shlex-in-debug-mode This code was introduced in https://hg.python.org/cpython/rev/81a121d21340 -- ___ Python