Changes by Ned Deily n...@acm.org:
--
nosy: +amaury.forgeotdarc, belopolsky, meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22961
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22947
___
___
Bernard Spil added the comment:
When configure is called with correct LDFLAGS and CPPFLAGS for LibreSSL these
patches to configure, Modules/_ssl.c and Lib/_ssl.py will detect not having
RAND_egd support in OpenSSL and make the build succeed.
--
Added file:
Changes by Bernard Spil pyt...@bachfreund.nl:
Added file: http://bugs.python.org/file37300/patch-Lib_ssl.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
Changes by Bernard Spil pyt...@bachfreund.nl:
Added file: http://bugs.python.org/file37301/patch-Modules__ssl.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
Changes by Bernard Spil pyt...@bachfreund.nl:
Removed file: http://bugs.python.org/file37242/patch-Modules__ssl.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
STINNER Victor added the comment:
patch-configure.ac:
-AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library
features])
Why do you remove this define?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
Antoine Pitrou added the comment:
I thikn RAND_egd() should probably raise NotImplementedError if the function
isn't exposed by the ssl library.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
New submission from Gary van der Merwe:
Currently if one has an ip address in int or IPv4Address/IPv6Address form, it
is not possilbe to create a ip_interface or ip_network from that with specific
prefix length, without first converting the address into string form, and then
appending the
Bernard Spil added the comment:
Victor: That is a change that has been implemented in the downstream port to
fix wxPython, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192365 this
ended up in this patch as my primary objective was to fix it for the FreeBSD
port.
Antoine: Sorry, I'm
STINNER Victor added the comment:
Victor: That is a change that has been implemented in the downstream port to
fix wxPython, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192365
this ended up in this patch as my primary objective was to fix it for the
FreeBSD port.
It looks
Bernard Spil added the comment:
Remove https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192365 patch from this
patch-set
--
Added file: http://bugs.python.org/file37302/patch-configure.ac
___
Python tracker rep...@bugs.python.org
Changes by Bernard Spil pyt...@bachfreund.nl:
Removed file: http://bugs.python.org/file37299/patch-configure.ac
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
STINNER Victor added the comment:
I thikn RAND_egd() should probably raise NotImplementedError if the function
isn't exposed by the ssl library.
I would prefer to follow the model of the os module: don't declare a function
if it is not supported by the OS.
--
Amaury Forgeot d'Arc added the comment:
No, OSError.errno is converted from the Windows error code.
There is a translation map (see PC/errmap.h, built with the _dosmaperr()
function) and the default value is EINVAL.
It's working as intended. What was the winerror code? do you think it should
Simon Zack added the comment:
Ok, my bad, I was creating my own OSErrors so I was just testing it out. I just
found the default to be rather confusing as I thought None would not be mapped
to anything.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
I would prefer to follow the model of the os module: don't declare a function
if it is not supported by the OS.
I don't have any strong feelings, so let's do it like that. RAND_egd() isn't
useful anyway.
--
___
Roundup Robot added the comment:
New changeset 6f23bc5d480e by Victor Stinner in branch 'default':
Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. The
https://hg.python.org/cpython/rev/6f23bc5d480e
--
nosy: +python-dev
___
Python
STINNER Victor added the comment:
Ok, here is a first commit to try to support LibreSSL in Python 3.5.
Can someone please test to compile Python 3.5 with LibreSSL and run the test
suite (at least test_ssl) to check that everything is fine? If you confirm that
the change is correct, I will
STINNER Victor added the comment:
call_soon_after_close.diff looks good but also incomplete: call_later, call_at
and run_in_executor should also raise an exception if the event loop is closed.
You should also add call_soon_threadsafe to the test.
So for consistency this patch should grow
STINNER Victor added the comment:
Here is a patch without unit:
- modify get_event_loop() to always raise a RuntimeError if the thread has no
event loop. Before an AssertionError was not raised if python runs with -O
option
- modify BaseEventLoop._assert_is_current_event_loop() to fail if the
Bernard Spil added the comment:
FAILED (failures=2, errors=2, skipped=5)
That is OK, as these 2 tests should fail with LibreSSL since SSLv2 and SSLv3
support has been removed from LibreSSL.
ERROR: test_protocol_sslv23 (__main__.ThreadedTests)
ERROR: test_protocol_sslv3 (__main__.ThreadedTests)
STINNER Victor added the comment:
That is OK, as these 2 tests should fail with LibreSSL since SSLv2 and SSLv3
support has been removed from LibreSSL.
See the issue #22935.
I prefer to wait until this issue is fixed in Python 3.5, and that test_ssl
pass on your PC, before backporting this
STINNER Victor added the comment:
FYI LibreSSL also disabled SSLv2 and SSLv3.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22935
___
Matthias Klose added the comment:
maybe it's time to generalise this one, still found on all branches:
# Issue #9415: Ubuntu hijacks their OpenSSL and forcefully disables SSLv2
def skip_if_broken_ubuntu_ssl(func):
--
nosy: +doko
___
Python tracker
Brett Cannon added the comment:
I addressed Serhiy's comments and added in some bits that I initially took off
(-bb, -3, str.__mod__, io.open). Also clarified a couple of things.
--
Added file: http://bugs.python.org/file37305/pyporting.diff
___
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22896
___
___
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22906
___
___
STINNER Victor added the comment:
Sorry for the delay, I pushed asyncio-streams-drain-doc-water-limits.patch,
thanks for your contribution Martin.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22348
Roundup Robot added the comment:
New changeset 8224253ef4b7 by Victor Stinner in branch '3.4':
Closes #22348: Rephrase asyncio.StreamWriter.drain() documentation
https://hg.python.org/cpython/rev/8224253ef4b7
New changeset 1cad9e4bba40 by Victor Stinner in branch 'default':
(Merge 3.4) Closes
Martin Richard added the comment:
Hi,
Actually, closing and creating a new loop in the child doesn't work either, at
least on Linux.
When, in the child, we call loop.close(), it performs:
self.remove_reader(self._ssock)
(in selector_events.py, _close_self_pipe() around line 85)
Both the
Brett Cannon added the comment:
Attached is a patch against Doc/Makefile to add a venv command to create a venv
that can be used to build the documentation. Georg, can you give me an LGTM so
I can commit this?
--
assignee: brett.cannon - georg.brandl
keywords: +patch
nosy:
Roundup Robot added the comment:
New changeset 737355f61ba2 by Victor Stinner in branch '3.4':
Issue #22685: Debug test_pause_reading() on FreeBSD
https://hg.python.org/cpython/rev/737355f61ba2
--
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Sure. (The PyPI name is uppercased, but I guess it doesn't matter.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22394
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22951
___
___
Python-bugs-list
Changes by Demian Brecht demianbre...@gmail.com:
--
nosy: +demian.brecht
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22931
___
___
eryksun added the comment:
the default value is EINVAL.
Should that be specified in the docs? Currently it states that [t]he errno
attribute is then an approximate translation, in POSIX terms, of that native
error code.
https://docs.python.org/3/library/exceptions.html#OSError
--
Serhiy Storchaka added the comment:
Thank you Antoine for your review.
But first variant of the patch doesn't affect an example at the top of this
issue, it doesn't change string formatting. The second variant makes string
formatting use all free space at the right. With the patch:
import
New submission from Harsh Gupta:
In PEP 102 [1], the link to PEP 101 is broken.
[1]: https://www.python.org/dev/peps/pep-0102/
--
components: Devguide
messages: 231825
nosy: ezio.melotti, hargup
priority: normal
severity: normal
status: open
title: type in PEP 102
type: behavior
Raymond Hettinger added the comment:
FYI: I applied these two changes right after Guido pronounced on PEP 479:
https://mail.python.org/pipermail/python-checkins/2014-November/133252.html
https://mail.python.org/pipermail/python-checkins/2014-November/133253.html
Also, I'm submitting a patch
Changes by Harsh Gupta gupta.hars...@gmail.com:
--
title: type in PEP 102 - broken link in PEP 102
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22963
___
Berker Peksag added the comment:
Thanks for the report. This has already been reported at
https://github.com/python/pythondotorg/issues/510.
--
nosy: +berker.peksag
resolution: - third party
stage: - resolved
status: open - closed
___
Python
STINNER Victor added the comment:
FYI: I applied these two changes right after Guido pronounced on PEP 479:
Extract of emails:
changeset: 93542:9eb0d0eb0992
parent: 93540:23f8a511050a
user:Raymond Hettinger python at rcn.com
date:Sat Nov 22 21:56:23 2014 -0800
PEP
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ncoghlan, pmoody
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22962
___
STINNER Victor added the comment:
On Windows with Visual Studio, I got a compiler warning. In whichmodule(),
get_dotted_path() is called with module whereas module is not initialiazed:
dotted_path = get_dotted_path(module, global_name, allow_qualname);
--
Roundup Robot added the comment:
New changeset 7f12c9c09fb6 by Berker Peksag in branch 'default':
Issue #22389: Add contextlib.redirect_stderr().
https://hg.python.org/cpython/rev/7f12c9c09fb6
--
nosy: +python-dev
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: rhettinger - berker.peksag
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22389
Zachary Ware added the comment:
Note that pickling of the pure Python version of methodcaller works as expected:
Python 3.4.2 (default, Nov 20 2014, 12:40:10)
[GCC 4.8.3] on linux
Type help, copyright, credits or license for more information.
import sys
sys.modules['_operator'] = None
Roundup Robot added the comment:
New changeset 0dd91298eb17 by Victor Stinner in branch 'default':
Issue #22685, asyncio: mock also resume_reading in test_pause_reading()
https://hg.python.org/cpython/rev/0dd91298eb17
--
___
Python tracker
Roundup Robot added the comment:
New changeset 276515d2ceed by Victor Stinner in branch 'default':
Issue #22685, asyncio: resume_reading() must also be called in
test_pause_reading()
https://hg.python.org/cpython/rev/276515d2ceed
--
___
Python
Changes by Demian Brecht demianbre...@gmail.com:
Added file: http://bugs.python.org/file37309/issue22095_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22095
___
Demian Brecht added the comment:
Thanks Serhiy, new patch addresses your comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22095
___
___
New submission from Antony Lee:
It would be nice if dbm.open() supported the x flag that open() now supports
(create a new db, failing if it already exists).
--
components: Library (Lib)
messages: 231835
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title:
Antoine Pitrou added the comment:
Here is a patch.
--
Added file: http://bugs.python.org/file37310/whichmodule_error.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22676
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: - needs patch
type: - enhancement
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22964
STINNER Victor added the comment:
Here is a patch using getentropy() if available. I tested it on OpenBSD 5.6
(the only OS implementing this function...).
The patch prepares also random.c to support Linux getrandom(): issue #22181.
--
keywords: +patch
Added file:
Roundup Robot added the comment:
New changeset 21257f916668 by Ned Deily in branch '3.4':
Issue #16113: Also remove test_case_sha3_224_huge
https://hg.python.org/cpython/rev/21257f916668
New changeset bd97eab25c70 by Ned Deily in branch 'default':
Issue #16113: Also remove
Bernard Spil added the comment:
Merged the patch from haypo back into the FreeBSD port for 2.7 at
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192511
In the process I discovered during test_ssl that I had to patch Lib/socket.py
as well to make RAND_egd conditional
--
STINNER Victor added the comment:
Here is a simple patch which fixes this specific issue.
--
keywords: +patch
Added file:
http://bugs.python.org/file37312/run_until_complete_baseexception.patch
___
Python tracker rep...@bugs.python.org
Raymond Hettinger added the comment:
+1 for adding pickling support to Python 3.5.
I don't see much of a need for any revision to 3.4.
--
nosy: +rhettinger
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
I altered the code to print the return value and ran from Idle 2.7.8 on Win7.
It takes about a minute and prints ('chromedriver_win32.zip',
httplib.HTTPMessage instance at 0x02E3FE08). When I tried to end the
pause with ^C, it was ignored and several
Terry J. Reedy added the comment:
Since .iterkeys is gone, I thing the ', and' part should just be dropped.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22918
___
Terry J. Reedy added the comment:
Adding minimal code checks to make multiple tests pass sounds good to me.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22922
___
Guido van Rossum added the comment:
Martin, what is the magic call to make in the child (or in the parent
pre-fork???) to disable the epoll object in the child without disabling it in
the parent?
(Perhaps just closing the selector and letting the unregister calls fail would
work?)
Terry J. Reedy added the comment:
Enhancements are only possible in 3.5 or beyond. I agree with Mark. There is
no compelling reason to break code with this change. Hence it should be
rejected.
Float is an odd duck. All ints and all non-recursive lists, for instance, have
a literal
Demian Brecht added the comment:
There could be some history behind this that I'm unaware of that I'm not
familiar with.
From what I can tell, this issue is simply due to the [ character not being
in _LegalCharsPatt (http/cookies.py). _LegalCharsPatt actually seems quite a
bit more
Josh Rosenberg added the comment:
I've made a patch that I believe should cover all three cases, including tests.
In addition to the pickling behavior, I've made two other changes:
1. methodcaller verifies during construction that the name is a string
(PyUnicode), and interns it; attrgetter
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22955
___
___
Josh Rosenberg added the comment:
Don't bother reviewing just yet. There is an issue with attrgetter's pickling
(which the unit tests caught), and I need to update the pure Python modules to
match.
--
___
Python tracker rep...@bugs.python.org
Josh Rosenberg added the comment:
Okay, this one passes the tests for the built-in module. I'm not sure what's
going wrong with the pure Python module. I'm getting the error:
_pickle.PicklingError: Can't pickle class 'operator.attrgetter': it's not
the same object as operator.attrgetter
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
Removed file: http://bugs.python.org/file37313/pickle_getter_and_caller.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22955
___
Josh Rosenberg added the comment:
Ah, solved it (I think). The bootstrapper used to import the Python and C
versions of the module leaves sys.modules unpopulated (Does pickle itself may
populate it when it finds no module of that name?). I added a setUp method to
the unittest class for
73 matches
Mail list logo