[issue5296] Use of term sequence in Reference 6.3 Assignment Statements

2009-02-17 Thread bob gailer
New submission from bob gailer : Currently reads, in part, "If the target list is a comma-separated list of targets: The object must be a sequence ..." Change "a sequence" to "an iterable". Also consider removing references to versions earlier than 1.5. ---

[issue5340] Change in cgi behavior breaks existing software

2009-02-21 Thread Bob Kline
New submission from Bob Kline : We just upgraded Python to 2.6 on some of our servers and a number of our CGI scripts broke because the cgi module has changed the way it handles POST requests. When the 'action' attribute was not present in the form element on an HTML page the module

[issue4136] merge json library with latest simplejson 2.0.x

2009-02-22 Thread Bob Ippolito
Bob Ippolito added the comment: New patch implementing cyclic GC, new-style relative imports, no lines >80 characters in non-test Python code Added file: http://bugs.python.org/file13152/json_issue4136_r69885.diff ___ Python tracker &l

[issue5381] json need object_pairs_hook

2009-02-27 Thread Bob Ippolito
Bob Ippolito added the comment: Why? According to RFC (emphasis mine): An object is an *unordered* collection of zero or more name/value pairs, where a name is a string and a value is a string, number, boolean, null, object, or array. -- resolution: -> inva

[issue5381] json need object_pairs_hook

2009-02-27 Thread Bob Ippolito
Bob Ippolito added the comment: Fair enough, but the patch isn't usable because the decoder was rewritten in a later version of simplejson. There's another issue with patch to backport those back into Python http://bugs.python.org/issue4136 or you could just use the simplejson s

[issue4136] merge json library with latest simplejson 2.0.x

2009-02-27 Thread Bob Ippolito
Bob Ippolito added the comment: Honestly I'm not sure when I'm going to find the time and motivation to reformat the C source and tests to fit < 80 char lines. I don't think this should hold up the patch, someone who is more obsessive compulsive than myself can fix that

[issue4136] merge json library with latest simplejson 2.0.x

2009-02-28 Thread Bob Ippolito
Bob Ippolito added the comment: They are essentially the same except the relative imports are changed to use . syntax, simplejson._speedups is changed to _json, simplejson is changed to json, .format strings are used, and the test suite changes slightly. I can add fixing that struct function

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-03-01 Thread Bob Ippolito
Bob Ippolito added the comment: I don't really want to see looser input requirements, making a JSON parser that is compatible with a subset of Python repr output isn't a design goal of mine. This is absolutely false: "Because single quotes are the only way (AFAIK) in whic

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-03-01 Thread Bob Ippolito
Bob Ippolito added the comment: Er, sorry, missed "(from JSONable combinations of types)". It's early. Anyway, I can change the error message, but I will not make it special- case single quotes for its own error message. I will have to think about what the message could say ins

[issue5381] json need object_pairs_hook

2009-03-04 Thread Bob Ippolito
Bob Ippolito added the comment: Unfortunately this is a patch for the old json lib... the new one has a C API and an entirely different method of parsing documents (for performance reasons). ___ Python tracker <http://bugs.python.org/issue5

[issue5381] json need object_pairs_hook

2009-03-04 Thread Bob Ippolito
Bob Ippolito added the comment: Whenever someone applies the patch for http://bugs.python.org/issue4136 -- I don't know when that will happen. ___ Python tracker <http://bugs.python.org/i

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Bob Ippolito
Bob Ippolito added the comment: All of the comments are addressed. I am not going to go through the trouble of creating a new patch to remove the remaining backwards compatibility cruft in the C code and struct function. That is easier to remove later

[issue4136] merge json library with latest simplejson 2.0.x

2009-03-17 Thread Bob Ippolito
Bob Ippolito added the comment: r70443 in trunk -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue4136> ___ ___ Python-bugs-list mai

[issue5381] json needs object_pairs_hook

2009-03-19 Thread Bob Ippolito
Bob Ippolito added the comment: This patch looks good to me, my only comment is that the patch mixes tabs and spaces in the C code in a file that had no tabs previously -- ___ Python tracker <http://bugs.python.org/issue5

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Bob Ippolito
Bob Ippolito added the comment: It is common to specify a default function but it would be terrible for performance if this function was called for every single object passed through to the decoder. If you want a serialization different from a primitive type you'll have to cho

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Bob Ippolito
Bob Ippolito added the comment: The documentation says "If specified, default is a function that gets called for objects that can’t otherwise be serialized. It should return a JSON encodable version of the object or raise a TypeError." *can't otherwise be serialized* means

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2009-03-27 Thread Bob Ippolito
New submission from Bob Ippolito : http://code.google.com/p/simplejson/issues/detail?id=43 Need a <= where there's a < in the unicode float scanner. problem only exists when decoding a unicode float that is not in any sort of container (e.g. array or object).

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2009-03-27 Thread Bob Ippolito
Changes by Bob Ippolito : -- components: +Library (Lib) ___ Python tracker <http://bugs.python.org/issue5584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2009-03-29 Thread Bob Ippolito
Changes by Bob Ippolito : -- resolution: -> accepted ___ Python tracker <http://bugs.python.org/issue5584> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2009-03-29 Thread Bob Ippolito
Bob Ippolito added the comment: trunk fix for 2.7 is in r70702 -- unsure about how to port this to 3.1 -- ___ Python tracker <http://bugs.python.org/issue5

