[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for sha256. It got the same issue as sha1. After being clinic-ed, the constructor accepts None value happily. -- Added file: http://bugs.python.org/file33401/clinic_sha256module.patch ___ Python track

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-01-09 Thread Ethan Furman
Ethan Furman added the comment: Could somebody explain this? === ethan@media:~/source/python/issue19995_depr$ ./python -W error Python 3.4.0b1 (default:2f81f0e331f6+, Jan 9 2014, 20:30:18) [GCC 4.7.3] on linux Type "hel

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-09 Thread Zachary Ware
Zachary Ware added the comment: Thanks, Larry. Conversion proceeds apace in winreg.c, but I have a couple questions. 1) Since the comment above CConverter.format_unit says all custom converters should use 'O&' instead of defining format_unit, there must be another way to do this: /*[python

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: >Rule 1: Argument Clinic handles all argument parsing for you. Your "impl" >function should never call PyArg_ParseTuple or PyArg_ParseTupleAndKeywords. Ah, got it. Here is the third patch. Everything works fine except for the issue whether sha1 constructor shou

[issue20200] Argument Clinic howto: custom self_converter example broken

2014-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a8301002f5a by Zachary Ware in branch 'default': Closes #20200: Argument Clinic custom converter example should be in a http://hg.python.org/cpython/rev/5a8301002f5a -- nosy: +python-dev resolution: -> fixed stage: patch review -> committe

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is the current behaviour of sha1 constructor. It rejects None value. >>> import _sha1 >>> _sha1.sha1() <_sha1.sha1 object at 0x7f7fa7f0dea0> >>> _sha1.sha1(None) Traceback (most recent call last): File "", line 1, in TypeError: object supporting the buffer

[issue20216] Misleading docs for sha1, sha256, sha512, md5 modules

2014-01-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: Added md5 module to this ticket. -- title: Misleading docs for sha1, sha256, sha512 modules -> Misleading docs for sha1, sha256, sha512, md5 modules Added file: http://bugs.python.org/file33399/fix_doc_sha_module_v2.patch

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Right, it doesn't work because you left the PyArg_ParseTuple call in your impl function. Remove that and it should work. Rule 1: Argument Clinic handles all argument parsing for you. Your "impl" function should never call PyArg_ParseTuple or PyArg_ParseTuple

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-09 Thread Vajrasky Kok
Vajrasky Kok added the comment: But METH_O makes the update method does not work. >>> _sha1.sha1().update(b'a') Traceback (most recent call last): File "", line 1, in SystemError: new style getargs format but argument is not a tuple But if you change METH_O to METH_VARARGS, it works again. I

[issue20190] dict() in dict(foo='bar').keys() raises

2014-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think the problem is that the API of dict.keys() is surprising. > One gets back something that behaves like a list, the name 'keys' > suggests that it is a list and for lists there is no requirement > that their containing items need to be hasheable. The

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Go for it! That's weird. Why can't I assign it to you? Have you not signed and submitted a Python contributor agreement? -- assignee: -> kbk nosy: +kbk ___ Python tracker

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Oops, sorry kbk. -- assignee: kbk -> nosy: -kbk ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20215] Python2.7 socketserver can not listen IPv6 address

2014-01-09 Thread R. David Murray
R. David Murray added the comment: The *default* is AF_INET. If you are requesting a more convenient API than subclassing (which for IPV6 support I think would be a reasonable request), that would be a new feature. -- nosy: +r.david.murray type: behavior -> enhancement versions: +Pyth

[issue20216] Misleading docs for sha1, sha256, sha512 modules

2014-01-09 Thread Vajrasky Kok
New submission from Vajrasky Kok: Misleading doc number 1: >>> import _sha1 >>> _sha1.sha1.__doc__ 'Return a new SHA1 hash object; optionally initialized with a string.' >>> _sha1.sha1('cutecat') Traceback (most recent call last): File "", line 1, in TypeError: Unicode-objects must be encoded

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: That METH_O is working perfectly. You seem to be confused by it. The original code was kind of dumb. The function only takes two parameters: self, and a second "obj" parameter which can be any kind of object. CPython has special support for exactly this kin

[issue7883] CallTips.py _find_constructor does not work

2014-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 3.x changes will not affect 2.7, which currently still uses _find_constructor. I suspect the .__func__ is needed for old-style classes, but I will try to check. -- versions: +Python 3.4 -Python 3.2 ___ Python tr

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Get_entity already has try-except to block exceptions propagating from eval failure, so wrapping it is redundant. We only need worry about get_argspec. I presume the failure is in get_argspec in the remote process: if hasattr(ob, '__call__'): This can be re

[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: While it's dandy to add docstrings, your patch doesn't have any Argument Clinic stuff in it. I don't mind if you add docstrings as part of the process of converting to Argument Clinic, but I'm not interested in this patch as it stands. -- __

[issue20215] Python2.7 socketserver can not listen IPv6 address

2014-01-09 Thread dzyu
New submission from dzyu: I see, in python 2.7, in SocketServer.py the TCPServer implementation is hard-coded to use ipv4, can not handle IPv6 case. it hard-coded set address_family as socket.AF_INET. so when binding IPv6 host, it will throw "gaierror: [Errno -9] Address family for hostname no

[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2014-01-09 Thread Larry Hastings
Changes by Larry Hastings : -- assignee: -> larry resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue20196] Argument Clinic generates invalid code for optional parameter

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Here's a fix. Works for me, let me know if it works for you. -- Added file: http://bugs.python.org/file33397/larry.zero.positional.parameters.patch.1.txt ___ Python tracker _

[issue20196] Argument Clinic generates invalid code for optional parameter

2014-01-09 Thread Larry Hastings
Changes by Larry Hastings : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue20122] Move CallTips tests to idle_tests

2014-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The existing tests in CallTips.py, half of which I wrote based on the ones that existed, have one or two deficiencies that are copied in the patch. First, they are not proper unittests. They test get_argspec indirectly by calling .fetch_tip and get_entity. Thi

[issue20203] ArgumentClinic: support middle optional argument

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Oh . socket.sendto can't currently be converted to Argument Clinic. There's legacy, and then there's the cruelty that only 1993-style argument parsing can inflict. (socket.sendto's argument parsing was checked in in revision ac3c80abbf43 from 1993 by Guido.

[issue20202] ArgumentClinic howto: document change in Py_buffer lifecycle management

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: I've got a bunch of doc improvements in the rollup patch in #20214. I invite you to give it a review. If that looks suitable please close this issue. As for a verb, I've been using "convert". "zlibmodule has already been converted to work with Argument Clin

[issue20201] Argument Clinic: rwbuffer support broken

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: LGTM. To be honest I don't understand what the hell 'w*' is for. -- ___ Python tracker ___ ___ Pyth

[issue20200] Argument Clinic howto: custom self_converter example broken

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: LGTM. Check it in please! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20214] Argument Clinic rollup fixes

2014-01-09 Thread Larry Hastings
New submission from Larry Hastings: Miscellaneous Argument Clinic fixes: * Added default value type verification for almost all return converters. * Added return converters for float, dobule, unsigned long, unsigned int, short, and unsigned short. * Py_buffer converter improvements:

[issue20012] Re: Allow Path.relative_to() to accept non-ancestor paths

2014-01-09 Thread Alexander Boyd
Alexander Boyd added the comment: Then perhaps the docstring of relative_to could note this (like relpath does), or a separate method that's explicitly not symlink safe created. Or better yet, what about a function that does (or at least tries to) give the correct answer in the face of symlink

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-09 Thread Brett Cannon
Brett Cannon added the comment: Now it's: Modules/cmathmodule.c: 8 sites Modules/cjkcodecs/multibytecodec.c: 8 sites Modules/arraymodule.c: 8 sites Modules/pyexpat.c: 7 sites Modules/fcntlmodule.c: 7 sites Modules/pwdmodule.c: 2 sites Modules/spwdmodule.c: 1 sites

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-09 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: larry -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1f3242fb0c9c by Brett Cannon in branch 'default': Issue #20152: import.c now uses Argument Clinic. http://hg.python.org/cpython/rev/1f3242fb0c9c -- nosy: +python-dev ___ Python tracker

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2014-01-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20213] Change the install location of _sysconfigdata.py

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: The _sysconfigdata.py module contains definitions that are needed when building Python modules. In cross-compilation mode, when building Python extensions for the target, we need to use the _sysconfigdata.py of the target Python while executing the host Py

[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: The build_ext logic uses sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")) to determine whether we're building a third-party Python extension, or a built-in Python extension. However, this check is wrong in cross-compilation mode, because the

[issue20211] setup.py: do not add invalid header locations

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: In the cross-compilation case, setup.py incorrectly adds /usr/include to self.compiler.include_dirs, and results in the following invalid compilation line: /home/thomas/projets/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-gcc -fPIC -Wno-unused-re

[issue19077] More robust TemporaryDirectory cleanup

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a working patch for the finalize-based approach. -- Added file: http://bugs.python.org/file33392/tempdir_finalize.patch ___ Python tracker _

[issue19077] More robust TemporaryDirectory cleanup

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note the finalize-based patch can only work on 3.4. -- nosy: +pitrou ___ Python tracker ___ ___ Pyth

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33390/0011-Add-an-option-to-disable-unicodedata.patch ___ Python tracker ___ ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33388/0009-Add-an-option-to-disable-CJK-codecs.patch ___ Python tracker ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33391/0012-Add-an-option-to-disable-IDLE.patch ___ Python tracker ___ __

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33386/0007-Add-an-option-to-disable-the-curses-module.patch ___ Python tracker ___ _

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33389/0010-Add-an-option-to-disable-NIS.patch ___ Python tracker ___ ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33387/0008-Add-an-option-to-disable-expat.patch ___ Python tracker ___ _

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33385/0006-Add-an-option-to-disable-the-tk-module.patch ___ Python tracker ___ _

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33384/0005-Add-option-to-disable-the-sqlite3-module.patch ___ Python tracker ___ ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33381/0002-Add-an-option-to-disable-installation-of-test-module.patch ___ Python tracker ___ ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33382/0003-Add-an-option-to-disable-pydoc.patch ___ Python tracker ___ _

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33383/0004-Add-an-option-to-disable-lib2to3.patch ___ Python tracker ___ ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : -- keywords: +patch Added file: http://bugs.python.org/file33380/0001-Add-infrastructure-to-disable-the-build-of-certain-e.patch ___ Python tracker ___

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: In the context of space-constrained embedded Linux systems, installing the entire set of Python modules and extensions is not necessarily desirable. For example, all the test modules, as well as certain extensions requiring third-parties libraries are ofte

[issue19077] More robust TemporaryDirectory cleanup

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which implements Richard's suggestion. test_del_on_shutdown and test_warnings_on_cleanup are failed, but perhaps they are wrong. -- Added file: http://bugs.python.org/file33379/tempfile_tempdir_cleanup_weakref_finalize.patch

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-01-09 Thread R. David Murray
R. David Murray added the comment: On Thu, 09 Jan 2014 20:29:15 +, Adam Tomjack wrote: > This issue is not an enhancement, it's a bug. One might argue that > fixing it will break existing code, but it won't. Any affected code > is already broken. It's depending on a promised level of safe

[issue19077] More robust TemporaryDirectory cleanup

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An alternative with weakref.finalize() looks very attractive, but unfortunately tests are failed with it. -- ___ Python tracker ___ _

[issue19077] More robust TemporaryDirectory cleanup

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch to tip. -- Added file: http://bugs.python.org/file33378/tempfile_tempdir_cleanup.patch ___ Python tracker ___ __

[issue19077] More robust TemporaryDirectory cleanup

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file31848/tempfile_tempdir_cleanup.patch ___ Python tracker ___ ___ Python-

[issue13107] Text width in optparse.py can become negative

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Adam for your report. Thank you Elazar for your patch. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-01-09 Thread mike bayer
mike bayer added the comment: well Adam, you might also be surprised to see pysqlite not doing very well on the *other* side of the equation either; that is, when it *begins* the transaction. Issue http://bugs.python.org/issue9924 refers to this and like this one, hasn't seen any activity sin

[issue13107] Text width in optparse.py can become negative

2014-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 779de7b4909b by Serhiy Storchaka in branch '2.7': Issue #13107: argparse and optparse no longer raises an exception when output http://hg.python.org/cpython/rev/779de7b4909b New changeset c6c30b682e14 by Serhiy Storchaka in branch '3.3': Issue #1310

[issue10388] spwd returning different value depending on privileges

2014-01-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Looking back at this: considering we may get errors != EACCESS I think we better be as generic as possible as in: --- a/Modules/spwdmodule.c +++ b/Modules/spwdmodule.c @@ -153,6 +153,8 @@ if ((d = PyList_New(0)) == NULL) return NULL; setsp

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2014-01-09 Thread mike bayer
mike bayer added the comment: see also http://bugs.python.org/issue10740, which also relates to pysqlite attempting to make guesses as to when transactions should begin and end. -- ___ Python tracker __

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Okay, you have my permission to mark it pending deprecated. > What I'm proposing is to remove it after we deprecate it. I understand the deprecation process. Like I said, I was just trying to get a sense of how many people would be affected. --

[issue18787] Misleading error from getspnam function of spwd module

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue10388] spwd returning different value depending on privileges

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue13355] random.triangular error when low = high=mode

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Raymond, could you please make a decision or delegate this issue to Mark, Terry, Andrew or me? -- ___ Python tracker ___

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If we removed it completely (which I'm *not* proposing, just gathering > data) how many people would it affect? What I'm proposing is to remove it after we deprecate it. I don't think it would affect many people, if any, but we still should have a deprecation

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-01-09 Thread Adam Tomjack
Adam Tomjack added the comment: The proposed patches don't fix the problem. They may well allow DDL in transactions, but that's not the real problem. A database library must *NEVER* implicitly commit or rollback. That's completely insane. >>> import this ... Explicit is better t

[issue15303] Minor revision to the method in Tkinter

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1776674] glob.glob inconsistent

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue19279] UTF-7 to UTF-8 decoding crash

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Georg, is this issue wort to be fixed in 3.2? If yes, use the patch against 2.7. -- ___ Python tracker ___ ___

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: If we removed it completely (which I'm *not* proposing, just gathering data) how many people would it affect? Is there any legitimate reason why some people would want SSLv2? Like "we aren't allowed to upgrade this server" or something. -- _

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: (FTR, Alex's comment mixes up the default settings used by urlopen() with what the ssl module allows to do when invoked directly) -- ___ Python tracker ___

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If #20207 happens for 3.4, would it still be possible to use SSLv2? #20207 has already happened for 3.4 and, yes, it's still possible to use SSLv2 (except that many distros also disable SSLv2 in their OpenSSL build). The commit message is quite clear about t

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: I don't have a lot of context for this. It sounds like #20207 proposes to remove the ability to use SSLv2 at all. And in the comments Alex Gaynor seems to say that SSLv2 is already disabled in Python 3. If #20207 happens for 3.4, would it still be possible t

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is there any way to use SSLv2 in 3.4? Yes, by using PROTOCOL_SSLv2. (you're asking strange questions) -- ___ Python tracker ___ _

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Is there any way to use SSLv2 in 3.4? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: The ssl module has an attribute named PROTOCOL_SSLv2 that I'm proposing to deprecate. -- ___ Python tracker ___ ___

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Okay, then, can you educate me on what you're proposing here? -- ___ Python tracker ___ ___ Python-b

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Larry Hastings
Larry Hastings added the comment: Would the patch be about as simple as the patch for 2.7 in #20207? Also, #20207 is also marked for 3.4. Either unmark 3.4/3.5 in #20207, or close this bug as a duplicate. -- ___ Python tracker

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Those bugs are orthogonal, Larry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19965] Non-atomic generation of Include/Python-ast.h and Python/Python-ast.c

2014-01-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: This should be ok now. Let's hope no buildbots will complain... -- resolution: -> fixed stage: -> committed/rejected status: open -> pending ___ Python tracker __

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 613b403ca9f1 by Antoine Pitrou in branch '3.3': Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for. http://hg.python.org/cpython/rev/613b403ca9f1 New changeset e02288de43ed by Antoine Pitrou in branch 'default': I

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread R. David Murray
R. David Murray added the comment: I don't see why a deprecation would be late, since we haven't hit RC yet. A deprecation doesn't change the API. But yes, it is Larry's call. -- ___ Python tracker _

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It sounds a bit too late, although that would be Larry's call. -- nosy: +larry ___ Python tracker ___ __

[issue20209] Deprecate PROTOCOL_SSLv2

2014-01-09 Thread R. David Murray
R. David Murray added the comment: Why not in 3.4? -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue20205] inspect.getsource(), P302 loader and '<..>' filenames

2014-01-09 Thread R. David Murray
R. David Murray added the comment: Maybe the logic needs to be reordered: look for a loader first, before looking for a file on disk. It seems to me the current lookup order might itself be a bug. Note that the code is the same in python3, so the issue exists there as well. -- nosy:

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 163c09041280 by Antoine Pitrou in branch '2.7': Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for. http://hg.python.org/cpython/rev/163c09041280 -- nosy: +python-dev _

[issue19804] test_uuid.TestUUID.test_find_mac() fails

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps it would be better just use other executable (it is not ran in this test, just checked that it exists). Bohuslav, what is a content of your /sbin and /usr/sbin? -- ___ Python tracker

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-09 Thread Stefan Krah
Stefan Krah added the comment: > Yes, it's just Python syntax, so you'd use "->". I tried that, but it didn't filter through to inspect.signature(). > However, you are not permitted to according to PEP 8: Ah, too bad. Return annotations are nice. -- __

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread STINNER Victor
STINNER Victor added the comment: > Here is a patch. Can someone try it with a non-patched OpenSSL? (e.g. OS X) How can I test that SSLv2 is disabled? -- ___ Python tracker ___

[issue20207] Disable SSLv2 in Python 2.x

2014-01-09 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20078] zipfile - ZipExtFile.read goes into 100% CPU infinite loop on maliciously binary edited zips

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Nandiya for your report. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue20205] inspect.getsource(), P302 loader and '<..>' filenames

2014-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There would be behavior change if file '' exists. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue18960] First line can be executed twice

2014-01-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 875a514671dd by Serhiy Storchaka in branch '3.3': Do not reset the line number because we already set file position to correct http://hg.python.org/cpython/rev/875a514671dd New changeset 2af308f79727 by Serhiy Storchaka in branch 'default': Do not r

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2014-01-09 Thread Brian Morrow
Brian Morrow added the comment: I'll gladly take this bundle. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >