Changes by Eric Snow :
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue19944>
___
___
Python-bugs-list mailing list
Unsubscrib
Eric Snow added the comment:
I agree with Antoine. It's first on my todo list for 3.5. My goal is that
this and a couple of related features will land during the PyCon sprints.
--
___
Python tracker
<http://bugs.python.org/is
Eric Snow added the comment:
So to restate, where some class Spam inherits from multiple classes and at
least one was written in C, Spam.__base__ may have an unexpected value.
> So, to conclude: it is sometimes not possible to use python
> cooperative multiple inheritance if C base class
Eric Snow added the comment:
> As per issue 1311, the exists returns True <-> stat will work equivalence
is deliberate. We'll have to find a different way to resolve issue 20053 on
Windows.
I was going t say we should note this design/impl. detail in the
os.path.exists() docs
New submission from Eric Naeseth:
The www.python.org website was just redesigned, and apparently is running on
some new infrastructure which always responds to `GET /` requests with a body
using `Content-Encoding: gzip`.
Python's test suite includes some tests which fetch
Eric Naeseth added the comment:
In addition, the test_reporthook and test_data_header tests try to retrieve a
Python logo image from
http://www.python.org/community/logos/python-logo-master-v3-TM.png. That is now
a 404.
--
___
Python tracker
Eric Snow added the comment:
Sorry for the delay. It will likely be tomorrow before I can take a look but
I'll do so as soon as possible.
--
___
Python tracker
<http://bugs.python.org/is
Eric Snow added the comment:
TL;DR new tests (improving coverage) uncovered existing "bugs". We should
probably disable the tests for now.
I'm glad you found this. Out of curiosity, how often do you run the test suite
against a clean checkout? Typically I only run it
Eric Snow added the comment:
The other two test_modules* tests in test_pydoc are also having issues and I've
likewise disabled them (see issue20484). They'll need to be investigated and
re-enabled too.
--
___
Python trac
Eric Snow added the comment:
I've disabled 2 of the 3 tests (the other was already disabled for issue20123).
I'll pick up re-enabling the tests in issue20128.
Thanks again, Ned, for finding this.
(mental note: stay away from pydoc!]
--
resolution: -> fixed
stage
New submission from Eric Snow:
New changeset 13edfab6c3c0 by Eric Snow in branch 'default':
Issue #20484: Disable the 2 remaining "modules" tests in test_pydoc
--
assignee: larry
messages: 211957
nosy: eric.snow, larry, ned.deily
priority: release blocker
severity:
Eric Snow added the comment:
I've opened issue20734 for the 3.4.0 cherry-pick.
--
___
Python tracker
<http://bugs.python.org/issue20484>
___
___
Python-bugs-l
Eric Floehr added the comment:
I have attached a patch file for test_tarfile.py that uses the attached
'bad.tar' to test this issue.
After applying this test patch, put 'bad.tar' in Lib/test with the name
'issue15858.tar'.
This tests Tarfile.next(), but the iss
Eric Snow added the comment:
LGTM
--
___
Python tracker
<http://bugs.python.org/issue20763>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by Eric Snow :
--
nosy: +eric.snow
___
Python tracker
<http://bugs.python.org/issue17911>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eric Snow :
--
nosy: +eric.snow
___
Python tracker
<http://bugs.python.org/issue1580>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Snow added the comment:
Returning None is the right thing here. The default for getattr() is returned
only when it catches an AttributeError (hence the exception is the sentinel, so
to speak, not None. Here's a rough equivalent:
_notset = object()
def getattr(obj, name, de
Eric Snow added the comment:
You may get unexpected behavior when you have a descriptor on a class that also
has __getattr__ defined. See issue #1615. However, I don't think that applies
here. As far as I can tell, everything is working the way it s
Eric Smith added the comment:
-1
The time to change this was 3.0, if it was ever needed. It would break
too much code now. We could develop some strategy using macros, but I
just don't think it's worth it.
And as Amaury points it, the type is known in python as "float", s
Eric Smith added the comment:
The patch looks good to me. In particular, removing the test for
using_len looks correct.
The assignment of "result = -1" after PyErr_Format isn't needed, but
doesn't hurt (and it was already there, anyway).
--
keywords: -needs revi
New submission from Eric Eisner :
In multiprocessing, if you give a pool.map a zero-length iterator and
specify a nonzero chunksize, the process hangs indefinitely. Example:
import multiprocessing
pool = multiprocessing.Pool()
pool.map(len, [], chunksize=1)
# hang forever
Attached simple
Eric Eisner added the comment:
A few lines before this patch the code turns iterable into a list if it
does not hasattr('__len__') for the purpose of calculating the chunksize.
--
___
Python tracker
<http://bugs.python.
Eric Smith added the comment:
I agree that backporting it to 2.6 would be nice, but it would be a huge
change. There's too much risk involved. So this will just be a new
feature in 2.7. It's already in Misc/NEWS, so you're all set there.
I'm closing the issue, marking it a
New submission from Eric Eisner :
string.maketrans has been deprecated in 3.x in favor of the more
specific bytes.maketrans and str.maketrans (see issue5675). It would be
nice if 2to3 would automatically translate this to one of those two
(probably str.maketrans).
I briefly looked at lib2to3
Eric Eisner added the comment:
Can anyone review this patch? It is a very simple fix to catch this one
edge case. As this can cause multiprocessing to enter a state where it
needs to be externally killed, it would be good if this made 2.6.3
Eric Promislow added the comment:
Not in Sridar's patch, but 'pathname2url' is also misspelled
as 'pahtname2url' in the MAPPING struct.
--
nosy: +ericp
___
Python tracker
<http
New submission from Eric Promislow :
Given this code:
import thread
print thread
$ python
ActivePython 2.6.1.1 (ActiveState Software Inc.) based on
Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:38) [MSC v.1500 32 bit
(Intel)] on
win32
>>> from lib2to3.main import main
>>> pr
Eric Promislow added the comment:
Understood. Could the tool emit a warning when it encounters
something like this?
--
___
Python tracker
<http://bugs.python.org/issue6
New submission from Eric Promislow :
ActivePython 2.6.1.1 ...
>>> a = u"abc\x0adef"
>>> a.split()
[u'abc', u'def']
>>>
"\x0a" is a non-breaking space. This behavior means we can't
easily use split() to reflow text.
Eric Promislow added the comment:
Thanks. For the record, I want
textwrap.TextWrapper(..., break_long_words=False)
or it will break after a non-breaking space if that
gives an optimum length.
--
status: closed -> open
___
Python tracker
&l
Changes by Eric Devolder :
--
nosy: +keldonin
___
Python tracker
<http://bugs.python.org/issue2698>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Devolder added the comment:
Same problem under WinXP, using mingw compiler. Works for my package
under Python 3.0, ceases functioning under 3.1, with same error message.
--
___
Python tracker
<http://bugs.python.org/issue2
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6561>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6567>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith added the comment:
+1
The standard recommends it, and the other numeric types support it, so
Decimal should as well.
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6
Eric Smith added the comment:
Since you're calling int() on the result, can't this code:
self._int = str(int((intpart+fracpart).lstrip('0') or '0'))
just be:
self._int = str(int(intpart+fracpart))
?
And here, you already know diag is not None, so do you need the
Eric Smith added the comment:
Fixed in r74269 (trunk). Code copied to py3k, just so the code stays in
sync, in r74271.
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bug
Eric Smith added the comment:
In http://docs.python.org/3.1/library/string.html#format-string-syntax,
the auto-numbering is mentioned, in the sentence that starts "If the
numerical arg_names in a format string are 0, 1, 2, ... in sequence,
they can all be omitted".
It'
Eric Smith added the comment:
I agree with Raymond. I think it should either take a string and flags,
or a compiled regex object.
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6632>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Eric Shubert :
The login method in smtplib.py tries only one authentication mechanism.
There are legitimate situations where cram-md5 might fail, yet plain or
login would succeed.
RFC2554 states:
If an AUTH command fails, the client may try another authentication
Eric Smith added the comment:
Good advice from R. David. In addition, you'll find the help command useful:
>>> help(''.strip)
Help on built-in function strip:
strip(...)
S.strip([chars]) -> string or unicode
Return a copy of the string S with leading
Eric Eisner added the comment:
Is there some pre-existing naming convention of as_X and fromX? It seems
strange that two related functions would have a different use of
underscores.
--
nosy: +ede
___
Python tracker
<http://bugs.python.
Eric Smith added the comment:
What platform is this on? For a ucs4 platform, that is what I'd expect
the result to be. Check sys.maxunicode to see if you have a ucs2 or ucs4
build.
What do you expect as the result?
Remember that memmove takes a count of bytes, not a character
Changes by Eric Smith :
--
resolution: -> invalid
stage: -> committed/rejected
___
Python tracker
<http://bugs.python.org/issue6714>
___
___
Python-bugs-
New submission from Eric Pope :
In the client side example under
21.17.4.2. SocketServer.UDPServer Example:
at:
http://docs.python.org/dev/library/socketserver.html
<<<>>>should have been:
HOST, PORT = "localhost",
--
assignee: georg.brandl
compon
Eric Smith added the comment:
This isn't the right forum to ask for help. You should try
comp.lang.python, where someone would be happy to explain this to you.
Having said that, here's the explanation:
This is not a bug.
Disregarding side effects, the expression:
a = b or c
is e
Eric Smith added the comment:
For types where it's possible, the str or repr returns a string that can
be passed to eval:
>>> for i in eval(str(xrange(5))):
... print i
...
0
1
2
3
4
xrange (and list, and tuple, and others) fall into this category.
--
nosy: +eric.sm
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6802>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith added the comment:
2.7 does not support the !a conversion specifier. It's only available in
3.1 and above.
It's because ascii() is a 3.x only builtin.
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.
Eric Smith added the comment:
Never mind, I see that you didn't add the !a docs to trunk.
--
___
Python tracker
<http://bugs.python.org/issue6813>
___
___
Eric Smith added the comment:
I plan to look at this, and if it looks okay, commit it. Let me know if
anyone has any remaining issues.
--
nosy: +eric.smith
versions: +Python 3.2 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue1578
Changes by Eric Smith :
--
assignee: -> eric.smith
___
Python tracker
<http://bugs.python.org/issue1578269>
___
___
Python-bugs-list mailing list
Unsubscri
Eric Smith added the comment:
This is a duplicate of issue 6813, where it has been fixed. I'm closing it.
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6713>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6850>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith added the comment:
The test as written will always give an error for None. I think the
better fix is to change it to be:
if format_dict['type'] is None or format_dict['type'] in 'gG':
That "fixes" this particular exception, but since the
Changes by Eric Smith :
--
components: +Library (Lib)
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue6850>
___
___
Python-bugs-list mai
Eric Smith added the comment:
The format string is valid. Sorry for the noise. The fill character of
'a' threw me off.
With my suggested change to decimal.py, line 5595, in py3k:
>>> from decimal import *
>>> format(Decimal("0.12345"), "a=-7.0")
Eric Smith added the comment:
That is interesting. I'd agree that it's a bug in the PEP. Note that
%-formatting right aligns floats by default:
>>> '%7.0g' % 0.12345
'0.1'
I'll raise the issue on python-dev.
Eric Smith added the comment:
Thanks for the decimal work, Mark. I notice that complex is also left
aligned, by default. I'll take a look at that.
--
___
Python tracker
<http://bugs.python.org/i
Eric Smith added the comment:
For #1 for floats, 2.6 is in error. This has been fixed in 2.7 (trunk).
For #2, I think float is correct. The PEP says the specifier is:
[[fill]align][sign][#][0][minimumwidth][.precision][type]
so '00' is parsed as minimumwidth=0 with zero-padding
Eric Smith added the comment:
Also, see issue 4482 for a discussion of float formatting for nan and inf.
--
___
Python tracker
<http://bugs.python.org/issue6
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6872>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eric Smith :
--
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue6882>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6882>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith added the comment:
The '0' fill character is forcing '=' alignment (per the PEP). This
looks like a bug to me, since it should use the specified alignment.
This is not a float-only problem, it applies to the other built-in types
as well:
>>> format(2,
New submission from Eric Smith :
Originally discussed in issue 6871. Even if an alignment of "<" is
specified, "=" is used if the padding character is "0".
>>> format(2, '0<20')
'0002'
>>> format(2
Eric Smith added the comment:
Created issue 6902 to handle #4.
The others will need to be broken out into their own issues if we want
to fix them. I can't keep track of multiple issues in one bug report.
--
___
Python tracker
Eric Smith added the comment:
complex will also need to be addressed. The second error message is
misleading, for the same reason the formatting on float and int is
incorrect:
>> format(3-2j, "0<30")
Traceback (most recent call last):
File "", line 1, in
Va
Eric Smith added the comment:
The patch looks okay to me, and solves the issue on my Fedora box.
But perhaps a context manager in a "with" block would be clearer? I've
attached a patch.
--
Added file: http://bugs.python.org/file14908/issue6882-
Eric Smith added the comment:
The py3k version of the file already contains 3.x only code, and it's
missing the comment at the top that it should be compatible. But it's
not really a big deal to me.
The py3k version also already has some try/finally logic on some popen
calls that
Eric Smith added the comment:
Indeed, the code that introduced this bug was in r68489, so it was
written after Guido went through the module and cleaned it up to use
try/finally. And since r68489 was a merge of r68487, the change was
originally made on the 2.x version (which doesn't us
Eric Smith added the comment:
Yes, I'll take care of this.
I can't think of any way to add a test that the zombie process doesn't
exist, but if anyone has an idea I'd like to hear about it.
--
___
Python tracker
<http://bu
Eric Smith added the comment:
I checked in a slightly modified version of Marcin's patch in py3k
(r74907) and release31-maint (r74909). I modified the patch to keep the
same style as the rest of the module.
I'll now work on back-porting all of the try/finally code to trunk. That
inc
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue6958>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith added the comment:
The C code looks basically okay to me. I'd probably use strdup() instead
of the malloc/strlen/strcpy calls. And as Thomas said, the cleanup needs
a little bit of work.
--
___
Python tracker
<http://bugs.py
Eric Smith added the comment:
This doesn't crash the interpreter, so I'm changing it to "behavior".
The number of items in a range() must fit into a native int.
What are you doing with the range? Could you use xrange instead?
--
nosy: +eric.smith
resolution: ->
Eric Smith added the comment:
What OS, processor, and Python version are you running this code on?
>From your example, it's Python 3.x. 3.1 has a completely rewritten
float->decimal conversion system, and I get different results.
>>> print(.1)
0.1
>>> print((.1,))
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue7019>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Eric Smith :
--
nosy: +eric.smith
___
Python tracker
<http://bugs.python.org/issue7020>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric Smith added the comment:
Mark's really the expert here, so I trust his description. Is his
description layman-speak enough for the docs?
--
___
Python tracker
<http://bugs.python.org/i
Eric Smith added the comment:
I think they're the same issue, relating to what happens if there's an
alignment specifier supplied along with '0'. I'm planning on working on
this issue this weekend and I'll v
Eric Smith added the comment:
That wording is okay with me. Maybe run it by Georg to see if he has any
suggestions? Or just check it in and see if anyone complains.
But I'm okay with it as-is.
Thanks for doing this.
Eric.
--
___
Python tr
Eric Smith added the comment:
I obviously hadn't thought of those cases, either. This version looks
good(er) to me.
--
___
Python tracker
<http://bugs.python.org/i
Eric Smith added the comment:
I'm adding 2.7. Since 2.7 and 3.2 share the same code base, I'd rather
add it to both if we're going to do it at all.
--
assignee: -> eric.smith
versions: +Python 2.7
___
Python tracker
<h
New submission from Eric Smith :
These functions are unsafe and I'd like to delete them. They've already
been deleted in py3k, per PEP 3100. They are no longer used internally
to the interpreter.
They should be documented as deprecated and as unsafe. They write to a
char* parameter,
Changes by Eric Smith :
--
assignee: georg.brandl -> eric.smith
___
Python tracker
<http://bugs.python.org/issue7168>
___
___
Python-bugs-list mailing list
Un
Eric Smith added the comment:
Proposed patch attached.
--
keywords: +patch
stage: -> patch review
Added file: http://bugs.python.org/file15164/issue7168.patch
___
Python tracker
<http://bugs.python.org/iss
Eric Smith added the comment:
Updated patch based on Georg's input.
--
Added file: http://bugs.python.org/file15166/issue7168.patch
___
Python tracker
<http://bugs.python.org/i
Changes by Eric Smith :
Removed file: http://bugs.python.org/file15164/issue7168.patch
___
Python tracker
<http://bugs.python.org/issue7168>
___
___
Python-bugs-list m
Eric Smith added the comment:
A slightly improved version checked in as r75510.
--
resolution: -> accepted
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Eric Smith added the comment:
Back ported the try/finally parts to trunk in r75620.
--
___
Python tracker
<http://bugs.python.org/issue6882>
___
___
Python-bug
Eric Smith added the comment:
Changed py3k version to use contextlib.closing in r75625.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss
Changes by Eric Smith :
--
priority: -> normal
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue6882>
___
___
Python-bugs-list
Eric Smith added the comment:
I think the next step on my side is to remove _PyOS_double_to_string,
and make all of the internal code call PyOS_double_to_string. The
distinction is that _PyOS_double_to_string gets passed a buffer and
length, but PyOS_double_to_string returns allocated memory
Eric Smith added the comment:
Adding tim_one as nosy. He'll no doubt have an opinion on rounding. And
hopefully he'll share it!
--
nosy: +tim_one
___
Python tracker
<http://bugs.python.
Eric Smith added the comment:
Another thing to consider is that in py3k we removed all conversions of
converting 'f' to 'g', such as this, from Objects/unicodeobject.c:
if (type == 'f' && fabs(x) >= 1e50)
type = 'g';
Should we als
Eric Smith added the comment:
r75743: Fix cPickle.c to use PyOS_string_to_double.
--
___
Python tracker
<http://bugs.python.org/issue7117>
___
___
Python-bug
Eric Smith added the comment:
r75745: Fix stropmodule.c to use PyOS_string_to_double.
--
___
Python tracker
<http://bugs.python.org/issue7117>
___
___
Python-bug
2901 - 3000 of 6618 matches
Mail list logo