[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
New submission from Alex Gaynor: CACert is not in the root trust store on *any* platform that I'm aware of, and has not passed any audits. See http://lwn.net/SubscriberLink/590879/ce23ed7bab68e489/ for more background. In it's place I've added StartSSL, which is included in m

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Changes by Alex Gaynor : -- versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue21043> ___ ___ Python-bugs-list mailin

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Alex Gaynor added the comment: I've attempted to modernize the paragraph. -- Added file: http://bugs.python.org/file34599/cacert.diff ___ Python tracker <http://bugs.python.org/is

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Alex Gaynor added the comment: Removed 2.7 since there's no API for getting the platform certs. -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/is

[issue21043] Stop reccomending CACert.org in the SSL documentation

2014-03-23 Thread Alex Gaynor
Changes by Alex Gaynor : Added file: http://bugs.python.org/file34600/cacert.diff ___ Python tracker <http://bugs.python.org/issue21043> ___ ___ Python-bugs-list mailin

[issue21074] Too aggressive constant folding

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

[issue21101] Extend the PyDict C API to handle cases where the hash value in known

2014-03-30 Thread Alex Gaynor
Alex Gaynor added the comment: Would it be reasonable to develop a Python API for this? If C functions have a need to do this, surely Python code does as well. -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue21

[issue21104] Read from file aborted

2014-03-30 Thread Alex Grinko
New submission from Alex Grinko: When reading from text file on Windows Python ends loop on character 0x1A sample.py: number = 0 with open("sample.txt",'r') as f: for line in f: number += 1 print line print "File has 8 lines, but Python

[issue21105] functools.partialmethod example doesn't actually work

2014-03-30 Thread Alex Gaynor
New submission from Alex Gaynor: Specifically the example at: https://docs.python.org/3/library/functools.html?highlight=functools#functools.partialmethod ``_alive`` isn't actually assigned before the example tries to read it. Running this code at a for-real REPL results in: >>&

[issue21104] Read from file aborted

2014-03-30 Thread Alex Grinko
Changes by Alex Grinko : -- resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/issue21104> ___ ___ Python-bugs-

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Alex Gaynor
Alex Gaynor added the comment: d[key] += 1 still does two dict lookups, and invokes the hash function twice: >>> class X(object): ... def __hash__(self): ... print "hashed" ... return 0 ... def __eq__(self, other): ... return True ... >>> d = {X(): 0

[issue21190] Broken download link on README for CPython docs

2014-04-09 Thread Alex Gaynor
Alex Gaynor added the comment: It looks like https://docs.python.org/3/download.html (and I suppose the 2.x variant) are the right URLs to use this. -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue21

[issue18262] ZipInfo.external_attr are not documented

2014-04-14 Thread Alex Lord
Alex Lord added the comment: Here's a documentation patch for 2.7 that informs the users that Zipfile.extra and Zipfile.extraall don't save permissions and that Zipfile.writestr will use ZipInfo.extra_attr or default to chmod permission set of 0600. -- keywords: +

[issue18262] ZipInfo.external_attr are not documented

2014-04-14 Thread Alex Lord
Alex Lord added the comment: And here's the 3.4 and 3.5 patch -- Added file: http://bugs.python.org/file34859/Issue18262_34_35.patch ___ Python tracker <http://bugs.python.org/is

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-04-14 Thread Alex Gaynor
New submission from Alex Gaynor: This will assist in porting applications from Python2 to Python3. -- files: old-style-classes.diff keywords: patch messages: 216273 nosy: alex priority: normal severity: normal status: open title: Issue a python 3 warning when old style classes are

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Alex Lord
New submission from Alex Lord: In Lib/sqlite3/tests/dbapi.py there are no unit tests which test out sqlite3's 'insert or [algorithm].' These algorithms are also referred to as SQL 'insert on conflict.' More details at, https://www.sqlite.org/lang_conflict.html Not ha

[issue21252] Lib/asyncio/events.py has tons of docstrings which are just "XXX"

2014-04-16 Thread Alex Gaynor
New submission from Alex Gaynor: It would be nice if these said something useful. (http://hg.python.org/cpython/file/default/Lib/asyncio/events.py) -- components: Library (Lib) messages: 216478 nosy: alex priority: normal severity: normal status: open title: Lib/asyncio/events.py has

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2014-04-16 Thread Alex Lord
Alex Lord added the comment: Yes, I'm going to work on one after I fix Issue16864 today. -- ___ Python tracker <http://bugs.python.org/issue21250> ___ ___

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2014-04-17 Thread Alex Lord
Alex Lord added the comment: Have a unit test that replicates this bug. Working on the C code to fix it right now. -- nosy: +Alex.Lord ___ Python tracker <http://bugs.python.org/issue16

[issue21288] hashlib.pbkdf2_hmac Hash Constructor

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

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2014-04-17 Thread Alex Lord
Alex Lord added the comment: Patch that fixes Issue16864. Follows Jim Minters suggestion. Unit test will reproduce the issue without the c modifications. C modifications fix the issue. -- keywords: +patch Added file: http://bugs.python.org/file34953/Issue16864_py35.patch

[issue21304] Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
New submission from Alex Gaynor: Pursuant to PEP466, this is a backport of Python 3.4's hashlib.pbkdf2_hmac. Of note in this patch: * None of the utilities for testing both a python and a C implementation simultaneously were present, so this only tests whichever implementation is avai

[issue21304] Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +christian.heimes, dstufft, ncoghlan ___ Python tracker <http://bugs.python.org/issue21304> ___ ___ Python-bugs-list mailin

[issue21307] PEP 466: backport hashlib changes

2014-04-18 Thread Alex Gaynor
Alex Gaynor added the comment: issue21304 has the implementation of the PBKDF2 work. -- ___ Python tracker <http://bugs.python.org/issue21307> ___ ___ Python-bug

[issue21304] Backport hashlib.pbkdf2_hmac to Python 2.7

2014-04-18 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +benjamin.peterson, pitrou ___ Python tracker <http://bugs.python.org/issue21304> ___ ___ Python-bugs-list mailing list Unsub

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

2014-04-18 Thread Alex Gaynor
Alex Gaynor added the comment: Yup, I've got my eyes on it, if anything lands there I'll include it in this in the 2.7 code, whether it's before or after this patch lands :-) -- ___ Python tracker <http://bugs.pyt

[issue21305] PEP 466: update os.urandom

2014-04-19 Thread Alex Gaynor
Alex Gaynor added the comment: It's not a security issue per-se, but if you're doing many small reads, there's such an enormous performance and scalability difference that if users run into an issue, they're likely to work around it by using a non-CS PRNG, and compromisi

[issue21207] urandom persistent fd - not re-openned after fd close

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

[issue21317] Home page certificate troubles

2014-04-20 Thread Alex Gaynor
Alex Gaynor added the comment: The infra team is looking into this, and I believe it should be fixed by now. (None of the infra people really are on this issue tracker, so I'm closing this, sorry :-/) -- nosy: +alex resolution: -> fixed status: open -

[issue21306] PEP 466: backport hmac.compare_digest

2014-04-22 Thread Alex Gaynor
Alex Gaynor added the comment: Design question here: compare_digest on Python 3 supports comparing str (text) objects, if they're both ascii-only. This feature is provided, primarily, so you can compare hexdigests or similar. Should the Python 2 version support comparing unicodes? Argu

[issue21306] PEP 466: backport hmac.compare_digest

2014-04-22 Thread Alex Gaynor
Alex Gaynor added the comment: encode("ascii") has data dependent branches, so it's to be avoided. -- ___ Python tracker <http://bugs.pyt

[issue21306] PEP 466: backport hmac.compare_digest

2014-04-22 Thread Alex Gaynor
Alex Gaynor added the comment: Thanks Nick. I'll get a patch up for str (bytes) only this afternoon. -- ___ Python tracker <http://bugs.python.org/is

[issue21306] PEP 466: backport hmac.compare_digest

2014-04-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch implements compare_digest. Code is mostly a 1-1 from 3.x, except the Unicode paths are changed, and the tests are a tiny bit different. * Still needs to backport the docs. * Compares all unicode objects, not just ascii ones. If the patch looks

[issue20995] Use Better Default Ciphers for the SSL Module

2014-04-23 Thread Alex Gaynor
Alex Gaynor added the comment: It would be great if we could rely on OpenSSL's ordering. It would be seriously fantastic. OpenSSL is best positioned to be able to do the right things, it's updated at the right times. It should be where we do this. Unfortunately the OpenSSL mainta

[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

[issue16579] .pyw disturb multiprocessing behavior

2012-11-29 Thread Alex stein
New submission from Alex stein: I made a software synchronizing every 2 seconds files from the network through SSH using Paramiko library. The software works normally on Linux and Windows 32 and 64 bits (never tried on Mac). At the office, I use Windows XP 32 bits: By comfort I made a link

[issue16579] .pyw disturb multiprocessing behavior

2012-12-03 Thread Alex stein
Alex stein added the comment: It seems like you’re right. I redirect the sys.stdout and the problem is solved. Thank you for your help. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[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

[issue19796] urllib2.HTTPError.reason is not documented as "Added in 2.7"

2013-11-26 Thread Alex Willmer
New submission from Alex Willmer: issue13211 added a .reason attribute to urllib2.HTTPError in Python 2.7, issue16634 documented it (http://hg.python.org/cpython/rev/deb60efd32eb). The documentation for Python 2.7 doesn't mention that this attribute was added in that release. This (at

[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

<    7   8   9   10   11   12   13   14   15   16   >