Re: [ctpug] Introducing Kids to Programming: 2 or 3?

2010-09-28 Thread Piet Delport
On Mon, Sep 27, 2010 at 5:48 PM, Marco Gallotta ma...@gallotta.co.zawrote: We received a grant from Google to reach 1,000 kids in South Africa with our course in 2011. People have also shown interest in running the course in Croatia, Poland and Egypt. We're also eyeing developing African

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-19 Thread Piet Delport
Changes by Piet Delport [EMAIL PROTECTED]: -- keywords: +patch Added file: http://bugs.python.org/file10060/reset_globs.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2604

[issue2605] Descriptor instance attributes not interpreted consistently

2008-04-16 Thread Piet Delport
Piet Delport [EMAIL PROTECTED] added the comment: Related: #643841 (new-style special method lookup) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2605 __ ___ Python-bugs-list

[issue643841] New class special method lookup change

2008-04-16 Thread Piet Delport
Piet Delport [EMAIL PROTECTED] added the comment: Somewhat related: #2605 (descriptor __get__/__set__/__delete__) -- nosy: +pjd Tracker [EMAIL PROTECTED] http://bugs.python.org/issue643841

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-11 Thread Piet Delport
Piet Delport [EMAIL PROTECTED] added the comment: If any of the variables in test.globs are changed by the test (e.g. appending to a list), then rerunning the test will not necessarily give the same result. This is true, but modifying the globals such that subsequent runs of the same test can

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-11 Thread Piet Delport
Piet Delport [EMAIL PROTECTED] added the comment: Well, whether that code is wrong depends on whether your project policy wants repeatable tests or not. A repeatable and arguably more idiomatic way of writing that example is to give DocFileSuite a setUp function which initializes any special

[issue2605] Descriptor instance attributes not interpreted consistently

2008-04-10 Thread Piet Delport
New submission from Piet Delport [EMAIL PROTECTED]: Short version: __get__/__set__/__delete__ attributes on descriptor objects (as opposed to their types) are treated inconsistently as part of the descriptor protocol: the documentation and support code includes them; the core implementation

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-09 Thread Piet Delport
New submission from Piet Delport [EMAIL PROTECTED]: DocTestCase.tearDown destructively clears its DocTest instance's globs, preventing the test from being run repeatedly (such as with trial --until-failure). There's a fix for this in zope.testing's version of doctest, which resets the globs

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-09 Thread Piet Delport
Piet Delport [EMAIL PROTECTED] added the comment: Addendum: This appears to be a regression in r36809 (Python 2.4+). __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2604

Re: Advantage of the array module over lists?

2008-03-28 Thread Piet Delport
On Mar 17, 1:49 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: I doubt that. AFAIK both arrays and lists are continuous memory-areas, that double (at least to a certain threshold or so) when reaching the capacity limit. For what it's worth, lists over-allocate by ~1/8, and arrays by ~1/16.