[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Greg - this is actually a different exception then the original bug report; 
could you please file a new issue with the information you've provided? I'm 
going to need to find a 64bit ubuntu box as I don't have one right now.

--

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



[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-08 Thread Greg Brockman

New submission from Greg Brockman g...@ksplice.com:

I have recently begun using multiprocessing for a variety of batch
jobs.  It's a great library, and it's been quite useful.  However, I have been 
bitten several times by situations where a worker process in a Pool will 
unexpectedly die, leaving multiprocessing hanging in a wait.  A simple example 
of this is produced by the following:

#!/usr/bin/env python
import multiprocessing, sys
def foo(x):
  sys.exit(1)
multiprocessing.Pool(1).apply(foo, [1])

The child will exit and the parent will hang forever.  A similar occurrence 
happens if one pushes C-c while a child process is running (this special case 
is noted in http://bugs.python.org/issue8296) or killed by a signal.

Attached is a patch to handle unexpected terminations of children
processes and prevent the parent process from hanging.  A test case is 
included.  (Developed and tested on 64-bit Ubuntu.)  Please let me know what 
you think.  Thanks!

--
components: Library (Lib)
files: termination.patch
keywords: patch
messages: 109585
nosy: gdb
priority: normal
severity: normal
status: open
title: Parent process hanging in multiprocessing if children terminate 
unexpectedly
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file17905/termination.patch

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



[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky

New submission from Alexander Belopolsky belopol...@users.sourceforge.net:

Most likely the same underlying problem as in issue 9202, but can be seen on a 
non-windows platform.

 from os import *
 stat('/')
Traceback (most recent call last):
  File stdin, line 1, in module
SystemError: NULL result without error in PyObject_Call

With attached patch, the error message is clearer:

 stat('.')
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: In structseq_repr()  member 15 name is NULL

--
assignee: belopolsky
messages: 109586
nosy: belopolsky
priority: high
severity: normal
stage: unit test needed
status: open
title: os.stat() is broken
type: behavior
versions: Python 3.2

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



[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
keywords: +patch
Added file: http://bugs.python.org/file17906/issue9206.diff

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



[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +benjamin.peterson, brian.curtin, eric.smith
Added file: http://bugs.python.org/file17907/issue9206.diff

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



[issue9206] os.stat() is broken

2010-07-08 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


Removed file: http://bugs.python.org/file17907/issue9206.diff

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



[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I apologize for not reading the first post more carefully, thank you for
restating the use cases. I’m +1 now and I’ll review the patches to make
it up :)

Bugs may take years to get fixed. Now that Tarek has expressed interest,
be sure that this won’t get lost again.

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman

New submission from Greg Brockman g...@ksplice.com:

On Ubuntu 10.04, using freshly-compiled python-from-trunk (as well as 
multiprocessing-from-trunk), I get tracebacks from the following about 30% of 
the time:


import multiprocessing, time   
def foo(x):
 time.sleep(3) 
multiprocessing.Pool(1).apply(foo, [1])


My tracebacks are of the form:

Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File /usr/local/lib/python2.7/threading.py, line 530, in __bootstrap_inner
  File /usr/local/lib/python2.7/threading.py, line 483, in run
  File /usr/local/lib/python2.7/multiprocessing/pool.py, line 272, in 
_handle_workers
type 'exceptions.TypeError': 'NoneType' object is not callable


This information was originally posted to http://bugs.python.org/issue4106.

--
components: Library (Lib)
messages: 109588
nosy: gdb
priority: normal
severity: normal
status: open
title: multiprocessing occasionally spits out exception during shutdown
type: behavior
versions: Python 2.6, Python 2.7

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



[issue444582] Finding programs in PATH, adding shutil.which

2010-07-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
resolution:  - accepted
title: Finding programs in PATH, addition to os - Finding programs in PATH, 
adding shutil.which
versions: +Python 3.2 -Python 2.7, Python 3.1

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



[issue4106] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Greg Brockman

Greg Brockman g...@ksplice.com added the comment:

Sure thing.  See http://bugs.python.org/issue9207.

--

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



[issue4028] Problem compiling the multiprocessing module on sunos5

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still an issue with more recent versions of Python?

--
components: +Build -Extension Modules
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

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



[issue9207] multiprocessing occasionally spits out exception during shutdown

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Thanks greg; so this affects 2.6 as well (not using the backport at all)

--
assignee:  - jnoller
nosy: +jnoller

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



[issue4112] Subprocess: Popen'ed children hang due to open pipes

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Would someone with knowledge of subprocess please comment on this.

--
nosy: +BreamoreBoy

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



[issue7900] posix.getgroups() failure on Mac OS X

2010-07-08 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I got some time and did an experiment to deduce how multiple groups behave. 
This comment is rather long, a very short summary of the results is that OSX 
behaves oddly.

What I did:

* This is on OSX 10.6
* Create 18 groups named group1 to group18
* Create a user testuser that is a member of those groups:

$ id testuser
uid=504(testuser) gid=20(staff) 
groups=20(staff),514(group10),512(group8),513(group9),511(group7),515(group11),520(group16),516(group12),507(group3),517(group13),61(localaccounts),12(everyone),509(group5),505(group1),518(group14),510(group6),508(group4),521(group17),506(group2),402(com.apple.sharepoint.group.1),519(group15),522(group18)

  The user is actually a member of over 18 groups, it is a member of
  a number of system groups as well (but note: not the admin group)

* Create 18 files named 1 to 18, echo is owned by the group with
  the same number, contains its sequence number ('1' in 'group1')
  and has mode '0060':

$ ls -l
total 144
rw  1 ronald  group1   2 Jul  8 21:56 1
rw  1 ronald  group10  3 Jul  8 21:56 10
rw  1 ronald  group11  3 Jul  8 21:56 11
rw  1 ronald  group12  3 Jul  8 21:56 12
rw  1 ronald  group13  3 Jul  8 21:56 13
rw  1 ronald  group14  3 Jul  8 21:56 14
rw  1 ronald  group15  3 Jul  8 21:56 15
rw  1 ronald  group16  3 Jul  8 21:56 16
rw  1 ronald  group17  3 Jul  8 21:56 17
rw  1 ronald  group18  3 Jul  8 21:56 18
rw  1 ronald  group2   2 Jul  8 21:56 2
rw  1 ronald  group3   2 Jul  8 21:56 3
rw  1 ronald  group4   2 Jul  8 21:56 4
rw  1 ronald  group5   2 Jul  8 21:56 5
rw  1 ronald  group6   2 Jul  8 21:56 6
rw  1 ronald  group7   2 Jul  8 21:56 7
rw  1 ronald  group8   2 Jul  8 21:56 8
rw  1 ronald  group9   2 Jul  8 21:56 9


* Log in as that user, I used fast  user switching for that

* The user can read all files, that which means that the user is
  a member of all 18 groups as far as filesystem access is concerned

* My own account is not a member of the 18 groups and can not read
  the files (tested just in case access control is totally broken)

* Removing testuser from a group has no effect for running processes,
  but does affect new Terminal windows.

  This is different than what I had expected, I expected that the
  new window would have the same permissions as the already opened
  one.

* I also added a new group (group19) and made testuser a member of that
  group. Using the same technique as before I observed that a shell
  in a new Terminal window had group19 in its effective group list.


According to an engineer I had an e-mail conversation with this behaviour is 
intentional, which is why they patched /usr/bin/python in OSX 10.6 to use the 
new getgroups implementation.

IMO for most users the new getgroups (the one you get when _DARWIN_C_SOURCE is 
defined) more closely matches system behavior (that is, it returns the 
effective group list for regular processes). 

The only users that will see the odd behavior w.r.t. os.setgroups are those 
running scripts as root that use both os.setgroups and os.getgroups.  

Note that explicitly setting the effective uid and gid of processes is somewhat 
frowned upon by Apple, they'd prefer if all daemon processes where started 
using launchd and used launchd to start them using the correct permissions. A 
tool like ssh should use initgroup to initialize the effective group list, and 
that will do the right thing (which appearently is the odd behaviour I saw in 
new Terminal sessions).


I therefore propose to both keep _DARWIN_C_SOURCE and enhance the 
posix.getgroups implementation to deal with the fact that getgroups(3) may 
return more groups than we'd expect.


An earlier comment noted that such code might even be useful on Linux where 
MAX_GROUPS is 2**16 and the current implementation therefore uses a mostly 
unnecessarily large buffer on the stack, which may cause stack overflows.

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Changes by Jesse Noller jnol...@gmail.com:


--
title: multiprocessing occasionally spits out exception during shutdown - 
multiprocessing occasionally spits out exception during shutdown 
(_handle_workers)

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



[issue8946] PyBuffer_Release signature in 3.1 documentation is incorrect

2010-07-08 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

The documentation issue appears present in 2.7 (and 2.6).
Further, the Py_buffer member 'obj' is undocumented, and the in-line comment in 
object.h falsely states that it is a borrowed reference, whereas 
PyBuffer_Release() Py_XDECREFs it and clears it.  Thus, it is also safe to call 
PyBuffer_Release() more than once, something that can be useful for certain 
error scenarios.

PEP 3118 also has not been updated to reflect the above.

--
nosy: +krisvale

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-08 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Jyrki: could you please explain how you build Python to get the behavior you're 
seeing?  The most important bit: what is the exact command-line that is used to 
run the configure script, and what is the contents of the environment while 
doing that.

I'm adding 3.2 to the version list because that uses the same code.

I'll apply the patch soon, but would prefer to know how to correctly reproduce 
the issue before doing so.

--
versions: +Python 3.2

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



[issue4179] pdb: Allow the list command to return to the currently debugged line

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Even if the patch is acceptable it would need to be updated for Python 3.2.

--
nosy: +BreamoreBoy
versions: +Python 3.2

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



[issue7900] posix.getgroups() failure on Mac OS X

2010-07-08 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Thu, Jul 8, 2010 at 4:30 PM, Ronald Oussoren rep...@bugs.python.org wrote:
..
 Note that explicitly setting the effective uid and gid of processes is 
 somewhat frowned upon by Apple, they'd prefer if all daemon processes where 
 started using launchd and used launchd to start them using the correct 
 permissions. A tool like ssh should use initgroup to initialize the effective 
 group list, and that will do the right thing (which appearently is the odd 
 behaviour I saw in new Terminal sessions).

IIRC, the tests for initgroup in one of my patches also break with
_DARWIN_C_SOURCE on.

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Greg Brockman

Greg Brockman g...@ksplice.com added the comment:

That's likely a mistake on my part.  I'm not observing this using the stock 
version of multiprocessing on my Ubuntu machine(after running O(100) times).  I 
do, however, observe it when using either python2.7 or python2.6 with 
multiprocessing-from-trunk, if that's interesting.

I'm not really sure what the convention is here; should this be filed just 
under Python 2.7?  Thanks.

--

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



[issue7900] posix.getgroups() failure on Mac OS X

2010-07-08 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Your test might expect different behaviour than what OSX actually does (this is 
an annoying limitation of unittests for wrappers of system behaviour, you'll 
implicitly test system behaviour as well as the wreappers themselves)

The behaviour w.r.t. secondairy groups is rather different than what I'd expect 
on a Unix system.

--

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



[issue4499] redefinition of TILDE macro on AIX platform

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Is this still a problem or can the issue be closed?

--
components: +Build -None
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Oh, you mean the backport from google code?

The person who stepped up to maintain that has not refreshed that in some time. 
I need to decide what to do with it long term. I'm pretty sure it's badly out 
of date.

--

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



[issue4802] detect_tkinter for cygwin

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

This is a one line patch against setup.py, can someone with cygwin please try 
it.

--
nosy: +BreamoreBoy
stage:  - patch review
type:  - feature request
versions: +Python 3.2

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



[issue9206] repr(os.stat(..)) is broken by the structseq change

2010-07-08 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Attached patch, issue9206a.diff seems to fix the os.stat() issue.


Brian, can you check if it fixes issue 9202 as well?

I planned to finish some other stuff tonight, so I am reassigning this to 
Benjamin.

--
assignee: belopolsky - benjamin.peterson
components: +Interpreter Core
title: os.stat() is broken - repr(os.stat(..)) is broken by the structseq 
change
Added file: http://bugs.python.org/file17908/issue9206a.diff

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



[issue4813] On OS-X the directories searched by setup.py for Tk are in the wrong order.

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I've no idea whether this is still a problem.

--
nosy: +BreamoreBoy, ronaldoussoren
stage:  - needs patch
versions: +Python 3.2 -Python 2.6, Python 3.0

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



[issue9203] Use computed gotos by default

2010-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Antoine Pitrou wrote:
 
 New submission from Antoine Pitrou pit...@free.fr:
 
 Now that the option has probably been extensively tested, it would be nice to 
 enable computed gotos by default on systems that support them.
 Perhaps this needs a dedicated test in the configure script.

I doubt that it has been tested enough, but enabling it
for those platform/compiler where we know it works, should be
fine.

Have you tried testing this using the buildbots ?

--

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



[issue7900] posix.getgroups() failure on Mac OS X

2010-07-08 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

This whole thing is a mess.  Great analysis, by the way.   I started a
similar experiment some time ago, but gave up when I discovered that a
member of the admin group can read any file regardless of permissions
settings.  Your solution is probably the best we can do for 2.7, but
for 3.x I still believe it is better to add os.getgrouplist and
document that on OSX users should use it in preference of
os.getgroups.  (A better explanation of the difference between the two
will probably be even better.)

On Thu, Jul 8, 2010 at 4:52 PM, Ronald Oussoren rep...@bugs.python.org wrote:
..
 The behaviour w.r.t. secondairy groups is rather different than what I'd 
 expect on a Unix system.

--

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



[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Has this simply slipped under the radar?

--
nosy: +BreamoreBoy, loewis
stage:  - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue7900] posix.getgroups() failure on Mac OS X

2010-07-08 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

s/2.7/2.7.1/

--

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



[issue9203] Use computed gotos by default

2010-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Marc-Andre Lemburg wrote:
 
 Marc-Andre Lemburg m...@egenix.com added the comment:
 
 Antoine Pitrou wrote:

 New submission from Antoine Pitrou pit...@free.fr:

 Now that the option has probably been extensively tested, it would be nice 
 to enable computed gotos by default on systems that support them.
 Perhaps this needs a dedicated test in the configure script.
 
 I doubt that it has been tested enough, but enabling it
 for those platform/compiler where we know it works, should be
 fine.

Here's a compiler/platform combination where it should not be used
per default:

gcc 4.4.2 on AMD processors ...
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42621

The fix will go into gcc 4.5, the report doesn't say whether it was
also backported to 4.4.x.

--

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



[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

It seems that this is ok in py3k in which case it could be backported to 2.7, 
or has this already been done?

--
nosy: +BreamoreBoy, loewis
versions: +Python 2.7 -Python 2.5

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



[issue4878] post installer script's message is not shown to user with bdist_wininst

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I just hope I've got this right. :)

--
assignee:  - tarek
nosy: +BreamoreBoy, tarek
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue9203] Use computed gotos by default

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 gcc 4.4.2 on AMD processors ...
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42621

So? Compilers have all kinds of optimization bugs, it's not our job to
have a compiler matrix with optimal flags per compiler.

(well, you can of course maintain such a matrix if you want)

For the record, I had an Athlon 64 machine until very recently, used it
with gcc 4.4.x and computed gotos were better than without.

--

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



[issue9136] RuntimeError when profiling Decimal

2010-07-08 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Fixed in revisions r82654 through r82657.  Thanks everyone for the input.

--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

As patches were originally provided would someone kindly review them.

--
nosy: +BreamoreBoy, loewis
stage:  - patch review
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Greg Brockman

Greg Brockman g...@ksplice.com added the comment:

No, I'm not using the Google code backport.

To be clear, I've tried testing this with two versions of multiprocessing:
- multiprocessing-from-trunk (r82645): I get these exceptions with ~40% 
frequency
- multiprocessing from Ubuntu 10.04 (version 0.70a1): No such exceptions 
observed

Out of curiosity, I did just try this with the processing library (version 
0.52) on a 64-bit Debian Lenny box, and did not observe these exceptions.

Hope that's useful!

--

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



[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-07-08 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Committed in r82659.

I'm leaving this open until a few other issues are fleshed out.
1. Document privilege escalation and/or expose some method to do so.
2. Test execution, e.g., buildbots


Once I get a few more things off my plate I should be able to finish setting up 
#2, the buildbot slave I've got almost up and running. I'd like to safely set 
it up so that this can be tested there, as none of the other buildbots are 
likely to run any of these tests.

--
resolution:  - fixed
stage: patch review - committed/rejected

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



[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

amaury Should repr() print unicode characters outside the BMP?

Yes. I don't understand why characters outside the BMP will be considered 
differently than other characters. Is it a workaround for bogus operating 
systems? My Linux terminal (Konsole on KDE) is able to display Ugaritic 
characters (range starting at U+10383).

amaury it may be better to define printable based on the
amaury sys.stdout/sys.stderr encoding

You can not do that: stdout and stderr encoding might be different, stdout and 
stderr errors are different, and repr() output is not always written to stdout 
or stderr. If you write repr() output to a file, you have to know the encoding 
of the file. How can I get the encoding? If sys.stdout is replaced by a 
io.StringIO() object (eg. doctests), you don't have any encoding (StringIO 
only manipulate unicode objects, no bytes objects).

ezio I want to change only the behavior of the interactive interpreter

This idea was rejected by the PEP.

I agree with may add confusion of the kind it works in interactive mode but 
not when redirecting to a file.

I already noticed such problem: the interactive interpreter adds '' to 
sys.path, and so import behaves differently in the interpreter than a script. 
It's annoying because it took me hours to understand why it was different.

ezio and only when the string sent to stdout is not encodable

Which means setting sys.stdout.errors to something else than strict. I prefer 
to detect unicode problems earlier.

Eg. if you set errors to 'replace', write will never fail. If the output is 
used as input for another program (UNIX pipe), you will send ? to the reader 
process. I'm not sure that it is the expected behaviour. And if stdout is not a 
TTY, stdout uses ASCII encoding (which will raise an unicode errors at the 
first non ASCII character!).

--

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



[issue9203] Use computed gotos by default

2010-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Antoine Pitrou wrote:
 
 Antoine Pitrou pit...@free.fr added the comment:
 
 gcc 4.4.2 on AMD processors ...
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42621
 
 So? Compilers have all kinds of optimization bugs, it's not our job to
 have a compiler matrix with optimal flags per compiler.

No, but we do need to make sure that the casual user does not
run into such issues by using the default compiler on a typical
Unix system with Python default settings.

An expert user can always use the right compiler... but then an
expert can also use the configure option :-)

gcc 4.4.2 is not exactly an old version of gcc. The perspective
of (apparently) not having the patch in in Ubuntu 10.4 LTS's
default compiler suggests that we do need be more careful about
enabling the switch per default.

 (well, you can of course maintain such a matrix if you want)
 
 For the record, I had an Athlon 64 machine until very recently, used it
 with gcc 4.4.x and computed gotos were better than without.

Perhaps someone can report whether this affects Ubuntu 10.4 LTS ?!

--

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



[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Richard Jones

Richard Jones richardjo...@optushome.com.au added the comment:

Giampaolo,

I think I can see where you're coming from: assuming that someone else must 
have also had to resort to the name-mangling hack to extend the class? In that 
case yes, my patch would break their code. I'll look at re-working it to use 
properties while retaining the underlying attributes. Would that be acceptable?

What additional tests would you deem necessary?

--

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



[issue9198] Should repr() print unicode characters outside the BMP?

2010-07-08 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I suggest to:
  1) keep the current behavior for non-BMP chars (i.e. print them normally);
  2) change isprintable to consider the Zx categories printable (this will 
affect repr() too);
  3) change displayhook (*NOT* sys.stdout.encoding) to use backslashreplace 
when the string contains chars that are not encodable with sys.stdout.encoding 
*.

* note that this will affect only the objects that are converted with repr() in 
the interpreter e.g.  x = 'foo'; x and *NOT*  x = 'foo'; print(x). 
Since the first behavior exists *only* in the interactive interpreter it won't 
be inconsistent with normal programs (x = 'foo'; x in a program doesn't 
display anything).

--

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



[issue9208] SMTPHandler does not handle unicode strings

2010-07-08 Thread norbidur

New submission from norbidur norbi...@users.sourceforge.net:

SMTPHandler fails when receiving unicode strings.

example : 
import logging,logging.handlers
smtpHandler = logging.handlers.SMTPHandler(
mailhost=(smtp.free.fr,25),
fromaddr=f...@free.fr, toaddrs=t...@free.fr,
subject=uerror message)
LOG = logging.getLogger()
LOG.addHandler(smtpHandler)
LOG.error(uaccentu\u00E9)

- UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 
108 : ordinal not in range(128)

There has been a discuss on this in 
http://groups.google.com/group/comp.lang.python/browse_thread/thread/759df42f9374d1b6/05ad55c388c746e3?lnk=raotpli=1

FileHandler does not behave the same way : for this handler's family an 
encoding can be specified, and if this encoding fails, there is a fallback to 
UTF-8.

--
components: Unicode
messages: 109621
nosy: norbidur
priority: normal
severity: normal
status: open
title: SMTPHandler does not handle unicode strings
type: behavior
versions: Python 2.5, Python 2.6

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



[issue3401] wsgiref can't handle unicode environments

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

I'd guess that this has already been fixed as it relates to the Windows 
buildbot but has slipped under the radar.

--
nosy: +BreamoreBoy

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



[issue9203] Use computed gotos by default

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 No, but we do need to make sure that the casual user does not
 run into such issues by using the default compiler on a typical
 Unix system with Python default settings.

The point is that we cannot make it sure. There is nothing specific
about computed gotos here: any kind of compiler bug could threaten
Python performance without us being able to do anything about it. Even
if we restrict ourselves to standard C features.

(also, I'll point out that it's not demonstrated that the problem above
affects Python, rather than simply the particular piece of code shown in
the bugzilla report)

--

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



[issue7766] sys.getwindowsversion as PyStructSequence

2010-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Brian Curtin wrote:
 
 Brian Curtin cur...@acm.org added the comment:
 
 The previously mentioned comments about backwards incompatibility with the 
 number of items in the sequence are now a problem, since structseq now 
 inherits from tuple. It seems that n_in_sequence gets ignored and we have a 9 
 item tuple.

But that's not a problem with this ticket, is it. The previous use
case has to be restored (after all, this was the main reason for
adding structseq years ago).

Someone goofed when making the said change to structseq. Is there a
ticket open for this ? Here's the change:
http://svn.python.org/view?view=revrevision=82636

After some digging: Looks like it's being dealt with on
http://bugs.python.org/issue8413

--

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



[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

 Would that be acceptable?

I guess it would. Deciding to use that naming convention was a bad design 
choice in the first place, hence your proposal is perfectly reasonable, in my 
opinion.

 What additional tests would you deem necessary?

I think that a simple test which iterates over all renamed attributes and makes 
sure that DeprecationWarning is raised would be fine.

--

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



[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

A new patch, generated on top of r82662

--
Added file: http://bugs.python.org/file17909/unicodectype_ucs4_4.patch

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



[issue6587] interrupts during long writes cause connection corruption with SSL module

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

For a simple fix this has been sitting around a long time. :)

--
nosy: +BreamoreBoy
versions:  -Python 2.6, Python 3.0

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



[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--

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



[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

 Would that be acceptable?

I guess it would. Deciding to use that naming convention was a bad design 
choice in the first place, hence your proposal is perfectly reasonable, in my 
opinion.

 What additional tests would you deem necessary?

I think that a test which iterates over all renamed attributes and makes sure 
that DeprecationWarning is raised would be fine.
Also, __attrname and attrname should be checked for equality.

--

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



[issue7766] sys.getwindowsversion as PyStructSequence

2010-07-08 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Yep, setting this back to closed.

--
status: open - closed

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



[issue9206] repr(os.stat(..)) is broken by the structseq change

2010-07-08 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

r82663

--
resolution:  - fixed
status: open - closed

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



[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Amaury Forgeot d'Arc wrote:
 
 Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
 
 A new patch, generated on top of r82662

Could you explain what this bit is about ?

@@ -349,7 +313,7 @@
configure Python using --with-wctype-functions.  This reduces the
interpreter's code size. */

-#if defined(HAVE_USABLE_WCHAR_T)  defined(WANT_WCTYPE_FUNCTIONS)
+#if defined(Py_UNICODE_WIDE)  defined(WANT_WCTYPE_FUNCTIONS)

 #include wctype.h

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Wait - so, you are pulling svn trunk, compiling and running your test with the 
built python executable? I'm not following the multiprocessing-from-trunk 
distinction unless you're picking the module out of the tree / compiling it and 
then moving it into some other install. I might be being overly dense.

You're running your test with cd src/tree/  ./python your thing - right?

Also, what, if any, compile flags are you passing to the python build?

--

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



[issue9203] Use computed gotos by default

2010-07-08 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 No, but we do need to make sure that the casual user does not
 run into such issues by using the default compiler on a typical
 Unix system with Python default settings.

I think there is no risk here. The casual Python user on an AMD64 system
where gcc is the default compiler will use the Python installation that
comes with the operating system.

--

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



[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 The patch as-is can't be accepted if not for Python 4.x maybe,
 obviously because it's just too breaking.

With all due respect, this sounds a bit silly. If the attributes were of the 
__private kind, they weren't meant to be used by other classes, and so 
there's no problem in making them public. (the reverse would be more annoying)

However, making them public means they should be maintained with the same 
semantics in future versions, which might be too much of a burden. In this 
case, perhaps you want to make them of the _private kind instead.

--
nosy: +pitrou

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



[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Would someone with appropriate knowledge please take a look to see if this is 
still an issue.

--
components: +Library (Lib) -Extension Modules
nosy: +BreamoreBoy
stage:  - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage: commit review - needs patch
versions: +Python 3.2 -Python 2.6, Python 2.7

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



[issue2986] difflib.SequenceMatcher not matching long sequences

2010-07-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Anyone can post on Python-dev, but non-developers should do so judiciously and 
with respect for the purpose of the list. It is also polite to introduce 
oneself with the first post. In any case, Tim Peters has approved making some 
change. The remaining question is exactly what.

There is no problem with extending the API in 3.2. The debate there is over 2.7.

My fourth proposal, detailed on pydev, is to introduce a fourth paramater, 
'common', to set the frequency threshold to None or int 1-99.

--

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



[issue6587] interrupts during long writes cause connection corruption with SSL module

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
resolution:  - duplicate
status: open - closed
superseder:  - ssl.SSLSocket.write may fail on non-blocking sockets

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



[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Patch should probably be rewritten to add a `mode` property on the new 
SSLContext object instead.

--

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



[issue5024] sndhdr.whathdr returns -1 for WAV file frame count

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Robert, could you provide a patch for this?

--
nosy: +BreamoreBoy
stage:  - needs patch
versions: +Python 3.2

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



[issue2986] difflib.SequenceMatcher not matching long sequences

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 There is no problem with extending the API in 3.2. The debate there is
 over 2.7.

We could extend the API as long as it stays backwards-compatible (that
is, the default value for the new argument produces the same behaviour
as before).

--

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



[issue5060] gcc profile guided optimization

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Could someone from the build area please take a look at the patch, only three 
lines have changed.

--
nosy: +BreamoreBoy
stage:  - patch review
versions: +Python 3.1, Python 3.2

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



[issue5060] gcc profile guided optimization

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

On which platform? it works here (Python 3.2, Linux).

--
nosy: +pitrou

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




[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-07-08 Thread Joel Brobecker

Joel Brobecker brobec...@gnat.com added the comment:

GDB can suffer from the same sort of problem.  In my case, I picked up a Python 
binary tarball built on a different machine (without --enable-shared), and the 
path in -Lpath returned by python-config --ldflags refered to the prefix used 
at configure time.  But, by comparison, --cflags returns the correct include 
path.

To give more context: GDB can be linked against libpython to add python 
scripting support in GDB. To determine how to compilelink Python in GDB, we 
have a copy of python-config in GDB, and do python /path/to/python-config 
--cflags/ldflags.

Because it is often convenient to pick up a binary install, and because this 
install is not always at the same location as the prefix used at configure 
time, python-config --ldflags returns a -Lpath with a path that is irrelevant 
in our case.

The attached patch fixes this issue.

The patch also fixes the issue originally reported: I think that python-config 
--ldflags should also print -Lprefix/lib in the case where python was 
configured with --enable-shared.  This is necessary when prefix is not a 
standard location.

This was tested with Python 2.5, 2.6, and 2.7, static and shared, by calling 
the script with --ldflags, and by verifying the output.

--
keywords: +patch
nosy: +brobecke
Added file: http://bugs.python.org/file17910/python-config.diff

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Greg Brockman

Greg Brockman g...@ksplice.com added the comment:

 Wait - so, you are pulling svn trunk, compiling and running your test 
 with the built python executable?
Yes.  I initially observed this issue while using 10.04's Python (2.6.5), but 
wanted to make sure it wasn't fixed by using a newer interpreter.

 I'm not following the multiprocessing-from-trunk distinction unless  
 you're picking the module out of the tree / compiling it and then 
 moving it into some other install. I might be being overly dense.
Initially I was doing exactly that.  (Some context: I was working on a patch to 
fix a different multiprocessing issue, and figured I may as well write my patch 
against the most recent version of the library.)  Note that I was using Lucid's 
_multiprocessing, so there was no compilation involved.

 You're running your test with cd src/tree/  ./python your thing -  right?
What... is src/tree?  If it's what you're asking, I am running the 
freshly-compiled python interpreter, and it does seem to be using the relevant 
modules out of trunk:
 import threading; threading.__file__
'/usr/local/lib/python2.7/threading.pyc'
 import multiprocessing; multiprocessing.__file__
'/usr/local/lib/python2.7/multiprocessing/__init__.pyc'
 import _multiprocessing; _multiprocessing.__file__
'/usr/local/lib/python2.7/lib-dynload/_multiprocessing.so'

When running with 2.6, all modules are whatever's available for 10.04 except 
for the multiprocessing that I took from trunk:
 import threading; threading.__file__
'/usr/lib/python2.6/threading.pyc'
 import multiprocessing; multiprocessing.__file__
'multiprocessing/__init__.pyc'
 import _multiprocessing; _multiprocessing.__file__
'/usr/lib/python2.6/lib-dynload/_multiprocessing.so'

 Also, what, if any, compile flags are you passing to the python build?
I just ran ./configure  make  make install

Sorry about the confusion--let me know if you'd like additional information.  I 
can test on other platforms/with other configurations if it would be useful.

--

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



[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

A new patch that doesn't remove an important check, avoids a crash when the C 
macro is called with a huge number. thanks Ezio.

--
Added file: http://bugs.python.org/file17911/unicodectype_ucs4_5.patch

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Alright, I'm fighting ubuntu 64 bit in my vmware install right now, I'll see if 
I can get it up and running.

--

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



[issue5127] Use Py_UCS4 instead of Py_UNICODE in unicodectype.c

2010-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

 Could you explain what this bit is about ?
 -#if defined(HAVE_USABLE_WCHAR_T)  defined(WANT_WCTYPE_FUNCTIONS)
 +#if defined(Py_UNICODE_WIDE)  defined(WANT_WCTYPE_FUNCTIONS)

On Windows at least, HAVE_USABLE_WCHAR_T is True, this means that Py_Unicode 
can be converted to wchar_t.  But now that Py_UNICODE_ISSPACE() takes Py_UCS4, 
it cannot be converted to wchar_t anymore.

Now that the unicode database functions claim to use Py_UCS4, the functions of 
wctypes.h are usable only if they also support Py_UCS4.

OTOH the symbol WANT_WCTYPE_FUNCTIONS is defined only if ./configure is called 
with --with-wctype-functions, I don't expect it to be common.
BTW, the comment says that This reduces the interpreter's code size.  I don't 
really agree, these functions are two-liners.

--

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



[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +loewis

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



[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2010-07-08 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I think anybody willing to invest the time could acquire the appropriate 
knowledge, at least to determine whether it's still an issue (i.e. trying to 
reproduce it). To fix it, one would then need to read the source code of 
hostname, and find out what they do differently; strace might be sufficient 
already.

--

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



[issue2570] backport 3.0-style \u/\U processing in raw strings when unicode_literals is imported from __future__

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

It would be a change in behaviour, which is quite unacceptable for a bugfix 
release. I think this should be closed.

--
nosy: +pitrou
resolution:  - rejected
status: open - pending

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



[issue1723038] Curses Menu

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Would someone please comment on the patch, I can't because I don't know 
anything about the Python C API.

--
components: +Library (Lib) -Extension Modules
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +giampaolo.rodola

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



[issue9170] zipfile cannot read AES encrypted files

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
versions: +Python 3.2 -Python 2.6

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



[issue9170] zipfile cannot read AES encrypted files

2010-07-08 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Do note that providing a patch first requires that encryption/decryption 
facilities be made available in the stdlib.
(right now we only offer hashing, and high-level socket wrapping)

--
nosy: +pitrou

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



[issue9170] zipfile cannot read AES encrypted files

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
dependencies: +add crypto routines to stdlib

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



[issue9162] License for multiprocessing files

2010-07-08 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee:  - jnoller
nosy: +jnoller
priority: normal - high
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue9162] License for multiprocessing files

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Yes; the copyright has to stay; but the license data can leave afaik.

--

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



[issue2979] use_datetime in SimpleXMLRPCServer

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Presumably the patch needs reworking as SimpleXMLRPCServer has been 
incorporated into the new xmlrpc package for Python 3.

--
nosy: +BreamoreBoy
stage:  - needs patch
versions: +Python 3.2 -Python 2.6

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



[issue3591] elementtree tests do not include bytes handling

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Have the tests been incorporated into py3k so this can be closed, or is it 
still valid?

--
nosy: +BreamoreBoy

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




[issue2986] difflib.SequenceMatcher not matching long sequences

2010-07-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

My proposal F, to expose the common frequency threshold as a fourth positional 
parameter with default 1, would do that: repeat current behavior. We should, 
and Eli and I would, add some of the anomalous cases to the test suite and 
verily that the default is to reproduce the current anomalies, and that passing 
None changes the result.

Any opinions, anyone, on 'common', 'thresh', 'threshold', or anything else as 
the new parameter name?

We will have to explain in the doc patch that the parameter is new in 2.7.1 to 
fix a partial bug and that giving any explicit value will make code not run 
with 2.7 (.0).

Exposing the set of common values as an instance attribute, as I proposed on 
pydev, would be a new feature not needed to fix the bug. So it should be 
limited to 3.2.

--

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



[issue3674] test_dbm_ndbm skip is unexpected on win32?

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Given this.

c:\Python31\Lib\test..\..\python.exe regrtest.py test_dbm_ndbm.py
test_dbm_ndbm
test_dbm_ndbm skipped -- No module named _dbm
1 test skipped:
test_dbm_ndbm
Those skips are all expected on win32.

I assume that this can be closed.

--
nosy: +BreamoreBoy

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



[issue9209] pstats module crashes on trailing backslash

2010-07-08 Thread Ilya Sandler

New submission from Ilya Sandler ilya.sand...@gmail.com:

a session attached:

cheetah:~/wrk/svn/psi-poly5/poly/aut/prof ~/comp/python/trunk/python -m pstats 
prof.out 
Welcome to the profile statistics browser.
% stats 20 \
Thu Jul  8 17:50:27 2010prof.out

 197258358 function calls (197187736 primitive calls) in 321.090 CPU 
seconds

Traceback (most recent call last):
  File /home/ilya/comp/python/trunk/Lib/runpy.py, line 162, in 
_run_module_as_main
__main__, fname, loader, pkg_name)
  File /home/ilya/comp/python/trunk/Lib/runpy.py, line 72, in _run_code
exec code in run_globals
  File /home/ilya/comp/python/trunk/Lib/pstats.py, line 681, in module
browser.cmdloop()
  File /home/ilya/comp/python/trunk/Lib/cmd.py, line 142, in cmdloop
stop = self.onecmd(line)
  File /home/ilya/comp/python/trunk/Lib/cmd.py, line 219, in onecmd
return func(arg)
  File /home/ilya/comp/python/trunk/Lib/pstats.py, line 657, in do_stats
return self.generic('print_stats', line)
  File /home/ilya/comp/python/trunk/Lib/pstats.py, line 578, in generic
getattr(self.stats, fn)(*processed)
  File /home/ilya/comp/python/trunk/Lib/pstats.py, line 359, in print_stats
width, list = self.get_print_list(amount)
  File /home/ilya/comp/python/trunk/Lib/pstats.py, line 332, in get_print_list
list, msg = self.eval_print_amount(selection, list, msg)
  File /home/ilya/comp/python/trunk/Lib/pstats.py, line 306, in 
eval_print_amount
if re.search(sel, func_std_string(func)):
  File /home/ilya/comp/python/trunk/Lib/re.py, line 142, in search
return _compile(pattern, flags).search(string)
  File /home/ilya/comp/python/trunk/Lib/re.py, line 245, in _compile
raise error, v # invalid expression
sre_constants.error: bogus escape (end of line)

--
components: Library (Lib)
messages: 109656
nosy: isandler
priority: normal
severity: normal
status: open
title: pstats module crashes on trailing backslash
type: behavior
versions: Python 2.7

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-08 Thread Matthew Barnett

Matthew Barnett pyt...@mrabarnett.plus.com added the comment:

issue2636-20100709.zip is a new version of the regex module.

I've moved most of the regex module's Python code into a private module.

--
Added file: http://bugs.python.org/file17912/issue2636-20100709.zip

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



[issue5302] Allow package_data globs match directories

2010-07-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Since there will be be separate patches for each Python version, it does not 
much matter. But I will try to notice when an issue for for D2 and leave such 
alone.

--
nosy: +tjreedy

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



[issue4492] httplib code thinks it closes connection, but does not

2010-07-08 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

John could you provide a patch for this?

--
nosy: +BreamoreBoy
stage:  - needs patch
versions: +Python 3.1, Python 3.2 -Python 2.6, Python 3.0

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



[issue4609] Allow use of 256 FD's on solaris in 32 bit mode

2010-07-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I have no idea if this is possible or applicable to 3.x, but 3.2 is the 
earliest version for new features.

--
nosy: +tjreedy
versions: +Python 3.2 -Python 2.5, Python 2.6

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



[issue4629] getopt should not accept no_argument that ends with '='

2010-07-08 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
stage:  - commit review
versions: +Python 3.2 -Python 2.6, Python 3.0

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



[issue5784] raw deflate format and zlib module

2010-07-08 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

A doc addition would seem like a good idea, so I am changing this to a doc 
issue for the current versions. Can you suggest specific text and a specific 
location to place it?

A behavior change could only go into 3.2. I do not know who, if anyone, 
maintains zlib. A reference to the desired algorithm might be necessary.

--
assignee:  - d...@python
components: +Documentation -Library (Lib)
nosy: +d...@python, tjreedy
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5

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



[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-08 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

issue7989a.diff is a partial success implementing Nick Coghlan's testing idea.  
Unfortunately, datetime implementation with it's circular dependency on 
_strftime is not very robust with respect to import trickery.

I am calling this a partial success because although running 
Lib/test/test_datetime.py does not report any errors, it only works with pure 
python version of pickle. (I had to add sys.modules['_pickle'] = None at the 
top of the module to make it work.)

Also, the resulting test_datetime is quite an abomination!

--
Added file: http://bugs.python.org/file17913/issue9206a.diff

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



[issue1723038] Curses Menu

2010-07-08 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
components: +Extension Modules -Library (Lib)
versions:  -Python 2.7, Python 3.1

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



[issue1723038] Curses Menu

2010-07-08 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
stage:  - unit test needed
type:  - feature request

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

I can confirm with a clean ubuntu 64 install, with a clean checkout of 
release27 that it explodes with that exception, while the stock 2.6.5 does not.

--

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



[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

 If the attributes were of the __private kind, they weren't meant to 
 be used by other classes, and so there's no problem in making them 
 public.

Generally I would agree with you but this case is different, imho.
The problem here is that those items didn't have to be declared __private in 
the first place. As a consequence of this I think it's reasonable to expect 
that during the years some code out there might got to rely on them by using 
name-mangling hack.
After all smtpd module is very old and SMTPHandler class likely to be 
subclassed because of its basic implementation, and that is why I see some 
similarities with issue 8483.
I was of the opinion that just removing the __getattr___ ugliness without 
passing through the usual DeprecationWarning period supposed to be applied in 
such circumstances would cause no harm, until I realized I was relying on that 
very functionality in pyftpdlib and I didn't even know it.

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

It does not seem to appear on OS/X 10.6.4 - so the only question is does this 
show up on Ubuntu 32bit

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Correction; it can and does happen on OS/X. So, this is not a platform specific 
bug.

--

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



[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

2010-07-08 Thread Greg Brockman

Greg Brockman g...@ksplice.com added the comment:

Yeah, I've just taken a checkout from trunk, ran './configure  make  make 
install', and reproduced on:

- Ubuntu 10.04 32-bit
- Ubuntu 9.04 32-bit

--

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



<    1   2   3   4   >