paul j3 added the comment:
oops - to fix the error message that OP complained about, I need to patch
'_get_action_name' as well:
def _get_action_name(argument):
...
elif argument.metavar not in (None, SUPPRESS):
metavar = argument.metavar
if
New submission from Mark Hammond:
Python 3.3 and earlier have in methodobject.c:
/* PyCFunction_New() is now just a macro that calls PyCFunction_NewEx(),
but it's part of the API so we need to keep a function around that
existing C extensions can call.
*/
#undef PyCFunction_New
Tim Golden added the comment:
I can confirm that the problem (which really is a hard crash) only applies to
2.7 and that the patch tests and fixes it. I'm happy to apply. Any objections?
--
assignee: - tim.golden
nosy: +tim.golden
___
Python
Antoine Pitrou added the comment:
Are you aware of the old/new buffer interfaces and their usages? Did
you actually try the code? crash would be obvious.
I cannot try the code as I'm under Linux :-)
I was asking merely because many people report plain exception
tracebacks as crashes. Yes, by
Eduardo Robles Elvira added the comment:
Do we have any final decision on what's the best approach to solve this? I see
some possibilities:
a) leave the issue to the library user. I think that's a not good solution
security-wise as many will be unaware of the problem and this promotes code
Eduardo Robles Elvira added the comment:
Also, I guess this patch solves and is closely related to #1044 which was, at
the time (2007), considered not a bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21109
Roundup Robot added the comment:
New changeset a66524ce9551 by Antoine Pitrou in branch '3.4':
Issue #21207: Detect when the os.urandom cached fd has been closed or replaced,
and open it anew.
http://hg.python.org/cpython/rev/a66524ce9551
New changeset d3e8db93dc18 by Antoine Pitrou in branch
Antoine Pitrou added the comment:
Ok, I've committed the patch. Hopefully this will also fix any similar issues.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Diana Clarke:
A minor correction to the filecmp.cmp doc string.
'defaults to 1' - 'defaults to True'
While shallow used to default to 1 years ago, it now defaults to True.
def cmp(f1, f2, shallow=True):
PS. I know this diff is annoyingly trivial, but I'm using it
Changes by diana diana.joan.cla...@gmail.com:
--
title: shallow defaults to true, not 1 [filecmp.cmp] - Shallow defaults to
True, not 1 [filecmp.cmp]
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21355
Antoine Pitrou added the comment:
Regression in issue #21354.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15422
___
___
Python-bugs-list
Antoine Pitrou added the comment:
This is apparently because mismanagement of issue #15422.
Andrew, you did the commits, can you restore the PyAPI_FUNC declaration?
--
assignee: - asvetlov
nosy: +asvetlov, larry, pitrou
priority: normal - release blocker
stage: - needs patch
Antoine Pitrou added the comment:
(while none of PyCFunction_New and PyCFunction_NewEx are documented, they are
part of the stable ABI - the python3.def file -, so removing the API is
presumably a bug, not a feature)
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
title: improve indexing - improve documentation indexing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21352
___
Berker Peksag added the comment:
This was fixed in b6059bac8a9c. (see also issue 18944)
--
resolution: - out of date
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18185
Berker Peksag added the comment:
The same typo also needs to be fixed in the 2.7 branch:
http://hg.python.org/cpython/file/2.7/Lib/test/test_set.py#l1618
--
nosy: +berker.peksag
resolution: fixed -
stage: resolved - needs patch
status: closed - open
versions: +Python 2.7
New submission from Edd Barrett:
Hi,
I'm sure you have heard about OpenBSD's LibreSSL fork of OpenSSL. There has
been a lot of code reorganisation and removal. One function which was removed
`RAND_egd()` breaks the CPython build. CPython no longer builds on OpenBSD.
I have submitted a patch
Antoine Pitrou added the comment:
This should wait until the LibreSSL API stabilizes.
Regardless, I think we should consider deprecating RAND_egd(). The Entropy
Gathering Daemon doesn't seem to have seen a release for more than 10 years...
(http://sourceforge.net/projects/egd/files/)
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 061db174baad by Tim Golden in branch '2.7':
Issue21349 Passing a memoryview to _winreg.SetValueEx now correctly raises a
TypeError where it previously crashed the interpreter. Patch by Brian Kearns
http://hg.python.org/cpython/rev/061db174baad
New submission from diana:
- Increase filecmp test coverage from 63% to 76%
- I left the testing style as-is, though it could probably be modernized.
- I did not attempt to add coverage for 'funny_files', 'subdirs', etc, next
pass perhaps.
- Before:
diana$ ./python.exe ../coveragepy report
Roundup Robot added the comment:
New changeset 9c38cfc7bed7 by Tim Golden in branch '2.7':
Add NEWS entry for issue21349
http://hg.python.org/cpython/rev/9c38cfc7bed7
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21349
Lukas Lueg added the comment:
The behavior is triggered in Modules/_json.c:encoder_listencode_obj(). It
actually has nothing to do with the TypeError itself, any object that produces
a new string representation of itself will do.
The function encoder_listencode_obj() calls the user-supplied
Changes by Remi Pointel pyt...@xiri.fr:
--
nosy: +rpointel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
___
Python-bugs-list mailing
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21357
___
___
Python-bugs-list
saaj added the comment:
Well, as far as I see the question here is whether it makes sense to allow the
default function to return JSON-incompatible objects.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21213
Roundup Robot added the comment:
New changeset b7fd640fb159 by Benjamin Peterson in branch '3.4':
shallow defaults to 'True' not '1' (closes #21355)
http://hg.python.org/cpython/rev/b7fd640fb159
New changeset 9ab6d13553ef by Benjamin Peterson in branch 'default':
merge 3.4 (#21355)
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: tim.peters - terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18944
___
___
Roundup Robot added the comment:
New changeset de6047ea33e6 by Terry Jan Reedy in branch '2.7':
Issue #18944: backport typo fix
http://hg.python.org/cpython/rev/de6047ea33e6
--
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18944
Lukas Lueg added the comment:
It's perfectly fine for the function to return an object that can't be put
directly into a json string. The function may not convert the object directly
but in multiple steps; the encoder will call the function again with the new
object until everything boils
saaj added the comment:
I'll try to be more specific at my point. There're two cases:
1. Scalar: NoneType, int, bool, float, str. Ended immediately.
2. Non-scalar: list/tuple, dict. Recursively traversed, which may result in
subsequent calls to the custom function.
If the return value is
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21357
___
___
Python-bugs-list
Roman Inflianskas added the comment:
I think that `absolute` method should call `expanduser` and `expandvars` (do
you plan to include it?) automatically. This should be optional (via default
arguments: `expanduser=True, expandvars=True`.
--
nosy: +rominf
Christopher Arndt added the comment:
Another solution may be to make the test more relaxed and regard the value
returned by sysconfig.get_config_var() as a _set_ of shell tokens, whose
elements may occur more than once, e.g.
def test_sysconfig_module(self):
import sysconfig as
Benjamin Peterson added the comment:
Thanks for the patch. I think you could use the support.catpured_stdout()
context-manager in _assert_report. You should also sign the contributor
agreement.
--
nosy: +benjamin.peterson
___
Python tracker
New submission from Terry J. Reedy:
https://docs.python.org/3/reference/simple_stmts.html#augmented-assignment-statements
An augmented assignment expression like x += 1 can be rewritten as x = x + 1
to achieve a similar, but not exactly equal effect. In the augmented version, x
is only
Terry J. Reedy added the comment:
Augmented assignment confuses enough people that I think we can improve the
doc. In #21358 I suggest an augmented version of the previous claim, about
evaluation just once. I think something here is needed perhaps even more. I
have not decided what just yet.
Roundup Robot added the comment:
New changeset 0a2ac61729d2 by Stefan Krah in branch '2.7':
Issue #17145: Document array.array buffer interface limitations.
http://hg.python.org/cpython/rev/0a2ac61729d2
--
nosy: +python-dev
___
Python tracker
Stefan Krah added the comment:
I pushed a minimal patch that focuses on the array.array issue. For
broader changes, I suggest to use #14198 (though it is unlikely
tha anyone will work on it).
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
Roundup Robot added the comment:
New changeset e8343cb98cc3 by Benjamin Peterson in branch '3.4':
make operations on closed dumb databases raise a consistent exception (closes
#19385)
http://hg.python.org/cpython/rev/e8343cb98cc3
New changeset dbceba88b96e by Benjamin Peterson in branch
Changes by Stefan Krah stefan-use...@bytereef.org:
--
assignee: skrah -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14198
___
___
Martin v. Löwis added the comment:
This is not limited to dictionaries. Augmented assignment *always* involves a
read operation and a write operation.
So Antoine's remark in msg215573 is more general;
a.x += 1
has a get and a set, and even
x += 1
has a get and a set.
I still agree that
Martin v. Löwis added the comment:
I would propose this approach:
1. Python should implement both IDNA2008 and UTS#46, and keep IDNA2003
2. idna should become an alias for idna2003.
3. The socket module and all other place that use the idna encoding should
use uts46 instead.
4. Pre-existing
New submission from Ned Deily:
With the current Cocoa Tk 8.5 (ActiveState 8.5.15), it appears that the IDLE
Redo accelerator, Cmd-Shift-Z, has the same effect as the Undo accelerator,
Cmd-Z. This is probably related to the behavior and changes in Cocoa Tk noted
in Issue11055. With the older
Ned Deily added the comment:
Instigated by
http://stackoverflow.com/questions/23316425/idle-redo-shortcut-vanished/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21359
___
New submission from Lars Wirzenius:
The maildir format specification
(see http://cr.yp.to/proto/maildir.html) is clear that files named with leading
dots should be ignore:
Unless you're writing messages to a maildir, the format of a unique
name is none of your business. A unique name can
Changes by diana diana.joan.cla...@gmail.com:
Added file:
http://bugs.python.org/file35046/increase_filecmp_test_coverage_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21357
___
Changes by diana diana.joan.cla...@gmail.com:
Removed file:
http://bugs.python.org/file35046/increase_filecmp_test_coverage_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21357
___
diana added the comment:
Nice, the support.catpured_stdout() context manager is much better.
I've added a new patch with that change:
increase_filecmp_test_coverage__updated_to_use_context_manager.patch
Thanks for reviewing this, Benjamin!
PS. I signed the contributor agreement.
Roundup Robot added the comment:
New changeset d24f1fb256a3 by R David Murray in branch '3.4':
#18243: Remove obsolete cautionary note from email mktime_tz docs.
http://hg.python.org/cpython/rev/d24f1fb256a3
New changeset 462470859e57 by R David Murray in branch 'default':
Merge: #18243: Remove
R. David Murray added the comment:
Thanks, Akira.
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18243
___
STINNER Victor added the comment:
I know that an earlier request to use nanosleep() has been rejected as
wontfix
It was the issue #13981. I created this issue while I worked on the PEP 410
(nanosecond timestamp). I closed the issue myself, it doesn't mean that Python
must not use the
STINNER Victor added the comment:
I'm working on a patch, but I noticed a similar issue in Condition.wait(),
which also keeps re-evaluating the remaining sleep time based on the current
kernel clock, with similar effects.
I see that Lock.acquire(timeout) uses the C function gettimeofday() to
STINNER Victor added the comment:
If you want to modify time.sleep(), you must be careful of the portability:
Windows, Linux, but also Mac OS X, FreeBSD, Solaris, etc.
Try to describe the behaviour of each underlying C function on each platform to
be able to describe the portable behaviour on
STINNER Victor added the comment:
I read again some remarks about alignement, it was suggested to provide
allocators providing an address aligned to a requested alignement. This topic
was already discussed in #18835.
If Python doesn't provide such memory allocators, it was suggested to
STINNER Victor added the comment:
It looks like a memory allocator with a given alignment would help numpy, for
SIMD instructions:
https://mail.python.org/pipermail/python-dev/2014-April/134092.html
(but Numpy does not currently use aligned allocation, and it's not clear how
important it is)
STINNER Victor added the comment:
I spend some nights to try to understand the memory usage of the following
Python script:
https://bitbucket.org/haypo/misc/src/31bf03ace91db3998981ee56caf80f09c29991f5/memory/python_memleak.py?at=default
It looks like the weird memory usage (aka memory
STINNER Victor added the comment:
@Julien.Palard: Ping? Without more information, I would suggest to close the
issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21216
___
STINNER Victor added the comment:
Please also report the Windows version you are using.
I don't see the answer to this question
--
title: openssl init 100% CPU utilization - openssl init 100% CPU utilization
on Windows
___
Python tracker
Shankar Unni added the comment:
If you want to modify time.sleep(), you must be careful of the portability:
Windows, Linux, but also Mac OS X, FreeBSD, Solaris, etc.
Oh, I totally agree. What I'm trying to do is to define another autoconf flag
(HAVE_CLOCK_NANOSLEEP), that does a feature
STINNER Victor added the comment:
@ivank: Can you please answer to questions? It's hard to understand the issue.
Without more information, I would suggest to close the issue.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: LibreSSL/RAND_egd fix needed. - Support LibreSSL (instead of OpenSSL):
make RAND_egd optional
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21351
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: socket.sendfile() - Add a new socket.sendfile() method
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17552
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21350
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21225
___
___
Python-bugs-list
STINNER Victor added the comment:
2014-04-27 2:26 GMT+02:00 Shankar Unni rep...@bugs.python.org:
If you want to modify time.sleep(), you must be careful of the portability:
Windows, Linux, but also Mac OS X, FreeBSD, Solaris, etc.
Oh, I totally agree. What I'm trying to do is to define
Tim Peters added the comment:
After more thought, I don't think the user can do anything to influence
finalization order in cases like this, short of adding del statements (or
moral equivalents) to break cycles before the interpreter shuts down.
Fine by me ;-) Something CPython could do,
ivank added the comment:
I'm finding it hard to reproduce the bug again with more zpool corruption. (I
see the `IOError: [Errno 5] Input/output error` exception now.) I do remember
that in the reported case, Python 3.4, node.js, and OpenJDK 7 threw an EIO
exception, but Python 2.7 did not.
Jessica McKellar added the comment:
Thanks for writing up this issue, ned.deily, and thanks for providing a patch,
chortos.
I couldn't find documentation clearly specifying what the correct behavior of
macpath.join should be (i.e. what are the exact rules for leading and trailing
colons),
New submission from Jessica McKellar:
I had wanted to run a single TestCase, or single TestCase test method, and saw
that how to do this wasn't in the devguide. Pattern-matching from the other
rules doesn't work (for now, you have to use unittest instead of test), and
asking on IRC, many
72 matches
Mail list logo