Jean-Paul Calderone added the comment:
Here's one:
class ReactorShutdownInteraction(unittest.TestCase):
"""Test reactor shutdown interaction"""
def setUp(self):
"""Start a UDP port"""
self.serve
Jean-Paul Calderone added the comment:
> And maybe the addCleanup components could be a stack of callable objects?
Yea, that's handy. My example didn't show it, but that's what trial
implements.
--
___
Python tracker
<h
Jean-Paul Calderone added the comment:
/Any/ addCleanup that is successfully executed should cause the cleanup
function to be called. Otherwise you have to define all your cleanup
twice, and that's no fun.
--
___
Python tracker
Jean-Paul Calderone added the comment:
Hi Benjamin,
Thanks for this fix. :) I noticed the revision in your comment doesn't
seem to be the one that contains the fix though.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/i
New submission from Jean-Paul Calderone :
Prior versions of xmlrpclib.loads would raise an exception when passed
malformed documents:
exar...@bigdog24:~/_trial_temp$ python2.4 -c 'from xmlrpclib import
loads; loads("\x00\n\n \n \n \n
\n\n")'
Traceback (most recent call la
Jean-Paul Calderone added the comment:
This actually appears to be an issue with the sgmlop-based parser, not
the expat-based parser. After removing sgmlop, the exception-raising
behavior is restored.
Perhaps this bug should be closed as invalid, then. Only, I wonder if
this is the right bug
New submission from Jean-Paul Calderone :
Python includes several APIs for manipulating TLS:
PyAPI_FUNC(int) PyThread_create_key(void);
PyAPI_FUNC(void) PyThread_delete_key(int);
PyAPI_FUNC(int) PyThread_set_key_value(int, void *);
PyAPI_FUNC(void *) PyThread_get_key_value(int
New submission from Jean-Paul Calderone :
Per issue3308, it is not really possible to build Python extensions with
MinGW anymore (as far as I can tell). The distutils documentation is
misleading in this regard, as is the continued existence of the
build_ext --compiler=mingw32 option. The
Jean-Paul Calderone added the comment:
> Even though I still don't understand the original issue, apparently,
> it is an issue only if the localtime() function is used. Extensions
> that don't use it might still work fine, according to the report.
I have an extension which
Jean-Paul Calderone added the comment:
Here's a patch which removes sgmlop support from xmlrpclib.
--
keywords: +patch
Added file: http://bugs.python.org/file14023/xmlrpclib.patch
___
Python tracker
<http://bugs.python.org/i
New submission from Jean-Paul Calderone :
r72219 introduced an `_result´ attribute to `TestCase´. As `TestCase´
is designed specifically with the intent that applications should
subclass it -- and frequently -- I would suggest that the attribute be
given a name less likely to collide with a
Jean-Paul Calderone added the comment:
Here's a new patch which adds SetParamEntityParsing to the pyexpat
library docs and adds another test for external entity reference
handling. This is probably all I'll do on this ticket.
--
Added file: http://bugs.python.org
New submission from Jean-Paul Calderone :
It used to be possible to use hashlib with arrays; it no longer seems
possible.
exar...@charm:~$ python -c '
import sys, hashlib, array
print sys.version_info
print hashlib.sha1(array.array("b", [1, 2, 3])).hexdigest()
'
Jean-Paul Calderone added the comment:
Here's a patch which renames `_result´ to `_resultForDoCleanups´.
Another possibility would be for `doCleanups´ to take the result object
as an argument. This would make it harder for applications to call
directly, though (I've never wan
Jean-Paul Calderone added the comment:
It seems a patch would be an enormous undertaking, as the data structure
returned by the parser does not include this information, and the parser
is written in C.
I'll just hack around this somehow. Don't expect a pat
Jean-Paul Calderone added the comment:
I would certainly like to, but unfortunately at present I am unable to.
--
___
Python tracker
<http://bugs.python.org/issue6
Jean-Paul Calderone added the comment:
Perhaps Gregory has some idea about how this can most easily be
resolved, since I think he did the work on #3745 which introduced this
change in behavior.
--
nosy: +gregory.p.smith
___
Python tracker
<h
New submission from Jean-Paul Calderone :
When a frame's f_locals attribute is accessed, one of two things happens:
* If this is the first access, a new dictionary is created and it is
populated with the locals from the frame (since they are not stored
internally as a dictionary).
Jean-Paul Calderone added the comment:
Oh, I forgot dictionaries aren't weakrefable. That's such a pain, I
thought the third solution would be a good balance between easy and good. :/
Regarding the first solution, my only question right now is whether this
should be a new attribute/
Jean-Paul Calderone added the comment:
pygtk doesn't release the GIL around its internal calls unless you call
threads_init. So I think this is pretty clearly just a misuse of the
pygtk library. There's nothing at all Python can do about it. If an
extension library doesn't
New submission from Jean-Paul Calderone :
Creation of GC'd types is explained at
<http://docs.python.org/c-api/gcsupport.html>.
The docs claim that PyObject_GC_Track must be called once an object
created with PyObject_GC_New is initialized. The docs fail to explain
what should be do
New submission from Jean-Paul Calderone :
If an extension type supplies a tp_new or tp_init, these will be invoked
by the normal instantiation logic. They will also be exposed as
`__new__´ and `__init__´ attributes of the type. However, there is no
way to supply a docstring for these methods
New submission from Stephen Paul Chappell :
This is what I get while the interactive interpreter (IDLE 3.0.1) on the
platform
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on win32
>>> a = -6.276479035564047
>>> b = -5.797449749
Jean-Paul Calderone added the comment:
Have you checked to see what the result of a ** b is?
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue6
Jean-Paul Calderone added the comment:
Any plans for a unit test for this change?
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue3684>
___
___
Jean-Paul Calderone added the comment:
This was done long ago, it seems.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue2376>
___
_
Jean-Paul Calderone added the comment:
Perhaps the C implementation should interpret the stacklevel parameter
differently so that it is compatible with the Python implementation.
The stacklevel value is, after all, a very important part of the
interface of warnings.warn, as it is the only way
Jean-Paul Calderone added the comment:
So how about it?
--
___
Python tracker
<http://bugs.python.org/issue4180>
___
___
Python-bugs-list mailing list
Unsub
Jean-Paul Calderone added the comment:
I found XMLGenerator in xml.sax.saxutils. Attached patch changes
expatreader to use that instead. Though I have no idea what the point
of this stanza is. I suppose it's to exercise the code, in lieu of some
unit tests. It might be better to just d
New submission from Jean-Paul Calderone :
Consider this source file:
# coding: ascii
☃
It is not a valid Python program (for several reasons). The first
problem encountered is that bytes representing SNOWMAN do not fit into
ASCII, so the file cannot be decoded using the declared encoding
Jean-Paul Calderone added the comment:
I just want to second Kristján's position. I've used assertRaises a lot
over the years (an implementation in a third-party unit testing library)
and it is extremely common that I want the exception object to perform
the kind of checks he is
New submission from Jean-Paul Calderone :
I found a couple mistakes in test_with.py with Pyflakes.
--
components: Tests
files: test_with.patch
keywords: patch
messages: 89530
nosy: exarkun
severity: normal
status: open
title: test_with.py has a couple minor mistakes
versions: Python 2.7
Jean-Paul Calderone added the comment:
You're talking about adding a non-local goto feature to the language.
This would be a huge change, and not one that is generally in the
direction that any widespread languages (let alone Python itself) are
going these days.
Please raise this on o
Jean-Paul Calderone added the comment:
Solaris 10 introduced "The Event Completion Framework". I am not
particularly familiar with Solaris, so I couldn't say whether it would
be better to target this or the older /dev/poll. Some documentation
suggests that "The Event Comp
Changes by Jean-Paul Calderone :
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue6403>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jean-Paul Calderone :
I ran 2to3 over Twisted r27084 like this:
time ~/Projects/python/trunk/python
/home/exarkun/Projects/python/trunk/Tools/scripts/2to3 -j 4 twisted/ >
2to3.patch
Visual inspection revealed some curious defects, and attempting to apply
it failed like t
Jean-Paul Calderone added the comment:
In addition to skipping the tests, would it also make sense to document these
known limitations of Python threading on OpenBSD somewhere that end users might
see it?
--
___
Python tracker
<h
Changes by Jean-Paul Calderone :
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue3051>
___
___
Python-bugs-list mailing list
Unsubscri
Jean-Paul Calderone added the comment:
Have you looked at the number of TIME_WAIT sockets you have on the system when
your benchmark gets to the 16000 request mark?
This looks exactly like a regular TCP limitation to me. You'll find the limit
on any platform, not just OS X.
--
Jean-Paul Calderone added the comment:
Here's another possible approach:
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
ctx.set_tlsext_host_name("foo.bar")
skt = ctx.wrap_socket(socket.socket())
skt.connect("bar.baz")
This makes it obvious what the SNI hostname is an
Jean-Paul Calderone added the comment:
Backported to release26-maint in r81488.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue1628
Jean-Paul Calderone added the comment:
> Sorry I don't like this as much. I believe following the RFC for TLS SNI
> should be implicit and not something the programmer need to put effort into
> achieving. I acknowledge this approach does go against some explicit
> beha
Jean-Paul Calderone added the comment:
> Nope, I checked before making the suggestion. There's an SSL_CTX_ version of
> this API (in addition to the SSL_ version).
Sorry, I just checked again, and it seems you're right. Perhaps I saw
SSL_CTX_set_tlsext_servername_callback
Jean-Paul Calderone added the comment:
> If the user issues the 'save' command a commit is done. When they quit the
> application, I'd like to be able to prompt them with a 'save or discard' if
> and only if they have made changes since the last save.
Is
Jean-Paul Calderone added the comment:
About the doc patch: I like the word "Resolves" more than "Translate".
"Resolves" implies possible network activity to me. "Translate" sounds like
it's just a change in representation. Of course, things li
New submission from Jean-Paul Calderone :
Packages loaded from zip files have a __path__ sort of like any other package.
The zipimport tests don't verify that this attribute has the correct value,
though.
--
components: Tests
messages: 107327
nosy: exarkun
priority: normal
sev
Jean-Paul Calderone added the comment:
Thanks for reporting this issue. Can you attach a patch which adds a unit test
covering this behavior and fixing the quoting rules? It would be very helpful
in resolving this ticket. If implementing the whole thing is too much work, if
you could just
Jean-Paul Calderone added the comment:
Thanks.
I'm not sure this is a correct change. And in fact, I would say that the
current quoting of | is also incorrect.
& and | (and ^ and perhaps several others) have special meaning to cmd.exe.
list2cmdline is documented as applying th
Changes by Jean-Paul Calderone :
--
components: +Library (Lib)
stage: unit test needed ->
___
Python tracker
<http://bugs.python.org/issue8972>
___
___
Python-
Jean-Paul Calderone added the comment:
http://www.autohotkey.net/~deleyd/parameters/parameters.htm#WINCRULES is a
helpful reference, by the way.
--
___
Python tracker
<http://bugs.python.org/issue8
Jean-Paul Calderone added the comment:
> That remark is not relevant, because the actual problem is different.
Maybe you can expand the test case to demonstrate the actual problem? The
tests in the latest patch are for list2cmdline directly. But you can't observe
the problem
Jean-Paul Calderone added the comment:
These sound more like features for the unittest runner (one of which is
implemented already). Also, please don't propagate "::" as a namespace
separator in Python. That's what "." is f
Jean-Paul Calderone added the comment:
I reverted r60115 from trunk (2.7) in r82075 and from py3k in r82076.
--
nosy: +exarkun
resolution: fixed -> invalid
___
Python tracker
<http://bugs.python.org/iss
Jean-Paul Calderone added the comment:
I've reverted the issue1300 revision from 2.6, 2.7, 3.1, and 3.2. I hope
7839 is resolved soon.
--
___
Python tracker
<http://bugs.python.org/i
Jean-Paul Calderone added the comment:
It's not terribly productive to block a fix for this specific issue in the WSGI
specification on the big pile of contentious unrelated issues.
It would make sense to issue a new WSGI specification with a correction for
only this issue. The rest o
Jean-Paul Calderone added the comment:
See the commit message for r82075 and the discussion on issue8972 and issue7839.
--
___
Python tracker
<http://bugs.python.org/issue1
Jean-Paul Calderone added the comment:
It will return the former.
To clarify, it's true that there appears to be a problem with Popen(['echo',
'foo|bar'], shell=True). That is being tracked in issue7839.
What's invalid is the report that list2cmdline() should
Jean-Paul Calderone added the comment:
It might be nice to see the version that avoids the dup() and has the duplicate
code instead (interesting trade-off ;). Just for the sake of comparison
against the forget() proposal.
--
___
Python tracker
New submission from Jean-Paul Calderone :
With a checkout of the py3k branch, building an extension module using
distutils fails:
error: Python.h: No such file or directory
This is clearly because the wrong -I option is being supplied:
gcc -pthread -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
Jean-Paul Calderone added the comment:
Thanks for bringing this up.
I think you have more work to do to successfully make the case that L.insert(0,
x) is "difficult" enough to merit the addition of a new list method. There are
already at least two in-place insert-at-front list
Jean-Paul Calderone added the comment:
> The argument that "there are already two ways to do it, so why add a third?",
> is not bad, but if applied to appending, it would ban the append() method...
> except that it's already there.
Not quite. First let's
Jean-Paul Calderone added the comment:
You should include all relevant issue materials here, in the Python issue
tracker. This ticket will be useless as soon as pastie.org decides to forget
about your paste.
--
nosy: +exarkun
___
Python tracker
Jean-Paul Calderone added the comment:
I can't think of any way that you might be able to implement the behavior being
requested here.
Instead, if you don't want to leave files lying around, use TemporaryFile
instead of NamedTemporaryFile.
Perhaps the documentation for NamedTemp
Jean-Paul Calderone added the comment:
Some unit tests which demonstrate the present non-working behavior and the
correctness of the fix would help a lot.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue5
Jean-Paul Calderone added the comment:
Calling linecache.checkcache for every inspect.getsource call sounds like a
fairly bad idea to me.
linecache.checkcache does a stat() of every single cached file.
--
nosy: +exarkun
___
Python tracker
<h
Jean-Paul Calderone added the comment:
> linecache.checkcache does a stat() of every single cached file.
Ah, sorry. I didn't read carefully enough. I see that the patch passes in the
filename and checkcache restricts the work it does in that case.
Something else to consider, th
New submission from Jean-Paul Calderone :
pickle doesn't support methods:
>>> class x:
... def y(self):
... pass
...
>>> import pickle
>>> pickle.dumps(x.y)
Traceback (most recent call last):
File "", line 1, in
File "
Jean-Paul Calderone added the comment:
Yes.
--
___
Python tracker
<http://bugs.python.org/issue2124>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
> This is a security feature and should not be broken !
Can you explain this?
I don't think I agree, since an attacker can always serialize whatever they
feel like. It's the person doing the deserialization that has
Jean-Paul Calderone added the comment:
> By adding default support for unpickling code objects, you can trick
the unpickling code into executing serialized code:
This doesn't sound correct to me.
You can *already* trick unpickling code into executing serialized code. You
don
Jean-Paul Calderone added the comment:
For example:
exar...@boson:~$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class x(object):
..
Jean-Paul Calderone added the comment:
> I also like Antoine's idea of pickling the function/method name instead of
> the whole code object.
I like it too. That's why I suggested it in the first comment on the ticket
(read the linked code). I guess Alexander likes
Jean-Paul Calderone added the comment:
> Note, however that since unbound methods have been removed in 3.x, it is not
> trivial to find a fully qualified name of a method anymore.
This is a rather sad loss of functionality.
--
___
Python t
Jean-Paul Calderone added the comment:
> the twisted imap API is problematic for imaplib because twisted seems to
> expect its arguments to already be Python unicode.
Could you elaborate on this? As far as I can tell, it works fine:
>>> import twisted.mail.imap4
>&g
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue1103213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul Anton Letnes added the comment:
The format (xz vs bzip2) might not matter much, but I'd say consistency does.
I'd make the formats identical just for the sake of standardization.
Where is this decided? In some (post)build script?
--
nosy
Paul Anton Letnes added the comment:
I created a patch to the devguide with some rewording as necessary. As I am not
an expert on porting Python, it would be great if someone could point out any
mistakes I made. The new FAQ is at the very bottom of the file, as I didn't
find any
Paul Anton Letnes added the comment:
I believe someone should also commit the following command:
hg rm Misc/porting
in the main python repository, since the contents of this file are now found in
the devguide.
--
___
Python tracker
<h
Marc Paul Rubin added the comment:
Greetings from an idle-dev 'lurker.' Has anyone tested the new dark
theme with a Set Breakpoint command? The dark theme is great for me
except for this quirk: breakpoints are invisible on my test box. Under
the Classic light scheme breakpoints a
Changes by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<http://bugs.python.org/issue26158>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<http://bugs.python.org/issue24185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue15945>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue20669>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue20718>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue6377>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue18629>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue6555>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue21327>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue5305>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
It's only been six years, no need to rush.
--
nosy: +Jean-Paul Calderone
___
Python tracker
<http://bugs.python.org/i
Changes by Jean-Paul Calderone :
--
nosy: -Jean-Paul Calderone, exarkun
___
Python tracker
<http://bugs.python.org/issue6731>
___
___
Python-bugs-list mailin
John Paul Adrian Glaubitz added the comment:
I'm running into exactly this issue when using 'offlineimap' which is written
in Python.
--
nosy: +glaubitz
___
Python tracker
<https://bugs.pyt
John Paul Adrian Glaubitz added the comment:
Hi Serhiy!
> The simple fix is to add UnicodeEncodeError to "except LookupError". But
> there may be other places where we can get a similar error. They should be
> fixed too.
I would be very interested to test this as t
John Paul Adrian Glaubitz added the comment:
Awesome, thanks! I'll give it a try later today or tomorrow.
--
___
Python tracker
<https://bugs.python.org/is
John Paul Adrian Glaubitz added the comment:
> Awesome, thanks! I'll give it a try later today or tomorrow.
I have applied the patch and the problem seems to have been fixed. \o/
--
___
Python tracker
<https://bugs.python.org
John Paul Adrian Glaubitz added the comment:
I think there is one productive result of this discussion which is this patch
by Jessica Clark which gets rid of architecture-specific alignment code:
> https://github.com/python/cpython/pull/24624
Unfortunately, it has not seen any posit
John Paul Adrian Glaubitz added the comment:
I'm a Debian Developer and maintainer for multiple Debian Ports architectures.
Please don't remove support for Alpha, HPPA, m68k, ia64, PowerPC, SuperH, SPARC
as we're still maintaining these in Debian.
Here are the latest bu
John Paul Adrian Glaubitz added the comment:
And, FWIW, I generally don't quite understand what the problem with old triplet
definitions in configure.ac are. I assume they don't hurt anyone, do they?
You never know what usecases your users have and as long as a code snippe
John Paul Adrian Glaubitz added the comment:
That's an argument I have personally never heard before and I have been dealing
with a lot of architecture support in many packages.
FWIW, lots of upstream projects have targets which are officially supported and
others which are there bu
John Paul Adrian Glaubitz added the comment:
> I opened this ticket after a user told me that they grepped the source code
> of Python, found the string "s390", and concluded that s390 is still
> supported by us.
Because one user was surprised by a few lines in configure
3101 - 3200 of 3213 matches
Mail list logo