[issue1322] platform.dist() has unpredictable result under Linux

2007-10-30 Thread Christian Heimes

Christian Heimes added the comment:

Yann Cointepas wrote:
> I joined a modified version of platform.py. Here is a summary of the
> modification:
> - replaced '/etc' by global variable _etc_dir
> - removed supported_dists parameter of dist()
> - each element of dist() result is searched in the following places
>   (the first value found is kept):
>   1) First line of /etc/-release
>   2) Contents of /etc/lsb-release
>   3) Extract  from /etc/-release

Here is an updated patch against Python 2.5 (your file was based on
Python 2.5's platform.py, wasn't it?).

CHANGES:

 * Added unit tests
 * Add Lib/test/platform directory for unit tests
 * removed usage of string
 * minor cleanups

Now for the funny part. You have to port the patch to the svn trunk. The
file can't be altered in the 2.5 release cycle. The changes are too
great. Unfortunately the patch doesn't apply cleanly.

Please add more test data to the platform/ directory and test_platform.py

In order to build the trunk:
svn co http://svn.python.org/projects/python/trunk
cd trunk
./configure
make
patch -p0 < patchfile
./python Lib/test/test_platform.py
svn diff > patchfile

Christian

__
Tracker <[EMAIL PROTECTED]>

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



[issue1322] platform.dist() has unpredictable result under Linux

2007-10-30 Thread Christian Heimes

Changes by Christian Heimes:


--
components: +Library (Lib), Tests
versions: +Python 2.6 -Python 2.5
Added file: http://bugs.python.org/file8664/platform_py25.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1345] Fix for test_netrc on Windows

2007-10-30 Thread Christian Heimes

Christian Heimes added the comment:

Guido van Rossum wrote:
> Are you sure this is the proper fix? Why does netrc.py insist on not
> having \r\n line endings?  It opens the file in text mode so I don't
> quite understand your patch.

I don't quite understand why it fails. :/ I've to take more time to
debug it.

Christian

__
Tracker <[EMAIL PROTECTED]>

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



[issue1362] Simple mistake in http://docs.python.org/tut/node6.html

2007-10-30 Thread Dan M

Dan M added the comment:

Yes, it is normally suppressed.  The problem is the condition when it is
suppressed.  The documentation states that it's suppressed when it's the
only value to be written.

It is suppressed when it's *not* the only value to be written. 
-or- (removing the double negative of suppressed(not displayed) and not)
It is displayed when it would be the only value written.

The example immediately following this mistake is correct, which makes
the actual behavior obvious even if this particular statement is wrong.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1358] Compile error on OS X 10.5

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks for testing on Leopard!  I haven't gotten that yet.

Assigning to Neal since this ought to be fixed before 2.5.2 is released.
 (But someone needs to come up with a proper patch.)

--
assignee:  -> nnorwitz
nosy: +gvanrossum, nnorwitz
priority:  -> immediate

__
Tracker <[EMAIL PROTECTED]>

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



[issue1329] Different 3.0a1 exit behavior

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

OK, thanks.  The closefd part is good, but the stderrprinter part has a
problem.  On Linux, in a non-debug build, this has the odd side effect
of subtracting one from sys.maxunicode.  In a debug build, it dies like
this: 

