[issue21306] PEP 466: backport hmac.compare_digest

2014-04-30 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch now includes documentation and should be complete. -- keywords: +needs review Added file: http://bugs.python.org/file35122/compare_digest.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21470] Better seeding for the random module

2014-05-10 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue21470> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20115] NUL bytes in commented lines

2014-05-10 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue20115> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21308] PEP 466: backport ssl changes

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: I have not started on this patch yet, I'd wanted to get the other, smaller, backports done first. Unless someone else is planning on getting to this, I think 2.7.8 is more realistic. -- ___ Python tracker

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: New patch includes the documentation as well. -- keywords: +needs review Added file: http://bugs.python.org/file35242/pbkdf2.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: I'm still concerned about the unicode issue, but I'm not sure what the right way to fix it is. -- ___ Python tracker <http://bugs.python.o

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-13 Thread Alex Gaynor
Alex Gaynor added the comment: Sorry, I wasn't concerned from a timing attack perspective here, I was concerned from an "oh my god implicit coercion is terrible" perspective :-) -- ___ Python tracker <http://bugs.pyt

[issue21145] Add the @cached_property decorator

2014-05-18 Thread Alex Gaynor
Alex Gaynor added the comment: Will that implementation cause a memory leak? Won't the lru_cache have a dict mapping {self: result}, meaning that `self` will live forever, instead of storing result in self.__dict__, where the lifetimes are correct. -- nosy:

[issue21528] Fix a number of typos in the documentation

2014-05-18 Thread Alex Gaynor
New submission from Alex Gaynor: Attached patch is against the default branch, and fixes a number of typos. -- assignee: docs@python components: Documentation files: typos.diff keywords: needs review, patch messages: 218769 nosy: alex, docs@python priority: normal severity: normal

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-21 Thread Alex Gaynor
Alex Gaynor added the comment: Updated patch applies all of MAL's suggestions. Except the buffer() one, the purpose of the buffer() call is to make it an error to pass a list (or random other types) since you can call bytes() on any object. -- Added file: http://bugs.pytho

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-21 Thread Alex Gaynor
Alex Gaynor added the comment: As a note, the current code is basically identical to the code in Christain's backport, without the py3k compat. -- ___ Python tracker <http://bugs.python.org/is

[issue21304] PEP 466: Backport hashlib.pbkdf2_hmac to Python 2.7

2014-05-26 Thread Alex Gaynor
Alex Gaynor added the comment: New patch removes the pdb nonsense in the test. -- Added file: http://bugs.python.org/file35375/pbkdf2.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-05-30 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue21569> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21592] Make statistics.median run in linear time

2014-05-31 Thread Alex Gaynor
Alex Gaynor added the comment: I ran the script (modified very slightly for python 2 support) under PyPy 2.3: $ pypy select.py == Single call mode == Nsort select7 select23 select47 select97 select select2

[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-05 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue21671> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20188] ALPN support for TLS

2014-06-05 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue20188> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14621] Hash function is not randomized properly

2012-11-06 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue14621> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14010] deeply nested filter segfaults

2012-11-09 Thread Alex Gaynor
Alex Gaynor added the comment: Since the paste is dead: i = filter(bool, range(5)) for _ in range(100): i = filter(bool, i) for p in i: print(p) -- ___ Python tracker <http://bugs.python.org/issue14

[issue16575] ctypes: unions as arguments

2012-11-28 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16575> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16576] ctypes: structure with bitfields as argument

2012-11-28 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16576> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-04 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16612> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16619> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16619] LOAD_GLOBAL used to load `None` under certain circumstances

2012-12-05 Thread Alex Gaynor
Alex Gaynor added the comment: Nick, None was a constant even in 2k -- ___ Python tracker <http://bugs.python.org/issue16619> ___ ___ Python-bugs-list mailin

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-08 Thread Alex Gaynor
Alex Gaynor added the comment: For what it's worth, I'm not as concerned with the process of the PEP, as having a single document we can review and discuss. -- ___ Python tracker <http://bugs.python.o

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-09 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16651> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-10 Thread Alex Gaynor
Alex Gaynor added the comment: A lot of builtins :) -- ___ Python tracker <http://bugs.python.org/issue16651> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-08 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16894> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16991] Add OrderedDict written in C

2013-01-18 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue16991> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue19257] Sub-optimal error message when importing a non-package

2013-10-14 Thread Alex Gaynor
New submission from Alex Gaynor: Use case: Alexanders-MacBook-Pro:pypy alex_gaynor$ python3.3 Python 3.3.2 (default, May 29 2013, 14:03:57) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "licens

