Changes by Simon Charette charett...@gmail.com:
--
nosy: +charettes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11798
___
___
Python-bugs-list
Steven D'Aprano added the comment:
To anyone waiting for me to respond to rietveld reviews, I'm trying, I really
am, but I keep getting a django traceback.
This seems to have been reported before, three months ago:
http://psf.upfronthosting.co.za/roundup/meta/issue517
--
STINNER Victor added the comment:
Tarek: try to use ssl.RAND_bytes(), it is secure, fast and don't use a file
descriptor.
IMO if something can be improved, it is in the random.SystemRandom() class:
it can keep the FD open. Does the class have a method to generate random
bytes?
--
Armin Rigo added the comment:
Just mentioning it here again, but type(a).__index__(a) is still not
perfectly correct. Attached is a case where it differs.
I think you get always the correct answer by evaluating range(a).stop. It's
admittedly obscure... For example:
class A:
R. David Murray added the comment:
Well, it does say that QUOTE_MINIMAL is the default for the dialect 'quoting'
attribute. What it doesn't say is that the default dialect (excel) is exactly
the documented default values for all the dialect parameters. (Although having
said that, I'm not
Donald Stufft added the comment:
haypo: It's been suggested by a number of security professionals that using the
OpenSSL random (or really any random) instead of urandom is likely to be a
smarter idea. The likelyhood that urandom is broken is far less than any other
source of random. This can
Serhiy Storchaka added the comment:
The difference doesn't look significant. In all cases the TypeError is raised.
But there was other differences between C and Python versions -- when
__index__() returns non-integer. Updated patch fixes this.
--
Added file:
Serhiy Storchaka added the comment:
I'm not sure I understand you Rietveld comment right Terry.
We can get rid of _have_ssl (this is implementation detail and shouldn't be
required) and just try import ssl.
try:
import ssl
except ImportError:
ssl = None
If ssl is not None but
Hynek Schlawack added the comment:
Well that's the point: it's extremely handy but simple. I wish Raymond would
pronounce on this. I can keep using the PyPI version for all I care, so I'm
not going fight for it. But with one exception there seems to be an agreement
that it would be a very
Mark Dickinson added the comment:
Just mentioning it here again, but type(a).__index__(a) is still not
perfectly correct.
Hmm. type(a).__dict__['__index__'](a) ? (With suitable error checks, as in
Serhiy's patch.)
--
___
Python tracker
Armin Rigo added the comment:
The difference doesn't look significant. In all cases the TypeError is raised.
Ok, so here is another case. (I won't go to great lengths trying to convince
you that there is a problem, because the discussion already occurred several
times; google for example
Terry J. Reedy added the comment:
You changed NNTP_CLASS = nntplib.NNTP_SSL, which could potentially fail, to
NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None), which cannot fail. Since
that was the only thing that previously could fail, the change leaves nothing
that can fail, so the test is
Roundup Robot added the comment:
New changeset d234dd21374a by Ezio Melotti in branch '2.7':
#18705: fix a number of typos. Patch by Févry Thibault.
http://hg.python.org/cpython/rev/d234dd21374a
New changeset e07f104133d5 by Ezio Melotti in branch '3.3':
#18705: fix a number of typos. Patch
Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 2.7
___
Python tracker
Roundup Robot added the comment:
New changeset f09ca52747a6 by Christian Heimes in branch '3.3':
Issue #18178: Fix ctypes on BSD. dlmalloc.c was compiled twice which broke
malloc weak symbols.
http://hg.python.org/cpython/rev/f09ca52747a6
New changeset bea2f12e899e by Christian Heimes in
Roundup Robot added the comment:
New changeset 5295ed192ffd by Ezio Melotti in branch '2.7':
#18741: fix more typos. Patch by Févry Thibault.
http://hg.python.org/cpython/rev/5295ed192ffd
New changeset 9e4685d703d4 by Ezio Melotti in branch '3.3':
#18741: fix more typos. Patch by Févry
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.3
___
Python tracker
Ezio Melotti added the comment:
Févry, do you want to make an updated patch that includes also everytime as
suggested by Terry?
I think some of the typos of the current patch have also been fixed by the
other patches you submitted.
--
___
Python
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, georg.brandl
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18764
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18759
Févry Thibault added the comment:
Updated the patch.
--
Added file: http://bugs.python.org/file31337/typos.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18466
___
Roundup Robot added the comment:
New changeset c75b8d5fa016 by Ezio Melotti in branch '2.7':
#18466: fix more typos. Patch by Févry Thibault.
http://hg.python.org/cpython/rev/c75b8d5fa016
New changeset 61227b4c169f by Ezio Melotti in branch '3.3':
#18466: fix more typos. Patch by Févry
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18466
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
stage: - test needed
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18730
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
stage: needs patch - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13107
___
Ezio Melotti added the comment:
Was this brought up on python-ideas? If so, what was the outcome?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9882
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: - docs@python
components: +Documentation
keywords: +easy
nosy: +docs@python
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15248
Ezio Melotti added the comment:
What's the status of this?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6916
___
___
Ezio Melotti added the comment:
What's the status of this?
--
nosy: +ezio.melotti
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12866
___
Ezio Melotti added the comment:
FWIW now we have Lib/test/test_tools.py.
--
nosy: +ezio.melotti
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9741
___
Ezio Melotti added the comment:
Is this still an issue?
--
nosy: +ezio.melotti
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10654
___
Serhiy Storchaka added the comment:
Hmm. type(a).__dict__['__index__'](a) ?
This variant fails on:
class A(int):
@staticmethod
def __index__():
return 42
--
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
type: - enhancement
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12913
___
Ezio Melotti added the comment:
Terry, do you want to update your patch?
--
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17232
___
Mark Dickinson added the comment:
Serhiy: Yep, or even on bool. Thanks.
Armin: I don't think either of us thinks there isn't a problem here. :-)
The Google search you suggested didn't turn up a whole lot of useful
information for me. Was there a discussion of this on python-dev at some
Ezio Melotti added the comment:
What was the outcome?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5720
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - out of date
stage: - committed/rejected
status: open - closed
type: - resource usage
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16699
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13924
___
Nick Coghlan added the comment:
I realised that with the module:qualname syntax, it's straightforward to
expand this beyond module introspection to arbitrary objects.
What I suggest we could output:
- a header with key module info (names taken from PEP 451):
Origin
Cached
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13822
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
versions: +Python 3.4 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12985
___
Ezio Melotti added the comment:
Are there tests for this?
--
components: +Tests
keywords: +easy
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
James Sanders added the comment:
I did a bit more digging and I think I've worked out what is going on. The
particular bit of tcl initialization code that triggers the problem if it is
run before the fork is Tcl_InitNotifier in tclUnixNotify.c. It turns out there
is a known problem with
koobs added the comment:
2 more cases seen here:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/227/steps/test/logs/stdio
Note: cc on FreeBSD 10.0-CURRENT is clang
and here:
New submission from Vajrasky Kok:
import ssl
ssl.RAND_egd.__doc__
RAND_egd(path) - bytes\n\nQueries the entropy gather daemon (EGD) on the
socket named by 'path'.\nReturns number of bytes read. Raises SSLError if
connection to EGD\nfails or if it does provide enough data to seed PRNG.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
type: - enhancement
versions: -Python 3.2
Added file: http://bugs.python.org/file31339/issue15939-ctypes-2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15939
Roundup Robot added the comment:
New changeset b352a5cb60b6 by Christian Heimes in branch '3.3':
Issue #18768: coding style nitpick. Thanks to Vajrasky Kok
http://hg.python.org/cpython/rev/b352a5cb60b6
New changeset fe444f324756 by Christian Heimes in branch 'default':
Issue #18768: coding
Christian Heimes added the comment:
Thanks, I have removed the extra space in gntype = name- type;
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18768
___
Roundup Robot added the comment:
New changeset ae91252943bf by Christian Heimes in branch '3.3':
Issue 18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok.
http://hg.python.org/cpython/rev/ae91252943bf
New changeset 5c091acc799f by Christian Heimes in branch 'default':
Issue 18768:
Christian Heimes added the comment:
Thanks :)
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18768
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2506
___
Christian Heimes added the comment:
What do the RFCs for RFC-822 and HTTP 1.1 say about \r and \n in header names?
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11671
Christian Heimes added the comment:
Here is a patch that is based on Apache's mod_ssl code. mod_ssl perturbs the
PRNG state more often but I think that's overkill for Python.
The new patch only affects the PRNG state of the child process. In my opinion
it is the better way to solve this
Armin Rigo added the comment:
This may have been the most recent discussion of this idea (as far as I can
tell):
http://mail.python.org/pipermail//python-ideas/2012-August/016036.html
Basically, it seems to be still unresolved in the trunk Python; sorry, I
thought by now it would have been
Armin Rigo added the comment:
Sorry, realized that my pure Python algorithm isn't equivalent to
_PyType_Lookup() --- it fails the staticmethod example of Serhiy. A closer one
would be:
for t in type(a).__mro__:
if '__index__' in t.__dict__:
return
Devin Cook added the comment:
It looks like it's allowed for header line continuation.
http://www.ietf.org/rfc/rfc2616.txt
HTTP/1.1 header field values can be folded onto multiple lines if the
continuation line begins with a space or horizontal tab. All linear
white space, including folding,
koobs added the comment:
I'm not sure if this issue is/was related, but it seems the commit addressing
#18178 has taken care of the test_finalize_runnning_thread failure.
I note that your description specifies test_finalize_with_trace, perhaps
suggesting your reproduction case may be
koobs added the comment:
Commit looks good, confirming test suite passing for 3.x, 3.3 and 2.7.on
http://buildbot.python.org/all/buildslaves/koobs-freebsd10
Thank you for picking this up and finishing it off Christian.
--
___
Python tracker
New submission from Michael Bikovitsky:
It might be useful in some circumstances to be able to remove a subparser,
however the module does not provide such functionality.
The proposed method takes the same arguments as the add_parser method and
removes the matching subparser from the map
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12866
___
Serhiy Storchaka added the comment:
import tempfile
f = tempfile.NamedTemporaryFile(suffix='$')
f.name
'/tmp/tmpumyks8ju$'
I see an effect.
--
nosy: +serhiy.storchaka
status: open - pending
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Works for me on Linux too (all branches, with different types of suffix).
Maybe it's a Windows issue?
--
nosy: +terry.reedy
status: pending - open
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18730
___
___
New submission from Vivek Ratnaparkhi:
Example 1:
mylist = ['a','b','c','d','e']
mylist.insert(len(mylist),'f')
print(mylist)
Output: ['a', 'b', 'c', 'd', 'e', 'f']
Example 2:
mylist = ['a','b','c','d','e']
mylist.insert(10,'f')
print(mylist)
Output: ['a', 'b', 'c', 'd', 'e', 'f']
Why
Ezio Melotti added the comment:
The docs say that:
l.insert(pos, val)
is equivalent to:
l[pos:pos] = [val]
The docstring also says that the value is inserted before pos, so .insert is
working as documented.
--
nosy: +ezio.melotti
___
Python
Antoine Pitrou added the comment:
Alexandre, Stefan, is any of you working on this?
If not, could you please expose what the status of the patch is, whose work is
the most advanced (Alexandre's or Stefan's) and what should be the plan to move
this forward?
Thanks!
--
Antoine Pitrou added the comment:
The patch looks fine on the principle, but you should add a test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18747
___
Charles-François Natali added the comment:
2013/8/17 Christian Heimes rep...@bugs.python.org:
Here is a patch that is based on Apache's mod_ssl code. mod_ssl perturbs the
PRNG state more often but I think that's overkill for Python.
The new patch only affects the PRNG state of the child
Roundup Robot added the comment:
New changeset e2b234f5bf7d by Antoine Pitrou in branch 'default':
Issue #16105: When a signal handler fails to write to the file descriptor
registered with ``signal.set_wakeup_fd()``, report an exception instead of
ignoring the error.
Terry J. Reedy added the comment:
test_datetime passes on current 3.3 and 3.4.
datetimetest.py now gives the same answer for all 4 classes
unsupported operand type(s) for +: 'SubPy' and 'int'
unsupported operand type(s) for +: 'int' and 'SubPy'
NotImplemented NotImplemented NotImplemented
Charles-François Natali added the comment:
With patch :)
--
Added file: http://bugs.python.org/file31342/subprocess_close.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18763
___diff -r
Maries Ionel Cristian added the comment:
What is the version of your libc library? Try something like dpkg -l
libc6.
2.15-0ubuntu10.4
I don't think it's that obscure ... uwsgi has this issue
New submission from Raymond Hettinger:
I'm working on a patch for the lookkey() functions in Object/setobject.c. The
core idea is to follow the probe sequence as usual but to also check an
adjacent entry for each probe (i.e. check table[i mask] as usual and then
check table[(i mask) ^ 1]
Maries Ionel Cristian added the comment:
Correct link
https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsgi+site:lists.unbit.it
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18748
Antoine Pitrou added the comment:
Ok, I pushed the patch to 3.4. Thanks for the report!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16105
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18771
___
___
New submission from Antoine Pitrou:
Changeset 2c9a2b588a89 broke the pretty-printing of sets by the gdb plugin.
Here is a temptative patch. It works, but I don't know enough to know whether
that's the right coding style for a gdb plugin. Dave?
--
components: Demos and Tools,
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +dmalcolm, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18772
___
___
Serhiy Storchaka added the comment:
Here is updated patch which uses Armin's algorithm for lookup special methods
and adds special case for int subclasses in index().
I have no idea how the documentation should look.
--
Added file:
Changes by Antoine Pitrou pit...@free.fr:
--
title: Fix test_gdb for new sets dummy object - Fix gdb plugin for new sets
dummy object
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18772
___
Changes by Brett Cannon br...@python.org:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18770
___
Serhiy Storchaka added the comment:
How it will affect a performance of set(range(n))?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18771
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5527
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
You changed NNTP_CLASS = nntplib.NNTP_SSL, which could potentially fail, to
NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None), which cannot fail. Since
that was the only thing that previously could fail, the change leaves nothing
that can fail, so the
Eric Snow added the comment:
Couldn't you make use of inspect.getattr_static()?
getattr_static(obj.__class__, '__index__').__get__(obj)()
getattr_static() does some extra work to get do the right lookup. I haven't
verified that it matches _PyType_Lookup() exactly, but it should be pretty
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18770
___
___
Terry J. Reedy added the comment:
'Filename extensions' are a proper subset of 'suffixes'.
https://en.wikipedia.org/wiki/Filename_extension
Dan 'solutions' indicates that he thinks that the two sets are or should be the
same, which they are not. The only thing that is DOS/Windows specific is
Terry J. Reedy added the comment:
My original suggestion was to put the possibly failing assignment inside
@classmethod
def setUpClass:
NNTP_CLASS = nntplib.NNTP_SSL
so that failure of the assignment would be be reported, but not affect import.
--
Serhiy Storchaka added the comment:
I don't think any explanation is needed. A docstring should be short, we can't
duplicate a manual in it.
The mentioning suffix default is redundant because it already exposed in the
function signature. The mentioning prefix default adds duplication. The
Serhiy Storchaka added the comment:
Actually you should call parent's setUpClass at the and of declared setUpClass.
Therefore you need 4 nontrivial lines instead of 1. The test will fail in
setUpClass() in any case because parent's setUpClass() uses NNTP_CLASS. There
are no behavior
Terry J. Reedy added the comment:
It would be fine with me to shorten the suggestion and not repeat the defaults.
They are currently in both doc and docstring, but with *more* words than I used.
The file name will begin with *prefix* and end with *suffix*. There is no
automatic addition of a
Michael Foord added the comment:
This is done in outcome.testPartExecutor. If you add it in the except clause
then it is *only* called on test failure or error. If we call it
unconditionally with the result (maybe a sys.exc_info tuple?) then it could
have extended use cases (perhaps custom
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file31345/so.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18771
___
Raymond Hettinger added the comment:
Serhiy, I've posted a patch so you can examine the effects in detail.
For something like set(range(n)), I would expect no change because the dataset
is collision free due to Tim's design where hash(someint)==someint. That said,
I'm trying to optimize the
STINNER Victor added the comment:
openssl_prng_atfork3.patch: Why not using seconds (only micro or
nanoseconds) in the seed? Add a few more bits should not reduce the
entropy. OpenSSL does hash all these bytes anyway.
+#if 1
+fprintf(stderr, PySSL_RAND_atfork_child() seeds %i bytes in %i\n,
Nick Coghlan added the comment:
Potentially relevant to this: we hope to have PEP 451 done for 3.4, which adds
a __spec__ attribute to module objects, and will also tweak runpy to ensure -m
registers __main__ under it's real name as well.
If pickle uses __spec__.name in preference to __name__
STINNER Victor added the comment:
2013/8/17 Maries Ionel Cristian rep...@bugs.python.org:
I don't think it's that obscure ... uwsgi has this issue
https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsgi+site:lists.unbit.it-
they cause it probably
STINNER Victor added the comment:
Do you expect visible difference on a microbenchmark? Do you have
benchmarks showing the speedup and showing that many collisions are no
too much slower?
--
___
Python tracker rep...@bugs.python.org
Maries Ionel Cristian added the comment:
Well anyway, is there any way to preload libgcc ? Because in python2.x it
wasn't loaded at runtime.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18748
1 - 100 of 121 matches
Mail list logo