[issue9800] Fast path for small int-indexing of lists and tuples

2010-10-05 Thread Aahz

Aahz  added the comment:

Wasn't me!  And I've spent too little time on python-dev lately to
remember stuff like this.  :-(

--
nosy: +Aahz

___
Python tracker 
<http://bugs.python.org/issue9800>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10044] small int optimization

2010-10-07 Thread Aahz

Changes by Aahz :


--
nosy:  -Aahz, aahz

___
Python tracker 
<http://bugs.python.org/issue10044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7895] Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

2010-02-09 Thread Aahz

New submission from Aahz :

On OSX 10.6/Snow Leopard, using platform.mac_ver() in a subprocess
created with fork() but not calling exec() will cause a crash with
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

You may need to be also running in GUI mode.

Ronald Oussouren says that you can get the same info from
/System/Library/CoreServices/SystemVersion.plist

--
assignee: ronaldoussoren
components: Macintosh
messages: 99136
nosy: aahz, ronaldoussoren
severity: normal
stage: test needed
status: open
title: Mac 10.6 mac_ver() crashes with 
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER
type: crash

___
Python tracker 
<http://bugs.python.org/issue7895>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9138] Tutorial: classes intro paragraph icky

2010-07-01 Thread Aahz

New submission from Aahz :

http://docs.python.org/dev/tutorial/classes.html

Chapter 9 of the Tutorial contains this intro paragraph:

Python's class mechanism adds classes to the language with a minimum
of new syntax and semantics. It is a mixture of the class mechanisms
found in C++ and Modula-3. As is true for modules, classes in Python
do not put an absolute barrier between definition and user, but
rather rely on the politeness of the user not to "break into the
definition." The most important features of classes are retained with
full power, however:  the class inheritance mechanism allows multiple
base classes, a derived class can override any methods of its base
class or classes, and a method can call the method of a base class
with the same name.  Objects can contain an arbitrary amount of data.

A coworker found particularly the third sentence incomprehensible, and
even with ten years of Python under my belt, I can't say that it makes
much more sense to me.  I know what it must be trying to say and
therefore proffer this suggested rewrite:

Compared with other programming languages, Python's class mechanism
adds classes with a minimum of new syntax and semantics.  It is a
mixture of the class mechanisms found in C++ and Modula-3.  Python
classes provide all the standard features of Object Oriented
Programming: the class inheritance mechanism allows multiple base
classes, a derived class can override any methods of its base class
or classes, and a method can call the method of a base class with the
same name.  Objects can contain arbitrary amounts and kinds of data.
As is true for modules, classes partake of the dynamic nature of
Python; users of a class can modify or break the class definition
even without changing the source code.

--
assignee: d...@python
components: Documentation
messages: 109080
nosy: aahz, d...@python
priority: critical
severity: normal
stage: patch review
status: open
title: Tutorial: classes intro paragraph icky
type: behavior
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue9138>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com