[issue19336] No API to get events from epoll without allocating a list

2013-10-21 Thread Alex Gaynor
New submission from Alex Gaynor: select.epoll should expose an api such as `iterpoll` which returns an iterator over the ready events, rather than a list. Allocating a list is wasteful in many cases (e.g. twisted's event loop) and it'd be nice to have an API that was les

[issue19824] string.Template: Add PHP-style variable expansion example

2013-11-28 Thread Alex Gaynor
Alex Gaynor added the comment: Using locals() in this fashion is a serious anti-pattern, I'm -∞ on the docs suggesting it. -- nosy: +alex ___ Python tracker <http://bugs.python.org/is

[issue19904] Add 128-bit integer support to struct

2013-12-06 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue19904> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21308] PEP 466: backport ssl changes

2014-06-20 Thread Alex Gaynor
Alex Gaynor added the comment: I just wanted to note that I've been actively working on this, but it's being difficult in ways I hadn't predicted :-) Will send an update to python-dev in the next week or so. -- ___ Python

[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-05 Thread Alex Gaynor
New submission from Alex Gaynor: If one invokes some distutils code too early, this function will try to read ``_config_vars`` before it is initialized. http://bpaste.net/show/1DOGhL8sdnkPyLTL06AZ/ is an example traceback that results. The attached patch uses the public API which guarantees

[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-06 Thread Alex Gaynor
Alex Gaynor added the comment: Test looks reasonable to me. -- ___ Python tracker <http://bugs.python.org/issue21923> ___ ___ Python-bugs-list mailing list Unsub

[issue20104] expose posix_spawn(p)

2014-07-08 Thread Alex Gaynor
Alex Gaynor added the comment: Danek, you might find https://github.com/dreid/posix_spawn/ useful, it provides bindings and a public API over posix_spawn (it's not complete yet, but if there's stuff missing, feel free to fil

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Alex Gaynor
New submission from Alex Gaynor: This makes things slower than they need to be (yes, even on CPython :-)), and is slightly confusing since usually inner classes are only used when a closure is needed. Attached patch simply moves the class definition. -- components: Library (Lib

[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Alex Gaynor
Alex Gaynor added the comment: I think this is likely to make timeit less representative of how code actually performs in the real world on systems with a JIT. This is because of the cost of sequential operations is not strictly "additive" on PyPy. If you have statements `a` and `b

[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Alex Gaynor
Changes by Alex Gaynor : -- keywords: +needs review ___ Python tracker <http://bugs.python.org/issue21990> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Alex Gaynor
New submission from Alex Gaynor: This can be seen at https://docs.python.org/3.4/library/ssl.html#ssl.SSLContext.check_hostname It looks like the colon should be omitted, and the next line un-indented. -- assignee: docs@python components: Documentation keywords: easy messages: 223291

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread Alex Gaynor
New submission from Alex Gaynor: http://hg.python.org/cpython/file/2.7/Objects/unicodeobject.c#l840 Specifically it calls "PyObject_Str", which will return a PyStringObject * (cast to a PyObject *), and then calls "PyUnicode_GET_SIZE", which is of course totally incor

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread Alex Gaynor
Alex Gaynor added the comment: It's worth noting that this function is replete with incorrect assumptions about unicode vs. strings that came from the backport, the one I initially pointed out was merely the first. The motivation for this issue is the SSL module backport (issue21308) fo

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-21 Thread Alex Gaynor
Alex Gaynor added the comment: Hi Victor, thanks for working on this. I don't know the Unicode codebase that well, but this looks like an obvious improvement to me (much less broken :-)). -- ___ Python tracker <http://bugs.python.org/is

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Reviewed more closely today, I think the docs probably need updating, but otherwise this LGTM, massive improvement! Thanks! -- ___ Python tracker <http://bugs.python.org/issue22

[issue22023] PyUnicode_FromFormat is broken on python 2

2014-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: I've tested in my local dev with my SSL patches applied, and I've confirmed that it fixes the segfaults. -- ___ Python tracker <http://bugs.python.o

[issue21308] PEP 466: backport ssl changes

2014-07-24 Thread Alex Gaynor
Alex Gaynor added the comment: The attached patch (drafted by myself, and David Reid) backports all of the SSL module (and tests!!!) to Python 2.7. All tests pass on my machine (OS X 10.9), I haven't tested against other platforms. I /suspect/ the best way to review this patch will

[issue21308] PEP 466: backport ssl changes

2014-07-25 Thread Alex Gaynor
Alex Gaynor added the comment: New version of this patch fixes a bunch of versionadded and changeds in the docs that referred to the wrong version. -- Added file: http://bugs.python.org/file36089/ssl-backport.diff ___ Python tracker <h

[issue22070] Use the _functools module to speed up functools.total_ordering

2014-07-25 Thread Alex Gaynor
Alex Gaynor added the comment: If you're going to fix the semantics of the method lookup to go via the type, can you please do that for the pure python version as well? When the C and Python versions diverge on semantics, it becomes a real pain for alternate implementations whic

[issue22072] Fix typos in SSL's documentation

2014-07-25 Thread Alex Gaynor
New submission from Alex Gaynor: Attached patch fixes a pair of typos. -- assignee: docs@python components: Documentation files: ssl-docs.diff keywords: easy, needs review, patch messages: 223982 nosy: alex, docs@python priority: normal severity: normal status: open title: Fix typos in

[issue22073] Reference links in PEP466 are broken

2014-07-25 Thread Alex Gaynor
New submission from Alex Gaynor: Specifically, the links in the "Acknowledgements" section http://legacy.python.org/dev/peps/pep-0466/#acknowledgements -- messages: 223985 nosy: alex, ncoghlan priority: normal severity: normal status: open title: Reference links in PEP466

[issue21308] PEP 466: backport ssl changes

2014-07-25 Thread Alex Gaynor
Alex Gaynor added the comment: Try #3: This fixes a bug with NPN (I hadn't tested with an OpenSSL that supports NPN, I have now), and cherry-picks the typo fixes from 967311e6c0d2 -- Added file: http://bugs.python.org/file36092/ssl-backport

[issue22074] Lib/test/make_ssl_certs.py fails with NameError

2014-07-25 Thread Alex Gaynor
New submission from Alex Gaynor: This is on default: $ python3 Lib/test/make_ssl_certs.py creating cert for localhost Generating a 1024 bit RSA private key .++ ++ writing new private key to '/var/folde

[issue22074] Lib/test/make_ssl_certs.py fails with NameError

2014-07-25 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker <http://bugs.python.org/issue22074> ___ ___

[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

2014-07-26 Thread Alex Gaynor
Alex Gaynor added the comment: Personally I don't think it is (or should) be against policy to change reprs, there's not really any way to improve them otherwise. That said, my excitement level about this issue is pretty low, so I won't argue

[issue21308] PEP 466: backport ssl changes

2014-07-26 Thread Alex Gaynor
Alex Gaynor added the comment: New patch cherry pick's the fix from issue22074. -- Added file: http://bugs.python.org/file36113/ssl-backport.diff ___ Python tracker <http://bugs.python.org/is

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2014-07-26 Thread Alex Gaynor
Alex Gaynor added the comment: Yup. -- ___ Python tracker <http://bugs.python.org/issue22079> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21308] PEP 466: backport ssl changes

2014-07-27 Thread Alex Gaynor
Alex Gaynor added the comment: Ned, did you apply the patch from http://bugs.python.org/issue22023 first? That bt looks like what you'd see without it. -- ___ Python tracker <http://bugs.python.org/is

[issue21308] PEP 466: backport ssl changes

2014-07-28 Thread Alex Gaynor
Alex Gaynor added the comment: Investigations: The test_poplib failures are caused by the backporting of http://bugs.python.org/issue20951, does anyone have opinions on whether we should backport Antoine's fix for poplib, or revert that particular change? I'm not sure how t

[issue21308] PEP 466: backport ssl changes

2014-07-28 Thread Alex Gaynor
Alex Gaynor added the comment: Latest patch makes the needed change to Makefile.pre.in -- Added file: http://bugs.python.org/file36142/ssl-backport.diff ___ Python tracker <http://bugs.python.org/issue21

[issue22131] uuid.bytes optimization

2014-08-03 Thread Alex Gaynor
Alex Gaynor added the comment: `self.int.to_bytes(16, byteorder='big')` looks to be even faster (about 3x on my machine) -- nosy: +alex ___ Python tracker <http://bugs.python.o

[issue22131] uuid.bytes optimization

2014-08-03 Thread Alex Gaynor
Changes by Alex Gaynor : -- versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue22131> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22131] uuid.bytes optimization

2014-08-03 Thread Alex Gaynor
Alex Gaynor added the comment: What I said only applies to the Python3 version of this patch. Thanks for submitting this. -- ___ Python tracker <http://bugs.python.org/issue22

[issue21308] PEP 466: backport ssl changes

2014-08-04 Thread Alex Gaynor
Alex Gaynor added the comment: Latest patch does as Donald suggests and rolls back the WantWrite changes, fixing poplib. -- Added file: http://bugs.python.org/file36255/ssl-backport.diff ___ Python tracker <http://bugs.python.org/issue21

[issue22146] Error message for __build_class__ contains typo

2014-08-05 Thread Alex Gaynor
Alex Gaynor added the comment: Patch LGTM. -- nosy: +alex versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue22146> ___ ___ Python-bugs-list m

[issue22160] Windows installers need to be updated following OpenSSL security reelase

2014-08-06 Thread Alex Gaynor
New submission from Alex Gaynor: https://www.openssl.org/news/secadv_20140806.txt -- components: Interpreter Core, Library (Lib) keywords: security_issue messages: 224976 nosy: alex, benjamin.peterson, steve.dower priority: normal severity: normal status: open title: Windows installers

[issue21308] PEP 466: backport ssl changes

2014-08-06 Thread Alex Gaynor
Alex Gaynor added the comment: I've been doing this work in a git repo, do you know how to generate an hg-formated diff with git? -- ___ Python tracker <http://bugs.python.org/is

[issue21308] PEP 466: backport ssl changes

2014-08-07 Thread Alex Gaynor
Alex Gaynor added the comment: New patch should be in the "mercurial" diff format. -- Added file: http://bugs.python.org/file36301/ssl-backport.diff ___ Python tracker <http://bugs.python.o

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-08-10 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue22181> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21308] PEP 466: backport ssl changes

2014-08-18 Thread Alex Gaynor
Alex Gaynor added the comment: Thanks for testing this out Robert! The attached patch fixes the error you saw. -- Added file: http://bugs.python.org/file36407/ssl-backport.diff ___ Python tracker <http://bugs.python.org/issue21

[issue22229] wsgiref doesn't appear to ever set REMOTE_HOST in the environ

2014-08-19 Thread Alex Gaynor
New submission from Alex Gaynor: Based on a reading of the code: https://github.com/python/cpython/blob/master/Lib/wsgiref/simple_server.py#L88-L90 is where REMOTE_HOST is set. However, `address_string` always returns `self.client_address[0]` (https://github.com/python/cpython/blob/master

[issue21308] PEP 466: backport ssl changes

2014-08-19 Thread Alex Gaynor
Alex Gaynor added the comment: New patch additionally backports the Tools/ssl/ directory from Python3, which has two utilities for generating some of the code used. Thanks to Benjamin for catching this. -- Added file: http://bugs.python.org/file36418/ssl-backport.diff

[issue21308] PEP 466: backport ssl changes

2014-08-19 Thread Alex Gaynor
Alex Gaynor added the comment: Last version had some stray stuff due to the fact that I don't know how to use version control. New version should resolve that. -- Added file: http://bugs.python.org/file36419/ssl-backport.diff ___ Python tr

[issue21308] PEP 466: backport ssl changes

2014-08-19 Thread Alex Gaynor
Alex Gaynor added the comment: On what platform? -- ___ Python tracker <http://bugs.python.org/issue21308> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21308] PEP 466: backport ssl changes

2014-08-20 Thread Alex Gaynor
Alex Gaynor added the comment: Latest patch fixes both the issues Benjamin noted. -- Added file: http://bugs.python.org/file36423/ssl-backport.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21308] PEP 466: backport ssl changes

2014-08-21 Thread Alex Gaynor
Alex Gaynor added the comment: Thanks for the report, I've filed: http://bugs.python.org/issue22244 to track that issue. -- ___ Python tracker <http://bugs.python.org/is

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-21 Thread Alex Gaynor
New submission from Alex Gaynor: Details of the issue are here: http://bugs.python.org/msg225613 I'm not sure what the correct API to use is there, perhaps the encoding can be folded into the PyArg_ParseTupleAndKeywords() call. -- components: Extension Modules messages: 225614

[issue21307] PEP 466: backport hashlib changes

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Uploaded patch adds the algorithm availability constants to the hashlib module. -- components: +Extension Modules keywords: +needs review, patch Added file: http://bugs.python.org/file36436/backport-hashlib.diff

[issue21305] PEP 466: update os.urandom

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch backports the persistent FD for urandom. -- components: +Extension Modules, Interpreter Core keywords: +needs review, patch Added file: http://bugs.python.org/file36437/backport-urandom.diff ___ Python

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch resolves the issue, includes a test. -- keywords: +needs review, patch Added file: http://bugs.python.org/file36438/t22244.diff ___ Python tracker <http://bugs.python.org/issue22

[issue21307] PEP 466: backport hashlib changes

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: New patch uses PyString_FromString. To the other two points: 1) Python3 uses a mutable set for both of these, any reason for Python2 to be inconsistent? 2) The docs in Python3 don't have this link either, I'm trying to minimize the delta; if you t

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Unfortunately no, the API accepts explicit Nones (in addition to simply not passing the argument), and et errors on those. -- ___ Python tracker <http://bugs.python.org/issue22

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: It's not clear to me that that's better, and it makes the diff with the Python3 version larger. -- ___ Python tracker <http://bugs.python.o

[issue22244] load_verify_locations fails to handle unicode paths on Python 2

2014-08-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch adds an additional test for a more interesting unicode path. -- Added file: http://bugs.python.org/file36441/t22244.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22265] fix reliance on refcounting in test_itertools

2014-08-24 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue22265> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22266] fix reliance on refcounting in tarfile.gzopen

2014-08-24 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue22266> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22267] fix reliance on refcounting in test_weakref

2014-08-24 Thread Alex Gaynor
Alex Gaynor added the comment: Perhaps these should use the gc_collect function in test_support? -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue22

[issue18530] posixpath.ismount performs extra lstat calls

2014-08-25 Thread Alex Gaynor
Alex Gaynor added the comment: Ok, this was landed, 3.3 is no longer open so closing this. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue20994] Disable TLS Compression

2014-08-25 Thread Alex Gaynor
Alex Gaynor added the comment: Pinging on this, since the SSL backport landed, concerns about an inability to change this behavior on python2 are no longer there. At a minimum I think we should include this flag in the default and stdlib contexts

[issue21965] Add support for Memory BIO to _ssl

2014-08-25 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue21965> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21305] PEP 466: update os.urandom

2014-08-28 Thread Alex Gaynor
Alex Gaynor added the comment: This patch adds the finalizer to the backport -- not sure how I missed this the first time. -- Added file: http://bugs.python.org/file36496/backport-urandom.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21305] PEP 466: update os.urandom

2014-08-28 Thread Alex Gaynor
Alex Gaynor added the comment: Victor -- new patch is in `hg` format. -- Added file: http://bugs.python.org/file36497/backport-urandom.diff ___ Python tracker <http://bugs.python.org/issue21

[issue20996] Backport TLS 1.1 and 1.2 support for ssl_version

2014-08-28 Thread Alex Gaynor
Alex Gaynor added the comment: This is resolved now. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2014-08-29 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch fixes this up. -- keywords: +needs review, patch nosy: +alex Added file: http://bugs.python.org/file36505/t22301.diff ___ Python tracker <http://bugs.python.org/issue22

[issue20421] expose SSL socket protocol version

2014-09-04 Thread Alex Gaynor
Alex Gaynor added the comment: Should this be backported to 2.7.9? -- ___ Python tracker <http://bugs.python.org/issue20421> ___ ___ Python-bugs-list mailin

[issue20421] expose SSL socket protocol version

2014-09-04 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch backports it (only change is the use of `closing()` and resolving the conflict in Misc/NEWS). I'll leave it up to benjamin whether he wants to commit (input from others welcome). My view is to prefer backporting stuff since it helps keep the

[issue22131] uuid.bytes optimization

2014-09-06 Thread Alex Gaynor
Alex Gaynor added the comment: Patch looks good to me. -- ___ Python tracker <http://bugs.python.org/issue22131> ___ ___ Python-bugs-list mailing list Unsub

[issue22365] SSLContext.load_verify_locations(cadata) does not accept CRLs

2014-09-08 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker <http://bugs.python.org/issue22

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-08 Thread Alex Gaynor
New submission from Alex Gaynor: Instead of the ca* arguments it currently takes, these can all be encapsulated into an SSLContext argument, which the underlying http.client already supports. -- components: Library (Lib) messages: 226594 nosy: alex, christian.heimes, dstufft

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-08 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch against the default branch adds support for this. -- keywords: +needs review, patch Added file: http://bugs.python.org/file36573/urlopen-context.diff ___ Python tracker <http://bugs.python.org/issue22

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-08 Thread Alex Gaynor
Alex Gaynor added the comment: Added a versionchanged directive to the docs. -- Added file: http://bugs.python.org/file36576/urlopen-context.diff ___ Python tracker <http://bugs.python.org/issue22

<    1   2   3   4   5   >