Brett Cannon wrote:
> On Tue, Feb 3, 2009 at 15:50, Tres Seaver wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Brett Cannon wrote:
> >> On Tue, Feb 3, 2009 at 11:08, Brad Miller wrote:
> >>> I'm just getting ready to start the semester using my new book (Python
> >>> Progr
On Tue, Feb 3, 2009 at 1:20 PM, Aahz wrote:
> When sending in a request like this, it's useful to summarize the issue;
> few people know bug reports by number, and at least some people who might
> be interested in looking probably won't bother if they have no clue
> whether it's in their area of e
On 2-Feb-09, at 9:21 AM, Hrvoje Niksic wrote:
It turns out that an even faster method of creating an array is by
using the fromstring() method. fromstring() requires an actual
string, not a buffer, so in C++ I created an std::vector
with a contiguous array of doubles, passed that array t
On Tue, Feb 3, 2009 at 15:50, Tres Seaver wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Brett Cannon wrote:
>> On Tue, Feb 3, 2009 at 11:08, Brad Miller wrote:
>>> I'm just getting ready to start the semester using my new book (Python
>>> Programming in Context) and noticed that I
Tres Seaver wrote:
> Brett Cannon wrote:
>> No because you are getting back the repr for the bytes object. Str
>> does not know what the encoding is for the bytes so it has no way of
>> performing the decoding.
>
> The encoding information *is* available in the response headers, e.g.:
[snip]
That'
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Brett Cannon wrote:
> On Tue, Feb 3, 2009 at 11:08, Brad Miller wrote:
>> I'm just getting ready to start the semester using my new book (Python
>> Programming in Context) and noticed that I somehow missed all the changes to
>> urllib in python 3.0.
Aahz wrote:
On Tue, Feb 03, 2009, Ross Light wrote:
Hello, python-dev. I submitted a patch a couple weeks ago for Issue
4285, and it has been reviewed and revised. Would someone please
review/commit it? Thank you.
http://bugs.python.org/issue4285
When sending in a request like this, it's u
On Tue, Feb 03, 2009, Ross Light wrote:
>
> Hello, python-dev. I submitted a patch a couple weeks ago for Issue
> 4285, and it has been reviewed and revised. Would someone please
> review/commit it? Thank you.
>
> http://bugs.python.org/issue4285
When sending in a request like this, it's usefu
I still haven't seen any real code presented that would benefit from
partial.skip or partial_right.
# some Articles have timestamp attributes and some don't
stamp = partial_right(getattr, 'timestamp', 0)
lastupdate = max(map(stamp, articles))
# some beautiful soup nodes have a name attribute an
Hello, python-dev. I submitted a patch a couple weeks ago for Issue
4285, and it has been reviewed and revised. Would someone please
review/commit it? Thank you.
http://bugs.python.org/issue4285
Cheers,
Ross Light
___
Python-Dev mailing list
Python-D
On Tue, Feb 3, 2009 at 11:53 AM, Antoine Pitrou wrote:
> Collin Winter gmail.com> writes:
>>
>> Have any of the original objections to Calvin's patch
>> (http://bugs.python.org/issue1706256) been addressed? If not, I don't
>> see anything in these threads that justify resurrecting it.
>>
>> I sti
İsmail Dönmez wrote:
> Hi,
>
> On Tue, Feb 3, 2009 at 21:56, Brett Cannon wrote:
> > Probably the biggest issue will be having to explain string encoding.
> > Obviously you can gloss over it or provide students with a simple
> > library that just automatically converts the strings. Or even bett
On Tue, Feb 3, 2009 at 2:08 PM, Brad Miller wrote:
> Here's the iteration problem:
> 'b\'>>> for line in page:
> print(line)
> Traceback (most recent call last):
> File "", line 1, in
> for line in page:
> TypeError: 'addinfourl' object is not iterable
> Why is this not iterable anymore? I
Hi,
On Tue, Feb 3, 2009 at 21:56, Brett Cannon wrote:
> Probably the biggest issue will be having to explain string encoding.
> Obviously you can gloss over it or provide students with a simple
> library that just automatically converts the strings. Or even better,
> provide some code for the sta
On Tue, Feb 3, 2009 at 11:08, Brad Miller wrote:
> I'm just getting ready to start the semester using my new book (Python
> Programming in Context) and noticed that I somehow missed all the changes to
> urllib in python 3.0. ARGH to say the least. I like using urllib in the
> intro class because
Collin Winter gmail.com> writes:
>
> Have any of the original objections to Calvin's patch
> (http://bugs.python.org/issue1706256) been addressed? If not, I don't
> see anything in these threads that justify resurrecting it.
>
> I still haven't seen any real code presented that would benefit fro
http://bugs.python.org/issue1706256
Took me a couple days to catch up on this thread so here is the link
for any interested. Could it be possible to reevaluate this?
On Sat, Jan 31, 2009 at 2:40 PM, Leif Walsh wrote:
> On Fri, Jan 30, 2009 at 7:38 PM, Calvin Spealman wrote:
>> I am just replyin
I'm just getting ready to start the semester using my new book (Python
Programming in Context) and noticed that I somehow missed all the changes to
urllib in python 3.0. ARGH to say the least. I like using urllib in the
intro class because we can get data from places that are more
interesting/mot
I'm just getting ready to start the semester using my new book (Python
Programming in Context) and noticed that I somehow missed all the changes to
urllib in python 3.0. ARGH to say the least. I like using urllib in the
intro class because we can get data from places that are more
interesting/mot
On Tue, Feb 3, 2009 at 5:44 AM, Ben North wrote:
> Hi,
>
> Thanks for the further responses. Again, I'll try to summarise:
>
> Scott David Daniels pointed out an awkward interaction when chaining
> partial applications, such that it could become very unclear what was
> going to happen when the fi
>> The attached patch is compatible with both the 2.x and the 3.x
>> branches; it adds a `unique_sects` parameter to the constructor of
>> RawConfigParser and a test in the parser loop that raises
>> DuplicateSectionError if a section is seen more then once and that
>> unique_sects is True.
http:/
On Tue, Feb 03, 2009, Yannick Gingras wrote:
>
> The attached patch is compatible with both the 2.x and the 3.x
> branches; it adds a `unique_sects` parameter to the constructor of
> RawConfigParser and a test in the parser loop that raises
> DuplicateSectionError if a section is seen more then onc
Hi,
Thanks for the further responses. Again, I'll try to summarise:
Scott David Daniels pointed out an awkward interaction when chaining
partial applications, such that it could become very unclear what was
going to happen when the final function is called:
> If you have:
> def button(root,
Guido van Rossum writes:
> I suggest that you move this discussion to python-ideas to ferret out
> a possible implementation and API; or to find out work-arounds.
Okay. Done.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mai
Raymond Hettinger wrote:
[Hrvoje Niksic]
The one thing missing from the array
module is the ability to directly access array values from C.
Please put a feature request on the bug tracker.
Done, http://bugs.python.org/issue5141
___
Python-Dev mail
25 matches
Mail list logo