Pete Hunt floydoph...@gmail.com added the comment:
UPDATE: this example WORKS if you remove authkey - so it seems to be a
problem with authentication.
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
flox la...@yahoo.fr added the comment:
Small update of the patch for 3.2: the __cmp__method is replaced with
__eq__ method (on CommentProxy and PIProxy).
--
Added file: http://bugs.python.org/file15552/issue6472_upstream_py3k_v2.diff
___
Python
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file15471/issue6472_upstream_py3k.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6472
___
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file15513/issue6472_upstream_docs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6472
___
Changes by flox la...@yahoo.fr:
Added file: http://bugs.python.org/file15553/issue6472_upstream_docs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6472
___
Changes by Laszlo (Laca) Peter l...@sun.com:
--
nosy: +laca
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1975
___
___
Python-bugs-list mailing
Marc-Andre Lemburg m...@egenix.com added the comment:
Martin v. Löwis wrote:
Martin v. Löwis mar...@v.loewis.de added the comment:
So, after reading the above comments, I think we may end up with
following changes:
* restore the bytes-to-bytes codecs in the encodings package
+1
*
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
___
New submission from Andrey Chichak c...@kit.tomsk.ru:
After setting cookies with same name and different path only nearest to
root cookie is available.
Attached patch:
1. Set Cookie to nearest value.
2. Collects all same name values in Cookie._multi['cookie name'] in
order.
--
flox la...@yahoo.fr added the comment:
Definitely, zlib.compress should raise a TypeError (like bz2 does).
import bz2, zlib
bz2.compress('abc')
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: argument 1 must be bytes or buffer, not str
zlib.compress('abc')
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: r.david.murray -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2259
___
___
Antoine Pitrou pit...@free.fr added the comment:
I'm not sure there's any real issue here. The signal *does* get
propagated to the main thread, it only takes some time to do so. If you
want the program to be interruptible more quickly, just lower the
timeout you give to select().
--
Antoine Pitrou pit...@free.fr added the comment:
The patch lacks a test that TypeError is raised on unicode input,
otherwise it's fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
Jean-Paul Calderone exar...@divmod.com added the comment:
I don't like the suggestion to lower the timeout to select(). Lots of
the rest of the world is pushing towards removing this kind of periodic
polling (generally with the goal of improving power consumption).
Python should be going this
Antoine Pitrou pit...@free.fr added the comment:
I don't like the suggestion to lower the timeout to select(). Lots of
the rest of the world is pushing towards removing this kind of periodic
polling (generally with the goal of improving power consumption).
Yes, I'm aware of this. I was
R. David Murray rdmur...@bitdance.com added the comment:
Committed in r76831. (I changed the test assertion to check
specifically for UnicodeDecodeError.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1680159
flox la...@yahoo.fr added the comment:
Patch from haypo updated for r76830 .
Additional tests for TypeError, and to check that bytearray objects are
accepted.
--
Added file: http://bugs.python.org/file1/issue4757_zlib_bytes.diff
___
Python
Antoine Pitrou pit...@free.fr added the comment:
The patch produces a number of errors in test_tarfile, test_distutils,
test_gzip and test_xmlrpc.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
flox la...@yahoo.fr added the comment:
Fixed.
And some bytearray tests improved in test_zlib.
--
Added file: http://bugs.python.org/file15556/issue4757_zlib_bytes_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
New submission from Venkateswaran wenka...@gmail.com:
The attached code is failing to convert None to Null. It is successful
if the int* is shifted towards the beginning of argument list. The bug
is actually in 32/64 bit pointers as the code works on a 32 bit system.
The bug disappears if I
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - pitrou
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
___
Adam Olsen rha...@gmail.com added the comment:
The real, OS signal does not get propagated to the main thread. Only
the python-level signal handler runs from the main thread.
Correctly written programs are supposed to let select block
indefinitely. This allows them to have exactly 0 CPU
R. David Murray rdmur...@bitdance.com added the comment:
Here's a doc patch.
--
keywords: +patch
stage: needs patch - patch review
Added file:
http://bugs.python.org/file15558/email_generate_mutates_message_docfix.patch
___
Python tracker
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1680159
Antoine Pitrou pit...@free.fr added the comment:
The real, OS signal does not get propagated to the main thread. Only
the python-level signal handler runs from the main thread.
Well, the signals /are/ delivered as far as Python code is concerned. I
don't think Python makes any promise as to
Antoine Pitrou pit...@free.fr added the comment:
The patch was committed to py3k and 3.1. Thank you!
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
Adam Olsen rha...@gmail.com added the comment:
You forget that the original report is about ctrl-C. Should we abandon
support of it for threaded programs? Close as won't-fix?
We could also just block SIGINT, but why? That means we don't support
python signal handlers in threaded programs
Antoine Pitrou pit...@free.fr added the comment:
You forget that the original report is about ctrl-C. Should we abandon
support of it for threaded programs?
We haven't abandoned support, have we? Where is the spec that is
currently broken?
Besides, as Jean-Paul pointed out, the user can now
New submission from Pete Hunt floydoph...@gmail.com:
BaseManager.__reduce__ references from_address, which, to my knowledge,
has been eliminated from the package.
--
components: Library (Lib)
messages: 96392
nosy: peterhunt
severity: normal
status: open
title:
John Levon movem...@users.sourceforge.net added the comment:
The spec broken is here:
http://docs.python.org/library/signal.html
Namely:
# Some care must be taken if both signals and threads are used in the
same program. The fundamental thing to remember in using signals and
threads
flox la...@yahoo.fr added the comment:
I agree, we need consistency between all functions of this package.
I've run a small script to check what happens for all 16 functions of
the binascii package when they receive unicode input...
See attached script (and sample output).
IMHO 4 functions
Antoine Pitrou pit...@free.fr added the comment:
The spec broken is here:
http://docs.python.org/library/signal.html
I would argue it is not broken. This documentation page is about a
module of the standard library, it doesn't specify the underlying C
implementation. That the main thread
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file1/issue4757_zlib_bytes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4757
___
Marcin Stepnicki marcin.stepni...@haibane.pl added the comment:
I don't have any strong view over whether the interpreter should,
theoretically, block signals in non-main threads. But, practically,
blocking signals apparently produced issues with readline (and possibly
other libs relying on
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - georg.brandl
components: +Documentation
nosy: +georg.brandl
versions: +Python 3.2 -Python 2.4, Python 2.5, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1975
Jean-Paul Calderone exar...@divmod.com added the comment:
http://docs.python.org/library/signal.html
I would argue it is not broken.
If it's not broken, then the docs are at least confusing. They should
make clear whether they are talking about the underlying signal or the
Python signal
R. David Murray rdmur...@bitdance.com added the comment:
See also issue 5862 and issue 3518. One or more of these three tickets
could possibly be closed as duplicates.
--
assignee: - jnoller
keywords: +easy
nosy: +jnoller, r.david.murray
priority: - normal
stage: - needs patch
Changes by R. David Murray rdmur...@bitdance.com:
--
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7506
___
flox la...@yahoo.fr added the comment:
This patch removes implicit encoding in binascii functions:
- a2b_hex (=unhexlify)
- a2b_qp
- rledecode_hqx
* Tests module test_binascii is reviewed and simplified.
* Fixes for email, pickle and quopri modules to encode input.
All tests pass.
David Watson bai...@users.sourceforge.net added the comment:
Hi, I'm afraid there may have been some duplication of effort
here - I set about reworking Heiko Wundram's original patch
(issue #1194378) without knowing about this one. I don't have
unit tests yet either, but I saw this and thought
Marc-Andre Lemburg m...@egenix.com added the comment:
flox wrote:
flox la...@yahoo.fr added the comment:
This patch removes implicit encoding in binascii functions:
- a2b_hex (=unhexlify)
- a2b_qp
- rledecode_hqx
* Tests module test_binascii is reviewed and simplified.
* Fixes
flox la...@yahoo.fr added the comment:
Are you sure that this patch is correct (which RFC says
that quoted printable should use our raw-unicode-escape
codec ?):
I am not sure of anything. It is an educated guess at the most.
Since 'base64' and 'x-uuencode' both use 'raw-unicode-escape'...
Marc-Andre Lemburg m...@egenix.com added the comment:
flox wrote:
flox la...@yahoo.fr added the comment:
Are you sure that this patch is correct (which RFC says
that quoted printable should use our raw-unicode-escape
codec ?):
I am not sure of anything. It is an educated guess at the
Antoine Pitrou pit...@free.fr added the comment:
I agree with Marc-André that enforcing ASCII looks like the only
sensible solution. Perhaps Barry knows the purpose of using
raw-unicode-escape here, though?
--
nosy: +barry, pitrou
___
Python tracker
New submission from Ben Gertzfield bgertzfi...@gmail.com:
The undocumented (but unit tested!) pipes.quote does not correctly
escape '!', which cannot be passed to the shell outside of single-
quotes:
sh-3.2$ python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build
Antoine Pitrou pit...@free.fr added the comment:
As I said, a flexible solution would be for thread creation functions to
take an optional argument specifying whether to block signals or not.
(I don't mind the default value of the argument :-))
--
Marc-Andre Lemburg m...@egenix.com added the comment:
The email interface ate part of the code snippet. Here's the complete
version:
import base64
base64.b64decode('äöü'.encode('raw-unicode-escape'))
b''
base64.b64decode('äöü'.encode('ascii'))
Traceback (most recent call last):
File stdin,
Antoine Pitrou pit...@free.fr added the comment:
There doesn't seem to be an __eq__ or __cmp__ method in DocTestCase,
which implies that the issue is with unittest.TestCase (from which
DocTestCase inherits).
--
nosy: +michael.foord, pitrou
priority: - normal
stage: - needs patch
Antoine Pitrou pit...@free.fr added the comment:
Ah, a patch. Now we're talking :)
--
resolution: wont fix -
stage: - patch review
status: closed - open
versions: +Python 2.7, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Jean-Paul Calderone exar...@divmod.com added the comment:
Or an interaction between TestCase and DocTestCase. TestCase.__eq__ and
TestCase.__hash__ are both implemented in terms of the _testMethodName
attribute. It looks like this is *always* runTest for a DocTestCase
instance. It probably
Michael Foord mich...@voidspace.org.uk added the comment:
Agreed, defining __eq__ and __hash__ on DocTestCase sounds like the way
to go.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7502
Antoine Pitrou pit...@free.fr added the comment:
The patch doesn't apply against the SVN trunk (some parts are rejected).
I suppose it was done against 2.6 or earlier, but those versions are in
bug fixing-only mode (which excludes performance improvements), so
you'll have to regenerate it
Antoine Pitrou pit...@free.fr added the comment:
Ah, my bad, I hadn't seen that the patch is for 3.2. Sorry for the
confusion.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7471
___
flox la...@yahoo.fr added the comment:
I perform a grep on the email package (with patch applied).
There's some places where 'raw-unicode-escape' is used.
I understand that all payload.encode('raw-unicode-escape') should be
changed to payload.encode('ascii') when the payload is processed by
Adam Olsen rha...@gmail.com added the comment:
A better solution would be to block all signals by default, then unblock
specific ones you expect. This avoids races (as undeliverable signals
are simply deferred.)
Note that readline is not threadsafe anyway, so it doesn't necessarily
need to
Antoine Pitrou pit...@free.fr added the comment:
I confirm that the patch gives good speedups. It would be nice if there
was a comment explaining what extrabuf, extrastart and extrasize are.
In 3.x, a better but more involved approached would be to rewrite the
gzip module so as to take
R. David Murray rdmur...@bitdance.com added the comment:
Committed in r76840 on trunk, r76842 for 2.6, r76843 for py3k, and
r76844 for 3.1.
--
resolution: - fixed
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
flox la...@yahoo.fr added the comment:
Patch updated:
* Added documentation
* Switched to payload.encode('ascii') in the email.message module
Note: there was no ambiguity on the first line of the documentation:
« [These functions] convert between binary and various ASCII-encoded
binary
Changes by flox la...@yahoo.fr:
Removed file: http://bugs.python.org/file15562/issue4770_binascii_py3k_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4770
___
Changes by flox la...@yahoo.fr:
Added file: http://bugs.python.org/file15563/issue4770_binascii_py3k_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4770
___
New submission from Terry J. Reedy tjre...@udel.edu:
5.9. File Objects¶
File objects are implemented using C’s stdio package and can be created
with the built-in open() function.
As I understand, the part about stdio is no longer true.
Also, as I understand, there is no longer a class file
New submission from Sridhar Ratnakumar sridh...@activestate.com:
This error happened while installing pycrypto 2.0.1 on XP 64-bit with VS
2008 express installed using Python 2.6.4 64-bit (via buildout).
Getting distribution for 'pycrypto=1.9'.
Traceback (most recent call last):
File string,
New submission from Sridhar Ratnakumar sridh...@activestate.com:
This error happened while installing pycrypto 2.0.1 on XP 64-bit with VS
2008 express installed using Python 2.5.4 64-bit (via buildout).
See also: http://twistedmatrix.com/trac/ticket/3352
Getting distribution for
New submission from Sridhar Ratnakumar sridh...@activestate.com:
Win XP 64-bit
Python 2.6.4 64-bit
Getting distribution for 'pycrypto=1.9'.
Traceback (most recent call last):
File string, line 1, in module
File build\bdist.win-amd64\egg\setuptools\command\easy_install.py,
line 1714, in
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Duplicate of issue7510
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7509
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Python 2.5 is no longer maintained, except for security issues (which
this one is not). Closing as won't fix.
--
nosy: +loewis
resolution: - wont fix
status: open - closed
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Most likely, the problem is that visual studio is not installed on your
system.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7511
Sridhar Ratnakumar sridh...@activestate.com added the comment:
I have Visual C++ 2008 express edition installed.
Maybe it is a quirk of express edition as I was able to install pycrypto
fine with the Visual Studio 2008 professional edition at work machine.
In any case, I believe this is a bug
New submission from Kuang-che Wu k...@csie.org:
flags is only supported on certain OS. FreeBSD is one of them.
FreeBSD itself support chflags but not all of its file systems do.
On FreeBSD, copystat() will fail on zfs. The exception is OSError and
errno is EOPNOTSUPP. According to manpage
Andriy Pylypenko bambys...@gmail.com added the comment:
Let me add my 2 cents. I understood the considerations about differences
between Python code level interrupt handling and OS level interrupts.
What I cannot get is why to preserve the handling of signals in the user
threads on OSes like
71 matches
Mail list logo