[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...".

[issue2292] Missing *-unpacking generalizations

2014-01-30 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue2292> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 an

[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

[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 : Added file: http://bugs.python.org/file34041/0001-Add-an-authorization-header-to-the-initial-request.patch ___ Python tracker <http://bugs.python.org/issue19

[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 : Added file: http://bugs.python.org/file34042/0001-Add-an-authorization-header-to-the-initial-request.patch ___ Python tracker <http://bugs.python.org/issue19

[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

[issue20630] Add sorting helpers for collections containing None values

2014-02-21 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue20630> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20632] Define a new __key__ protocol

2014-02-21 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue20632> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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')

[issue20739] PEP 463 (except expression) implementation

2014-02-22 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker <http://bugs.python.org/issue20739> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 i

[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 <http://bugs.python.org/is

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue20246> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 <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",

[issue20796] Test failures when running with PYTHONDONTWRITEBYTECODE

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico : -- components: +Tests versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue20796> ___ ___ Python-bugs-list mailin

[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, and

[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 <h

[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&#x

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file34250/churn1.diff ___ Python tracker <http://bugs.python.org/issue20739> ___ ___ Python-bugs-list mailin

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file34251/churn2.diff ___ Python tracker <http://bugs.python.org/issue20739> ___ ___ Python-bugs-list mailin

[issue20739] PEP 463 (except expression) implementation

2014-02-27 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file34252/broken.diff ___ Python tracker <http://bugs.python.org/issue20739> ___ ___ Python-bugs-list mailin

[issue20727] Improved roundrobin itertools recipe

2014-02-28 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue20727> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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 <http://bugs.py

[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

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

2014-03-05 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue13936> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2014-03-11 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue5207> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 th

[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 to

[issue3250] datetime.time does not support arithmetic

2009-07-06 Thread Chris Withers
Chris Withers added the comment: I think so. FWIW, I'd recommend looking at: http://pypi.python.org/pypi/python-dateutil ...for doing things that python's builtin datetime stuff doesn't cater for. -- resolution: -> wont fix stat

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
New submission from Chris Perkins : Proposed feature - function definition expressions, superficially similar to Ruby blocks. To be proposed on Python-ideas list. -- files: blocks.patch keywords: patch messages: 90455 nosy: grammati severity: normal status: open title: Function

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
Chris Perkins added the comment: Forgot to mention - the patch is very much incomplete. It breaks tests, contains none of the work that would need to be done in the ast package, etc. This is just a proof-of-concept. -- ___ Python tracker <h

[issue6469] Function definition expressions feature

2009-07-13 Thread Chris Perkins
Chris Perkins added the comment: Details and discussion: http://groups.google.com/group/python-ideas/browse_frm/thread/a2bb1ff3992d9c01 -- ___ Python tracker <http://bugs.python.org/issue6

[issue6586] Documentation of os.write and os.read are inaccurate.

2009-07-27 Thread Chris Liechti
New submission from Chris Liechti : Documentation of os.write and os.read are inaccurate, it states that the methods work with 'str' (or strings), which is wrong. - os.write expects an instance of bytes or buffer - os.read returns an instance of bytes The implementation is OK, it

[issue4947] sys.stdout fails to use default encoding as advertised

2009-07-28 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue4947> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers
Chris Withers added the comment: I tried to use the following to change the buffersize for a download: from base64 import encodestring from httplib import HTTPResponse,HTTPConnection,HTTPSConnection,_UNKNOWN from datetime import datetime class FHTTPResponse(HTTPResponse): def __init__

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-12 Thread Chris Withers
Chris Withers added the comment: Well, for me, buffer size doesn't appear to have made any difference... -- ___ Python tracker <http://bugs.python.org/i

[issue6703] cross platform failure and silly test in doctest

2009-08-14 Thread Chris Withers
New submission from Chris Withers : Hi All, Line 355 of this code on the 2.6 branch and trunk: http://svn.python.org/view/python/branches/release26- maint/Lib/doctest.py?view=annotate http://svn.python.org/view/python/trunk/Lib/doctest.py?annotate=69012 ...contain a check that doesn't

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-15 Thread Chris Withers
Chris Withers added the comment: Why not allow True or an integer as values for a buffer_size parameter to the HTTPConnection constructor. False would be the default, which would mean "no buffering" as currently is the case. True would mean use buffering of the default size and

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue6712> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-08-16 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue4395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1170] shlex have problems with parsing unicode

2009-08-21 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue1170> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-08-22 Thread Chris Rebert
New submission from Chris Rebert : >From what I've seen on several c.l.p threads, some people have a tough time figuring the correct 'args' argument to subprocess.Popen's constructor. In an effort to cut down on such discussions in the future, I've written the a

[issue5365] add conversion table to time module docs

2009-08-22 Thread Chris Rebert
Chris Rebert added the comment: Added string conversions to table for good measure. -- status: closed -> open Added file: http://bugs.python.org/file14771/table.rst ___ Python tracker <http://bugs.python.org/iss

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-08-22 Thread Chris Rebert
Changes by Chris Rebert : -- type: -> feature request ___ Python tracker <http://bugs.python.org/issue6760> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6783] Add a builtin method to 'int' for base/radix conversion

2009-08-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue6783> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6816] Provide CPython command line functionality via runpy module

2009-09-01 Thread Chris Withers
Changes by Chris Withers : -- nosy: +cjw296 ___ Python tracker <http://bugs.python.org/issue6816> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-09-01 Thread Chris Rebert
Changes by Chris Rebert : -- versions: +Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14817/subprocess.rst.patch ___ Python tracker <http://bugs.python.org/issue6

[issue2576] httplib read() very slow due to lack of socket buffer

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Yep, having done some more extensive profiling, it looks like my issue is different: all the time is being spent in httplib's HTTPResponse._read_chunked. That wouldn't be a symptom of this issue,

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
New submission from Chris Withers : As the comment in this method suggests, accumulating the value by repeated string concatenation is slow. Appending to a list speeds this up dramatically. To quantify this, downloading a 110Mb file from Apache take: ~3s using Internet Explorer 2.2s using

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Fix for trunk committed in r74655. -- ___ Python tracker <http://bugs.python.org/issue6838> ___ ___ Python-bugs-list mailin

[issue6838] httplib's _read_chunked extremely slow for lots of chunks

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Fix merged to 2.6, 3.1 and 3.2 branches. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6703] cross platform failure and silly test in doctest

2009-09-04 Thread Chris Withers
Chris Withers added the comment: Hmm, I don't think tests will fail, however, there are cryptic docs for this... http://docs.python.org/library/doctest.html#basic-api I don't really get what module_relative is about and I've always run into the non- cross-platform issue above

[issue3597] Allow application developers to select ciphers, and default to strong in ssl lib

2009-09-07 Thread Chris Frantz
Chris Frantz added the comment: I believe the attached patch provides the desired functionality. By default, the SSL library selects appropriate ciphers. If the user creates an SSLSocket with a cipher_list, the string is passed directly to SSL_CTX_set_cipher_list(). -- keywords

[issue6858] This is a python file, apply syntax highlighting

2009-09-07 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue6858> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2320] Race condition in subprocess using stdin

2009-09-07 Thread Chris Miles
Changes by Chris Miles : -- nosy: +chrismiles ___ Python tracker <http://bugs.python.org/issue2320> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2009-09-11 Thread Chris Withers
New submission from Chris Withers : With a simple setup.py: from distutils.core import setup setup(name='packagename') And a MANIFEST.in containing: include buildout.cfg The result of a debug run of python setup.py sdist on Windows is: Distribution.parse_config_files(): opti

[issue6108] unicode(exception) behaves differently on Py2.6 when len(exception.args) > 1

2009-09-12 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue6108> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7017] os.listdir behaviour

2009-09-29 Thread Chris Adamson
New submission from Chris Adamson : When I iterate through a list created using os.listdir it seems to grow as I create files in that directory. I want a static copy of the list of files in the directory prior to me writing new files into it. Here is my code: fileList = os.listdir

[issue7017] os.listdir behaviour

2009-09-29 Thread Chris Adamson
Chris Adamson added the comment: I think I found my problem. Since I didn't *COPY* the array that I created with os.listdir I was actually appending to it, my bad. -- status: pending -> closed ___ Python tracker <http://bugs.python.or

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-10-03 Thread Chris Rebert
Chris Rebert added the comment: Ok, changed to "note" directives instead of "warning"s. Anything else that keeps this from being applied? -- Added file: http://bugs.python.org/file15033/subprocess.rst.patch ___ P

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-10-03 Thread Chris Rebert
Changes by Chris Rebert : Removed file: http://bugs.python.org/file14817/subprocess.rst.patch ___ Python tracker <http://bugs.python.org/issue6760> ___ ___ Python-bug

[issue969718] BASECFLAGS are not passed to module build line

2009-10-07 Thread Chris Lambacher
Chris Lambacher added the comment: I am running into a problem related to this. I am attempting to cross compile extensions but Fedora includes -march in the OPT variable. Since there is no way to exclude the OPT values the build fails. It seems that forcing OPT to stay the same is a

[issue7159] Urllib2 authentication memory.

2009-11-11 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue7159> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6816] Provide CPython command line functionality via runpy module

2009-11-19 Thread Chris Withers
Changes by Chris Withers : -- nosy: -cjw296 ___ Python tracker <http://bugs.python.org/issue6816> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7445] urllib2 (and urllib) should raise error for incomplete response

2009-12-05 Thread Chris Lasher
New submission from Chris Lasher : This question is motivated by a question on Stack Overflow: http://stackoverflow.com/questions/1824069/urllib2-not-retrieving-entire-http-response In the event the user receives an incomplete response when using urllib2 (and urllib), the library should raise

[issue7529] StreamHandler does not live in logging.Handlers

2009-12-17 Thread Chris Withers
New submission from Chris Withers : http://docs.python.org/library/logging.html#module-logging.handlers ...explains that StreamHandler lives in logging but then the class docs say logging.handlers. Georg, if this isn't trivial for you to fix, re-assign it to me and I'll make the chan

[issue7674] select.select() corner cases: duplicate fds, out-of-range fds

2010-01-10 Thread Chris Leary
New submission from Chris Leary : I was just reading through this ACM article that enumerates some of the issues with the select function in .NET: http://cacm.acm.org/magazines/2009/5/24646-api-design-matters/fulltext select.select() currently suffers from the same documentation problem where

[issue4111] Add DTrace probes

2009-02-22 Thread Chris Miles
Changes by Chris Miles : -- nosy: +chrismiles ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5365] add conversion table to time module docs

2009-02-25 Thread Chris Rebert
New submission from Chris Rebert : I would like the offer the table in the attached file for addition to the 'time' module documentation so as to provide a quick overview of how to convert between the various time representations. As it currently stands (at least on the current public

[issue4308] repr of httplib.IncompleteRead is stupid

2009-03-02 Thread Chris Withers
Chris Withers added the comment: Why can't it be applied to 2.5? No problem with the 2nd resp.close() being removed... ___ Python tracker <http://bugs.python.org/i

[issue5423] Exception raised when attempting to call set_charset on an email.mime.multipart once sub-parts have been attached

2009-03-05 Thread Chris Withers
New submission from Chris Withers : Hi All, I'm splitting this out from [Issue1823] as it's a separate issue. Here's a minimal case to reproduce: >>> from email.MIMEMultipart import MIMEMultipart >>> from email.MIMEText import MIMEText >>> msg = MI

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2009-03-05 Thread Chris Withers
Chris Withers added the comment: Okay, splitting this out a little. I've moved the exception when setting character set after adding parts out to [Issue5423]. Here's a simpler example of the problem with setting character sets on multiparts: >>> from email.M

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

2009-03-22 Thread Chris Hollenbeck
New submission from Chris Hollenbeck : The LWPCookieJar can be saved on 64-bit Ubuntu, but not on 32-bit Ubuntu when the expiration year is greater than 2038. This has not been tested on any other Intel-compatible Linux platform, though it appears related to the Year 2038 bug. The

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2009-03-30 Thread Chris Withers
Chris Withers added the comment: Barry and I talked about this and he's is now working on it. We're literally going to remove the \t folding substitution and have it do the default space folding substitution instead. -- resolution: -> accepted versions: +Python 2.6, Pytho

[issue5612] whitespace folding in the email package could be better ; -)

2009-03-30 Thread Chris Withers
New submission from Chris Withers : In python 3 this has been done better already, but in python2.7 we still have this problem: >>> from email.mime.text import MIMEText >>> m = MIMEText('foo') >>> m['Subject'] = 'AA '*40 >>>

[issue1645148] MIME renderer: wrong header line break with long subject?

2009-03-30 Thread Chris Withers
Chris Withers added the comment: This bug is a combination of [Issue1974] and [Issue5612]. [Issue1974] is being worked on. [Issue5612] is fixed in Python 3, but will need more work to be fixed in Python 2, *if* anyone cares about it... Please followup on one of these issues

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2009-03-31 Thread Chris Withers
Chris Withers added the comment: It's probably worth noting that changing: from email.mime.text import MIMEText m = MIMEText('foo') m['subject']='something long' ...to: from email.header import Header m = MIMEText('foo') m['subject']=H

[issue1664] nntplib is not IPv6-capable

2009-04-01 Thread Chris Morrow
Chris Morrow added the comment: This is a little silly and painful... it's utterly broken to hardcode the AF type in this way, could we please apply a patch (something like the proposed seems to work fine) and get this rolled into the next release? It seems really lame to not be ab

[issue1641] asyncore delayed calls feature

2009-04-01 Thread Chris McDonough
Chris McDonough added the comment: I am the developer of Supervisor (http://supervisord.org) which depends on (and extends) Medusa 0.5.4, which itself depends on some implementation details of pre-2.6 versions of asynchat (e.g. "ac_out_buffer"). I need to make sure Supervisor works w

[issue3722] print followed by exception eats print with doctest

2009-04-02 Thread Chris Withers
Chris Withers added the comment: Hey Georg, I agree with the priority, but I'm still not convinced this is just a feature request. The piece of documentation that Tim is referring to is a tiny footnote in the doctest docs, and, as I said previously, I'm not sure documenting a bu

[issue5760] __getitem__ error message hard to understand

2009-04-14 Thread Chris Rebert
New submission from Chris Rebert : Prompted by http://mail.python.org/pipermail/python-ideas/2009-April/004048.html The current error message issued when trying to use the get item ([]) operator on an object that does not define __getitem__ can be hard to understand: >>> class A(obje

[issue5434] datetime.monthdelta

2009-04-21 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6021] itertools.grouper

2009-05-14 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue6021> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6301] Error in tutorial section 7.2

2009-06-17 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue6301> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7593] Computed-goto patch for RE engine

2010-05-28 Thread Chris Leary
Changes by Chris Leary : -- nosy: +cdleary ___ Python tracker <http://bugs.python.org/issue7593> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8976] subprocess module causes segmentation fault

2010-06-11 Thread Chris Blazick
New submission from Chris Blazick : platform: Linux x86_64 (CentOS) kernel: 2.6.18-128.1.10.el5.centos.plus python version: 2.4.3 PyQt versin: 4.7.3 subprocess is generating a segmentation fault. I am running a proprietary quicktime generating script inside my own (Qt) script using the

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-06-18 Thread Chris Withers
Chris Withers added the comment: I guess not... Maybe try catching Tarek on irc or drop him a mail? -- ___ Python tracker <http://bugs.python.org/issue6

[issue1573931] WSGI, cgi.FieldStorage incompatibility

2010-06-19 Thread Chris McDonough
Chris McDonough added the comment: Although the current WSGI 1.0 spec (http://www.python.org/dev/peps/pep-0333/) still indicates that implementing the size argument to readline is not required, effectively, it is and has been for several years. Stalling on a WSGI 1.1 spec has caused a

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2010-07-06 Thread Chris Withers
Chris Withers added the comment: Maybe an old-fashioned monkey-patch would be the way to go? -- ___ Python tracker <http://bugs.python.org/issue1974> ___ ___

[issue1653457] Python misbehaves when installed in / (patch attached)

2010-07-11 Thread Chris Webb
Chris Webb added the comment: Fortunately reduce() is static within getpath.c, so it should only be necessary to check the handful of callers in there. I've done this, and am reasonably sure it doesn't break anything. In addition, I've given this patch quite a bit of empiri

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-11 Thread Chris Monsanto
New submission from Chris Monsanto : I have a function whose closure contains a local variable that shadows a global variable (lets call it x). If I create a class as follows: class Test(object): x = x Test.x will contain the value of the global x, not the local x. This ONLY happens when

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-11 Thread Chris Monsanto
Chris Monsanto added the comment: A friend confirmed that this was the case on 3.1.2 as well. -- versions: +3rd party -Python 2.6 ___ Python tracker <http://bugs.python.org/issue9

[issue9226] erroneous behavior when creating classes inside a closure

2010-07-11 Thread Chris Monsanto
Changes by Chris Monsanto : -- versions: +Python 2.6, Python 3.1 -3rd party ___ Python tracker <http://bugs.python.org/issue9226> ___ ___ Python-bugs-list mailin

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-07-21 Thread Chris Rebert
Chris Rebert added the comment: I'm busy with finding an apartment and taking exams for the next week-or-so, but after that I'll try and suggest a patch. If anyone wants to have a crack at it between now and then, don't

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-07-23 Thread Chris Rebert
Chris Rebert added the comment: I found some extra time. Here's an initial suggested patch against py3k head. Disclaimer: I have no special expertise in computer security beyond having read "Secure Coding: Principles and Practices" a while back. -- keywords: +patch A

[issue9381] syntax error in Unicode C API docs

2010-07-25 Thread Chris Rebert
New submission from Chris Rebert : See http://docs.python.org/py3k/c-api/unicode.html#file-system-encoding Note the literal and unhyperlinked ":func:PyUnicode_FSConverter" in the last sentence of the first paragraph. I suspect there's a trivial syntax error in

<    19   20   21   22   23   24   25   26   27   28   >