[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-08-10 Thread Chris Rebert
Chris Rebert added the comment: So, when might I expect to see this patch merged, since it's now been approved? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21514

[issue22049] argparse: type=callable doesn't honor nargs 1

2014-07-29 Thread Chris Bruner
Chris Bruner added the comment: Just had a chance to try this, and this does exactly what I wanted from type=. Thank you! On Fri, Jul 25, 2014 at 4:17 PM, paul j3 rep...@bugs.python.org wrote: paul j3 added the comment: What you want is a custom Action rather than a custom Type. from

[issue16535] json encoder unable to handle decimal

2014-07-26 Thread Chris Rebert
Chris Rebert added the comment: 1) JSON just support floats If you read the JSON standards documents, you'll see that this isn't accurate. Regardless, a general solution for non-built-in numeric types does seem preferable. -- ___ Python tracker

[issue22049] argparse: type=callable doesn't honor nargs 1

2014-07-25 Thread Chris Bruner
Chris Bruner added the comment: Yes, I know. My function just sees '1', but I think it should see '1 2 3' so that it can figure out what to do. That's impossible (well, impossible without saving state between calls) when it sees the arguments piecemeal. Sent from my iPhone On Jul 24, 2014

[issue18355] Merge super() guide into documentation

2014-07-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18355 ___ ___ Python-bugs-list

[issue22049] argparse: type=callable doesn't honor nargs 1

2014-07-23 Thread Chris Bruner
New submission from Chris Bruner: From the documentation, I think that argparse should pass the entire nargs-long string to the type= callable. Instead, it only passes the first argument (of nargs), making it impossible within argparse's framework to check for a tuple of mixed types, e.g., 2

[issue22050] argparse: read nargs 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
New submission from Chris Bruner: When reading options from a file, argparse should read all nargs values from each line. Instead, it complains of there not being enough options. python file: #!/usr/bin/env python import argparse p = argparse.ArgumentParser(description='Reproduce argparse

[issue22050] argparse: read nargs 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
Chris Bruner added the comment: Tried the format you gave. Still doesn't work. Same error message: bernoulli:myclu cwbrune$ argparse_nargs_file_bug.py usage: argparse_nargs_file_bug.py [-h] [-t N N N] argparse_nargs_file_bug.py: error: argument -t/--triple: expected 3 argument(s

[issue22050] argparse: read nargs 1 options from file doesn't work

2014-07-23 Thread Chris Bruner
Chris Bruner added the comment: Oops, my mistake: had multiple '-t' in file, but not an action=append. Your version works just fine. Sorry for the confusion, and thank you for the correction! -- ___ Python tracker rep...@bugs.python.org http

