[issue34270] Add names to asyncio tasks

2018-08-09 Thread Alex Grönholm
Alex Grönholm added the comment: Which way do we want to change this? Do we want to convert to pure strings or retain the original object? In the latter case both the C and Python implementations (including set_name()) have to be changed

[issue34270] Add names to asyncio tasks

2018-08-09 Thread Alex Grönholm
Alex Grönholm added the comment: > On the other had, the matter is made moot by using PyUnicode_CheckExact() Then, in order to keep the pure Python implementation in sync, we'd have to change it to something like this: if name is None: self._name = f'Task-{_task_name_cou

[issue34270] Add names to asyncio tasks

2018-08-09 Thread Alex Grönholm
Alex Grönholm added the comment: > Please just change PyUnicode_Check to PyUnicode_CheckExact in C Task.__init__ > and use the same if check in C Task.set_name. I'll do that if you say so, but I'm just saying that the C and Python implementations will still remain different i

[issue34270] Add names to asyncio tasks

2018-08-09 Thread Alex Grönholm
Alex Grönholm added the comment: > I'll do that if you say so, but I'm just saying that the C and Python implementations will still remain different in semantics then. Never mind, that was a brain fart. I keep ignoring the &

[issue34270] Add names to asyncio tasks

2018-08-09 Thread Alex Grönholm
Change by Alex Grönholm : -- pull_requests: +8202 ___ Python tracker <https://bugs.python.org/issue34270> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Alex Mashianov
New submission from Alex Mashianov : This code: class A: a = 1 b = {str(x): x for x in range(5) if x != a} Produces following error: Traceback (most recent call last): File "", line 1, in File "", line 3, in A File "", line 3, in NameError: nam

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Alex Mashianov
Alex Mashianov added the comment: Update: any class definition comprehension referencing local variables inside filtering block produces this error. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Alex Mashianov
Change by Alex Mashianov : -- versions: +Python 3.6 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue34517> ___ ___ Python-bugs-list mailin

[issue34889] int.to_bytes and int.from_bytes should default to the system byte order like the struct module does

2018-10-03 Thread Alex Henrie
New submission from Alex Henrie : When serializing a single integer, int.to_bytes and int.from_bytes are more efficient alternatives to struct.pack and struct.unpack. However, struct.pack and struct.unpack currently have the advantage that the byteorder does not have to be specified (because

[issue34889] int.to_bytes and int.from_bytes should default to the system byte order like the struct module does

2018-10-03 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +9081 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34889> ___ ___ Py

[issue34954] Getting an email's subject is error-prone

2018-10-10 Thread Alex Corcoles
New submission from Alex Corcoles : Hi, This is something that has hit us a few times, as we write a significant quantity of software which parses email messages. The thing is, we use email.header.decode_header to decode the Subject: header and it is pretty common for headers to be word

[issue34954] Getting an email's subject is error-prone

2018-10-10 Thread Alex Corcoles
Alex Corcoles added the comment: To clarify (and maybe help someone which might come across), you mean: In [1]: message_text = """To: a...@corcoles.net ...: Subject: ** ACKNOWLEDGEMENT Host Alert: archerc7.bcn.int.pdp7.net is DOWN ...: ** ...: User-Agent: Heirloom ma

[issue34954] Getting an email's subject is error-prone

2018-10-11 Thread Alex Corcoles
Alex Corcoles added the comment: Well, I think that having to choose the "HTTP" policy to get a message subject's without newlines goes against the expectations of anyone who is not well knowledgeable of email. It's not very easy to deduct that, out of all the availab

[issue34954] Getting an email's subject is error-prone

2018-10-11 Thread Alex Corcoles
Alex Corcoles added the comment: Duh, I'm an idiot, I only tested policy.HTTP and *NOT* supplying a policy (which I believed was equivalent to using policy.default). policy.default and policy.SMTP do indeed produce a newline-less subject indeed. I only tested policy.HTTP because the

[issue35058] Unable to Install Python on Windows

2018-10-24 Thread Alex Bach
New submission from Alex Bach : So I had to learn Python this semester and eventually I followed an online tutorial to install python on Windows 7 (64 bit). But during the installation, I got the error: 0x80070643: Failed to Install MSI Package: What's wrong with the installation? I

[issue35058] Unable to Install Python on Windows

2018-10-24 Thread Alex Bach
Alex Bach added the comment: Hi, I downloaded through this link. https://www.python.org/ftp/python/3.7.1/python-3.7.1.exe Also, I couldn't find any file related to Python in the Temp Folder but I've still attached the screenshot in case it helps. -- Added f

[issue35058] Unable to Install Python on Windows

2018-10-24 Thread Alex Bach
Alex Bach added the comment: Hi Michael, Thanks for reaching out. Let me try these links. -- ___ Python tracker <https://bugs.python.org/issue35058> ___ ___

[issue35058] Unable to Install Python on Windows

2018-10-26 Thread Alex Bach
Alex Bach added the comment: Hi Sorry for replying so late, I couldn't find the right method to use on this website. Also Steve, if I download some old version of python, would it support the latest functions that I need to learn this sem

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Alex Gaynor
Change by Alex Gaynor : -- nosy: +alex ___ Python tracker <https://bugs.python.org/issue35214> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Alex Gaynor
Alex Gaynor added the comment: All libraries that are linked against, including libc, need to be compiled with MSAN. MSAN is not for the faint of heart. -- ___ Python tracker <https://bugs.python.org/issue35

[issue18116] getpass.getpass() triggers ResourceWarning

2013-06-01 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch should fix this issue. -- keywords: +patch nosy: +alex Added file: http://bugs.python.org/file30442/issue18116.diff ___ Python tracker <http://bugs.python.org/issue18

[issue18116] getpass.getpass() triggers ResourceWarning

2013-06-01 Thread Alex Gaynor
Alex Gaynor added the comment: Are you sure you applied it correctly? With and without: Alexanders-MacBook-Pro:cpython alex_gaynor$ ./python.exe x.py What's up? Alexanders-MacBook-Pro:cpython alex_gaynor$ hg revert --all --no-backup reverting Lib/getpass.py Alexanders-MacBook-Pro:cp

[issue18156] Add an 'attr' attribute to AttributeError

2013-06-07 Thread Alex Gaynor
Alex Gaynor added the comment: +1 on this, but it's worth noting that that fix is not 100% correct (though it's obviously better than most existing equivilants), it's potentially wrong with custom __getattr__, __getattribute__, descriptors. ---

[issue18217] Deprecate and remove gettext.install

2013-06-14 Thread Alex Gaynor
New submission from Alex Gaynor: There's a myriad of reasons it's a bad idea: * Makes code harder to read * Doesn't play nicely with multiple projects using gettext * Defeats any attempt at static analysis * etc... -- messages: 191152 nosy: alex priority: normal severity

[issue18217] Deprecate and remove gettext.install

2013-06-14 Thread Alex Gaynor
Alex Gaynor added the comment: I'm not sure I understand the question. What `install()` does is set `__builtins__._` to be gettext. I think people should import the gettext function they need. -- ___ Python tracker <http://bugs.py

[issue18217] Deprecate and remove gettext.install

2013-06-14 Thread Alex Gaynor
Alex Gaynor added the comment: I think the code makes what this does much clearer: http://hg.python.org/cpython/file/01da7bf11ca1/Lib/gettext.py#l209 There's no reason you can't make your own translation object, and expose it's gettext method as as your API, and then you

[issue18225] ctypes Structure data size is incorrect

2013-06-15 Thread Alex Gaynor
Alex Gaynor added the comment: This is how padding works in the C ABI, not a bug. -- nosy: +alex resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue17840] base64_codec uses assert for runtime validity checks

2013-07-06 Thread Alex Henderson
Alex Henderson added the comment: I see that there is identical usage of "assert errors=='strict'" in a number of similar encodings modules: base64_codec.py bz2_codec.py hex_codec.py quopri_codec.py uu_codec.py zlib_codec.py The error handling mode is irrelevant for all

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Alex Henderson
Alex Henderson added the comment: I have attached a proposed patch. This makes some design decisions which I would like someone to review: a) To incorporate pretty-printing into the main write() method rather than adding a separate toprettyxml() method. Disadvantages: greater complexity of

[issue17840] base64_codec uses assert for runtime validity checks

2013-07-07 Thread Alex Henderson
Alex Henderson added the comment: Having discussed this with Ezio, I think the better option might be to raise ValueError instead - if someone is expecting to be able to silently recover from errors they won't be able to, and should find out about this sooner rather than later. I'll

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Alex Henderson
Alex Henderson added the comment: One other design decision - currently it doesn't deal with the indentation of comments or processing instructions: it leaves them unindented. Should they be indented the same as other tags? -- ___ Python tr

[issue17840] base64_codec uses assert for runtime validity checks

2013-07-12 Thread Alex Henderson
Alex Henderson added the comment: OK, now raises ValueError on passing anything other than 'strict'. Note that for the incremental classes I've put checking in __init__ so that ValueError is raised when non-'strict' values are passed to the constructor, not when the

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
New submission from Alex Gaynor: Right now it calls islink(), which does an lstat, and then does its own lstat on the same path. This can be optimized by inlining the body of islink and reusing the stat result. (This has been identified as an actual issue in openstack-swift https

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached is a simple first pass at a diff against 2.7, shoudl be easy to port it to default. -- keywords: +patch Added file: http://bugs.python.org/file31010/ismount.diff ___ Python tracker <http://bugs.python.

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Addresses the review comments: returns to catching all oserrors -- Added file: http://bugs.python.org/file31011/ismount.diff ___ Python tracker <http://bugs.python.org/issue18

[issue18530] posixpath.ismount performs extra lstat calls

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch is against default. I don't have my ssh keys set up for this machine, so if someone else could land I'd be appreciative :) (Not sure if this qualifies for a backport) -- Added file: http://bugs.python.org/file31012/ismou

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2013-07-22 Thread Alex Gaynor
Alex Gaynor added the comment: I'll confirm that PyPy raises a KeyError on the format() code. -- nosy: +alex ___ Python tracker <http://bugs.python.org/is

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2013-08-05 Thread Alex Henderson
Alex Henderson added the comment: Proposed patch copied over from duplicate issue 17372. -- keywords: +patch nosy: +alex.henderson Added file: http://bugs.python.org/file31168/issue14465.patch ___ Python tracker <http://bugs.python.org/issue14

[issue18719] Remove false optimizaton for equality comparison of hashed strings

2013-08-12 Thread Alex Gaynor
Alex Gaynor added the comment: does this show demonstrable results (in either direction) on stringbench or the benchmarks repo? -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue18

[issue18719] Remove false optimizaton for equality comparison of hashed strings

2013-08-12 Thread Alex Gaynor
Alex Gaynor added the comment: The statistic that htis is *never* hit across a large python program is great evidence that this isn't useful. +1 on removing from me. -- ___ Python tracker <http://bugs.python.org/is

[issue18728] Increased test coverage for test_filecmp

2013-08-13 Thread Alex Volkov
New submission from Alex Volkov: I increased test coverage from 68% to 74% of filecmp.py by adding test cases in test_filecmp.py in functions phase2 & phase4 in dircmp class. -- components: Tests files: test_filecmp.patch keywords: patch messages: 195085 nosy: Alex.Volkov prio

[issue18728] Increased test coverage for filecmp.py

2013-08-13 Thread Alex Volkov
Changes by Alex Volkov : -- title: Increased test coverage for test_filecmp -> Increased test coverage for filecmp.py ___ Python tracker <http://bugs.python.org/issu

[issue18731] Increased test coverage for uu and telnet

2013-08-13 Thread Alex Volkov
Changes by Alex Volkov : -- components: Tests files: telnet_uu_tests.patch keywords: patch nosy: Alex.Volkov priority: normal severity: normal status: open title: Increased test coverage for uu and telnet type: enhancement versions: Python 3.4 Added file: http://bugs.python.org

[issue18756] os.urandom() fails under high load

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

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2013-08-19 Thread Alex Quinn
Alex Quinn added the comment: This bug still exists in Python 2.7.3 32-bit on Linux. I wonder if this might be because the patch (posted 2011-02-18) used utcfromtimestamp(). datetime.datetime.utcfromtimestamp(2**32) will fail on 32-bit systems. The bug does NOT exist in Python 2.7.3 32-bit

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2013-08-19 Thread Alex Quinn
Alex Quinn added the comment: For those who are affected by this bug, here's a snippet to monkey-patch cookielib on any Python 2.4 to 2.7. A more complete version of this was attached to my message a moment ago. == import cookieli

[issue18788] Proof of concept: implicit call syntax

2013-08-20 Thread Alex Gaynor
Alex Gaynor added the comment: I suppose I'm one of the more qualified people to comment on how Ruby does it: a mess of hacks in the lexer/parser. Ruby's case is complicated by the fact that a bare `foo` can either be a local variable or a method call on self. Consider the case `a +

[issue18728] Increased test coverage for filecmp.py

2013-08-25 Thread Alex Volkov
Alex Volkov added the comment: HI Vajrasky, I fixed the typo in a comment and removed WIN32 constant definition from the code. I looked at the existing tearDown method, on line 79, it calls shutil.rmtree on a directory above the files/directories I'm writing my test files, so the state

[issue18833] Increased test coverage for telnetlib

2013-08-25 Thread Alex Volkov
New submission from Alex Volkov: This issue splits up an unrelated patch from issue 18731 http://bugs.python.org/issue18731 Added a test for telnetlib increasing test coverage. Updated with the changes from code review of issue 18731 http://bugs.python.org/review/18731/patch/8923/33000

[issue18731] Increased test coverage for uu and telnet

2013-08-27 Thread Alex Volkov
New submission from Alex Volkov: Okay, I'm submitting the patch just for uu / test_uu. I replaced all try/finally statemets with 'with' context, added try..finally statement for both test cases. uu.py, line 61 is exposed by test_encode_osstat_assert -- os.stat is duckpun

[issue14903] dictobject infinite loop while importing socket

2013-09-03 Thread Alex Gaynor
Alex Gaynor added the comment: If you could supply the source that'd be great. -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue14903> ___ ___

[issue18991] Overriding OrderedDict.__getitem__() doesn't work

2013-09-09 Thread Alex Gaynor
Alex Gaynor added the comment: Your __getitem__ never returns the result of OrderedDict.__getitem__ -- nosy: +alex resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue14747] Classifiers are missing from distutils2-generated metadata

2012-05-07 Thread Alex Grönholm
New submission from Alex Grönholm : Apparently they worked in 1.0a3 but not in 1.0a4 anymore. -- assignee: eric.araujo components: Distutils2 messages: 160184 nosy: agronholm, alexis, eric.araujo, tarek priority: normal severity: normal status: open title: Classifiers are missing from

[issue13849] Add tests for NUL checking in certain strs

2012-05-16 Thread Alex Gaynor
Alex Gaynor added the comment: I'm perfectly happy to write a patch for this, the only reason I didn't was Martin and others expressed opposition to committing it. If there's a philosophicaly opposition to the patch I

[issue14883] html documentation does not show comments in code blocks

2012-05-22 Thread Alex Garel
New submission from Alex Garel : Just under http://docs.python.org/library/doctest.html#doctest.REPORTING_FLAGS documentation speaks about how Doctest directives maybe expressed as special Python comments. There are some example along with the narrative story, however comments which here are

[issue14965] super() and property inheritance behavior

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

[issue14972] listcomp with nested classes

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

[issue15001] segmentation fault with del sys.module['__main__']

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

[issue11354] argparse: nargs could accept range of options count

2012-06-07 Thread Alex Frase
Alex Frase added the comment: I'm new here so I apologize if this is considered poor etiquette, but I'm just commenting to 'bump' this issue. My search for a way to accomplish exactly this functionality led me here, and it seems a patch was offered but no action has

[issue8668] Packaging: add a 'develop' command

2012-06-13 Thread Alex Grönholm
Alex Grönholm added the comment: Python 3.3 is entering beta soon. The develop command is a must have, especially now that virtualenv is part of the official Python distribution. Can someone summarize what still needs to be done to get this feature merged? -- nosy: +agronholm

[issue15061] hmac.secure_compare() leaks information about length of strings

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

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-07-16 Thread Alex Leach
Alex Leach added the comment: I hadn't tried the `long long` substitution before, but unfortunately I don't think that simple fix quite does the trick. I just checked out libffi from git, and made the following patch:- #$ diff -u ffi64.c ffi64.c.orig --- ffi64.c 2012-0

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-07-16 Thread Alex Leach
Alex Leach added the comment: I just had a dig around my cpython build dir, and found an ffi64.c I hacked at a while back. I copied the edits over to the latest libffi git revision, rebuilt, and `make check` (of libffi) passes all tests. So as far as I can tell the below patch works, but it

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-07-16 Thread Alex Leach
Alex Leach added the comment: It skips 55, sorry, passing 1659. -- ___ Python tracker <http://bugs.python.org/issue4130> ___ ___ Python-bugs-list mailin

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-07-16 Thread Alex Leach
Alex Leach added the comment: That's the same patch as I attached before actually, so sorry for the spam.. -- ___ Python tracker <http://bugs.python.org/i

[issue15391] Add bitlength function to the math module

2012-07-18 Thread Alex Gaynor
Alex Gaynor added the comment: I think what you're looking for already exists: http://docs.python.org/dev/library/stdtypes.html#int.bit_length -- nosy: +alex ___ Python tracker <http://bugs.python.org/is

[issue15503] concatenating string in dict unexpected performance

2012-07-30 Thread Alex Gaynor
Alex Gaynor added the comment: Actually, I would argue that it's concatentation of a local variable which has unexpected performance. Logically it should be O(n**2), however due to hacks in CPython it isn't. -- nosy: +alex ___ Python trac

[issue8847] crash appending list and namedtuple

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

[issue15540] Python 3.3 and numpy

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

[issue15551] Unit tests that return generators silently fail

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

[issue15568] yield from missed StopIteration raised from iterator instead of getting value

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

[issue15613] argparse ArgumentDefaultsHelpFormatter interacts badly with --arg and nargs=+

2012-08-09 Thread Alex Jurkiewicz
New submission from Alex Jurkiewicz: Sample code: #!/usr/bin/env python import argparse print("\n\narg=foo, nargs=+") parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('foo', nargs='+', help=

[issue15801] Weird string interpolation behaviour

2012-08-28 Thread Alex Gaynor
Alex Gaynor added the comment: Additional detail, if and only if Foo defines an __str__ method, this raises an exception. -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue15

[issue15805] Add stdout redirection tool to contextlib

2012-08-28 Thread Alex Gaynor
Alex Gaynor added the comment: Sounds like a special case of a small part of mock. Not sure that this observation is significant though. -- nosy: +alex ___ Python tracker <http://bugs.python.org/issue15

[issue15806] Add context manager for the "try: ... except: pass" pattern

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

[issue15806] Add context manager for the "try: ... except: pass" pattern

2012-08-28 Thread Alex Gaynor
Alex Gaynor added the comment: Why not just: issubclass(exctype, self.exception_types)? -- ___ Python tracker <http://bugs.python.org/issue15806> ___ ___ Pytho

[issue15809] Строки из IDLE поступают в неверной кодировке.

2012-08-29 Thread alex hartwig
New submission from alex hartwig: Это из IDLE: Python 2.7.2+ (default, Oct 4 2011, 20:03:08) [GCC 4.6.1] on linux2 Type "copyright", "credits" or "license()" for more information. >>> import sys >>> import locale >>> sys.getdefaulten

[issue15809] IDLE console uses incorrect encoding.

2012-08-29 Thread alex hartwig
alex hartwig added the comment: Text is correct. See attachment. -- ___ Python tracker <http://bugs.python.org/issue15809> ___ ___ Python-bugs-list mailin

[issue15850] list.count() results wrong if both booleans & 1's/0's are present in the list

2012-09-02 Thread Alex Gaynor
Alex Gaynor added the comment: list.count() uses == to compare items, 1 and True compare equal, so this behavior is correct. -- nosy: +alex resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue15996] pow() for complex numbers is rough around the edges

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

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
New submission from Alex Gaynor: The attached patch implements PEP 424. The implementation of this demonstrated a need for a few small modifications to the PEP, they will follow shortly. -- components: Interpreter Core files: length_hint.diff keywords: patch messages: 172176 nosy: alex

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: patch updated fully with respect to the updates georg pushed to the PEP -- Added file: http://bugs.python.org/file27448/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Changes by Alex Gaynor : Removed file: http://bugs.python.org/file27447/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16148> ___ ___ Python-bugs-list m

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: Updated version of the patch with fewer memory leaks. -- Added file: http://bugs.python.org/file27449/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Changes by Alex Gaynor : Removed file: http://bugs.python.org/file27448/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16148> ___ ___ Python-bugs-list m

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: All memory leaks resolved, yay! -- Added file: http://bugs.python.org/file27450/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Changes by Alex Gaynor : Removed file: http://bugs.python.org/file27449/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16148> ___ ___ Python-bugs-list m

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: Added documentation. -- Added file: http://bugs.python.org/file27451/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Changes by Alex Gaynor : Removed file: http://bugs.python.org/file27450/length_hint.diff ___ Python tracker <http://bugs.python.org/issue16148> ___ ___ Python-bugs-list m

[issue16148] Implement PEP 424

2012-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: Ah, thank you very much, sorry about that. -- ___ Python tracker <http://bugs.python.org/issue16148> ___ ___ Python-bugs-list mailin

[issue16345] dict.fromkeys() assumes 'self' is empty

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

[issue20994] Disable TLS Compression

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

[issue20995] Use Better Default Ciphers for the SSL Module

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

[issue20994] Disable TLS Compression

2014-03-20 Thread Alex Stapleton
Alex Stapleton added the comment: CRIME is not universally applicable to all TLS connections and it requires some cooperation from the application to work. In fact for a Python TLS client it seems quite unlikely for an application to be vulnerable. The attack in the paper leverages an

[issue20995] Use Better Default Ciphers for the SSL Module

2014-03-20 Thread Alex Gaynor
Alex Gaynor added the comment: That's because of the set of ciphersuites offered by the server (see https://www.ssllabs.com/ssltest/analyze.html?d=linuxfr.org), it's not an inevitable property of TLS. For example jenkins.cryptography.io (see https://www.ssllabs.com/ssltest/anal

[issue20995] Use Better Default Ciphers for the SSL Module

2014-03-20 Thread Alex Gaynor
Alex Gaynor added the comment: It's also worth noting that users appear to be FAR more likely to have an up to date Python than they are an up to date OpenSSL, meaning that if a change needs to be made, we're much better situated to get that disseminated to actual users than

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

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

[issue21013] server-specific SSL context configuration

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

[issue21013] server-specific SSL context configuration

2014-03-22 Thread Alex Gaynor
Alex Gaynor added the comment: Unfortunately most TLS implementations (particularly those in browser stacks) are vulnerable to downgrade attacks, whereby an attacker can send some malicious packets to simulate a connection failure and cause a lower version of the protocol to be negotiated

[issue20421] expose SSL socket protocol version

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

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