Eric Olson added the comment:
Uploading patch with minor test changes (dbm_bool_b.patch).
Backwards compatibility note:
Result of running bool(db) on a db that has been closed:
Old: _dbm.error: DBM object has already been closed
With patch: returns False instead of raising.
I think this
Changes by Christian Theune c...@gocept.com:
--
hgrepos: +235
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
Python-bugs-list mailing
Changes by Christian Theune c...@gocept.com:
--
hgrepos: +236
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
Python-bugs-list mailing
Jurjen N.E. Bos added the comment:
Well, I partially agree. I see the following points:
Against my proposal:
- For *very* big containers, it can be slower in the case the object is early
in the container, as you pointed out.
- Current behaviour is easier to understand.
OTOH, fore the proposal:
Changes by Christian Theune c...@gocept.com:
--
keywords: +patch
Added file: http://bugs.python.org/file34887/125e080bbe15.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
Changes by Christian Theune c...@gocept.com:
Added file: http://bugs.python.org/file34888/762d11a72249.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
Changes by R. David Murray rdmur...@bitdance.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
New submission from Kent Frazier:
Using the stock Python shipped by Apple with OS X 10.9 Mavericks and XCode 5.1,
Mercurial (and other Python extensions) encounter an error like:
cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd
Michael Foord added the comment:
Personally I don't think it looks ugly and that it is a point worth calling
out. Other opinions welcomed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17660
Changes by ddve...@ucar.edu ddve...@ucar.edu:
--
nosy: +ddve...@ucar.edu
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20939
___
___
Stéphane Wirtel added the comment:
Need your feedback for this patch
Thank you
--
Added file:
http://bugs.python.org/file34890/issue20438_deprecate_inspect_getfullargspec-2.patch
___
Python tracker rep...@bugs.python.org
Michael Foord added the comment:
Looks good to me, but please change qobj and add a NEWS entry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21222
___
Éric Araujo added the comment:
I noticed this in the commit; I don’t think the rendered output is really ugly,
but the markup does look strange, as it’s two nested note(-like) directives.
--
___
Python tracker rep...@bugs.python.org
Stéphane Wirtel added the comment:
Yury, what's your feedback about this point?
Thanks
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12916
___
ddve...@ucar.edu added the comment:
Reopening, since this is still broken in Python 2.7.6
I wonder why do we have to use real websites instead of mocks for this test.
And if there are really really really really good reasons, if we can use
example.com instead as in issue #20939 (maybe that is
Caelyn McAulay added the comment:
Added aliased option to platform.system(). I used the same system_alias method
as platform.platform(), so the result of the aliased version will match the
system entry of the aliased platform.platform().
Added to platform.system unit test to test new
Roundup Robot added the comment:
New changeset d471b0d38516 by Kushal Das in branch '3.4':
Closes Issue 21222.
http://hg.python.org/cpython/rev/d471b0d38516
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open - closed
Sam Kimbrel added the comment:
Picked up Martin's patch and added docs, misc/NEWS entry, and a test for
readrc=False behavior.
--
nosy: +sam.kimbrel
Added file:
http://bugs.python.org/file34892/18401-pdb-readrc-kwarg-with-docs-and-tests.diff
___
Stéphane Wirtel added the comment:
No news for 2 years.
--
nosy: +matrixise
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5420
___
___
Changes by A.M. Kuchling a...@amk.ca:
--
components: +IO
versions: +Python 2.7, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21225
___
Yury Selivanov added the comment:
David:
The precedent has already been set by the 'cleandoc' function, I think. This
one seems to go right along with that one.
What do you think if we keep the function in pydoc module, but document it and
make it public? I agree, that there is a
Michael Foord added the comment:
Patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18566
___
___
Python-bugs-list mailing
Glenn Jones added the comment:
Patch with docs and tests fixed
--
Added file: http://bugs.python.org/file34893/issue15795_test_and_doc_fixes.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
Roundup Robot added the comment:
New changeset 0c7cf0e598e7 by Andrew Kuchling in branch '2.7':
#15840: make docs consistent by saying operations on closed files raise
ValueError.
http://hg.python.org/cpython/rev/0c7cf0e598e7
--
nosy: +python-dev
Larry Hastings added the comment:
I don't think we can fix this. file_read returns a str, and str can have at
most SSIZE_T_MAX entries. So, file_read could read size_t characters, but it
couldn't return them.
--
___
Python tracker
New submission from Cameron Lee:
The documentation doesn't indicate that the Logger.exception method can accept
kwargs like the other logging methods (Logger.debug, Logger.info, etc...) such
as exc_info, stack_info, and extra.
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +vinay.sajip, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21245
___
___
New submission from ddve...@ucar.edu:
Not sure if this is related with issue #13626 which is the only thing that
Google knows about these handshake failures. In case it matters:
$ openssl version
OpenSSL 1.0.1f 6 Jan 2014
== CPython 2.7.6 (default, Apr 14 2014, 15:12:21) [GCC 4.8.2]
==
behaviour when a newline ends up as the last byte of a new chunk.
--
nosy: +jemerton
Added file: http://bugs.python.org/file34894/readprevline-20140415.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677872
Eric Olson added the comment:
Make the changes backward compatible after getting input on possible problems
from r.david.murray
patch: dbm_bool_c.patch
Now, the only change should be faster performance for bool(db).
--
versions: +Python 3.5
Added file:
Roundup Robot added the comment:
New changeset a1ef419c0cfb by Andrew Kuchling in branch '2.7':
#1704474: mark refleak test as specific to CPython
http://hg.python.org/cpython/rev/a1ef419c0cfb
--
nosy: +python-dev
___
Python tracker
Sam Kimbrel added the comment:
Updated the patch as per Martin's notes in msg203483.
--
nosy: +sam.kimbrel
Added file: http://bugs.python.org/file34896/6490-os-popen-docs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6490
Nick Coghlan added the comment:
Note that getargspec() depends on getfullargspec() so deprecating the latter
*will* cause issues for single-source code (unless they switch to using the
funcsigs backport).
--
___
Python tracker
Vinay Sajip added the comment:
Removed Python versions which are not receiving changes.
--
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21245
Yury Selivanov added the comment:
Nick, good catch. OK, let's just deprecate it in the docs for 3.5, so people
(hopefully) will not write new code with it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20438
Roundup Robot added the comment:
New changeset 727b7e9c40e3 by Michael Foord in branch '3.4':
Closes issue 21239. unittest.mock.patch.stopall() did not work
deterministically when the same name was patched multiple times.
http://hg.python.org/cpython/rev/727b7e9c40e3
--
nosy:
Antoine Pitrou added the comment:
I don't think we can fix this. file_read returns a str, and str can
have at most SSIZE_T_MAX entries. So, file_read could read size_t
characters, but it couldn't return them.
But at least it could read more than LONG_MAX characters.
--
STINNER Victor added the comment:
Here is a first patch adding the following functions:
void* PyMem_RawCalloc(size_t n);
void* PyMem_Calloc(size_t n);
void* PyObject_Calloc(size_t n);
PyObject* _PyObject_GC_Calloc(size_t);
It adds the following field after malloc field to
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +neologix, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21233
___
___
Changes by Gregory P. Smith g...@krypto.org:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21233
___
___
Jeff Ramnani added the comment:
Attaching a patch with a (hopefully) more useful error message.
I didn't find a good place to add this information in the Distributing Python
Modules section of the docs, but let me know if you had a place in mind.
--
keywords: +patch
nosy: +jramnani
New submission from Orion Poplawski:
Trying to build Python 3.4.0 for Fedora we are seeing test_asyncio
test_subprocess_send_signal hang every time, on all architectures.
Unfortunately I cannot reproduce this locally. These builds are done inside of
chroots, and the host has the kernel
New submission from David Turner:
https://docs.python.org/2/library/webbrowser.html says If the environment
variable BROWSER exists, it is interpreted to override the platform default
list of browsers, as a os.pathsep-separated list of browsers to try in order.
This is not actually what
Antoine Pitrou added the comment:
So what is the point of _PyObject_GC_Calloc ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21233
___
___
Senthil Kumaran added the comment:
Which may be sane thing thing do.
So the docs could be made better. Like - the list of browsers specified in env
var BROWSER is tried first before looking at the platform defaults.
--
nosy: +orsenthil
___
Python
Matt Mackall added the comment:
Actually, no, all the size_t types are 64-bit on Windows 64:
https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models
To confirm this, I found someone nearby with a 64-bit Windows and he had no
trouble allocating a 3G string with a = b'a' * 30.
Orion Poplawski added the comment:
Hmm, looking at things a little closer, it looks like the SIGHUP is arriving
very early, perhaps too early?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21247
Josh Rosenberg added the comment:
General comment on patch: For the flag value that toggles zero-ing, perhaps use
a different name, e.g. setzero, clearmem, initzero or somesuch instead of
calloc? calloc already gets used to refer to both the C standard function and
the function pointer
Larry Hastings added the comment:
D'oh, yeah, you guys are right. SSIZE_T_MAX LONG_MAX, so that's an
improvement. We just can't do the full size_t range.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21199
Senthil Kumaran added the comment:
I am getting to this late.
I don't know whether the file descriptor read is expected to be meaningful
for urllib2/urllib.request.
Senthil, what do you think?
It should be meaningful no matter what the length is. I am looking further into
this now.
Roundup Robot added the comment:
New changeset dcb5ca1f1b44 by Vinay Sajip in branch '2.7':
Issue #21245: updated documentation on exception() method and function.
http://hg.python.org/cpython/rev/dcb5ca1f1b44
New changeset eee4fd2012ae by Vinay Sajip in branch '3.4':
Issue #21245: updated
New submission from Matthias Klose:
At least Linux distros never ship pythonXY.zip, so I'm removing it from
sys.path to save the extra lookup for a file which never exists. This did work
in 2.x and 3.x up to 3.3. In 3.4 it does cause additional test failures:
Re-running test
Josh Rosenberg added the comment:
Additional comment on clarity: Might it make sense to make the calloc structure
member take both the num and size arguments that the underlying calloc takes?
That is, instead of:
void* (*calloc) (void *ctx, size_t size);
Declare it as:
void* (*calloc) (void
Josh Rosenberg added the comment:
Sorry for breaking it up, but the same comment on consistent prototypes
mirroring the C standard lib calloc would apply to all the API functions as
well, e.g. PyMem_RawCalloc, PyMem_Calloc, PyObject_Calloc and
_PyObject_GC_Calloc, not just the structure
Cameron Lee added the comment:
Are you sure that Python 3.2 and Python 3.3 don't need updated documentation? I
don't know for sure if these two version have the code change or not but the
http://bugs.python.org/issue15541 seems to indicate that 3.2 at least does.
Thanks for the amazing
Jeff Ramnani added the comment:
Now that bug #18586 is closed, could the Dev Guide point benchmarkers to the
benchmarks repo and its README?
http://hg.python.org/benchmarks/file/9a1136898539/README.txt
--
nosy: +jramnani
___
Python tracker
Orion Poplawski added the comment:
It may also be possible that something has set the SIGHUP handler to SIG_IGN
when the test is run.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21247
Vinay Sajip added the comment:
Are you sure that Python 3.2 and Python 3.3 don't need updated documentation?
As I understand it, the policy is not to do documentation updates for Python
versions that will never see new releases. If a 3.x release manager says
otherwise, I can revisit it -
Orion Poplawski added the comment:
Looks like in the Fedora koji builds, the SIGHUP sigaction is set to SIG_IGN,
which causes the processes that the python tests are trying to kill with SIGHUP
not to die. Perhaps the koji builders should not be doing that, perhaps the
python tests should
Evens Fortuné added the comment:
Is it what you asked?
--
keywords: +patch
Added file: http://bugs.python.org/file34901/issue21229.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21229
Roundup Robot added the comment:
New changeset cbe0cf95fe37 by R David Murray in branch '3.4':
#20874: update tutorial wording: sophisticated line editing is now standard.
http://hg.python.org/cpython/rev/cbe0cf95fe37
New changeset b5f4ab357ff9 by R David Murray in branch '3.4':
#20874: reflow
R. David Murray added the comment:
Thanks, Rafael.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20874
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Roundup Robot added the comment:
New changeset 7a27039e4a42 by Andrew Kuchling in branch '3.4':
#15840: make docs consistent by saying operations on closed files raise
ValueError.
http://hg.python.org/cpython/rev/7a27039e4a42
--
___
Python tracker
Roundup Robot added the comment:
New changeset c76d782cb9df by Andrew Kuchling in branch '3.4':
#1704474: mark refleak test as specific to CPython
http://hg.python.org/cpython/rev/c76d782cb9df
--
___
Python tracker rep...@bugs.python.org
A.M. Kuchling added the comment:
Committed to 2.7, 3.4, and default. Thanks for your patch!
--
nosy: +akuchling
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Senthil Kumaran added the comment:
This is the best way I found to reproduce the failure.
I changed the resource to www.example.com and then ran this.
$ ./python.exe -m test -m *fileno* -u all -v -F test_urllibnet
--
___
Python tracker
A.M. Kuchling added the comment:
Committed to 2.7, 3.4, and default. Thanks for your patch!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1704474
Ned Deily added the comment:
This is a problem specifically with the Apple-supplied system Pythons in OS X
10.9. It's due to the obsolete configuration parameters used in their build of
Python and due to changes in Xcode 5.1. Expect Apple to fix it in an upcoming
maintenance release of OS X
Roundup Robot added the comment:
New changeset 9e1d2150fff2 by Andrew Kuchling in branch 'default':
#20103: Rewrite description of itertools.accumulate().
http://hg.python.org/cpython/rev/9e1d2150fff2
--
nosy: +python-dev
___
Python tracker
A.M. Kuchling added the comment:
Thanks for your patch!
--
assignee: rhettinger - akuchling
nosy: +akuchling
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset b1aba042b36c by Eric V. Smith in branch 'default':
Close issue #8931: Make alternate formatting for 'c' raise an exception. Patch
by Torsten Landschoff.
http://hg.python.org/cpython/rev/b1aba042b36c
--
STINNER Victor 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
_PyObject_GC_Calloc() is used by
Benjamin Peterson added the comment:
Very old version of openssl?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21246
___
A.M. Kuchling added the comment:
I thought the discussion of the return code was rather complicated and tried
rewriting it; new patch attached. Is it an improvement? The new version also
specifies the function's parameters.
--
nosy: +akuchling
Added file:
STINNER Victor added the comment:
In numpy, I found the two following functions:
/*NUMPY_API
* Allocates memory for array data.
*/
void* PyDataMem_NEW(size_t size);
/*NUMPY_API
* Allocates zeroed memory for array data.
*/
void* PyDataMem_NEW_ZEROED(size_t size, size_t elsize);
So it
Sam Kimbrel added the comment:
Yes, I think that wording works a lot better. Thanks for the touch-up.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6490
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: docs@python - terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18566
___
___
Roundup Robot added the comment:
New changeset fdadc152b964 by Terry Jan Reedy in branch '2.7':
Issue #18566: Clarify unittest setUp, tearDown doc. Patch by Nitika Agarwal.
http://hg.python.org/cpython/rev/fdadc152b964
New changeset 9ab66a7f654a by Terry Jan Reedy in branch '3.4':
Issue #18566:
Terry J. Reedy added the comment:
Nitika, congrats on first patch. One minor problem: spaces at end of lines. It
it my fault for not checking, but try to avoid them anyway.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
Senthil Kumaran added the comment:
This is turning out be trickier than I ever thought.
fileno() returning b'' is just random error. The underlying issue is,
*directly* reading from the fp of the socket() is returning a incomplete output
at all times. The correct way to read the output is by
Senthil Kumaran added the comment:
Ned Deily had done the correct analysis in the msg214947 and has this question
-
I don't know whether the file descriptor read is expected to be meaningful
for urllib2/urllib.request.
I can see that this test case was for the old behavior where we
STINNER Victor added the comment:
New patch:
- replace size_t size with size_t nelem, size_t elsize in the prototype of
calloc functions (the parameter names come from the POSIX standard)
- replace int calloc with int zero in helper functions
--
Added file:
Terry J. Reedy added the comment:
I am puzzled at the differences between the 2.7 and 3.4 patches. There are only
three differences between the files
- from Tkinter import Tk, Text, TclError
+ from tkinter import Tk, Text, TclError
? ^
- from test.test_support import requires
+ from
Changes by Evens Fortuné evens.fort...@gmail.com:
Added file: http://bugs.python.org/file34905/urllib.request.rst
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21228
___
Antoine Pitrou added the comment:
Le 16/04/2014 04:40, STINNER Victor a écrit :
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
STINNER Victor added the comment:
This issue is a race condition or bug in the unit test, not in asyncio. The
test doesn't check if echo.py is running, if Python started.
Python doesn't setup an handler for SIGHUP, it uses the current handler. On my
Fedora 20, it looks to be SIG_DFL:
Python
STINNER Victor added the comment:
On Windows, the type of the size parameter of read() is an unsigned int, not
long nor size_t:
http://msdn.microsoft.com/en-us/library/1570wh78.aspx
FileIO.read() of Python 3 uses a size_t type but also:
#ifdef MS_WINDOWS
if (size INT_MAX)
size =
101 - 190 of 190 matches
Mail list logo