Charles-François Natali added the comment:
It's a dupe of #15500.
--
nosy: +neologix
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Python should support naming threads
___
Python tracker
New submission from Serhiy Storchaka:
b32decode() documentation says: A TypeError is raised if s were incorrectly
padded or if there are non-alphabet characters present in the string.
b32decode() docstring says: binascii.Error is raised if the input is
incorrectly padded or if there are
Charles-François Natali added the comment:
Well, this just needs a patch :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17996
___
___
Roundup Robot added the comment:
New changeset 4b5467d997f1 by Serhiy Storchaka in branch '3.3':
Issue #17812: Fixed quadratic complexity of base64.b32encode().
http://hg.python.org/cpython/rev/4b5467d997f1
New changeset 1b5ef05d6ced by Serhiy Storchaka in branch 'default':
Issue #17812: Fixed
Serhiy Storchaka added the comment:
That is why I proposed two patches.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17812
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17812
Serhiy Storchaka added the comment:
I'm against implementing LZMAFile in a pure C. It was a great win that LZMAFile
had implemented in a pure Python. However may be we could reuse the existing
accelerated implementation of io.BufferedReader.
--
___
Serhiy Storchaka added the comment:
Here is a patch which changes TypeError to binascii.Error in b32decode() and
fixes the documentation and tests.
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file30310/b32decode_exception.patch
Serhiy Storchaka added the comment:
Here is a patch which changes TypeError to binascii.Error in b32decode() and
fixes the documentation and tests.
--
Added file: http://bugs.python.org/file30311/b32decode_exception.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
Removed message: http://bugs.python.org/msg189577
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18011
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file30311/b32decode_exception.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18011
___
Nick Coghlan added the comment:
I like this, both because it quite clearly defines the encode and decode
directions, and allows notes the more direct entry points if the codec isn't
being specified as an input string.
So +1 from me.
--
___
Python
Marc-Andre Lemburg added the comment:
Not a bad idea. More information is always better when it comes to
documentation :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17844
___
Nick Coghlan added the comment:
Oops, my review comments don't actually make sense because I looked at the
patch in isolation, rather than checking the full context in the module. Sorry
about that.
We have 2 different cases to deal with, only one of which currently has a
helper function.
I
Etienne Robillard added the comment:
since TIPC is silently included in python 2.7.3 and recents kernel memory
leaks were found in the linux TIPC kernel code, could this result in info
disclosure in python when compiled with TIPC ? does the kernel module needs to
be loaded to exploit the
Antoine Pitrou added the comment:
For those of you who are concerned with this issue, could you explain your use
case on the following discussion thread:
http://mail.python.org/pipermail/python-dev/2013-May/126285.html ?
I would personally like to remove HAVE_FSTAT and make Python
R. David Murray added the comment:
Tshepang: see the 'Development Cycle' section of the devguide. Only security
related commits are allowed to security branches, and since the docs are part
of the source tree, that means no doc commits. One reason for this is the same
reason we only have
R. David Murray added the comment:
The #4391 fixes were only applied to the development branch. So these could be
applied to 3.4 at this point, but not 3.3.
--
nosy: +r.david.murray
status: - open
versions: +Python 3.4 -Python 3.3
___
Python
R. David Murray added the comment:
By my reading compose was also rejected, so I'm going to close this. (See
issue 1506122 for one previous rejection of compose.)
--
nosy: +r.david.murray
resolution: - rejected
stage: - committed/rejected
status: open - closed
type: - enhancement
R. David Murray added the comment:
Since Eric indicated he'd close this unless someone felt strongly that the
status quo should be changed, and the arguments are in favor of *maintaining*
the status quo, I'm going to close this for him :)
--
nosy: +r.david.murray
resolution: - fixed
Tshepang Lekhonkhobe added the comment:
@murray thanks for the clarification; I saw that part of the devguide, but
wasn't sure if doc fixes/improvements were exempt (even if not mentioned)
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
ddvento, I'm afraid you'll have to diagnose a bit more by tracing what happens
during test_sendall_interrupted and test_sendall_interrupted_with_timeout.
These test cases have a legitimate use for arming an alarm signal, but for some
reason it seems the
Roundup Robot added the comment:
New changeset 58ace614df6b by Antoine Pitrou in branch '3.3':
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.
http://hg.python.org/cpython/rev/58ace614df6b
New changeset 13d817cb72e7 by Antoine Pitrou in branch 'default':
Issue #11995:
Roundup Robot added the comment:
New changeset 68d2337688c1 by Antoine Pitrou in branch '2.7':
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.
http://hg.python.org/cpython/rev/68d2337688c1
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
Torsten Bronger added the comment:
For five Ubuntu releases now, I apply this patch. In contrast to Catalin's
statement, it is not solved for me unless the upstream changes of two years ago
haven't yet found their way into Ubuntu. I'm currently using Python 2.7.4 on
Ubuntu 13.04. That
Antoine Pitrou added the comment:
I second Serhiy here. Wrapping the LZMAFile in a BufferedReader is the simple
solution to the performance problem:
./python -m timeit -s import lzma, io f=lzma.LZMAFile('words.xz', 'r')
for line in f: pass
10 loops, best of 3: 148 msec per loop
$ ./python
Antoine Pitrou added the comment:
When you say I apply this patch, you mean
smtplib_05_shutdown_socket_v2.patch, right?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4470
___
Antoine Pitrou added the comment:
In any case, I'm growing wary of bugfix regressions right now, so I would only
apply the patch on the default branch.
--
versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.1, Python 3.2
___
Python tracker
New submission from Florent Xicluna:
from Cookie import SimpleCookie
cookie = SimpleCookie()
cookie[u'apple'] = u'green'
Traceback (most recent call last):
File stdin, line 1, in module
File
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/Cookie.py,
R. David Murray added the comment:
Python2 tends to document where unicode *is* supported, rather than where it is
not. And why would a TypeError be incorrect if the unicode type is not
supported?
I do not think it likely that this falls into the 'bug' category at this point
in the Python2
Torsten Bronger added the comment:
Sorry, after having had another look at it, I realised that I have a different
SSMTP issue now, non-Python-related. So for me, Ubuntu 13.04 indeed solves my
old issue.
--
___
Python tracker rep...@bugs.python.org
Florent Xicluna added the comment:
you're right, this behavior is documented.
u'read this short text'.translate(None, 'aeiou')
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: translate() takes exactly one argument (2 given)
Mark Lawrence added the comment:
Looks like this has slipped under the radar. I'll leave working on it to the
experts :)
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5811
Mark Lawrence added the comment:
Is this build issue still a problem some four years on?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6237
___
Mark Lawrence added the comment:
Could we borrow code from the ipython %paste command? This issue is also
referenced from #5124.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3559
Mark Lawrence added the comment:
Is this still a problem or not? If yes what can be done about it? If no can
we close it?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2276
Roger Serwy added the comment:
The core problem is that IDLE only executes the shell buffer when the
newline-and-indent virtual event gets sent by physically pressing the Enter
key. Pasting the clipboard contents with \n will not trigger the enter_callback
function in Lib/idlelib/PyShell.py.
Changes by Eli Bendersky eli...@gmail.com:
--
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17988
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 16a03959819a by Eli Bendersky in branch 'default':
Issue #17988: remove unused alias for Element and rename the used one
http://hg.python.org/cpython/rev/16a03959819a
--
nosy: +python-dev
___
Python
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17988
___
Michael Fox added the comment:
io.BufferedReader works well for me. Thanks for the good suggestion.
Now python 3.3 and 3.4 have similar performance to each other and they
are only 2x slower than pyliblzma.
From my perspective default wrapping with io.BufferedReader is a great
idea. I can't
Changes by Shriramana Sharma samj...@gmail.com:
--
nosy: +jamadagni
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6294
___
___
Python-bugs-list
Ezio Melotti added the comment:
Here is an updated patch.
--
Added file: http://bugs.python.org/file30312/issue14097-3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14097
___
Raymond Hettinger added the comment:
Please restore the section A value can be assigned to several variables
simultaneously. This is easy to teach in this context and there's no other
good place to put it.
Also, I'm unclear why you took out the Mark Lemburg's section on Unicode.
--
Ezio Melotti added the comment:
Please restore the section A value can be assigned to several
variables simultaneously.
The reason for removing it are:
* generally it's not really useful/used IMHO;
* it has potentially confusing side effects (e.g. x = y = 0 is the same as x =
0; y = 0, but
New submission from Florent Xicluna:
Trying to parse the W3C sample, it fails in 3.3 (while it passes on 2.7).
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4 (last example)
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data;
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18013
___
Anselm Kruis added the comment:
why the different fix for 3.3
I reverted the 2.7.4 addition of __dict__ rather than introduce more
differences between point releases with possible unintended effects.
__dict__ was a 2.7.3 addition (changeset 26d5f022eb1a). Now unpickling of named
tuples
Nadeem Vawda added the comment:
I agree that making lzma.open() wrap its return value in a BufferedReader
(or BufferedWriter, as appropriate) is the way to go. I'm currently
travelling and don't have my SSH key with me - Serhiy, can you make the
change?
I'll put together a documentation patch
New submission from Terry J. Reedy:
64-bit Win 7 Professional, using default F7 debug build -- F7
Running as normal user, not admin.
3.4: built Thursday, Saturday; failed Wednesday, Friday, today Sunday.
7 cl.exe -c -D_WIN32 -DUSE_DL_EXPORT -D_WINDOWS -DWIN32 -D_WINDLL -D_DEBUG
-MDd
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18013
___
___
Florent Xicluna added the comment:
At first glance it seems related to rev d864328a74e4 , issue 4953
The check on self.bytes_read = self.length returns True because length == -1.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18013
___
___
New submission from Anselm Kruis:
Change 18303391b981 breaks unpickling named tuples pickled by 2.7.3 and 2.7.4.
See closed issue #15535 for the full story. Unfortunately Raymond was wrong,
when he wrote that the addition of __dict__ was a 2.7.4 change. It was added by
changeset 26d5f022eb1a
Éric Araujo added the comment:
An additional reason is that docs of branches in security mode are not rebuilt
and published, so changes would be useless.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16805
Nadeem Vawda added the comment:
I agree that making lzma.open() wrap its return value in a BufferedReader
(or BufferedWriter, as appropriate) is the way to go.
On second thoughts, there's no need to change the behavior for mode='wb'.
We can just return a BufferedReader for mode='rb', and
R. David Murray added the comment:
Lorenzo, any chance you could supply a unit test that fails without
smtplib_05_shutdown_socket.diff applied?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4470
Florent Xicluna added the comment:
This seems to fix it.
--
stage: needs patch - patch review
Added file: http://bugs.python.org/file30314/patch_multipart_w3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18013
Lorenzo M. Catucci added the comment:
On Sun, 19 May 2013, R. David Murray wrote:
RDM
RDM R. David Murray added the comment:
RDM
RDM Lorenzo, any chance you could supply a unit test that fails without
RDM smtplib_05_shutdown_socket.diff applied?
RDM
It would really be a functional test,
Mark Lawrence added the comment:
It appears from previous comments that this is not needed so can be closed.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7146
___
Mark Lawrence added the comment:
The docs still read the same. Would someone in the know like to propose a doc
patch please.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7262
R. David Murray added the comment:
Mark, I rather like your suggestion. Do you think Guido will go for it? :)
In the meantime, I've attached a rewritten version of Ronald's FAQ entry. I
think the FAQ is why it fails when the extend succeeds, not why assigning to a
tuple raises an error, so
R. David Murray added the comment:
Right, Marc-Andre indicates that cross-platform consistency is not a goal of
the platform uname. If someone wants to propose a patch for the possible
enhancement to platform that Marc-Andre talked about, they can open a new issue.
--
nosy:
New submission from Jason Gross:
Files opened on Windows in mode 'wb' have a limit on the number of characters
that can be written to them (at once?); attempting to write too many bytes
gives the confusing error “IOError: [Errno 22] Invalid argument”. See
Changes by Guilherme Simões gdsimoe...@gmail.com:
--
nosy: +Guilherme.Simões
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
___
___
Joe Stuart added the comment:
Looks like a typo in arbitrary.
AttributeError: Can't set arbitraty attributes on Element
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17989
___
Alejandro Rodas added the comment:
I have reviewed the patch, and apart from setting the promt, I think it would
be possible to set it at the beginning with the same approach:
def getprompt(self):
self.interp.runcommand(textwrap.dedent(\
try:
print(sys.ps1,
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
resolution: fixed -
stage: committed/rejected -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17989
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
priority: release blocker - normal
resolution: fixed -
status: closed - open
versions: -Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18003
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18015
___
Terry J. Reedy added the comment:
I was really sure that 'python_d -m test' worked a week ago, in the sense that
test_idle was run without incident in its proper alphabetical sequence, before
I said so and uploaded the patch. Now, there are (different) error messages
with both 'python_d -m
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18015
___
___
Roundup Robot added the comment:
New changeset 65680e3a7f07 by Eli Bendersky in branch '3.3':
Issue #17989: fix typo in error message
http://hg.python.org/cpython/rev/65680e3a7f07
New changeset 19767536ce84 by Eli Bendersky in branch 'default':
Issue #17989: fix typo in error message
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17989
___
New submission from Marc Brünink:
The documentation for is not very clear regarding the usage of CDLL and PyDLL.
Especially it is not obvious that you should use PyDLL whenever you call any
function of the Python/C API. Since calling a Python/C API function without
owning the GIL will most
New submission from Florent Xicluna:
When executing a submodule, there's a SystemError in 3.3 where we used to
receive a ValueError.
mkdir marsu
touch marsu/__init__.py
echo from .houba import bi marsu/pilami.py
./python marsu/pilami.py
Traceback (most recent call last):
File
Raymond Hettinger added the comment:
Please add the x = y = z = 0 example back. It doesn't improve the tutorial
to dumb it down or to leave out basic knowledge. You may not like the feature
but it is a long standing part of the core language.
--
New submission from Marcin Szamotulski:
This simple snipet will crash python:
d={}
v=d.viewvalues()
k=d.viewkeys()
d[v]=k
k
Segmentation fault
I am using python2.7. Python3.2 does not have views while .keys() and
.values() methods raise RuntimeError: maximum recursion depth exceeded,
Ezio Melotti added the comment:
Is it OK if I add it back to the next page, when I explain object identity?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14097
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file30316/nt_pickle_fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18015
Raymond Hettinger added the comment:
Is it OK if I add it back to the next page,
when I explain object identity?
Yes. That would work.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14097
Roundup Robot added the comment:
New changeset 3568f8f1ccac by Benjamin Peterson in branch '2.7':
add missing NULL check (closes #18019)
http://hg.python.org/cpython/rev/3568f8f1ccac
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open - closed
Nick Coghlan added the comment:
For the specific case given, both error messages are misleading anyway - the
problem is attempting to directly execute a module inside a package instead of
using -m.
However, for the case of attempting a relative import from a top level module,
the old message
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18018
___
Greg Couch added the comment:
We still apply that patch to the Python that we embed in our application
and have for the last 10 years :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue734176
Roundup Robot added the comment:
New changeset 796d1371605d by Ezio Melotti in branch '3.3':
#14097: improve the introduction page of the tutorial.
http://hg.python.org/cpython/rev/796d1371605d
New changeset 42dda22a6f8c by Ezio Melotti in branch 'default':
#14097: merge with 3.3.
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9951
___
___
Python-bugs-list
89 matches
Mail list logo