New submission from Martin Panter:
This is a regression caused by revision 901e4e52b20a. Before (e.g. Python 3.4):
urljoin('a', 'b')
'b'
After:
urljoin('a', 'b')
'b/b'
This was identified in https://bugs.python.org/issue18828#msg238363 but is
actually caused by the revision committed for
Serhiy Storchaka added the comment:
It would be good to add examples with multidimensional memoryviews. For example:
a = array.array('l', [-, , -, ])
m = memoryview(a).cast('B').cast('l', [2, 2])
m[0, 0]
-
m[1, 0]
-
m[-1, -1]
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
components: Library (Lib)
files: deque_insert_index_copy3.diff
keywords: patch
nosy: rhettinger
priority: normal
severity: normal
stage: patch review
status: open
title: Make deques a full MutableSequence by adding index(),
Martin Panter added the comment:
I opened Issue 23703 for a regression caused by this commit.
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22278
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23704
___
___
Serhiy Storchaka added the comment:
Thanks Ethan.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20680
___
___
Python-bugs-list mailing list
Martin Panter added the comment:
I opened Issue 23703 about the funny doubled bar.com result. After backing out
revision 901e4e52b20a, but with my patch here applied:
urljoin('mailto:foo@', 'bar.com')
'mailto:bar.com'
which seems fairly sensible to me. A more awkward question is if this
New submission from Raymond Hettinger:
Help deques match the performance of lists for a __contains__ check.
Comparative timings are attached.
--
assignee: rhettinger
components: Library (Lib)
files: deque_contains0.diff
keywords: patch
messages: 238496
nosy: rhettinger
priority:
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20204
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Added file: http://bugs.python.org/file38554/deque_contains_timings.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23705
___
Raymond Hettinger added the comment:
Yes, go ahead an apply this patch.
--
assignee: rhettinger - ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11468
___
Serhiy Storchaka added the comment:
Currently the action parameter of signal.signal() can be SIG_DFL, SIG_IGN, or a
callable Python object. Would be just a callable Python object. This is simpler.
The main benefit is that they will be better look in pydoc output.
--
James Rutherford added the comment:
Python 3 patch attached. The documentation has changed structure a little so
I've adapted (simplified) this from the original. Otherwise, it's pretty much
the same, except with python3 fixes, and incorporated feedback. I'll upload an
updated 2.7 patch as
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +neologix, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23709
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23707
___
Roundup Robot added the comment:
New changeset 116e4c40115f by Victor Stinner in branch 'default':
Issue #23708: Fix _Py_read() compilation error on Windows
https://hg.python.org/cpython/rev/116e4c40115f
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 7d4eb5902f82 by Antoine Pitrou in branch 'default':
Issue #23632: Memoryviews now allow tuple indexing (including for
multi-dimensional memoryviews).
https://hg.python.org/cpython/rev/7d4eb5902f82
--
nosy: +python-dev
Martin Panter added the comment:
Looking at the C code, if a writable buffer is passed, mutate_arg is false, and
the buffer is longer than 1024 bytes, then a ValueError is raised:
ioctl(0, 0, bytearray(2048), False)
Traceback (most recent call last):
File stdin, line 1, in module
STINNER Victor added the comment:
unittest_setitimer.patch: hack unittest.TestCase.run() to inject signals every
1 ms, send the first signal in 100 ms. It should help to detect functions which
doesn't retry on EINTR.
--
keywords: +patch
Added file:
Martin Panter added the comment:
I think this is already discussed in Issue 22253.
--
nosy: +vadmium
resolution: - duplicate
status: open - closed
superseder: - ConfigParser does not handle files without sections
___
Python tracker
Josh Rosenberg added the comment:
Assuming Siphash is in fact cryptographically secure (in the sense you can't
choose a desired result hash with better odds that brute force), and it appears
to be so, with a keyspace of 64 bits, if it's evenly distributed (which a
cryptographically secure
Roundup Robot added the comment:
New changeset 8c73af0b3cd9 by Victor Stinner in branch 'default':
Issue #22181: Fix dev_urandom_noraise(), try calling py_getrandom() before
https://hg.python.org/cpython/rev/8c73af0b3cd9
--
___
Python tracker
Roundup Robot added the comment:
New changeset c3c47ea32f72 by Victor Stinner in branch 'default':
Issue #23708: Add _Py_read() and _Py_write() functions to factorize code handle
https://hg.python.org/cpython/rev/c3c47ea32f72
--
nosy: +python-dev
___
STINNER Victor added the comment:
I commited both patches. Thanks Antoine for the review of
py_read_write-2.patch, I removed the commented assertion.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset e57b4d464d1c by Victor Stinner in branch 'default':
Issue #23707: On UNIX, os.urandom() now calls the Python signal handler when
https://hg.python.org/cpython/rev/e57b4d464d1c
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset 447794596266 by Ned Deily in branch '2.7':
Issue #23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a.
https://hg.python.org/cpython/rev/447794596266
New changeset 59b8a83ea50b by Ned Deily in branch '3.4':
Issue #23686: Update OS X 10.5
Thomas Kluyver added the comment:
Thanks, that was an oversight. Patch 5 adds CompletedProcess to __all__.
--
Added file: http://bugs.python.org/file38574/subprocess_run5.patch
___
Python tracker rep...@bugs.python.org
Steve Dower added the comment:
Supporting proper per-user installs of Python 2.7 or 3.4 would require a second
MSI that is configured to not ask for administrative privileges. The code is in
Tools/msi/msi.py if you want to look at it (it's not my code and I have no
intention of touching it),
Donald Stufft added the comment:
To be clear, I have no opinion on your specific proposal and I don't know if
the difference between cryptographically secure and not cryptographically
secure matters for it. I just wanted to be clear that with SipHash an attacker
should *not* be able to choose
STINNER Victor added the comment:
I commited changes to use _Py_read() and _Py_write().
I attach an updated patch to use Py_ssize_t instead of int, and to use
Py_buffer instead of char*.
--
Added file: http://bugs.python.org/file38571/ossaudiodev-py_buffer.patch
Roundup Robot added the comment:
New changeset d564695b67bb by Victor Stinner in branch 'default':
Issue #23709: The ossaudiodev module now retries read/write when interrupted by
https://hg.python.org/cpython/rev/d564695b67bb
--
nosy: +python-dev
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
resolution: - duplicate
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22634
___
Antoine Pitrou added the comment:
I didn't add the 2d example as the double cast is quite ugly. Probably we
should allow casting when the format stays the same.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python
Davin Potts added the comment:
Inheriting the priority from issue22634 which has been marked closed-duplicate
(duplicate of this issue).
Previously issue22634 was given a priority of release blocker by @pitrou.
Issue22634 described how this issue also afflicts 32-bit builds on multiple
RHEL
Martin Panter added the comment:
One thing that just popped into my mind that I don’t think has been discussed:
The patch adds the new run() function to subprocess.__all__, but the
CompletedProcess class is still missing. Was that an oversight or a conscious
decision?
--
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12006
___
___
Roundup Robot added the comment:
New changeset e232b57ee784 by Victor Stinner in branch 'default':
Issue #23708: select.devpoll now retries its internal write() when interrupted
https://hg.python.org/cpython/rev/e232b57ee784
--
___
Python tracker
James Rutherford added the comment:
Updated 2.7 patch attached.
--
Added file: http://bugs.python.org/file38570/issue23539-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
___
STINNER Victor added the comment:
test_csv now fails on Windows:
http://buildbot.python.org/all/builders/x86 Windows7 3.x/builds/9421/
==
ERROR: test_read_dict_fieldnames_from_file (test.test_csv.TestDictFields)
Donald Stufft added the comment:
I'm not sure what you mean by Siphash isn't cryptographically secure. One of
the key points of Siphash is that it *is* cryptographically secure. It has a
smaller space than your typical hash function (MD5, SHA1, SHA2, etc) which
means that collisions
Ned Deily added the comment:
1.0.2a is now available.
https://www.openssl.org/source/openssl-1.0.2a.tar.gz
The OS X 10.5 installer builds are now updated. Leaving the issue open for
updates to the Windows installers.
--
___
Python tracker
Ryan Gonzalez added the comment:
I am slowly attaching the patches I created.
Titles:
- issue_16353.patch - Issue 16353 for tip
- issue_20305_tweaked.patch - Issue 2305 for tip
- rjmatthews62_fixes_tweaked.patch - rjmatthew...@gmail.com's Android fixes (a
bit more modularized)
-
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38578/issue_20305_tweaked.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38582/rjmatthews62_fixes_tweaked.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38579/issue_20306.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38580/issue_21668.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38581/unused_var.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Roundup Robot added the comment:
New changeset 9882cc2efd36 by Victor Stinner in branch 'default':
Issue #23646: Enhance precision of time.sleep() and socket timeout when
https://hg.python.org/cpython/rev/9882cc2efd36
--
___
Python tracker
Demian Brecht added the comment:
Yep, that's a lot cleaner and tests pass. I've updated the patch with that
line. Thanks.
--
Added file: http://bugs.python.org/file38573/issue23703_1.patch
___
Python tracker rep...@bugs.python.org
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38576/kbox_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Changes by Ryan Gonzalez rym...@gmail.com:
Added file: http://bugs.python.org/file38577/issue_16353.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
___
___
Amaury Forgeot d'Arc added the comment:
But isn't the result different?
NEWOBJ calls cls.__new__() and __init__ is skipped.
REDUCE calls cls(): both __new__ and __init__ are used.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
New submission from Ugra Dániel:
The new pathlib.Path [read|write]_[binary|text] methods will be very useful,
one thing I miss badly is the newline argument for write_text.
In some cases text files need a specific line ending (independent from the
platform the code is being executed on.) In
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8027
___
___
Python-bugs-list
Amaury Forgeot d'Arc added the comment:
Sorry, I missed the important point:
for classes without __init__
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23419
___
Changes by Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de:
--
nosy: +wolma
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23700
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23703
___
___
Python-bugs-list
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22181
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
Paul Moore added the comment:
LGTM, just one minor comment in review.
--
nosy: +paul.moore
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23681
___
STINNER Victor added the comment:
Oh, test_os now fails on Linux because os.urandom() doesn't use a file
descriptor anymore. The test should be skipped when getrandom() is used. The
test is already skipped when getentropy() is used.
--
resolution: fixed -
status: closed - open
New submission from STINNER Victor:
dev_urandom_python() retries read() if it fails with EINTR, but Python signal
handlers are not called: PyErr_CheckSignals() is not called. It's important be
able to interrupt a function by a signal, especially if it's blocking.
We need maybe a new
Bohuslav Slavek Kabrda added the comment:
I'm attaching second version of the patch. It now contains link to this bug and
a more real test case according to suggestion from the review.
One of the reviews of first patch version mentioned that there should be a
better explanation of how this
Serhiy Storchaka added the comment:
Added versionchanged directives and fixed other documentation.
--
Added file: http://bugs.python.org/file38555/accept_mutable_buffers_2.patch
___
Python tracker rep...@bugs.python.org
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22831
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15133
___
___
Python-bugs-list
Demian Brecht added the comment:
One super minor comment left in Rietveld (py3 patch). Otherwise LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
___
Serhiy Storchaka added the comment:
The patch is synchronized with the tip, added the versionadded directives and
whatsnews entry, addressed sasha's comment on Rietveld. Fixed a bug: %a and %A
now are interchangeable with %u as well as with %w.
I don't understand what more test are needed.
New submission from STINNER Victor:
Attached patch changes signal.sigtimedwait() to retry if sigtimedwait() failed
with EINTR and the signal handler didn't raise an exception.
--
files: sigtimedwait_eintr.patch
keywords: patch
messages: 238595
nosy: haypo
priority: normal
severity:
STINNER Victor added the comment:
New issue #23715: handle EINTR in the signal module.
--
dependencies: +PEP 475: handle EINTR in the signal module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23648
Martin Panter added the comment:
I had a closer look at the changes, and most of them seem good. However I think
I found one leak in fcntl(); see Reitveld.
I noticed there is no test for “ossaudiodev”. Would that be too hard, or is it
just an oversight?
--
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23676
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23681
___
___
Python-bugs-list
Berker Peksag added the comment:
Looks good. A couple of comments:
* Doc/includes/email-* changes have already been committed.
* There is a commented-out line in Tools/scripts/nm2def.py:
-f.close()
+# f.close()
* The patch is huge, I'd commit Tools/ and Lib/test/ parts
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: - serhiy.storchaka
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22826
___
Changes by irdb dalba.w...@gmail.com:
--
nosy: +irdb
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17535
___
___
Python-bugs-list mailing list
STINNER Victor added the comment:
It looks like signal.sigwaitinfo() can also fail with InterruptedError. It
should also be modified.
--
title: PEP 475: signal.sigtimedwait() must retry if sigtimedwait() failed with
EINTR - PEP 475: handle EINTR in the signal module
New submission from STINNER Victor:
It looks like the changeset 0b99d7043a99 (issue #23694) introduced a regression:
http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/11358/
[340/393] test_multiprocessing_spawn
Timeout (1:00:00)!
Thread 0x55aacdc0 (most recent call
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23171
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21802
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 1291649f38df by Victor Stinner in branch 'default':
Issue #23646: Fix test_threading on Windows
https://hg.python.org/cpython/rev/1291649f38df
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Oops, I posted the output of
http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/11359/steps/test/logs/stdio
--
Other output:
http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/11358/steps/test/logs/stdio
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22832
___
___
Python-bugs-list
Demian Brecht added the comment:
The attached patch reverts back to the old set() API, ignoring the parameter
and adding a deprecation warning. I've also added a few versionchanged and
deprecated tags in the Morsel docs. Other than the deprecation note in
whatsnew/3.5.rst that was added, I'm
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23646
___
Alexander Belopolsky added the comment:
including Jan 30 - did you mean Dec 31?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23136
___
___
Roundup Robot added the comment:
New changeset d9f3dd1d6b48 by Serhiy Storchaka in branch '2.7':
Fixed Misc/NEWS entry for issue #23136.
https://hg.python.org/cpython/rev/d9f3dd1d6b48
New changeset afca9867e1bb by Serhiy Storchaka in branch '3.4':
Fixed Misc/NEWS entry for issue #23136.
Serhiy Storchaka added the comment:
Thank you for the review Alexander. Thank you for your contribution Jim.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Davin Potts:
test_imap_unordered_handle_iterable_exception fails intermittently on some
platforms due to the test being too rigid (fragile) about the order of the
items being iterated over which, as the name would imply, is not guaranteed.
Of the multiprocessing module's
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Added file: http://bugs.python.org/file38566/assume_perf_uni_hash1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23712
___
Davin Potts added the comment:
Attaching patch for this fragile test for default/3.5 and 3.4 branches.
Blame for implementing the fragile test falls to @davin. In my own defense,
@davin also discovered it in testing on FreeBSD 10.1 i386-RELEASE.
--
keywords: +patch
Added file:
New submission from Raymond Hettinger:
This tracker item is for a thought experiment I'm running where I can collect
the thoughts and discussions in one place. It is not an active proposal for
inclusion in Python.
The idea is to greatly speed-up the language for set/dict lookups of unicode
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
Removed file: http://bugs.python.org/file38565/assume_perf_uni_hash.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23712
___
Davin Potts added the comment:
Comparing this to issue23042, this same behavior appears on i386 releases of
FreeBSD 8.3 and 10.1 (the i386-RELEASE means it's 32-bit as opposed to 64-bit
build). Given that this issue is being triggered here with -m32 (triggers
building of 32-bit binaries) and
Roundup Robot added the comment:
New changeset 7fa741fe9425 by Serhiy Storchaka in branch '3.4':
Issue #23700: Iterator of NamedTemporaryFile now keeps a reference to
https://hg.python.org/cpython/rev/7fa741fe9425
New changeset c84a0b35999a by Serhiy Storchaka in branch 'default':
Issue #23700:
Davin Potts added the comment:
Attaching a patch which enabled successful compilation of ctypes on FreeBSD
10.1 i386-RELEASE in each of default/3.5, 3.4, and 2.7 branches.
This patch attempts to fix the incomplete logic regarding Windows target
platforms in the ifdef's inside
Changes by Davin Potts pyt...@discontinuity.net:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Serhiy Storchaka added the comment:
LGTM.
--
assignee: - serhiy.storchaka
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23700
___
Davin Potts added the comment:
Reading issue22634 suggests that perhaps this issue is not limited to FreeBSD
-- issue22634 appears to suffer the same behavior on RHEL 6.4 and 5.5 when
compiling to 32-bit (the -m32 compiler flag is being used there).
--
1 - 100 of 157 matches
Mail list logo