[issue16991] Add OrderedDict written in C

2015-05-29 Thread Wes Turner

Wes Turner added the comment:

 * Would this make it easy/faster to also have a DefaultOrderedDict (which
can/could also be accomplished with .get(attr, []) and .setdefault ?
On May 29, 2015 2:39 PM, Eric Snow rep...@bugs.python.org wrote:


 Eric Snow added the comment:

 Planning on committing today after I address some review comments.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue16991
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16991] Add OrderedDict written in C

2014-12-17 Thread Wes Turner

Wes Turner added the comment:

* Macros could be useful.
* Would this make it easy/faster to also have a DefaultOrderedDict (which 
can/could also be accomplished with .get(attr, []) and .setdefault(attr, [])?
* There may be some value in looking at 
https://pypi.python.org/pypi/cyordereddict
* (I'm really not qualified to review this. Valgrind?)

--
nosy: +westurner

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16692] Support TLS 1.1 and TLS 1.2

2013-08-04 Thread Wes Turner

Wes Turner added the comment:

http://docs.python.org/3.4/whatsnew/3.4.html#ssl

re: Backporting to Python 2.7: maybe something like:

backports.ssl (like backports.ssl_match_hostname)

https://pypi.python.org/pypi/backports/

--
nosy: +westurner

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18511] random.shuffle could be faster

2013-07-19 Thread Wes Turner

New submission from Wes Turner:

random.shuffle [1][2] could be faster. 

``xrange(10,1,-1)`` is faster than ``reversed(xrange(1,10))``.

[1] http://hg.python.org/cpython/file/v3.3.2/Lib/random.py#l254
[2] http://hg.python.org/cpython/file/v2.7.5/Lib/random.py#l276

--
components: Library (Lib)
files: random-shuffle_v2.7.5_timeit.py
messages: 193388
nosy: westurner
priority: normal
severity: normal
status: open
title: random.shuffle could be faster
type: performance
versions: 3rd party, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file30983/random-shuffle_v2.7.5_timeit.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18511
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18511] random.shuffle could be faster

2013-07-19 Thread Wes Turner

Wes Turner added the comment:

Added patch to random.shuffle for trunk

--
Added file: http://bugs.python.org/file30985/random-shuffle_trunk.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18511
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18511] random.shuffle could be faster

2013-07-19 Thread Wes Turner

Wes Turner added the comment:

Added patch to random.shuffle for v2.7.5

--
keywords: +patch
Added file: http://bugs.python.org/file30984/random-shuffle_v2.7.5.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18511
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com