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...".
Changes by Chris Angelico :
--
nosy: +Rosuav
___
Python tracker
<http://bugs.python.org/issue2292>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue20630>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue20632>
___
___
Python-bugs-list mailing list
Unsubscribe:
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')
Changes by Chris Angelico :
--
nosy: +Rosuav
___
Python tracker
<http://bugs.python.org/issue20739>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue20246>
___
___
Python-bugs-list mailing list
Unsubscribe:
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>
___
___
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",
Changes by Chris Angelico :
--
components: +Tests
versions: +Python 3.4
___
Python tracker
<http://bugs.python.org/issue20796>
___
___
Python-bugs-list mailin
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
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
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
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
Changes by Chris Angelico :
Added file: http://bugs.python.org/file34250/churn1.diff
___
Python tracker
<http://bugs.python.org/issue20739>
___
___
Python-bugs-list mailin
Changes by Chris Angelico :
Added file: http://bugs.python.org/file34251/churn2.diff
___
Python tracker
<http://bugs.python.org/issue20739>
___
___
Python-bugs-list mailin
Changes by Chris Angelico :
Added file: http://bugs.python.org/file34252/broken.diff
___
Python tracker
<http://bugs.python.org/issue20739>
___
___
Python-bugs-list mailin
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue20727>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue13936>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue5207>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue4947>
___
___
Python-bugs-list mailing list
Unsubscribe:
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__
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
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue6712>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue4395>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue1170>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Chris Rebert :
--
type: -> feature request
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue6783>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Withers :
--
nosy: +cjw296
___
Python tracker
<http://bugs.python.org/issue6816>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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,
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
Chris Withers added the comment:
Fix for trunk committed in r74655.
--
___
Python tracker
<http://bugs.python.org/issue6838>
___
___
Python-bugs-list mailin
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/
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue6858>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Miles :
--
nosy: +chrismiles
___
Python tracker
<http://bugs.python.org/issue2320>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue6108>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Chris Rebert :
Removed file: http://bugs.python.org/file14817/subprocess.rst.patch
___
Python tracker
<http://bugs.python.org/issue6760>
___
___
Python-bug
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue7159>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Withers :
--
nosy: -cjw296
___
Python tracker
<http://bugs.python.org/issue6816>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Chris Miles :
--
nosy: +chrismiles
___
Python tracker
<http://bugs.python.org/issue4111>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
>>>
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
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
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
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
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
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
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue5434>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue6021>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Rebert :
--
nosy: +cvrebert
___
Python tracker
<http://bugs.python.org/issue6301>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Chris Leary :
--
nosy: +cdleary
___
Python tracker
<http://bugs.python.org/issue7593>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Chris Withers added the comment:
Maybe an old-fashioned monkey-patch would be the way to go?
--
___
Python tracker
<http://bugs.python.org/issue1974>
___
___
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
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
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
Changes by Chris Monsanto :
--
versions: +Python 2.6, Python 3.1 -3rd party
___
Python tracker
<http://bugs.python.org/issue9226>
___
___
Python-bugs-list mailin
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
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
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
2301 - 2400 of 2758 matches
Mail list logo