[issue5381] json needs object_pairs_hook

2009-03-29 Thread Bob Ippolito
Bob Ippolito added the comment: I fixed two problems with this that didn't show up in the test suite, this feature didn't work in load() and there was a problem with the pure python code path because the Python scanner needed a small change. Unfortunately I'm not sure how t

[issue5723] Incomplete json tests

2009-04-08 Thread Bob Ippolito
Bob Ippolito added the comment: Is this high priority? The pure-Python code paths don't even run in cpython. I test them manually with simplejson by just deleting the extension and then running the tests again. There doesn't seem to be a very good way to do this sor

[issue5723] Incomplete json tests

2009-04-09 Thread Bob Ippolito
Bob Ippolito added the comment: I don't think the decorator approach would work for the doctests, it looks like it could be an interesting approach though. I have a feeling that it's going to have to be done in some kind of ugly subclass though, I'll dig into unittest deeper

[issue1530559] struct.pack raises TypeError where it used to convert

2009-04-19 Thread Bob Ippolito
Bob Ippolito added the comment: I believe that struct.error is just how it worked before 2.5 -- ___ Python tracker <http://bugs.python.org/issue1530559> ___ ___

[issue1496032] test_float segfaults with SIGFPE on FreeBSD 6.0 / Alpha

2009-04-27 Thread Bob Ippolito
Bob Ippolito added the comment: I don't even recall where I had access to a FreeBSD 6.0 Alpha machine, sorry. -- ___ Python tracker <http://bugs.python.org/issu

[issue5729] Allows tabs for indenting JSON output

2010-07-10 Thread Bob Ippolito
Bob Ippolito added the comment: Well this feature is already in simplejson 2.1.0, it would probably make more sense to simply merge the latest simplejson back with Python 3. -- ___ Python tracker <http://bugs.python.org/issue5

[issue7198] Extraneous newlines with csv.writer on Windows

2010-07-28 Thread Bob Cannon
Bob Cannon added the comment: Eric, This issue was resolved for me by Skip Montanaro's response less than an hour after I posted it. I didn't understand why a text file had to be binary, but I no longer had a problem with extraneous. In looking back at my message 94441, I thi

[issue8006] os.popen in Python 3.1

2010-08-08 Thread Bob Buckley
Bob Buckley added the comment: Sorry I didn't get back to you. Originally, I had trouble with just getting a pipe ... but updating my Python software seemed to make that problem go away. I also had problems with Python 2.6 when drawing more complicated figures. I could not tell whethe

