Jean-Paul Calderone added the comment:
My understanding of the resolution of this ticket is that it is still not
possible to use setrlimit with RLIMIT_STACK to raise the soft stack limit. Is
that correct?
In that case, the original bug report still seems valid and unresolved (and
indeed
Jean-Paul Calderone added the comment:
Not likely, given the number of things on my plate already.
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1598083>
_
__
New submission from Jean-Paul Calderone:
Python 2.5 deprecated raising string exceptions. It also added the
throw method to generator objects which can be used to raise an
exception, including a string exception. Raising an exception with this
method doesn't issue a deprecation warning
New submission from Jean-Paul Calderone:
zipimporter instances have a read-only "archive" attribute, but there is
no documentation referring to it, nor any test coverage for its existence.
It's quite useful to know what a zipimporter is pointed at (for
debugging and other intros
New submission from Jean-Paul Calderone:
It's possible to construct a zipimporter with a "path" which points
first to a zip file and then continues to refer to a file within that
zip file. For example,
/foo/bar.zip/baz
where /foo/bar.zip is not a directory, but a zip fil
Changes by Jean-Paul Calderone:
--
nosy: +fijal
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1325>
__
___
Python-bugs-list mailing list
Unsubs
Changes by Jean-Paul Calderone:
--
nosy: +fijal
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1326>
__
___
Python-bugs-list mailing list
Unsubs
Jean-Paul Calderone added the comment:
The APR comment is indeed correct, so this is probably a Python bug.
--
nosy: +exarkun
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/is
Jean-Paul Calderone added the comment:
This isn't a bug in Python. Working directory, which os.chdir modifies,
is process-global. One of your threads makes a directory, then gets
suspended while another one makes a different directory and changes into
it, then the first tries to change
Jean-Paul Calderone added the comment:
> pysetup run upload -f dist/spam-0.2.tar.gz -f dist/spam-0.2.exe
I'm not sure why it's "run upload" instead of just "upload", but maybe that's
the convention in pysetup. Apart from that, this looks like a v
New submission from Jean-Paul Calderone :
When a timezone produces an out-of-bounds utc offset, the resulting exception
always claims that the offset was 1440, rather than whatever it was. Example:
from datetime import timedelta, datetime, tzinfo
class X(tzinfo):
def utcoffset(self, time
New submission from Jean-Paul Calderone :
Consider this transcript from OS X 10.6:
>>> import locale
>>> locale.getlocale()
(None, None)
>>> locale.setlocale(locale.LC_ALL, _)
'C'
>>> locale.setlocale(locale.LC_ALL, 'en_US.UTF-8
Jean-Paul Calderone added the comment:
Since the main argument for not fixing this bug seems to be that it doesn't
affect many users, it seems like I should comment here that the issue is
affecting me. A recently proposed addition to Twisted gets bitten by this
case, resulting in a r
Jean-Paul Calderone added the comment:
Thanks for the patch Petri. Are you interested in writing a unit test for this
as well?
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue11
Jean-Paul Calderone added the comment:
exar...@boson:~/Projects/python-signalfd/trunk$ PYTHONPATH=
~/Projects/python/branches/py3k/python setup.py build_ext -i
running build_ext
building 'signalfd._signalfd' extension
creating build
creating build/temp.linux-i686-3.2
creating build/
Changes by Jean-Paul Calderone :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue9053>
___
___
Python-bugs-
Jean-Paul Calderone added the comment:
> I'll be looking at it shortly. Py3.2 is still aways from release so there is
> no hurry.
I would consider reviewing and possibly apply this change, but I don't want to
invade anyone's territory.
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue8685>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jean-Paul Calderone :
The output of setup.py is polluted with this log message:
Importing new compiler from distutils.msvc9compiler
on Windows. For example, using pyOpenSSL's setup.py, running "setup.py
--version" produces this output:
Importing ne
New submission from Jean-Paul Calderone :
Here's a transcript which demonstrates the blocking behavior:
>>> import socket
>>> import time
>>> import ssl
>>> s = ssl.wrap_socket(socket.socket())
>>> s.connect(('localhost', 8443))
>&g
Changes by Jean-Paul Calderone :
--
title: PySSL_SSLRead loops until data is available, even in non-blocking mode
-> PySSL_SSLread loops until data is available, even in non-blocking mode
___
Python tracker
<http://bugs.python.org/iss
Jean-Paul Calderone added the comment:
Hm. I must have been testing with old versions, since I can't reproduce this
now. Sorry for the noise.
--
resolution: out of date -> duplicate
status: pending -> closed
___
Python tra
Jean-Paul Calderone added the comment:
This seems to have been caused by an ill-placed distutils.log.set_verbosity(3)
call. With that removed, this output isn't generated by default. So perhaps
this is invalid, feel free to close it as so if you
Jean-Paul Calderone added the comment:
How about nss? As a bonus, this would also avoid making more work for Fedora
(<http://fedoraproject.org/wiki/FedoraCryptoConsolidation>).
--
___
Python tracker
<http://bugs.python.org/
Jean-Paul Calderone added the comment:
What it will bring: APIs which aren't absolutely insane; full SSL support; RSA,
DSA, ECDSA, Diffie-Hellman, EC Diffie-Hellman, AES, Triple DES, DES, RC2, RC4,
SHA-1, SHA-256, SHA-384, SHA-512, MD2, MD5, HMAC: Common cryptographic
algorithms us
Jean-Paul Calderone added the comment:
> I should note that I can't touch anything to do with Elliptic Curve crypto.
> I don't know if I can comment on the reasons for that.
Hopefully anything ECC related can be done separately. There's certainly no
ECC APIs in Pytho
Jean-Paul Calderone added the comment:
> Unfortunately, select doesn't necessarily update the timeout variable with
> the remaining time, so we can't rely on this. This would mean having the
> select enclosed within gettimeofday and friends, which seems a bit overkill...
Jean-Paul Calderone added the comment:
You can't rely on id() to return distinct values across different processes.
It guarantees uniqueness *within a single process* (at any particular moment).
In other words, you're misusing id() here. This is not a Python bug.
--
nosy
Jean-Paul Calderone added the comment:
You mistakenly used "is" for these comparisons, rather than "==". The strftime
involvement is a red herring. The real problem is the use of an /identity/
comparison rather than an /equality/ comparison.
--
nosy:
Jean-Paul Calderone added the comment:
It could, but why introduce this redundancy with `os.name`?
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue9
Jean-Paul Calderone added the comment:
fwiw http://mail.python.org/pipermail/python-list/2010-September/1256545.html
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue9
Jean-Paul Calderone added the comment:
If the warnings are emitted as usual with the warnings module, you can use -W
to control this. -X isn't necessary.
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/is
New submission from Jean-Paul Calderone :
>>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>>> s.bind(('', 0))
>>> s.sendto(u'hellé', s.getsockname())
Traceback (most recent call last):
File "", line 1, in
TypeError: se
New submission from Jean-Paul Calderone :
Consider this transcript:
>>> cProfile.run("import time; time.sleep(1)")
4 function calls in 1.012 CPU seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
Jean-Paul Calderone added the comment:
Trial lets test cases get garbaged collected. When we noticed this wasn't
happening, we treated it as a bug and fixed it. No one ever complained about
the change. I don't see any obvious way in which an application would even be
able t
Jean-Paul Calderone added the comment:
> I thought unittest was just handed a bunch of TestCase instances and couldn't
> do much about insuring they were garbage collected.
True. But unittest could ensure that it doesn't keep a reference to each
TestCase instance after it
Jean-Paul Calderone added the comment:
Here's Trial's implementation:
http://twistedmatrix.com/trac/browser/trunk/twisted/trial/runner.py#L138
--
___
Python tracker
<http://bugs.python.o
New submission from Jean-Paul Calderone :
http://docs.python.org/py3k/howto/sockets.html#non-blocking-sockets
"And if you put a socket in more than one input list, it will only be (at most)
in one output list."
>>> import socket
>>> s = socket.socket()
&g
New submission from Jean-Paul Calderone :
This is somewhat unfortunate behavior:
>>> from xml.etree.ElementTree import QName
>>> QName('foo')
>>>
It becomes even more apparent when encountered in a situation like this:
>>> print {QName('foo
Jean-Paul Calderone added the comment:
> Phillip, your argument about interfacing with code written in C doesn't work
> for built-in immutable types like str.
Sure it does. Definitely-str is easier to handle in C than maybe-str-subclass.
It doesn't matter that str.__n
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
The heapq documentation isn't very clear about its requirements. It
does explicitly say that "Heaps are arrays for which heap[k] <=
heap[2*k+1] and heap[k] <= heap[2*k+2] for all k, counting elements from
zero
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
I tried this too and then wrote a couple unit tests for this. The one
for the Python implementation which tests the case where only __le__ is
defined fails, though.
Diff attached.
--
keywords: +patch
Added file
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
Thanks for the explanation. Unfortunately, even if we change our code
to work with the new requirements, all the old code is still out there.
Maybe this doesn't matter, since there are so many other
incompatibilities between
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>:
Python 2.6b1+ (trunk:64531M, Jun 26 2008, 10:40:14)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> impor
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>:
ctypes.util assumes several things of its environment which sometimes
don't hold:
* It depends on objdump being in $PATH. If it isn't, it will fail to
read the SONAME from a library, even if it has determined the pa
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>:
If a method is inherited by two different classes, then the unbound
method objects which can be retrieved from those classes compare equal
to each other. For example:
Python 2.6b2+ (trunk:65502M, Aug 4 2008, 15:05:07)
[GCC
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
The reason I noticed this is that since they compare and hash equal, if
you put two such methods into a set, you end up with a set with one
method. Currently, this is preventing me from running two test methods
because the method
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
> But you acknowledge they are really the same method attached to
> different classes, right? The notion of "unbound method" is mostly an
> implementation detail. The term occurs only 4 times in the who
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
Any chance of getting this fixed?
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>:
In Python 2.5 and earlier, the `warnings.warn_explicit` function could
be replaced in order to test what warnings were emitted by some code.
This allowed unit tests for warnings to be written. Since much of the
warnings module
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>:
This example shows the behavior:
from warnings import catch_warnings
def test():
with catch_warnings(True) as w:
assert str(w.message) == "foo", "%r != %r" % (w.message, "foo
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
I was aware of it, but I didn't realize adding an "always" filter would
make sure all warnings always got noticed. I haven't tried changing
Twisted's use of the warnings module yet, but it looks like
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
The specific exception type isn't that important to me, as long as I can
rely on it being something in particular.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
Exposing a list seems like a great low-level API to me. There are no
[-1]s in the Twisted codebase as a result of using this API because we
have a higher-level API built on top of it. Having this low-level API
that doesn't
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
There was a discussion on python-dev about using things from the `test`
package from code outside the `test` package:
http://mail.python.org/pipermail/python-dev/2008-August/081860.html
___
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
Both M2Crypto and pyOpenSSL expose certificate and key objects and have
seen lots of real-world use. Following their lead would be sensible.
--
nosy: +exarkun
___
Python tracker &
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
I'm just suggesting that if the ssl module *is* going to gain
certificate and key objects, looking at existing APIs and perhaps
emulating them, to the extent that they provide functionality which the
ssl module is also going
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
You can load a private key from a string by creating a memory BIO and
using PEM_read_bio_PrivateKey or d2i_PrivateKey_bio.
This is how pyOpenSSL implements its load_privatekey API. You can see
the code here:
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>:
[EMAIL PROTECTED]:~$ ls .pythonstartup.py
.pythonstartup.py
[EMAIL PROTECTED]:~$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright&qu
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
Why wasn't it backported to 2.5?
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment:
Any buggy behavior might be relied on by applications. Taken to the
extreme, you can never have a bug-fix release of Python.
__file__ from PYTHONSTARTUP breaks the warnings module. It would be
difficult for an application to r
Jean-Paul Calderone added the comment:
There's no bug here. You've misunderstood how the literal \0 syntax works.
Perhaps this will clarify things:
>>> list('\0123')
['\n', '3']
>>> list('\x001
Jean-Paul Calderone added the comment:
It doesn't matter whether \0 or \x00 is used. They mean the same thing. Maybe
this is the example I should have given:
>>> list('\0%s' % ('12',))
['\x00', '1',
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jean-Paul Calderone :
>From python-dev:
On Fri, Jan 29, 2010 at 15:04, wrote:
> On 10:47 pm, tjre...@udel.edu wrote:
>>
>> On 1/29/2010 4:19 PM, Collin Winter wrote:
>>>
>>> On Fri, Jan 29, 2010 at 7:22 AM, Nick Coghlan wrote:
>>
Jean-Paul Calderone added the comment:
Sounds like one.
As far as the trial behavior goes, "trial foo.test_suite" won't work, but
"trial foo" will call "foo.test_suite", if one is defined.
--
nosy: +exarkun
__
Jean-Paul Calderone added the comment:
I agree that changing the result object is a better way to implement this
feature: if the results object wants to report things by *name*, not
*description*, then it should get the test's *name*, not rely on changing the
meaning of the t
Jean-Paul Calderone added the comment:
> With paramterized tests *all* the tests are run and *all* failures reported.
> With testing in a loop the tests stop at the first failure.
+1 to this justification. Parameterized tests are a big win over a simple for
loop in a test.
(Howe
Jean-Paul Calderone added the comment:
Your output looks fishy. Anyway, the behavior of += isn't a bug:
>>> a = b = (1, 2)
>>> a += (1, 2, 3)
>>> a
(1, 2, 1, 2, 3)
>>> a is b
False
>>>
It's confusing, to be sure, but no mutation is
Jean-Paul Calderone added the comment:
Something else I think it would be nice to consider is what the id() (and
shortDescription(), heh) of the resulting tests will be.
It would be great if the id were sufficient to identify a particular test *and*
data combination.
In trial, we're t
Jean-Paul Calderone added the comment:
I think it's likely that the test program does drastically different things on
Linux than it does on OS X:
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits"
Jean-Paul Calderone added the comment:
> So is it reasonable / unavoidable that UCS4 builds should be 1200 times
> slower at regex handling?
No, but it's probably reasonable / unavoidable that a more complex regex should
be some number of times slower than a simpler regex.
On
Jean-Paul Calderone added the comment:
Why is the Microsoft CRT argument error handler no longer disabled?
--
nosy: +exarkun
___
Python tracker
<http://bugs.python.org/issue8
Jean-Paul Calderone added the comment:
> What kind of signals can be received in real-life?
There are lots of possible answers. Here's one. You launch a child process
with os.fork() (and perhaps os.exec*() as well). Eventually you'll get a
SIGCHLD in the parent when the chi
Jean-Paul Calderone added the comment:
Just a couple comments:
* If MSG_WAITALL is defined and a signal interrupts recv, will a string
shorter than requested will be returned by sock_recvall?
* Since MSG_WAITALL is already exposed to Python (when the underlying
platform provides it), I
Jean-Paul Calderone added the comment:
The name suggests a different behavior to me - I assumed it would set the
reference count to a specific value. Maybe this is the kind of thing Raymond
had in mind when he said "The mnemonic doesn't work for me".
--
New submission from Jean-Paul Calderone :
There are two tests for the way inspect.classify_class_attrs handles various
sorts of attributes. The tests are identical, except one uses a classic class
and one a new-style class. The tests sources have actually begun to diverge,
but so far only
Changes by Jean-Paul Calderone :
Added file: http://bugs.python.org/file16856/test_inspect.patch
___
Python tracker
<http://bugs.python.org/issue8363>
___
___
Python-bug
Jean-Paul Calderone added the comment:
Okay.
I shouldn't commit until after trunk is unfrozen though, right?
--
___
Python tracker
<http://bugs.python.org/i
Jean-Paul Calderone added the comment:
Committed in r79935
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
New submission from Jean-Paul Calderone :
Linux offers the signalfd syscall since 2.6.22 (with minor changes afterwards).
This call allows signals to be handled as bytes read out of a file descriptor,
rather than as interruptions to the flow of a program. Quite usefully, this
file
Jean-Paul Calderone added the comment:
I've started on an implementation of this in /branches/signalfd-issue8407.
--
___
Python tracker
<http://bugs.python.org/i
Jean-Paul Calderone added the comment:
> Will the modified test fail on platforms that don't define HAVE_SIGACTION?
Only if they also have siginterrupt, which seems unlikely (as neologix
explained). The implemented behavior on such platforms is unmodified from
current trunk, while
Jean-Paul Calderone added the comment:
> The one big difference I can see is that set_wakeup_fd() doesn't transmit the
> signal number, but this could be fixed if desired (instead of sending '\0',
> send a byte containing the signal number).
There's a lot mor
Jean-Paul Calderone added the comment:
SMTP (RFC 2821) doesn't support non-ASCII envelope addresses. A better
behavior here would be for connection.login to raise a ValueError or a
TypeError whenever a non-str is passed in.
RFC 5336, though, adds the UTF8SMTP extension, which adds su
Jean-Paul Calderone added the comment:
> Furthermore, python's socket documentation makes it clear:
Why does CPython go out of its way to make it impossible to pass 0 to the
platform listen() API? The part of the specification you quoted makes it very
clear that 0 is a valid value
Jean-Paul Calderone added the comment:
It'd be nice to have a unit test that passes a small enough value to listen()
to trigger the check. Since there's no way to reliably determine what the
system backlog really is, there's probably no reason to actually try to
determine
Jean-Paul Calderone added the comment:
Well, at the risk of stating the obvious, perhaps the dup() thing should be
eliminated. The justification for it seems less than clear, and apparently it
causes some problems.
That might be a direction to consider in the long term, though, rather than
Jean-Paul Calderone added the comment:
> What is the mnemonic corresponding to errno 35 under OS X?
EAGAIN
--
___
Python tracker
<http://bugs.python.org/iss
Jean-Paul Calderone added the comment:
> But as I said, it's not reliable.
I don't see any evidence in support of this statement. Did you notice that the
FreeBSD thread you referenced is:
* 6 years old
* about UDP
It's not obvious to me that it's actually rel
Jean-Paul Calderone added the comment:
None of that has much relevance when the socket is in *non-blocking* mode.
--
___
Python tracker
<http://bugs.python.org/issue8
Jean-Paul Calderone added the comment:
> If there's something else that would be useful and I can provide it, I'd be
> glad to.
A minimal example which reproduces the behavior. :)
--
___
Python tracker
<http://bugs.p
Jean-Paul Calderone added the comment:
> But if someone can get me access to an FTP server on the other end of a slow
> link, I'd be glad to do what I can .
It's easy to get a slow FTP server. Twisted's FTP support lets you do all
kinds of customization; making a ser
Jean-Paul Calderone added the comment:
getpeername() "sometimes" failing "soon" after a socket is created is a
semi-well-known Windows socket... feature. For whatever that's worth.
--
___
Python tracker
<http
Jean-Paul Calderone added the comment:
For reference:
http://pyopenssl.sourceforge.net/pyOpenSSL.html/openssl-context.html
http://www.heikkitoivonen.net/m2crypto/api/M2Crypto.SSL.Context%27.Context-class.html
and `man -k SSL_CTX_`
--
nosy: +exarkun
Jean-Paul Calderone added the comment:
http://www.openssl.org/news/secadv_20100324.txt
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3555
New Windows builds of any versions of CPython which are still receiving
security updates should be released.
--
nosy: +exarkun
priority
Jean-Paul Calderone added the comment:
find_unused_port is the wrong approach altogether. Uses of it should be
replaced by bind_port and then find_unused_port should be removed.
--
___
Python tracker
<http://bugs.python.org/issue8
Changes by Jean-Paul Calderone :
--
nosy: -exarkun
___
Python tracker
<http://bugs.python.org/issue665761>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jean-Paul Calderone added the comment:
One open question regarding interaction with threading. sigprocmask's behavior
in a multithreaded program is unspecified. pthread_sigmask should be used
instead. I could either expose both of these and let the caller choose, or I
could
Changes by Jean-Paul Calderone :
--
nosy: +gps
___
Python tracker
<http://bugs.python.org/issue8407>
___
___
Python-bugs-list mailing list
Unsubscribe:
1 - 100 of 391 matches
Mail list logo