Re: [Python-Dev] mmap feature or bug?

2004-12-19 Thread Michael Hudson
Josiah Carlson <[EMAIL PROTECTED]> writes:

> Quick questions:
> Is mmap's inability to be subclassed a feature or bug?

Like Martin said, a missing feature.  I'd also quite like the mmap
module to have a C API, but as my use case is especially evil (

http://starship.python.net/crew/mwh/hacks/PPY.html

) I'm not going to push that hard :)

> Is one's inability to use a = mmapinstance.__setslice__;a(1,2,'a') (and
> others) a feature or bug?

I'm not entirely sure about this, though.  Does 

mmapinstance.__setitem__(slice(1,2), 'a')

work?  AIUI __setslice__ and __getslice__ are out of favour these days
(not sure though).

Any patch to fix one of these would probably also fix the other almost
as a sside-effect...

Cheers,
mwh

-- 
  ... with these conditions cam the realisation that ... nothing
  turned a perfectly normal healthy individual into a great political
  or military leader better than irreversible brain damage.
   -- The Hitch-Hikers Guide to the Galaxy, Episode 11
___
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Python in education

2004-12-19 Thread "Martin v. Löwis"
Randy Chung wrote:
I'm going to be leading a class on Python at the University of 
California, Berkeley next semester (starting in January).  I'm 
interested in using actual bugs in Python as exercises for the class, 
the goal being 1) to give the students something "real" to work with, 
and 2) to (hopefully) contribute back anything we manage to put together 
to the Python dev team.
Welcome to the club! I'm just running a class on development processes
in open source software (i.e. with a somewhat different scope), where
students already have fixed bugs in Mozilla and PHP - unfortunately,
none of them were interested in Python. Nevertheless, this is quite
fun for both the students, and myself - especially when the Mozilla
guys do a review after 3h, the super review after 36h, and explain that
they cannot commit the fix because the code is frozen (and then do
after two weeks, well before the presentation in the class).
What I'm looking for are some oustanding bugs which the more experienced 
devs feel would be straightforward to implement
I'd look in the one-to-two-year old range of bugs. One risk in such
a course is that some of the developers fixes the bug while your student
is working on it, which is discouraging. How many bugs do you need?
The *really* easy ones are documentation bugs, but I expect that
students don't see this as a sufficient challenge. There are currently
roughly 100 documentation bugs open.
You can further filter out all assigned bugs; the unassigned ones
are likely resting because nobody cares (yet).
Looking at unassigned bugs starting from offset 300, I think all
of the following bugs might be suitable:
- 840065
- 839151
- 837242 (really trivial)
- 828743
- 813986
If you feel this is off topic, please feel free to reply to me off-list.
This is clearly python-dev relevant.
Regards,
Martin
___
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] mmap feature or bug?

2004-12-19 Thread Josiah Carlson

Michael Hudson <[EMAIL PROTECTED]> wrote:
> 
> Josiah Carlson <[EMAIL PROTECTED]> writes:
> > Is one's inability to use a = mmapinstance.__setslice__;a(1,2,'a') (and
> > others) a feature or bug?
> 
> I'm not entirely sure about this, though.  Does 
> 
> mmapinstance.__setitem__(slice(1,2), 'a')
> 
> work?  AIUI __setslice__ and __getslice__ are out of favour these days
> (not sure though).
> 
> Any patch to fix one of these would probably also fix the other almost
> as a sside-effect...

Accessing mmapi.__setslice__, mmapi.__getslice__, mmapi.__getitem__ and
mmapi.__setitem__ fail with attribute errors.


 - Josiah

___
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] MS VC compiler versions

2004-12-19 Thread "Martin v. Löwis"
M.-A. Lemburg wrote:
Here's an update of the list I currently have:
I have
* SDK Itanium compiler
Microsoft (R) C/C++ Optimizing Compiler Version 13.10.2240.8 for IA-64
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
Regards,
Martin
___
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] MS VC compiler versions

2004-12-19 Thread "Martin v. Löwis"
M.-A. Lemburg wrote:
Thanks, Martin. Could you also give me the official version
number of the compiler or SDK ? 
It is "Windows Server 2003 Platform SDK, February 2003".
Regards,
Martin
___
Python-Dev mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com