$ ./python -S
python: Modules/gcmodule.c:336: visit_reachable: Assertion `gc_refs > 0
|| gc_refs == (-3) || gc_refs == (-2)' failed.
Aborted
$ 

If I comment out the PySys_SetObject() call everything seems fine, but I
suspect that the problem is actually in the creation of the stdprinter
object.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1329] Different 3.0a1 exit behavior

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

I've checked the closefd patch (which minor changes) into the py3k branch.

Committed revision 58711.

Please take the stdprinter patch to the original issue (bug 1352).

--
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue1339] smtplib starttls() should ehlo() if it needs to

2007-10-30 Thread Bill Fenner

Bill Fenner added the comment:

I've attached a patch against 2.4.3.

The patch does the following:
- Factor out the duplication of EHLO/HELO in login() and sendmail() to a 
new function, ehlo_or_helo_if_needed().
- Use ehlo_or_helo_if_needed() in starttls()
- Check for the starttls exception in starttls() in the same way as 
login() checks for the auth extension.

Added file: http://bugs.python.org/file8665/smtplib-startls-ehlo.diff

__
Tracker <[EMAIL PROTECTED]>

__

smtplib-startls-ehlo.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1336] subprocess.Popen hangs when child writes to stderr

2007-10-30 Thread Jonathan Amsterdam

Jonathan Amsterdam added the comment:

It's an honor to hear from you, BDFL.

I'm just a Python user, not a developer, so the time it would take me
to check out, compile, test, etc. would dwarf the change itself
(removing two lines from file_dealloc).

There is another solution, following Java: file_dealloc could raise an
exception. Then the error would appear in normal contexts, but
(assuming the GC ignores exceptions in finalization) would be ignored
in GC.

There is also a simpler, less invasive change you could consider:
disabling GC in the child inside subprocess.Popen.

On 10/26/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
>
> Guido van Rossum added the comment:
>
> I don't think we can prevent GC from occurring between fork and exec --
> it's legal to just call os.fork() and execute Python code in the
> subprocess forever.  I think the right solution might be to ignore
> errors in file_close().  Can you try to whip up a patch for that and
> test it?
>
> --
> nosy: +gvanrossum
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

__
Tracker <[EMAIL PROTECTED]>

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



[issue829951] Fixes smtplib starttls HELO errors

2007-10-30 Thread Bill Fenner

Bill Fenner added the comment:

I've attached an updated diff, against the 2.4.3 smtplib.py, which forgets 
all of the relevant pieces of information.  The line numbers are offset 
from the standard lib because the original file has my patch for issue 
1339 applied, but there is no overlap so this patch should apply cleanly.

Added file: 
http://bugs.python.org/file8666/smtplib-startls-discard-knowledge.diff


Tracker <[EMAIL PROTECTED]>



smtplib-startls-discard-knowledge.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1362] Simple mistake in http://docs.python.org/tut/node6.html

2007-10-30 Thread Georg Brandl

Georg Brandl added the comment:

No, the text is correct, but the example is misleading -- I now changed
it to

>>> fib(0)
>>> print fib(0)
None

which should make the difference between using and not using print clearer.

--
nosy: +georg.brandl

__
Tracker <[EMAIL PROTECTED]>

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



[issue1329] Different 3.0a1 exit behavior

2007-10-30 Thread Christian Heimes

Christian Heimes added the comment:

Guido van Rossum wrote:
> Guido van Rossum added the comment:
> 
> OK, thanks.  The closefd part is good, but the stderrprinter part has a
> problem.  On Linux, in a non-debug build, this has the odd side effect
> of subtracting one from sys.maxunicode.  In a debug build, it dies like
> this: 
> 
> $ ./python -S
> python: Modules/gcmodule.c:336: visit_reachable: Assertion `gc_refs > 0
> || gc_refs == (-3) || gc_refs == (-2)' failed.
> Aborted
> $ 
> 
> If I comment out the PySys_SetObject() call everything seems fine, but I
> suspect that the problem is actually in the creation of the stdprinter
> object.

I may have found the problem. I forgot th remove Py_TPFLAGS_HAVE_GC from
tp_flags. It's a relict from my first implementation.

$ ./python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "/home/heimes/dev/python/py3k/Lib/io.py", line 22, in 
test
NameError: name 'test' is not defined
Aborted

$ vi Lib/io.py

$ ./python -S
Python 3.0a1+ (py3k:58715M, Oct 30 2007, 19:02:47)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
>>> import sys
[33116 refs]
>>> sys.maxunicode
1114111
[33127 refs]
>>>
[33128 refs]
[23233 refs]

$ python2.5 -c "import sys; print sys.maxunicode"
1114111

__
Tracker <[EMAIL PROTECTED]>

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



[issue1329] Different 3.0a1 exit behavior

