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
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
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
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
Changes by Alex Gaynor :
Added file: http://bugs.python.org/file34600/cacert.diff
___
Python tracker
<http://bugs.python.org/issue21043>
___
___
Python-bugs-list mailin
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue21074>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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:
>>&
Changes by Alex Grinko :
--
resolution: -> works for me
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue21104>
___
___
Python-bugs-
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
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
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: +
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
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
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
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
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>
___
___
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue21288>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Alex Gaynor :
--
nosy: +christian.heimes, dstufft, ncoghlan
___
Python tracker
<http://bugs.python.org/issue21304>
___
___
Python-bugs-list mailin
Alex Gaynor added the comment:
issue21304 has the implementation of the PBKDF2 work.
--
___
Python tracker
<http://bugs.python.org/issue21307>
___
___
Python-bug
Changes by Alex Gaynor :
--
nosy: +benjamin.peterson, pitrou
___
Python tracker
<http://bugs.python.org/issue21304>
___
___
Python-bugs-list mailing list
Unsub
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
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue21207>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 -
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
Alex Gaynor added the comment:
encode("ascii") has data dependent branches, so it's to be avoided.
--
___
Python tracker
<http://bugs.pyt
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
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
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
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue21470>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue20115>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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:
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
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
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
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue21569>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue21671>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue20188>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue14621>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16575>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16576>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16612>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16619>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
Nick, None was a constant even in 2k
--
___
Python tracker
<http://bugs.python.org/issue16619>
___
___
Python-bugs-list mailin
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16651>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
A lot of builtins :)
--
___
Python tracker
<http://bugs.python.org/issue16651>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16894>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue16991>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
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
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
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue19904>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Alex Gaynor added the comment:
Test looks reasonable to me.
--
___
Python tracker
<http://bugs.python.org/issue21923>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
Changes by Alex Gaynor :
--
keywords: +needs review
___
Python tracker
<http://bugs.python.org/issue21990>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Alex Gaynor :
--
nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
___
Python tracker
<http://bugs.python.org/issue22074>
___
___
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
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
Alex Gaynor added the comment:
Yup.
--
___
Python tracker
<http://bugs.python.org/issue22079>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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
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
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
Changes by Alex Gaynor :
--
versions: +Python 3.5
___
Python tracker
<http://bugs.python.org/issue22131>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
1101 - 1200 of 1613 matches
Mail list logo