[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Chris Rebert
Chris Rebert added the comment: Thanks for the speedy review! Those NaN-related arguments are already mentioned in the docs (see last 2 sentences of https://docs.python.org/3/library/json.html#infinite-and-nan-number-values ), and this patch doesn't touch that subsection

[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-13 Thread Chris Rebert
Chris Rebert added the comment: Here's a draft patch against the default branch that updates the json module's docs accordingly. Note that under Implementation Limitations, the statement This module does not impose any such limits beyond those of the relevant Python datatypes themselves

[issue10289] Document magic methods called by built-in functions

2014-07-13 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10289 ___ ___ Python-bugs-list

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-24 Thread Chris Withers
Chris Withers added the comment: No, it would not be enough. Please see the report above, the repr of non-strings may be large, but it's often intended that way and all of the string should be displayed. It really is a shame that no API was provided to control this behaviour. I actually

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-22 Thread Chris Withers
Chris Withers added the comment: If I worked up a patch that: - made sure this truncation wasn't used for non-strings - added a class-attribute control for the truncation Would it be well received? -- ___ Python tracker rep...@bugs.python.org http

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-21 Thread Chris Withers
New submission from Chris Withers: This code, prior to 3.4: from testfixtures import Comparison as C class AClass: def __init__(self,x,y=None): self.x = x if y: self.y = y def __repr__(self): return ''+self.__class__.__name__

[issue18996] unittest: more helpful truncating long strings

2014-06-21 Thread Chris Withers
Chris Withers added the comment: Okay, opened [issue21820]. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18996 ___ ___ Python-bugs-list

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-21 Thread Chris Withers
Chris Withers added the comment: Agreed, but even for strings, there really should be an API to control this... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21820

[issue18996] unittest: more helpful truncating long strings

2014-06-20 Thread Chris Withers
Chris Withers added the comment: So, this appears to be the source of some degraded behaviour for me with Python 3.4 versus Python 3.3. This code, prior to 3.4: from testfixtures import Comparison as C class AClass: def __init__(self,x,y=None): self.x = x if y

[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-05 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: -- nosy: +Rosuav ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21667 ___ ___ Python-bugs-list mailing

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

2014-06-05 Thread Chris Lambacher
New submission from Chris Lambacher: http://www.openssl.org/news/secadv_20140605.txt All client versions of OpenSSL are vulnerable so all Windows builds of Python are vulnerable to MITM attacks when connecting to vulnerable servers. -- components: Build, Windows messages: 219828 nosy

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-06-02 Thread Chris Rose
Chris Rose added the comment: As suggested: SYN -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752 ___ ___ Python-bugs-list mailing list

[issue13212] json library is decoding/encoding when it should not

2014-05-30 Thread Chris Rebert
Chris Rebert added the comment: Okay, so can this issue be closed in light of the existing docs and issue 21514 then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13212

[issue21557] os.popen os.system lack shell-related security warnings

2014-05-22 Thread Chris Rebert
New submission from Chris Rebert: Since these functions run shell commands, which is a common vector for security-related bugs (see * http://cwe.mitre.org/data/definitions/78.html * http://cwe.mitre.org/data/definitions/88.html ), I suggest that they should have security warning boxes analogous

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-20 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21545 ___ ___ Python-bugs-list

[issue17909] Autodetecting JSON encoding

2014-05-15 Thread Chris Rebert
Chris Rebert added the comment: You'll need to also update the Character Encodings subsection of the json docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17909

[issue17909] Autodetecting JSON encoding

2014-05-15 Thread Chris Rebert
Chris Rebert added the comment: I agree that the state of encoding detection in the new RFC seems unclear, given that the old RFC prefaced the part about the encoding detection with: Since the first two characters of a JSON text will always be ASCII characters But in the new RFC: Appendix

[issue18820] json.dump() ignores its 'default' option when serializing dictionary keys

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18820 ___ ___ Python-bugs-list

[issue19361] Specialize exceptions thrown by JSON parser

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list

[issue13212] json library is decoding/encoding when it should not

2014-05-15 Thread Chris Rebert
Chris Rebert added the comment: Note that, per the new JSON RFC 7159 (https://tools.ietf.org/html/rfc7159 ), top-level non-collection values are now de-jure permissible in JSON: Appendix A. Changes from RFC 4627 o Changed the definition of JSON text so that it can be any JSON

[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-15 Thread Chris Rebert
Chris Rebert added the comment: The new JSON RFC now at least mentions BOM handling: https://tools.ietf.org/html/rfc7159#section-8.1 : Implementations MUST NOT add a byte order mark to the beginning of a JSON text. In the interests of interoperability, implementations that parse JSON texts

[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-05-15 Thread Chris Rebert
New submission from Chris Rebert: json module docs: https://docs.python.org/3/library/json.html New superseding JSON RFC: https://tools.ietf.org/html/rfc7159 Errata to the new RFC: http://www.rfc-editor.org/errata_search.php?rfc=7159 ECMA-404: http://www.ecma-international.org/publications

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21401 ___ ___ Python-bugs-list

[issue1043134] Add preferred extensions for MIME types

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1043134 ___ ___ Python-bugs-list

[issue1521950] shlex.split() does not tokenize like the shell

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1521950 ___ ___ Python-bugs-list

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13826 ___ ___ Python-bugs-list

[issue13197] subprocess: move shell arguments to a separate keyword param

2014-05-15 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13197 ___ ___ Python-bugs-list

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-05-05 Thread Chris Rose
Chris Rose added the comment: Ping? I'd like to know if the proposed solution passes muster, so that I can get this into ... well, whatever the right revision would be. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue21414] Add an intersperse function to itertools

2014-05-02 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21414 ___ ___ Python-bugs-list

[issue21413] urllib.request.urlopen dies on non-basic/digest auth schemes

2014-05-02 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21413 ___ ___ Python-bugs-list

[issue21347] Don't use a list argument together with shell=True in subprocess' docs

2014-05-02 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21347 ___ ___ Python-bugs-list

[issue19475] Add microsecond flag to datetime isoformat()

2014-04-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19475 ___ ___ Python-bugs-list

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Chris Monsanto
Chris Monsanto added the comment: This issue has been open for 4 years, last update was 2 months ago. Lack of transactional DDL is a big deal for Python programs that use SQLite heavily. We have a patch for Python 3 that applies cleanly and as far as I can tell works fine. I've been using

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-04-17 Thread Chris Monsanto
Chris Monsanto added the comment: Unfortunately, I don't have backwards-compatible proposal to fix this. Trying to account for a bit more syntax will help in the short term but not fix the underlying issue. aaugustin -- the patch by torsen made 3 years ago is backwards compatible. It adds

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-16 Thread Chris Rose
Changes by Chris Rose off...@offby1.net: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752 ___ ___ Python-bugs-list

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: Updated according to review. -- Added file: http://bugs.python.org/file34868/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: Addressed comments regarding documentation and assertion formats in the test. -- Added file: http://bugs.python.org/file34869/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: Patch against tip -- Added file: http://bugs.python.org/file34871/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-04-15 Thread Chris Rose
Chris Rose added the comment: As a historical record, it should be noted that this is driven by an actual use case: I was experimenting with using Bazaar's patience diff implementation, and I saw that in order for them to use a custom sequence matcher, they had to essentially copy-paste

[issue19414] iter(ordered_dict) yields keys not in dict in some circumstances

2014-04-12 Thread Chris Angelico
Chris Angelico added the comment: I agree that current behaviour is a bit confusing; also, the implication is that deleting from the dictionary while you have an iterator may leave some hanging references around the place, which raises a red flag in my mind (maybe something else might find

[issue19837] Wire protocol encoding for the JSON module

2014-03-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19837 ___ ___ Python-bugs-list

[issue17909] Autodetecting JSON encoding

2014-03-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17909 ___ ___ Python-bugs-list

[issue10976] json.loads() raises TypeError on bytes object

2014-03-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10976 ___ ___ Python-bugs-list

[issue21092] json serializer implicitly stringifies non-string keys

2014-03-28 Thread Chris Rebert
New submission from Chris Rebert: Python 3.3.4 (default, Feb 21 2014, 18:00:34) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type help, copyright, credits or license for more information. from json import dumps dumps({True: True, False: False, None: None, 42: 42}) '{false

[issue21080] asyncio.subprocess: connect pipes of two programs

2014-03-27 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21080 ___ ___ Python-bugs-list

[issue19871] json module won't parse a float that starts with a decimal point

2014-03-24 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19871 ___ ___ Python-bugs-list

[issue16535] json encoder unable to handle decimal

2014-03-24 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16535 ___ ___ Python-bugs-list

[issue21009] Potential deadlock in concurrent futures when garbage collection occurs during Queue.get

2014-03-21 Thread Chris Farrow
Changes by Chris Farrow farro...@gmail.com: -- nosy: +Chris.Farrow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21009 ___ ___ Python-bugs-list

[issue13697] python RLock implementation unsafe with signals

2014-03-18 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13697 ___ ___ Python-bugs-list

[issue16329] mimetypes does not support webm type

2014-03-18 Thread Chris Rebert
Chris Rebert added the comment: So, nobody seems to have cared enough about the policy change to weigh in during the intervening year and ~3mos... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16329

[issue13212] json library is decoding/encoding when it should not

2014-03-18 Thread Chris Rebert
Chris Rebert added the comment: FWIW, I’m +1 for a doc section about how to achieve strict mode with special arguments and callbacks (if the recent doc patch does not already have that) The docs added by that patch do indeed cover this: http://docs.python.org/2/library/json.html#standard

[issue20963] side_effects swapped in Mock example

2014-03-17 Thread chris-buccella
New submission from chris-buccella: http://docs.python.org/3.4/library/unittest.mock-examples.html Section 26.5.3.9. Mocking a dictionary with MagicMock In the Note area: mock.__setitem__ = Mock(side_effect=getitem) mock.__getitem__ = Mock(side_effect=setitem) I think these are swapped

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-12 Thread Chris Clark
New submission from Chris Clark: The documentation for smtplib.SMTP says If the connect() call returns anything other than a success code, an SMTPConnectError is raised. It doesn't explicitly specify what happens when connect() raises instead of returns, but I think either the documentation

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-12 Thread Chris Clark
Chris Clark added the comment: I am concerned about the policy of not documenting all exceptions that are raised. It sounds like there is no straightforward way to write a comprehensive except statement without using a bare except or catching some base exception. I consider it dangerous

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-03-11 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5207 ___ ___ Python-bugs-list

[issue13936] datetime.time(0, 0, 0) evaluates to False despite being a valid time

2014-03-05 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13936 ___ ___ Python-bugs-list

[issue5626] misleading comment in socket.gethostname() documentation

2014-03-02 Thread Chris Angelico
Chris Angelico added the comment: Python doesn't currently have any sort of function for fetching all a computer's IPs, as far as I know, but if there is one (either now or in the future), it would be good to link to that from there. Here's how to get your host name. And if you're interested

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2014-03-02 Thread Chris Angelico
Chris Angelico added the comment: Patch doesn't apply to current Python trunk (18 months later). Do you know what version you wrote this against? The current wording is different. -- nosy: +Rosuav ___ Python tracker rep...@bugs.python.org http

[issue15618] turtle.pencolor() chokes on unicode

2014-03-02 Thread Chris Angelico
Chris Angelico added the comment: Presumably this is not an issue in 3.x. Is this considered a bug fix (in which case the patch should almost certainly be applied - it looks perfectly safe), or a feature enhancement (in which case this should get closed wontfix)? Looks like low-hanging fruit

[issue20727] Improved roundrobin itertools recipe

2014-02-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20727 ___ ___ Python-bugs-list

[issue20796] Test failures when running with PYTHONDONTWRITEBYTECODE

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: -- components: +Tests versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20796

[issue20796] Test failures when running with PYTHONDONTWRITEBYTECODE

2014-02-27 Thread Chris Angelico
New submission from Chris Angelico: $ find . -name \*.pyc -delete $ PYTHONDONTWRITEBYTECODE=1 make test Three test failures, which all seem to be duplicates of: == FAIL: test_timestamp_overflow

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Chris Angelico added the comment: One test failing, due to Tools/parser/unparse.py not knowing how to unparse an except expression. Otherwise, test suite passes (with most of the stdlib unchanged). I'm about to try writing an actual conversion script which will rewrite the stdlib

[issue20796] Test failures when running with PYTHONDONTWRITEBYTECODE

2014-02-27 Thread Chris Angelico
Chris Angelico added the comment: Thanks for the fast turn-around, guys! Not that it matters hugely - I happened to have bytecode writing disabled to test something unrelated and noticed the test failure. -- ___ Python tracker rep

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Chris Angelico added the comment: I've applied all the changes my script can find, including ones that are actually quite inappropriate, like: try: some_function_call() except some_exception: some_other_function_call() All tests pass except for one, which I don't fully

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: Added file: http://bugs.python.org/file34250/churn1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20739

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: Added file: http://bugs.python.org/file34251/churn2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20739

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: Added file: http://bugs.python.org/file34252/broken.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20739

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___ ___ Python-bugs-list

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Chris Rose
Chris Rose added the comment: Is there an ETA for a 2.7.7 release with this fix? -- nosy: +offby1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246

[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-25 Thread Chris Adams
New submission from Chris Adams: Currently the stdlib json module requires a custom serializer to avoid throwing a TypeError on collections.deque instances: Python 3.3.4 (default, Feb 12 2014, 09:35:54) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin Type help, copyright

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-02-23 Thread Chris Rose
New submission from Chris Rose: It should be possible to provide subclasses or implementations of the SequenceMatcher interface to difflib's various methods that do formatting (for example, unified_diff/context_diff et al). I've included a patch for it that satisfies my personal itch

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-02-23 Thread Chris Rose
Chris Rose added the comment: I've regenerated the patch with doc additions and Misc/ACKS changed as well. -- Added file: http://bugs.python.org/file34204/difflib-sm.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20752

[issue20729] mailbox.Mailbox does odd hasattr() check

2014-02-22 Thread Chris Angelico
New submission from Chris Angelico: Only noticed because I was searching the stdlib for hasattr calls, but in mailbox.Mailbox.update(), a check is done thus: if hasattr(arg, 'iteritems'): source = arg.items() elif hasattr(arg, 'items'): source

[issue20739] PEP 463 (except expression) implementation

2014-02-22 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: -- nosy: +Rosuav ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20739 ___ ___ Python-bugs-list mailing

[issue20630] Add sorting helpers for collections containing None values

2014-02-21 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20630 ___ ___ Python-bugs-list

[issue20632] Define a new __key__ protocol

2014-02-21 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20632 ___ ___ Python-bugs-list

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-11 Thread Chris Angelico
Chris Angelico added the comment: Patch doesn't apply to 3.4. Apart from the obvious filename change (Lib/urllib2.py - Lib/urllib/request.py), retry_http_basic_auth is distinctly different in the current version. I think this will need a completely separate patch, separately done and tested

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-11 Thread Chris Angelico
Chris Angelico added the comment: Oops, I was reading off the wrong piece of code. It's not distinctly different, actually; it's just different enough that the patch fails. The only difference is that in 3.4 the headers are Unicode strings (so the content gets encoded and decoded). My bad

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-11 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: Added file: http://bugs.python.org/file34041/0001-Add-an-authorization-header-to-the-initial-request.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19494

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-11 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: Added file: http://bugs.python.org/file34042/0001-Add-an-authorization-header-to-the-initial-request.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19494

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-11 Thread Chris Angelico
Chris Angelico added the comment: Yeah. I first thought Hey, I could just change the file names in the patch and apply it, but then when it failed, I went looking, found the wrong piece of code, and thought it was completely different. Turned out to be not so different after all :) So now you

[issue2292] Missing *-unpacking generalizations

2014-01-30 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: -- nosy: +Rosuav ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list mailing

[issue20364] Rename explain sqlite3.Cursor.execute 'parameters' param

2014-01-23 Thread Chris Angelico
Chris Angelico added the comment: Small quibble: The last sentence capitalizes a Python built-in, which is confusing (Len(seq_dict) must match...). Tweak of grammar to have it not at the beginning of the sentence: Either way, len(seq_dict) must match -- nosy: +Rosuav

[issue19974] tarfile doesn't overwrite symlink by directory

2014-01-16 Thread Chris Morgan
Chris Morgan added the comment: Testing passed on OSX Mavericks. -- nosy: +drpotato ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19974

[issue20249] test_posix.test_initgroups fails when running with no supplementary groups

2014-01-13 Thread Chris Angelico
New submission from Chris Angelico: When tests are run from an Upstart job in a minimal environment, test_posix.test_initgroups fails as it attempts to find the max() of an empty list of supplementary groups. Problem sighted with 2.7, 3.3, and 3.x branches. Patch derived from 3.x (default

[issue20164] Undocumented KeyError from os.path.expanduser

2014-01-07 Thread Chris Adams
New submission from Chris Adams: This is a more general version of #10496: os.path.expanduser is documented as returning the unmodified string if it cannot be expanded (http://docs.python.org/3/library/os.path.html#os.path.expanduser) but there's one edge case where this can fail: when

[issue20164] Undocumented KeyError from os.path.expanduser

2014-01-07 Thread Chris Adams
Chris Adams added the comment: Other than hoisting the warnings import to the top (PEP-8) that seems entirely reasonable to me. The user report which we got was confusing because it was non-obvious where it came from - a warning or other pointer would have helped the original reporter get

[issue20138] wsgiref on Python 3.x incorrectly implements URL handling causing mangled Unicode

2014-01-06 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20138 ___ ___ Python-bugs-list

[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2013-12-27 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20059 ___ ___ Python-bugs-list

[issue20050] distutils should check PyPI certs when connecting to it

2013-12-27 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20050 ___ ___ Python-bugs-list

<    4   5   6   7   8   9   10   11   12   13   >