2007-10-30 Thread Christian Heimes

Changes by Christian Heimes:


Added file: http://bugs.python.org/file8667/py3k_preliminary_stderr3.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1347] BaseHTTPServer writing strings to bytes interface

2007-10-30 Thread Bill Janssen

Bill Janssen added the comment:

Fixed in rev 58718

--
keywords: +py3k
resolution: accepted -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue1349] more uses of ord() in plat-mac/ic.py

2007-10-30 Thread Bill Janssen

Bill Janssen added the comment:

Fixed in r58717

--
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue1363] python 2.4.4 fails on solaris (sun4u sparc SUNW, Sun-Fire-880)

2007-10-30 Thread Paul

Paul added the comment:

Trying to compile Plone (3.0.2) on a Sun V880 (SunOS genome 5.10
Generic_125100-05 sun4u sparc SUNW,Sun-Fire-880).  Plone is a web
application which runs on the Zope framework. What fails is the python
(2.4.4) which is distributed with Zope.

During the configure step of the build, I receive the following warning:

*BEGIN Snippet*
configure: WARNING: sys/wait.h: present but cannot be compiled
configure: WARNING: sys/wait.h: check for missing prerequisite headers?
configure: WARNING: sys/wait.h: see the Autoconf documentation
configure: WARNING: sys/wait.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/wait.h: proceeding with the preprocessor's result
configure: WARNING: sys/wait.h: in the future, the compiler will take
precedence
configure: WARNING: ##
 ##
configure: WARNING: ## Report this to
http://www.python.org/python-bugs ##
configure: WARNING: ##
 ##
*END Snippet*



Then this nasty error breaks the entire config:


**BEGIN Snippet
checking size of int... configure: error: cannot compute sizeof (int), 77
See `config.log' for more details.
**END Snippet

--
severity: normal -> critical
type:  -> compile error

__
Tracker <[EMAIL PROTECTED]>

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



[issue1363] python 2.4.4 fails on solaris (sun4u sparc SUNW, Sun-Fire-880)

2007-10-30 Thread Paul

New submission from Paul:

Trying to compile Plone (3.0.2) on a Sun V880 (SunOS genome 5.10
Generic_125100-05 sun4u sparc SUNW,Sun-Fire-880).  Plone is a web
application which runs on the Zope framework. What fails is the python
(2.4.4) which is distributed with Zope.

During the configure step of the build, I receive the following warning:

*BEGIN Snippet*
configure: WARNING: sys/wait.h: present but cannot be compiled
configure: WARNING: sys/wait.h: check for missing prerequisite headers?
configure: WARNING: sys/wait.h: see the Autoconf documentation
configure: WARNING: sys/wait.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/wait.h: proceeding with the preprocessor's result
configure: WARNING: sys/wait.h: in the future, the compiler will take
precedence
configure: WARNING: ##
 ##
configure: WARNING: ## Report this to
http://www.python.org/python-bugs ##
configure: WARNING: ##
 ##
*END Snippet*



Then this nasty error breaks the entire config:


**BEGIN Snippet
checking size of int... configure: error: cannot compute sizeof (int), 77
See `config.log' for more details.
**END Snippet

--
components: Build
messages: 56972
nosy: theoryno3
severity: normal
status: open
title: python 2.4.4 fails on solaris (sun4u sparc SUNW,Sun-Fire-880)
versions: Python 2.4

__
Tracker <[EMAIL PROTECTED]>

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



[issue1352] Preliminary stderr patch

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

I've checked in the patch you added to issue 1329, with one mod: where
you wrote "int fd : 1;" I removed the ": 1" since a field width of one
bit makes no sense here.

--
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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



[issue1329] Different 3.0a1 exit behavior

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks, I've closed issue 1352 too now.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1336] subprocess.Popen hangs when child writes to stderr

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

In Python, you can't raise an exception from file_dealloc. (Note how
it is a void function -- there's no way to return an error status.)

