Ned Deily added the comment:
Senthil, thanks for looking into this. Since it is turning out to be more of a
urllib design issue, I'm going to deassign myself from it.
--
assignee: ned.deily -
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
On Windows, the type of the size parameter of read() is an unsigned int, not
long nor size_t (...)
Oh, I read the wrong function. In fact, file_read() of Python 2.7 calls fread()
and fread() uses size_t types, even on Windows.
To make sure that we are
STINNER Victor added the comment:
If you want to announce that Python 2.7.x supports large objects on Windows 64
bits, be prepared to have to fix Python in various different places.
You can compare which modules define PY_SSIZE_T_CLEAN in Python 2.7 and 3.x.
For example, it looks like bz2 and
STINNER Victor added the comment:
It was also discussed to replace pymalloc with Windows Low Fragementation Heap
(LFH) allocator on Windows:
http://bugs.python.org/issue13483#msg148605
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
It would also be interesting to compare fragmentation and performances of
Python with and without pymalloc, maybe with other heap allocators like FreeBSD
jemalloc and Google TCMalloc.
--
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21075
___
___
Python-bugs-list
STINNER Victor added the comment:
I suggest to change the title of the issue to: subprocess: add non-blocking
read and write methods to avoid the confusion with asyncio subprocess module
which runs read and write in the background for you.
--
nosy: +haypo
Charles-François Natali added the comment:
In Python 3, arenas are allocated using mmap(), so wherever the arena ends up
in the address space shouldn't matter, should it?
Indeed, although the effect on cache locality isn't clear.
Also, I don't think this solves the problem of having a single
Charles-François Natali added the comment:
So what is the point of _PyObject_GC_Calloc ?
It calls calloc(size) instead of malloc(size), calloc() which can be faster
than malloc()+memset(), see:
https://mail.python.org/pipermail/python-dev/2014-April/133985.html
It will only make a
STINNER Victor added the comment:
I started to review the patch 5:
http://bugs.python.org/review/1191964/#ps11598
When I read unit tests, I realized that I don't like write_nonblocking name.
It's too generic. A process has many files (more than just stdin, stdout,
stderr: see pass_fds
STINNER Victor added the comment:
I agree in part, but it's quite common to close fd's in some cases like in a
child process after using os.fork()
Which project or Python module does that? Can you show me the code?
--
nosy: +haypo
___
Python
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: PyLong_AsUnsignedLongAndOverflow does not exist - Add a new
PyLong_AsUnsignedLongAndOverflow function
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Process crashes if not enough memory to import module - Fix error
handler of _PyString_Resize() on allocation failure
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21180
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21216
___
___
Python-bugs-list
STINNER Victor added the comment:
It may only be reproductible when your getaddrinfo use a NETLINK to get
informations about your interfaces before doing the DNS query.
What is your operation system? Name and version. What is your version of the C
library? What is your Python version? Can
New submission from Alex Lord:
In Lib/sqlite3/tests/dbapi.py there are no unit tests which test out sqlite3's
'insert or [algorithm].' These algorithms are also referred to as SQL 'insert
on conflict.'
More details at,
https://www.sqlite.org/lang_conflict.html
Not having unit tests for these
STINNER Victor added the comment:
test_getaddrinfo.c: C program to run getaddrinfo() concurrently in different
threads, it comes from the Debian issue.
I ran this program with 10 threads, I stopped it after between 3000 and 5000
tries (depending on the thread). I'm running Fedora 20: Linux
STINNER Victor added the comment:
Can you provide the C and Python backtrace of all threads of your program?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21216
___
STINNER Victor added the comment:
So what is the point of _PyObject_GC_Calloc ?
It calls calloc(size) instead of malloc(size)
No, the question is why you didn't simply change _PyObject_GC_Malloc
(which is a private function).
Oh ok, I didn't understand. I don't like changing the behaviour
STINNER Victor added the comment:
2014-04-16 3:18 GMT-04:00 Charles-François Natali rep...@bugs.python.org:
It calls calloc(size) instead of malloc(size), calloc() which can be faster
than malloc()+memset(), see:
https://mail.python.org/pipermail/python-dev/2014-April/133985.html
It will
Wolfgang Maier added the comment:
I don't even know where to start with this.
a) this recipe is not working
b) it's hardly readable
c) it is pointless
Why are you complicating things by testing for != ?
What advantage does this offer over == ?
You do not need class methods at all to
Hrvoje Nikšić added the comment:
Using -fp-model strict (or other appropriate icc flag) seems like a reasonable
resolution.
It should likely also be applied to Python 3.x, despite the version field of
this issue. (Even if float('nan') happens to work in current 3.x, internal code
that
Stefan Krah added the comment:
I left a Rietveld comment, which probably did not get mailed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21233
___
Stefan Krah added the comment:
In case anyone wonders why the FreeBSD bot works again: I've
installed OpenSSL from source.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21015
___
Jurjen N.E. Bos added the comment:
Oops. That was a hard lesson: 1) don't haste when posting 2) always run what
you post.
The point was the trick to define a custom __ne__ and not an __eq__ for an
object (not for the container it is in!) so you can use in at full speed. Then
not all(map(ne,
Changes by Chris Rose off...@offby1.net:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20752
___
___
Python-bugs-list
Josh Rosenberg added the comment:
I think the suggestion is intended for how do I keep Python 2 semantics in
Python 3?, not how can I write my Python 2 code so it will run equivalently
in Python 3?
It wouldn't be a bad idea to point out that you can adopt Py3 semantics
initially so as to
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21235
___
___
New submission from Martin Kolman:
We are currently working on adding tracing support to Anaconda, the Fedora/Red
Hat Enterprise Linux installer and we have encountered some pretty strange
behavior of the trace module. Anaconda (or to be concrete the Blivet storage
library used by Anaconda)
Eric Snow added the comment:
Ah, it's ValueError rather than ImportError that causes the problem.
Regardless, handling it would be necessary.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21211
Roundup Robot added the comment:
New changeset 3417a95df7e2 by Andrew Kuchling in branch 'default':
#6490: Expand documentation for os.popen().
http://hg.python.org/cpython/rev/3417a95df7e2
--
nosy: +python-dev
___
Python tracker
A.M. Kuchling added the comment:
Thanks for your patch!
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
title: os.popen documentation is probably wrong - os.popen documentation is
probably wrong
___
Python
Wolfgang Maier added the comment:
that clarifies things, thanks.
I would still not usually go that way though as it means defining __ne__ with
no accompanying __eq__, which means that, in a simple case, you can't use == on
instances of your class and, in the case that your class inherits
Wolfgang Maier added the comment:
l=[myObj() for x in range(1)]
now compare:
1 in m # slowed down by myObj.__eq__
False
any(e is 1 for e in m) # identity checks only
False
oops, sorry for the inconsistency here.
the first line should read:
m = [myObj() for x in range(1)]
Christian Theune added the comment:
Looking into this.
It seems that it doesn't happen for all servers, I can download large files
reliably from other sources.
I'll make another wireshark recording to get more details for me to analyze.
--
nosy: +ctheune
Senthil Kumaran added the comment:
I'll make another wireshark recording to get more details for me to analyze.
Thank you! That will be useful. Please test it against 3.x version as it has
seen cleanups recently.
--
___
Python tracker
Stefan Krah added the comment:
Here is a patch. I do not see a really nice way to deal with the problem.
The cleanest way I found was to introduce a new Makefile variable CFLAGS_NODIST
and use that in the interpreter and stdlib build.
--
keywords: +patch
nosy: +skrah
Added file:
Stefan Krah added the comment:
Mark, if you agree that fp-model strict should not show up in
the distutils CFLAGS once Python is installed, the issue now depends
on #21121.
--
dependencies: +-Werror=declaration-after-statement is added even for extension
modules through setup.py
R. David Murray added the comment:
Well, perhaps inspect needs a get_doc_synopsis method :)
Actually, I'm not sure that should be a smiley.
I don't really have a strong opinion on this myself (say I'm +0 for inspect),
so I asked a couple other core devs here at the sprint (Eric Smith and Eric
Eric Snow added the comment:
I agree with Éric that exposing splidoc publicly in the inspect module is the
right thing. inspect already has other similar functions. If it doesn't land
in inspect then the only other place that makes real sense to me would be a new
module (docstring?).
Caelyn McAulay added the comment:
Here is a small script that runs fine under 2.7 but demonstrates the error when
run at 3.5.
If, at all the points annotated with '#not bytes :-(', the unicode strings are
replaced with bytes objects, the example then successfully runs at 3.5.
--
Christian Theune added the comment:
This is actually the same problem as #18879.
Changing the sample to keep a reference to the addinfourl object avoids this
issue.
This is even worse than #18879 in the sense that the error goes undetected and
just leaves you with partial data.
Looking at
Antoine Pitrou added the comment:
In case anyone wonders why the FreeBSD bot works again: I've
installed OpenSSL from source.
Did you install the same version?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21015
Stefan Krah added the comment:
Antoine Pitrou rep...@bugs.python.org wrote:
Did you install the same version?
No, I used the latest version + FIPS. Since FreeBSD 9.0 is EOL, I did not
feel like investigating too much. :)
--
___
Python tracker
ddve...@ucar.edu added the comment:
Despite this being Red Hat, this is not at all the case!
OpenSSL 1.0.1f has been released on Jan 6th, 2014 at 15:39:19 -- see
https://www.openssl.org/source/
--
___
Python tracker rep...@bugs.python.org
Wolfgang Maier added the comment:
I ran into this issue right after 3.4 got released.
I solved it by adding
extra_compile_args=[-Wno-error=declaration-after-statement]
as an argument to the Extension() call in the package's setup.py .
--
nosy: +wolma
ddve...@ucar.edu added the comment:
Just to make sure I'm using the right version:
Python 2.7.6 (default, Apr 14 2014, 15:12:21)
[GCC 4.8.2] on linux2
Type help, copyright, credits or license for more information.
import ssl
ssl.OPENSSL_VERSION
'OpenSSL 1.0.1f 6 Jan 2014'
On 04/16/2014
Changes by Martin Dengler mar...@martindengler.com:
--
nosy: +mdengler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15414
___
___
Changes by Martin Dengler mar...@martindengler.com:
--
nosy: +mdengler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1669539
___
___
New submission from Alex Gaynor:
It would be nice if these said something useful.
(http://hg.python.org/cpython/file/default/Lib/asyncio/events.py)
--
components: Library (Lib)
messages: 216478
nosy: alex
priority: normal
severity: normal
status: open
title: Lib/asyncio/events.py has
New submission from Nina Zakharenko:
When difflib.compare() is used on two moderately large sequences with little or
no common elements, a RuntimeError: maximum recursion depth exceeded occurs.
This error became apparent when testing another bug (see: issue 19217) in the
AssertEquals()
Changes by Nina Zakharenko nzakhare...@gmail.com:
--
title: Difflib - Difflib.compare() crashes when sequences contain little or no
common elements
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21253
Nina Zakharenko added the comment:
The cause of this has been identified as a bug in libdiff.compare(). See issue
21253 for more information.
--
nosy: +nnja
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19217
Kushal Das added the comment:
Patch with docs and test changes.
--
keywords: +patch
Added file: http://bugs.python.org/file34912/issue21238.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21238
Yury Selivanov added the comment:
I had plans to copy some documentation from python docs to asyncio docstrings.
I'll try to do this sometime this week. Thanks for reminding us about the issue!
--
assignee: - yselivanov
nosy: +gvanrossum, haypo, yselivanov
Guido van Rossum added the comment:
My bad. But I think docstrings should NOT be just copies of the separate
docs.
On Apr 16, 2014 9:01 AM, Yury Selivanov rep...@bugs.python.org wrote:
Yury Selivanov added the comment:
I had plans to copy some documentation from python docs to asyncio
Yury Selivanov added the comment:
My bad. But I think docstrings should NOT be just copies of the separate
docs.
I agree. I didn't want to blindly copy them, but rather use existing
documentation as guidance baseline.
--
___
Python tracker
Caelyn McAulay added the comment:
I was unable to locate a point in the code where we could be certain that the
error was ultimately caused by trying to use (unicode) strings instead of bytes
object.
The patch adds a logging statement suggesting what the trouble is when the
error is
Yury Selivanov added the comment:
OK, since it's two-and-a-half votes against one, let's do this. I'll do the
final review of the patch and commit it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12916
New submission from Michael Foord:
What steps will reproduce the problem?
import mock
a_mock = mock.MagicMock()
no_attribute = mock.PropertyMock(side_effect=AttributeError)
type(a_mock).property = no_attribute
What is the expected output? What do you see instead?
I would expect the
New submission from Michael Foord:
What steps will reproduce the problem?
foo = Mock(name='foo')
prop = PropertyMock(name='prop')
type(foo).prop = prop
foo.attach_mock(prop, 'prop')
foo.mock_calls
[call.prop(PropertyMock name='foo.prop' id='4300017296')]
Expected:
Raymond Hettinger added the comment:
Martin von Löwis successfully lobbied to keep these methods.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5420
Roundup Robot added the comment:
New changeset d6501421b86b by Antoine Pitrou in branch '3.4':
Try to fix buildbot failures on old OpenSSLs ( 1.0.0) - followup to issue
#21015
http://hg.python.org/cpython/rev/d6501421b86b
New changeset 1305410bff2d by Antoine Pitrou in branch 'default':
Try to
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21234
___
New submission from Michael Foord:
Printing call args produces non-deterministic results, making them more or less
useless in doctests.
kwargs_string = ', '.join([
'%s=%r' % (key, value) for key, value in kwargs.items()
])
should be:
kwargs_string = ', '.join([
'%s=%r' %
Stefan Krah added the comment:
It is hard to get fine grained error messages in _decimal, since
the errors come from libmpdec. A clean solution would require
changes to libmpdec, and I'm reluctant to do that right now.
It is certainly possible to document DivisionImpossible etc.
--
Antoine Pitrou added the comment:
So, I think I've found the issue. On OpenSSL 1.0.0, the ECDH ciphers exist
but the ECDH cipher alias doesn't. I've committed a patch which should fix
the issue, although the set_ciphers() call may be entirely useless given our
current default cipher list.
New submission from Senthil Kumaran:
It is undocumented. While fixing a doc issue issue18229 for http.server I
noticed that I referenced that function and when I looked up for the
documentation, it was lacking.
--
assignee: orsenthil
messages: 216494
nosy: orsenthil
priority: normal
Ned Deily added the comment:
That does indeed make the test now pass on OS X 10.9:
test_default_ecdh_curve (test.test_ssl.ThreadedTests) ... server: new
connection from ('127.0.0.1', 60758)
server: connection cipher is now ('AECDH-AES256-SHA', 'TLSv1/SSLv3', 256)
server: selected protocol
Stefan Krah added the comment:
Meanwhile, the pure Python decimal versions prior to Python 3.2
have better error messages.
Right now in Python 3.3+ it is hard to import the Python version
without going into contortions, but that may be fixed in #19232.
--
dependencies: +Speed up
Adnan Umer added the comment:
I tried to replace RESTART by doing these little changing
# PyShell.Py
class ModifiedInterpreter(InteractiveInterpreter):
def restart_subprocess(self, with_cwd=False, with_msg=True):
...
if with_msg:
halfbar = ((int(console.width) -
Antoine Pitrou added the comment:
This was fixed in #20896 by a certain Benjamin Peterson.
--
nosy: +pitrou
resolution: - duplicate
status: open - closed
superseder: - test_ssl.test_get_server_certificate() should use
PROTOCOL_SSLv23, not PROTOCOL_SSLv3
Antoine Pitrou added the comment:
The buildbots seem happy as well, so I'm closing this.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21015
Orion Poplawski added the comment:
We have determined that the koji builder is indeed setting the SIGHUP sigaction
to SIG_IGN, which the python test is inheriting, and are working on trying to
get that fixed. However, it may be worth considering something like
Eric Snow added the comment:
Ordered kwargs anyone? :)
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21256
___
___
Roundup Robot added the comment:
New changeset 55f62fa5bebc by Antoine Pitrou in branch 'default':
Issue #20896: ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not
PROTOCOL_SSLv3, for maximum compatibility.
http://hg.python.org/cpython/rev/55f62fa5bebc
--
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20896
___
Eric Snow added the comment:
Perhaps related to #1615?
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21254
___
___
Kushal Das added the comment:
Patch uploaded for the same.
--
keywords: +patch
Added file: http://bugs.python.org/file34914/issue21256.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21256
Changes by Christian Theune c...@gocept.com:
--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15002
___
paul j3 added the comment:
While mutually exclusive groups are a subclass of argument groups, they have
very different uses.
Argument groups are used solely to organize the help section. Groups are not
used at all during parsing. 'parse_args' doesn't even pay attention to those 2
default
Christian Theune added the comment:
#15002 uses this patch to fix a similar wrapping problem in urllib.
Also, this affects 2.7 as well and #15002 does report the problem for 2.7. I'd
like to get this fix backported. Would that be OK?
--
nosy: +ctheune
title:
Christian Theune added the comment:
I wasn't able to come up with a good testcase. :(
I tried similar approaches as in #18879 but I wasn't able to make them trigger
the behaviour as it also seems to be an issue regarding actual network
performance ... :/
Backport to 2.7 is currently missing
Changes by Christian Theune c...@gocept.com:
--
hgrepos: +237
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15002
___
___
Python-bugs-list mailing
Changes by Thomas Wouters tho...@python.org:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15002
___
___
Christian Theune added the comment:
Antoine, I'm adding you here as I'm leveraging your patch from #18879.
I'd need some feedback about the backport, but this patch should be OK for 3.4.
Also, if you had an idea how to test this - I tried, but failed so far.
--
leewz added the comment:
Fine grained? Do you mean that the error can't be distinguished from other such
errors? Or that it's difficult to attach the message to DivisionError? I
thought DivisionError was always about precision.
I looked up the error in libmpdec:
This occurs and signals
Senthil Kumaran added the comment:
Christian , with respect to patch, I agree with the logic (using something
similar to #18879). Does all current unittests succeed with this? (I suspect
not) A unittest for coverage would be helpful.
--
___
Python
Changes by Christian Theune c...@gocept.com:
--
keywords: +patch
Added file: http://bugs.python.org/file34915/d3c6ab639306.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15002
___
Antoine Pitrou added the comment:
Well, this looks ok on the principle, but I haven't investigated the
urllib-specific parts, so I'll let Senthil delve into this :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15002
Thomas Wouters added the comment:
Matthias, I think this is already fixed for Python 3.3 and later (at least.)
There may still be problems in 2.7, but I'm not sure if it's worth fixing them
there. Can you see if you still have problems, and if so, show us how to
reproduce them? (Is it just
Michael Foord added the comment:
Yes to ordered kwargs! I would very much like to be able to order the keyword
args in the order they were passed in, information which is currently lost.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
On mer., 2014-04-16 at 08:06 +, STINNER Victor wrote:
I didn't check which objects use (indirectly) _PyObject_GC_Calloc().
I've checked: lists, tuples, dicts and sets at least seem to use it.
Obviously, objects which are not tracked by the GC (such as str
Antoine Pitrou added the comment:
Jeff: yes it could :) Do you want to provide a patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17449
___
Antoine Pitrou added the comment:
Anyone else has an opinion on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21068
___
___
Eric Olson added the comment:
New patch with Pep 7 fix - no c++ // style comments. -Thanks johansen.
--
Added file: http://bugs.python.org/file34916/dbm_bool_d.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2159
Michael Foord added the comment:
It needs a NEWS entry, but looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21238
___
___
Steven Hiscocks added the comment:
Issue where I hit this is in Fail2Ban:
https://github.com/fail2ban/fail2ban/issues/687
Lines of code where this occurs:
https://github.com/fail2ban/fail2ban/blob/1c65b946171c3bbc626ddcd9320ea2515018677b/fail2ban/server/server.py#L518-530
There are other
Stefan Krah added the comment:
My apologies if that wasn't clear: fine grained refers to the exception
messages. A function can raise InvalidOperation for different reasons.
decimal.py gives a specific error message in each case. libmpdec just
signals the standard conforming InvalidOperation.
1 - 100 of 261 matches
Mail list logo