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 isinstance
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 'import jso
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
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 are 24
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
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
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 'file'
Sure enough
New submission from Michael Smith kojirom...@gmail.com:
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
Michael Smith msm...@cbnco.com 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 .
The correct prefix for configure
New submission from Michael Smith msm...@cbnco.com:
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
reply's additional
New submission from Michael Smith msm...@cbnco.com:
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 directly, sys.path
11 matches
Mail list logo