Disabling gc however makes sense. I'll think about that. Since you
seem to have the only reproducible occurrence of this bug, try this:
right after the "# Child" comment add a call to gc.disable(). You
should import gc at the top of the module with the rest of the
imports.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1352] Preliminary stderr patch

2007-10-30 Thread Christian Heimes

Christian Heimes added the comment:

Guido van Rossum wrote:
> I've checked in the patch you added to issue 1329, with one mod: where
> you wrote "int fd : 1;" I removed the ": 1" since a field width of one
> bit makes no sense here.

Can you close http://bugs.python.org/issue1771260, too?

Christian

__
Tracker <[EMAIL PROTECTED]>

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



[issue1771260] Errors in site.py not reported properly

2007-10-30 Thread Guido van Rossum

Guido van Rossum added the comment:

Fixed by Christian Heimes's patch, see issue 1352 and issue 1329.

--
nosy: +gvanrossum
resolution:  -> fixed
status: open -> closed

_
Tracker <[EMAIL PROTECTED]>

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



[issue1342] Crash on Windows if Python runs from a directory with umlauts

2007-10-30 Thread Christian Heimes

Christian Heimes added the comment:

Hi Martin!

Thomas Wouters said on #python that you have the Windows Fu to fix the
problem. Parts of the Python API for file paths, sys.path and os.environ
have to be reimplemented using the wide char API.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue1358] Compile error on OS X 10.5

2007-10-30 Thread Martin v. Löwis

Martin v. Löwis added the comment:

There is an autoconf test that tries to compile

| #include 
| int
| main ()
| {
| setpgrp(0,0);
|   ;
|   return 0;
| }

(with many additional defines - see config.log.gz). This file compiles
with the error message

conftest.c:185: error: too many arguments to function 'setpgrp'

hence configure concludes that SETPGRP_HAVE_ARG should *not* be defined
- yet you say it works when it is defined.

Can somebody with access to the system resolve this mystery? Studying
the header file that has the setpgrp declaration is probably necessary.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1363] python 2.4.4 fails on solaris (sun4u sparc SUNW, Sun-Fire-880)

2007-10-30 Thread Martin v. Löwis

Martin v. Löwis added the comment:

What compiler did you use? Can you please attach the compressed config.log?

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

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



[issue1345] Fix for test_netrc on Windows

2007-10-30 Thread billiejoex

Changes by billiejoex:


__
Tracker <[EMAIL PROTECTED]>

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



[issue1364] os.lstat documentation error

2007-10-30 Thread billiejoex

New submission from billiejoex:

os module documentation says about lstat():

> lstat( path) 
> 
> Like stat(), but do not follow symbolic links. 
> Availability: Macintosh, Unix. 

This is not true since os.lstat() is also available under Windows
(tested under Win XP sp, Python 2.5).

Moreover, wouldn't it be better having os.lstat() available on all
platforms and turn it into an alias of os.stat on those platforms which
do not support symbolic links?

--
components: Documentation
messages: 56982
nosy: billiejoex
severity: normal
status: open
title: os.lstat documentation error
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

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



[issue1631171] implement warnings module in C

2007-10-30 Thread Neal Norwitz

Neal Norwitz added the comment:

I think Brett summarized the issues well.  I can't think of anything
else that seems to need doing.

_
Tracker <[EMAIL PROTECTED]>

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



[issue1252] IDLE - patch Delegator to support callables

2007-10-30 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

> 1) Should Delegator delegate calls to callables

No, I agree they should.  The question is whether it's necessary to add a 
__call__() method to the Delegator class.  I claim you can do what you want 
to do without it.  It serves only one purpose that I can see: you want to 
delegate to a callable by calling the instance at the top of the chain, and 
one of the chain members isn't callable.  I don't see a use case for that, 
YAGNI.

I'll defer the Percolator discussion for now.  There is more to it than just 
the inheritance issue.

I found your example1.py to be confusing.  Please stop using the word 
'delegator', it's too overloaded in this discussion!

I marked up example1.py as example1a.py, changing some names and adding some 
comments.