[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

[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

[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

[issue17225] JSON decoder reports wrong column number on first line

2013-02-21 Thread Bob Ippolito
Bob Ippolito added the comment: I've applied a very similar patch to simplejson and released 3.0.9 https://github.com/simplejson/simplejson/commit/44d7709a31f3a19f3d465411585ebb7be7fa2295 -- nosy: +bob.ippolito ___ Python tracker

[issue17521] fileConfig() disables any previously-used "named" loggers, even when getLogger() is called again.

2013-03-22 Thread Bob Igo
New submission from Bob Igo: I am aware of the described behavior of fileConfig() when disable_existing_loggers is True, but what I am seeing happens whether disable_existing_loggers is True or False, and it also affects loggers obtained via future, fresh calls to getLogger(name). Here'

[issue17521] fileConfig() disables any previously-used "named" loggers, even when getLogger() is called again.

2013-03-22 Thread Bob Igo
Bob Igo added the comment: Any configuration I tried still generates the bug, but here's a pared-down config file: [loggers] keys=root [handlers] keys=screen [formatters] keys= [logger_root] level=DEBUG handlers=screen [handler_screen] level=DEBUG class=StreamHandler args=(sys.s

[issue17551] Windows - accessing drive with nothing mounted forces user interaction

2013-03-26 Thread Bob Alexander
New submission from Bob Alexander: Attempting to use os.path.exists on a Windows drive that is a mobile device mount point with nothing mounted pops up a dialog asking to insert a device. This makes it impossible to search a set of drives for a specific file without the possibility of

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread bob gailer
bob gailer added the comment: On 3/27/2013 9:48 AM, anatoly techtonik wrote: > anatoly techtonik added the comment: > > Example: > > l = locals() > z = dict(a=5, b=3) > > lc = dict(l) > zc = dict(z) > > print(lc == l) > prin

[issue17551] Windows - accessing drive with nothing mounted forces user interaction

2013-03-27 Thread Bob Alexander
Bob Alexander added the comment: Thanks for the prompt reply! Your suggested change does change the behavior to exactly the way I think it should work by default. Tried it on both Windows 7 and Vista; no popups when accessing a "mobile mount" drive with nothing in it, just quietly rep

[issue17551] Windows - accessing drive with nothing mounted forces user interaction

2013-03-30 Thread Bob Alexander
Bob Alexander added the comment: Thanks Terry. I agree that it's a bug. And, in the future I'll be more careful about trimming the "history" from my messages :-) Bob -- ___ Python tracker <http://bug

[issue17906] JSON should accept lone surrogates

2013-05-10 Thread Bob Ippolito
Bob Ippolito added the comment: The patch that I wrote for simplejson is here (it differs a bit from serhiy's patch): https://github.com/simplejson/simplejson/commit/35816bfe2d0ddeb5ddcc68239683cbb35b7e3ff2 I discovered another bug along the way in the pure-Python scanstring, int(s, 16)

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-11-23 Thread Bob Chen
Bob Chen added the comment: Someone come and pick up this? It has been a long time... -- ___ Python tracker <http://bugs.python.org/issue22231> ___ ___ Python-bug

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2014-11-23 Thread Bob Chen
Changes by Bob Chen <175818...@qq.com>: -- type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue22231> ___ ___ Python-bugs-li

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Bob Ippolito
Bob Ippolito added the comment: simplejson has had a use_decimal flag for output since 2.1.0 and has been enabled by default since 2.2.0. simplejson 3.2.0 introduced a for_json argument that checks objects for a method of that name for serialization. https://github.com/simplejson/simplejson

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Bob Ippolito
Bob Ippolito added the comment: I'm sure there's some hack that would allow you to preserve the input. I would try using parse_float and have it return some object that preserves the string and will be output in precisely the same way. It may need to be a Decimal subclass. I'

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Bob Ippolito
Bob Ippolito added the comment: Subclass Decimal and implement __str__ to return your own representation. Use parse_float to use your Decimal subclass. Should work with simplejson, a similar hack may be possible with the json module. -- ___ Python

[issue23123] Only READ support for Decimal in json

2014-12-29 Thread Bob Ippolito
Bob Ippolito added the comment: I don't think it's reasonable to expect Decimal to always output precisely the same string it was given. It's a waste of complexity and space and the only time you would want this behavior is when you really should've left it accessible as a

[issue23123] Only READ support for Decimal in json

2014-12-29 Thread Bob Ippolito
Bob Ippolito added the comment: Yeah, that's the hack I was suggesting. I suppose I don't see the point of having a protocol that normalizes *almost* everything. Normalization should be all or nothing. Other options would be to define the signature at the encoded byte lev

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Bob Chen added the comment: Is there any possibility that we encapsulate urllib.quote into httplib? Because many developers wouldn't know about this utility function. And as I mentioned above, they could have got an unicode url from anywhere inside python, like an API call, without

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Changes by Bob Chen <175818...@qq.com>: Removed file: http://bugs.python.org/file36492/httplib.py.patch ___ Python tracker <http://bugs.python.org/issue22231> ___ __

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Changes by Bob Chen <175818...@qq.com>: Added file: http://bugs.python.org/file37592/httplib.py.patch ___ Python tracker <http://bugs.python.org/issue22231> ___ ___

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2015-01-03 Thread Bob Chen
Bob Chen added the comment: How about this patch? -- ___ Python tracker <http://bugs.python.org/issue22231> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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:

[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

[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

[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

[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

[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

[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-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

[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

[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

[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

[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 "

[issue24112] %b does not work, as a binary output formatter

2015-05-02 Thread Bob Stein
New submission from Bob Stein: `"%b"%42` produces a ValueError exception instead of outputting '101010' Details here: http://stackoverflow.com/a/29997703/673991 -- messages: 242388 nosy: BobStein priority: normal severity: normal status: open title: %b does n

[issue24112] %b does not work, as a binary output formatter

2015-05-02 Thread Bob Stein
Bob Stein added the comment: Ah, you're right, my mistake. -- ___ Python tracker <http://bugs.python.org/issue24112> ___ ___ Python-bugs-list mailing list

[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

[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

[issue11101] plistlib has no graceful way of handing None values

2011-02-02 Thread Bob Van Zant
New submission from Bob Van Zant : The Apple plist format does not support None or Null values in its output. A Null value in plist is denoted by the absence of the key in the data structure. The python plist writer generates a TypeError when a None value is encoded. This issue is to track

<    1   2   3