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.
---
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
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
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
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
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
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
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
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
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
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
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
Bob Ippolito added the comment:
r70443 in trunk
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue4136>
___
___
Python-bugs-list mai
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
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
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
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).
Changes by Bob Ippolito :
--
components: +Library (Lib)
___
Python tracker
<http://bugs.python.org/issue5584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Bob Ippolito :
--
resolution: -> accepted
___
Python tracker
<http://bugs.python.org/issue5584>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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
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>
___
___
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
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)
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
Changes by Bob Chen <175818...@qq.com>:
--
type: crash -> behavior
___
Python tracker
<http://bugs.python.org/issue22231>
___
___
Python-bugs-li
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
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'
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
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
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
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
Changes by Bob Chen <175818...@qq.com>:
Removed file: http://bugs.python.org/file36492/httplib.py.patch
___
Python tracker
<http://bugs.python.org/issue22231>
___
__
Changes by Bob Chen <175818...@qq.com>:
Added file: http://bugs.python.org/file37592/httplib.py.patch
___
Python tracker
<http://bugs.python.org/issue22231>
___
___
Bob Chen added the comment:
How about this patch?
--
___
Python tracker
<http://bugs.python.org/issue22231>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
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
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
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
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
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
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
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
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
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
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
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 "
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
Bob Stein added the comment:
Ah, you're right, my mistake.
--
___
Python tracker
<http://bugs.python.org/issue24112>
___
___
Python-bugs-list mailing list
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
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
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
201 - 267 of 267 matches
Mail list logo