I also worked up example2.py which seems to cover the possible combinations 
of proxying functions, callables, and methods.  It works without adding 
__call__() to Delegator.  Please check it out, what more do you need?

I'll be away until Sunday, so I can't respond further until then.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1252] IDLE - patch Delegator to support callables

2007-10-30 Thread Kurt B. Kaiser

Changes by Kurt B. Kaiser:


Added file: http://bugs.python.org/file8668/example1a.py

__
Tracker <[EMAIL PROTECTED]>

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



[issue1252] IDLE - patch Delegator to support callables

2007-10-30 Thread Kurt B. Kaiser

Changes by Kurt B. Kaiser:


Added file: http://bugs.python.org/file8669/example2.py

__
Tracker <[EMAIL PROTECTED]>

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



[issue1358] Compile error on OS X 10.5

2007-10-30 Thread Neal Norwitz

Neal Norwitz added the comment:

I don't have access to a 10.5 machine.  My guess is that the difference
is between configure not setting _XOPEN_SOURCE and/or
_XOPEN_SOURCE_EXTENDED and it being set in pyconfig.h.  At least those
are both defined on 10.4.  

This page talks about needing to include unistd.h, but doesn't give
enough info:
http://developer.apple.com/documentation/Darwin/Reference/Manpages/man2/setpgid.2.html

Hopefully someone else with access to 10.5 can confirm if this is the
case and we can resolve this.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1252] IDLE - patch Delegator to support callables

2007-10-30 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Further response to your 27Oct:

> That's it.

There is more.  The Delegator mixin exposes its delegate attribute.
Without that, it would not be possible to pass e.g. insert() down the
chain because (in the case of the Text percolator) insert() is found
in each filter and blocks 'transparent' access.

I agree with your two use cases, but repeat that transparent access is
dangerous in that the class in which the attribute is being looked up
changes for each link on the chain.  You could get unexpected results.
IMO you are giving up stability for convenience.  "Explicit is better
than implicit."

> (Caching is just an implementation detail, whose only purpose is to
> facilitate changing a Delegator's delegate.)

Don't believe everything you read.  While that comment in the code is
true, it's not the whole truth.  If 'transparent' access is made to
an attribute further down the chain, that attribute will be actually
cached, i.e. be set as an attribute, in each DelegatorNode.  I imagine
this was done for performance reasons.  The Delegator.__cache is used to
determine which attributes to delete if a delegate is changed.

I'll defer the Percolator comments until later.

> Now, it seems to me that you aren't looking at Delegators and
> Peroclators as transparent proxies at all.

Not so.  That's my 2. in my msg56862 27Oct.  But I see filters as
having two modes of operation.  In the first, they take an action
like insert() and share it explicitly along a chain of authority.
Each link takes specific action, and passes insert() along.  

They also provide transparent access to attributes down the chain, as you 
note.  But once an attribute is found it will not propagate unless
explicitly passed along, and that requires the self.delegate attribute.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1574217] isinstance swallows exceptions

2007-10-30 Thread Neal Norwitz

Neal Norwitz added the comment:

Yeah, this seems like a bug and the patch seems correct.  The patch also
needs a test and add a space between if (.

_
Tracker <[EMAIL PROTECTED]>

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



[issue1490190] add os.chflags() and os.lchflags() where available

2007-10-30 Thread Neal Norwitz

Neal Norwitz added the comment:

Martin's patch from 2007-03-21 fixed the problem with test_posix.  It
now passes all the tests (test_posix and rest of test suite).  The
tests/interpreter do not exit prematurely.

I think it is good to apply this patch.

--
assignee: nnorwitz -> loewis

_
Tracker <[EMAIL PROTECTED]>

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



[issue1346] Error using >>> from OpenGL.GLUT import *

2007-10-30 Thread Neal Norwitz

Neal Norwitz added the comment:

As gagenellina said, this problem appears to be with OpenGL, not python.
 OpenGL is not maintained here.  You'll have to open a bug report with them.

--
nosy: +nnorwitz
resolution:  -> rejected
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

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