[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-12-22 Thread Éric Araujo

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


--
nosy: +eric.araujo
stage: unit test needed - needs patch
versions: +Python 3.3 -Python 3.2

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



[issue10755] Add posix.fdlistdir

2010-12-22 Thread Martin v . Löwis

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

What's the use case for this function?

--

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



[issue9085] Version number inconsistency in email package

2010-12-22 Thread Éric Araujo

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

If there is no further discussion, I’d say the original bug is fixed anc this 
report should be closed.

--
nosy: +eric.araujo

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



[issue8847] crash appending list and namedtuple

2010-12-22 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue10755] Add posix.fdlistdir

2010-12-22 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

When maintaining an fd to implement a per thread current directory, you can use 
it to get a list of files in the directory.

For security reasons, instead of a named path, you can keep an fd to a 
directory so that if the path is changed externally while performing an 
operation, the open fd still points to the original directory. This function 
then allows you to list the contents of that fd. I think this is needed for 
#4489.

--

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



[issue8885] markupbase declaration errors aren't recoverable

2010-12-22 Thread Éric Araujo

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


--
nosy: +eric.araujo
resolution: invalid - 
stage:  - needs patch
title: markerbase declaration errors aren't recoverable - markupbase 
declaration errors aren't recoverable
versions: +Python 2.7 -Python 2.6

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



[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2010-12-22 Thread Éric Araujo

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

Do you want to work on a patch?

--
nosy: +eric.araujo
stage:  - needs patch
title: Method _sys_version() module Lib\platform.py does not parse  
correctly IronPython 2.x version - platform._sys_version does not parse 
correctly IronPython 2.x version
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue9074] subprocess closes standard file descriptors when it should not

2010-12-22 Thread Éric Araujo

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


--
keywords: +needs review
nosy: +astrand
stage:  - patch review
title: [includes patch] subprocess module closes standard file descriptors when 
it should not - subprocess closes standard file descriptors when it should not
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue4489] shutil.rmtree is vulnerable to a symlink attack

2010-12-22 Thread Éric Araujo

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


--
nosy: +eric.araujo
stage:  - needs patch
versions: +Python 2.5

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



[issue9399] Provide a 'print' action for argparse

2010-12-22 Thread Éric Araujo

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

Thinking again about that, what’s wrong with argparse replacing \n with spaces 
and doing its own line wrapping?

--
versions: +Python 3.3 -Python 3.2

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



[issue8754] ImportError: quote bad module name in message

2010-12-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I suppose it's not a good test, since your non-ascii name presumably was 
encoded in UTF-8, which is the encoding that PyUnicode_FromString uses.

--

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



[issue4761] create Python wrappers for openat() and others

2010-12-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Reference counting is not always correct.  For example, in unlinkat

if (res  0)
return posix_error();
Py_DECREF(opath);
(return None)

the DECREF should be before the error check.  (Note that you can use the 
Py_RETURN_NONE macro to save INCREF'ing Py_None explicitly.)

Sometimes you use posix_error, sometimes posix_error_with_allocated_filename; 
is that deliberate?

Also, the documentation for each function should get .. versionadded:: 3.3 
tags.

Otherwise, this looks good and ready for inclusion when py3k is open for new 
features again.

--
nosy: +georg.brandl

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



[issue4761] create Python wrappers for openat() and others

2010-12-22 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

New patch *should* have fixed up reference counting and version tags.

I standardized all the error calls to posix_error.

--
Added file: http://bugs.python.org/file20137/i4761_v4.patch

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



[issue10757] zipfile.write, arcname should be bytestring

2010-12-22 Thread Jacek Jabłoński

New submission from Jacek Jabłoński conexion2...@gmail.com:

file = 'somefile.dat'
filename = ółśąśółąś.dat
zip = zipfile.ZipFile('archive.zip', 'w', zipfile.ZIP_DEFLATED)
zip.write(file, filename)

above produces very nasty filename in zip archive.
*
file = 'somefile.dat'
filename = ółśąśółąś.dat
zip = zipfile.ZipFile('archive.zip', 'w', zipfile.ZIP_DEFLATED)
zip.write(file, filename.encode('cp852'))

this produces TypeError: expected an object with the buffer interface

Documentation says that:
There is no official file name encoding for ZIP files. If you have unicode file 
names, you must convert them to byte strings in your desired encoding before 
passing them to write().

I convert them to byte string but it ends with an error.
If it is documentation bug, what is the proper way to have filenames like 
ółśąśółąś in zip archive?

--
components: Library (Lib)
messages: 124499
nosy: connexion2000
priority: normal
severity: normal
status: open
title: zipfile.write, arcname should be bytestring
type: compile error
versions: Python 3.1

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



[issue10758] posix_access swallows all errors

2010-12-22 Thread Georg Brandl

New submission from Georg Brandl ge...@python.org:

access(2) can return errnos that correspond to input errors or general system 
faults, such as EINVAL, EIO or ENOMEM.  In this case, an exception should be 
raised instead of returning False.

It is probably best to whitelist those errnos that indicate missing access -- 
it needs to be discussed whether that is just EACCES, or also e.g. ENOENT.

--
components: Library (Lib)
messages: 124500
nosy: georg.brandl
priority: normal
severity: normal
stage: needs patch
status: open
title: posix_access swallows all errors
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

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



[issue4761] create Python wrappers for openat() and others

2010-12-22 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks for the update! Three more comments:

* the new constants doc should also get a versionadded

* faccessat should check for EBADF, EINVAL and ENOTDIR and raise an error if 
they are returned, since these are input errors 

  Or, alternately, a range of errnos should be whitelisted for both access and 
faccessat.

  However, this problem should be handled in a separate issue, I've opened 
#10758 for that.

* The octal modes in docstrings and docs should be specified in Python 3 octal 
syntax, e.g. 0o777.

--

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



[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-12-22 Thread Mark Dickinson

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

Antoine, a couple of questions:

(1) Is there documentation for the 'smalltable' field of the Py_buffer struct 
anywhere?  What are the requirements for the exporter here?  E.g., is it / 
should it be a requirement that shape, strides and suboffsets are all NULL 
whenever 'smalltable' is used?

(2) Same question for the 'obj' field:  what's the purpose of this field, from 
the POV of 3rd party buffer exporters?

--

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



[issue4761] create Python wrappers for openat() and others

2010-12-22 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

This new patch has proper octal mode strings and another doc update.

I'll leave faccessat until #10758 has been resolved.

--
Added file: http://bugs.python.org/file20138/i4761_v5.patch

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



[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-12-22 Thread Antoine Pitrou

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

 (1) Is there documentation for the 'smalltable' field of the Py_buffer
 struct anywhere?  What are the requirements for the exporter here?

No, and no particular requirements AFAIR. It is a piece of internal
storage aimed at avoiding the nagging allocation and ownership problem
(but only so when this storage is large enough, of course).

 E.g., is it / should it be a requirement that shape, strides and
 suboffsets are all NULL whenever 'smalltable' is used?

Not at all. On the contrary, smalltable can be used as a piece of
storage for some of these fields.

 (2) Same question for the 'obj' field:  what's the purpose of this
 field, from the POV of 3rd party buffer exporters?

None, it's used by the consumer side of the API, to know which object
exported the buffer and to keep a reference to it so that it doesn't get
deallocated early.

--

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



[issue9085] Version number inconsistency in email package

2010-12-22 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It's too late to make any further changes in version numbers for 2.x.  Sorry 
this slipped by me.

--
status: open - closed

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



[issue10759] HTMLParser.unescape() cannot handle HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread Martin Potthast

New submission from Martin Potthast martin.potth...@googlemail.com:

The title says it all; try the minimal example.

--
components: Library (Lib)
files: parser-fail.py
messages: 124506
nosy: Martin.Potthast
priority: normal
severity: normal
status: open
title: HTMLParser.unescape() cannot handle HTML entities with incorrect syntax 
(e.g. #hearts;)
versions: Python 2.6
Added file: http://bugs.python.org/file20139/parser-fail.py

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



[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread Martin Potthast

Changes by Martin Potthast martin.potth...@googlemail.com:


--
title: HTMLParser.unescape() cannot handle HTML entities with incorrect syntax 
(e.g. #hearts;) - HTMLParser.unescape() fails on HTML entities with incorrect 
syntax (e.g. #hearts;)

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



[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread Martin Potthast

Martin Potthast martin.potth...@googlemail.com added the comment:

I'd suggest to better verify the input and return such strings unchanged.

--
type:  - behavior

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



[issue10576] Add a progress callback to gcmodule

2010-12-22 Thread Kristján Valur Jónsson

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

Uh oh.  I forgot about this and there now we have passed beta 2.
Didn't anyone want to review the patch?

--

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



[issue9399] Provide a 'print' action for argparse

2010-12-22 Thread Dennis Malcorps

Dennis Malcorps dennis.malco...@googlemail.com added the comment:

I totally forgot about this patch, sorry... Due to university and another 
python project I am working on I didn't find the time to look at the test 
suite. I would really appreciate it if someone else could do this ;-)

Anyway, I added the changes proposed by Steven Bethard and Éric Araujo 
regarding the default argument values. (patch made against trunk)

@Éric:
Well, first there is currently only the 'version' action which does this and 
imho it just looks strange if you try to print something else than a version 
info with it.
Second, there are cases where you want whitespaces to be preserved, like 
printing out the license of your program (as I mentioned in my first post) Just 
look at this BSD license:

Copyright (c) 2010, Dennis Malcorps dennis.malco...@gmail.com Redistribution
and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met: 1. Redistributions
of source code must retain the above copyright notice, this list of conditions  
 
and the following disclaimer. 2. Redistributions in binary form must reproduce  
 
the above copyright notice, this list of conditions and the following   
 
disclaimer in the documentation and/or other materials provided with the
 
distribution. 3. The name of the author may not be used to endorse or promote   
 
products derived from this software without specific prior written permission.  
 
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS AND ANY EXPRESS OR IMPLIED  
 
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO  
 
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.


This is just plain ugly.

--
Added file: http://bugs.python.org/file20140/argparse.diff

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



[issue10758] posix_access swallows all errors

2010-12-22 Thread Ross Lagerwall

Changes by Ross Lagerwall rosslagerw...@gmail.com:


--
nosy: +rosslagerwall

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



[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Leaving the input unchanged does seem to be what browsers do.  (Issue 7626 has 
some info on browser behaviour with invalid entity refs.)

Rather than pre-validating the input, I think the exception can be caught and 
the putative entity returned unchanged, similar to how a keyerror is handled 
for a named entity.

Would you have any interest in proposing a patch and tests?

--
nosy: +orsenthil, r.david.murray
stage:  - needs patch

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



[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2010-12-22 Thread Frederic Torres

Frederic Torres fredericaltor...@gmail.com added the comment:

Eric,

Yes I like to.
But I am not familiar how to submit a patch.
The file that need to be patched is C:\Program Files (x86)\IronPython
2.6\Lib\platform.py  for IronPython 2.6.
I thought this file was maintained by Marc-Andre Lemburg
m...@egenix.com based on the comment in the file platform.py.

It will affect IronPython 2.6 and  IronPython 2.6 For .Net 4.0 and
probably IronPython 2.7.

If you give me linsk to read about how to make a patch I would really
like to contribute to IronPython.

Thanks.
Fred.

On Wed, Dec 22, 2010 at 4:02 AM, Éric Araujo rep...@bugs.python.org wrote:

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

 Do you want to work on a patch?

 --
 nosy: +eric.araujo
 stage:  - needs patch
 title: Method _sys_version() module Lib\platform.py does not parse      
 correctly IronPython 2.x version - platform._sys_version does not parse 
 correctly IronPython 2.x version
 versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue8964
 ___


--

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



[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread Martin Potthast

Martin Potthast martin.potth...@googlemail.com added the comment:

Agreed. Here's a patch for HTMLParser. That was easy enough.

With regard to tests, there seems to be already one called 
test_malformatted_charref in test_htmlparser.py. However, the test tests the 
whole parser and not only HTMLParser.unescape().

At the same time, HTMLParser.unescape() has the following comment:
# Internal -- helper to remove special character quoting

It appears the syntax check is done in line 168 already, but since the unescape 
function is publicly visible, I'd say that it should be capable of handling all 
kinds of malformed input, despite that comment. Maybe this comment should be 
removed.

I'm not entirely sure how to write the test properly, since it doesn't fit into 
the framework provided by test_htmlparser.py; and unfortunately, my time is 
rather short at the moment.

--
keywords: +patch
Added file: http://bugs.python.org/file20141/HTMLParser.py.diff

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



[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ah, as an undocumented internal interface it may in fact not be appropriate to 
make this change.  Or it may be.  I'll have to look at the code in more detail 
to figure that out, or perhaps Senthil will.  (It may even be time to document 
the function, we'll see.)

Thanks for the patch.

--
stage: needs patch - unit test needed

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



[issue10760] tarfile doesn't handle sysfs well

2010-12-22 Thread Yoni Tsafir

New submission from Yoni Tsafir yonix85+pyt...@gmail.com:

When I try to add a special file from sys, e.g.:
/sys/class/scsi_host/host0/cmd_per_lun (which is reported of size 4096 but 
actually reading it will return only several bytes of a result), I get the 
following exception:

Traceback (most recent call last):
  File /opt/xpyv/lib/python26.zip/tarfile.py, line 1975, in add
self.addfile(tarinfo, f)
  File /opt/xpyv/lib/python26.zip/tarfile.py, line 2004, in addfile
copyfileobj(fileobj, self.fileobj, tarinfo.size)
  File /opt/xpyv/lib/python26.zip/tarfile.py, line 287, in copyfileobj
raise IOError(end of file reached)
IOError: end of file reached

Notice what happens if I try to add the file with regular tar:
r...@buzaglo # tar cvzf /tmp/blat.tgz /sys/class/scsi_host/host0/cmd_per_lun
tar: Removing leading `/' from member names
/sys/class/scsi_host/host0/cmd_per_lun
tar: /sys/class/scsi_host/host0/cmd_per_lun: File shrank by 4094 bytes; padding 
with zeros
tar: Error exit delayed from previous errors

So it handles the issue by padding the rest of the file size with zeros.

I think this should be the behavior as well, instead of throwing an IOError.

--
components: None
messages: 124514
nosy: Yoni.Tsafir
priority: normal
severity: normal
status: open
title: tarfile doesn't handle sysfs well
type: behavior
versions: Python 2.6

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-12-22 Thread Eric Hohenstein

Eric Hohenstein ehohenst...@imvu.com added the comment:

I have ported the changes related to this problem from the 3.2 branch to the 
2.6 version of socketmodule.c. The changes are attached as a diff from Python 
2.6.2. The changes apply to all platforms but I've only tested them on Windows.

The _PyTime_gettimeofday method is not available in 2.6 which is why the 
changes in 3.2 weren't originally back ported. I admit to adding a disgusting 
hack which was to copy some of the _PyTime_gettimeofday interface code from 3.2 
to the socketmodule.c file and implement it using the time.time() method, 
falling back to the crt time() method. It's not as efficient as the 
implementation in 3.2 but I believe it should be equally correct.

The motivation for doing this was that I continued to see 10035 errors 
happening using Python 2.6 though in different code paths. Specifically, errors 
were being thrown when uploading a file using a PUT request using httplib which 
calls sendall(). It's noteworthy that analysing the changes made for this issue 
to Python 3.2 revealed that no change was made to the sendall() method. 
sendall() is actually problematic in that the timeout on the socket may 
actually be exceeded without error if any one call to select() doesn't exceed 
the socket's timeout but in aggregate the calls to select do wait longer than 
the timeout. The same generic solution that was applied to the other socket 
methods is not appropriate for sendall(). I elected to continue this behavior 
by just checking for EAGAIN and EWOULDBLOCK if the socket has a positive 
timeout value and the call to send failed and continuing the select/send loop 
in that case. As far as I can tell, sendall() will still fail with these r
 ecoverable errors in Python 3.2. I won't feel bad if this patch is rejected 
for 2.6 but the changes to sendall() should really be considered for the 3.2 
branch.

--
resolution: fixed - 
status: closed - open
versions: +Python 2.6 -Python 3.2
Added file: http://bugs.python.org/file20142/socket_10035.patch

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



[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. #hearts; )

2010-12-22 Thread Martin Potthast

Martin Potthast martin.potth...@googlemail.com added the comment:

Why not simply remove the additional check in line 168 and leave the 
responsibility to check the validity of its input to the unescape function (be 
it explicitly or, like now, lazily). That way, the code changes are minimal, 
the existing test covers the current issue, and the function gets more robust.

By the way, I came across this function via Stackoverflow:
http://stackoverflow.com/questions/2087370

--

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



[issue10758] posix_access swallows all errors

2010-12-22 Thread Antoine Pitrou

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

The list of errnos indicating missing access seems open-ended.
Things such as:

[ENAMETOOLONG]
The length of a component of a pathname is longer than {NAME_MAX}.
[ENOENT]
A component of path does not name an existing file or path is an empty 
string.
[ENOTDIR]
A component of the path prefix is not a directory, or the path argument 
contains at least one non- slash character and ends with one or more trailing 
slash characters and the last pathname component names an existing file that 
is neither a directory nor a symbolic link to a directory.
[EROFS]
Write access is requested for a file on a read-only file system.

... may be considered missing access.

--
nosy: +pitrou
type: behavior - feature request
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2

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



[issue10737] test_concurrent_futures failure on Windows

2010-12-22 Thread Antoine Pitrou

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


--
nosy: +brian.curtin

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



[issue10757] zipfile.write, arcname should be bytestring

2010-12-22 Thread Martin v . Löwis

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

This is not a bug. Your code that produces very nasty filename is the right 
one - the file name is actually the one you asked for. The second code is also 
behaving correctly: filename already *is* a bytestring, calling .encode for it 
is meaningless.

--
nosy: +loewis
resolution:  - invalid
status: open - closed

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



[issue10757] zipfile.write, arcname should be bytestring

2010-12-22 Thread Martin v . Löwis

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

Oops, I take this back - I didn't notice you were using Python 3.1.

In any case, your first code is correct. What you get is the best you can ask 
for.

That the second case fails is indeed a bug.

--
resolution: invalid - 
status: closed - open

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



[issue10758] posix_access swallows all errors

2010-12-22 Thread Martin v . Löwis

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

I don't think we can change this for the maintenance branches. The code behaves 
according to the documentation:

access(path, mode) - True if granted, False otherwise

False otherwise is really meant that way: otherwise. The specific condition 
is indeed not communicated. However, applications are entitled to not seeing 
exceptions come out of this function.

I would be in favor of changing this in the long term, but then raise 
exceptions in all cases. Alternatively, have it produce falsish values that 
encapsulate the error code.

--
nosy: +loewis

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



[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2010-12-22 Thread Éric Araujo

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

This is the tracker for CPython, not IronPython, but I assume they synchronize 
their standard modules with ours, so I think this bug should be fixed here (not 
in 2.6 though, this old version only gets security fixes).

Guidelines for patches: http://www.python.org/dev/patches/

In short: check out the py3k branch, add a test that fails in 
Lib/test/test_platform.py (in the test_sys_version method), then patch the code 
to make the test pass.

--

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



[issue10296] ctypes catches BreakPoint error on windows 32

2010-12-22 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +theller

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



Re: [issue10587] Document the meaning of str methods

2010-12-22 Thread Senthil Kumaran
On Tue, Dec 14, 2010 at 03:42:17PM +, Alexander Belopolsky wrote:
 I am attaching a patch that expands the documentation of isalnum,
 isalpha, isdecimal, isdigit, isnumeric, islower, isupper, and
 isspace.  I did not change isidentifier or isprintable because their
...
 redundant checks for isdecimal() and isdigit().  I think the
 documentation should reflect what the code does for an off-chance
 that someone would replace unicodedata with their own database with
 which these checks are not redundant.

+1 for making these changes. Helps clarify meaning of these methods with
respect to Unicode strings.

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



[issue10761] tarfile.extractall fails to overwrite symlinks

2010-12-22 Thread Sridhar Ratnakumar

New submission from Sridhar Ratnakumar sridh...@activestate.com:

tarfile.extractall overwrites normal files and directories, yet it fails to 
overwrite symlinks:

  [..]
tf.extractall()
  File /opt/ActivePython-2.7/lib/python2.7/tarfile.py, line 2046, in 
extractall
self.extract(tarinfo, path)
  File /opt/ActivePython-2.7/lib/python2.7/tarfile.py, line 2083, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
  File /opt/ActivePython-2.7/lib/python2.7/tarfile.py, line 2167, in 
_extract_member
self.makelink(tarinfo, targetpath)
  File /opt/ActivePython-2.7/lib/python2.7/tarfile.py, line 2243, in makelink
os.symlink(tarinfo.linkname, targetpath)
OSError: [Errno 17] File exists

To reproduce, use a .tar.gz file containing relative (i.e., in the same 
directory) symlinks.

Perhaps it should delete `targetpath` before attempting to create a symlink.

--
components: Library (Lib)
messages: 124523
nosy: srid
priority: normal
severity: normal
status: open
title: tarfile.extractall fails to overwrite symlinks
type: behavior
versions: Python 2.7

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



[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-22 Thread Terry J. Reedy

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

Patch attached.

The instructions, after editing the url, are
# Before adding new types, make sure they are either registered with IANA,
# at http://www.iana.org/assignments/media-types
# or extensions, i.e. using the x- prefix

Since there is no registration yet, I add the x- prefix. I presume that can be 
deleted without harm when it is registered. David, is that true?

Georg, is this OK for 3.2c1?
It can only break code depending on the entries not existing.

--
assignee:  - terry.reedy
keywords: +patch
Added file: http://bugs.python.org/file20143/mimetypes.svg.diff

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



[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-22 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - commit review

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



[issue8885] markupbase declaration errors aren't recoverable

2010-12-22 Thread Terry J. Reedy

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

I verified the looping behavior of the testcase in both 2.7.1 and, with minor 
mods, 3.1.3 and 3.2b1, so this is a valid issue.

The HTMLParcer docs (2.7, 3.2) do not mention the .error method. The default is
def error(self, message):
raise HTMLParseError(message, self.getpos())

If this is *not* intended to be part of the api and over-ridden, the name 
should be changed to ._error and .error deprecated. If it is, it should be 
documented.

I think the self.error call should be followed either by j+=1 so parsing 
continues with the next char or by a raise statememt so it is definitely 
stopped.

--
versions: +Python 3.1, Python 3.2

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



[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-12-22 Thread Thorsten Behrens

Thorsten Behrens sbehr...@gmx.li added the comment:

I can test this for 3.1, as all I have is the Express version of VC++. If you 
could point me towards a library that will work with 3.1 and has C components, 
that'll make the testing a lot easier. pycrypto and setuptools, the two libs 
mentioned in this issue, do not support Python 3.x.

--
nosy: +sbehr...@gmx.li

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

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

Version 11 of my patch:
 - Disable the fault handler (and displaying the backtrace on a fatal error) by 
default
 - The fault handle can be enabled by setting the PYTHONFAULTHANDLER 
environment variable or using -X faulthandler command line option (instead of 
being disabled by setting the PYTHONNOFAULTHANDLER env var)
 - Use PyGILState_GetThisThreadState() instead of 
_Py_atomic_load_relaxed(_PyThreadState_Current) to get the state of the 
current thread, especially if the current thread doesn't hold the GIL
 - Add a protection against recursive calls to _Py_DisplayBacktrace() (a 
recursive call does nothing), even it is very unlikely
 - Don't repeat the exception message after the backtrace
 - Add a test on a segfault in a thread not holding the GIL

Disable the fault handler by default solves many issues reported on the 
python-dev mailing list:

 - Issues with embedded Python
 - Python 3.2 beta 2 is released
 - The fault handler supposes that the file descriptor 2 is the standard error 
output, but it may be a critical file or a network socket

Amaury asked for a sys.setsegfaultenabled() option: I think that the command 
line option and the environment variable are enough. The question is now how to 
enable the feature for a single run (reproduce a crash to try to get more 
information), not how to enable/disable it system-wide (because most developers 
agree that it should be disabled by default).

Should it be backported to Python 2.7 and 3.1?

--
Added file: http://bugs.python.org/file20144/segfault_handler-11.patch

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


Removed file: http://bugs.python.org/file20102/segfault_handler-9.patch

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


Removed file: http://bugs.python.org/file20113/segfault_handler-10.patch

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
versions: +Python 3.2

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread Alexander Belopolsky

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

Stephen,

I wonder if you would have comments on this.  As far as I know emacs installs 
SEGV handlers similar to the ones proposed here.  How well do they work?  Does 
it really help users to produce meaningful bug reports?

--
nosy: +belopolsky, sjt

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread Scott Dial

Scott Dial sc...@scottdial.com added the comment:

On 12/22/2010 8:52 PM, STINNER Victor wrote:
 Amaury asked for a sys.setsegfaultenabled() option: I think that the command 
 line option and the environment variable are enough.

I really think you should think of it as a choice the developer of an
application makes instead of a choice an application user makes. A
setsegfaultenabled() could just be another step of initializing the
application akin to setting up the logging module, for instance. In that
situation, a function call has a much lower barrier for use than a CLI
option or environment variable where you'd have to create a wrapper script.

--
title: Display Python backtrace on SIGSEGV, SIGFPE and fatal error - Display 
Python backtrace on SIGSEGV,  SIGFPE and fatal error

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



[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-22 Thread Alexander Belopolsky

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

Committed to py3k in revision 87442.

--
versions:  -Python 3.2

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread Alexander Belopolsky

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

On Wed, Dec 22, 2010 at 9:27 PM, Scott Dial rep...@bugs.python.org wrote:

 Scott Dial sc...@scottdial.com added the comment:

 On 12/22/2010 8:52 PM, STINNER Victor wrote:
  Amaury asked for a sys.setsegfaultenabled() option: I think that the 
  command line option and the environment variable are enough.

 I really think you should think of it as a choice the developer of an
 application makes instead of a choice an application user makes. A
 setsegfaultenabled() could just be another step of initializing the
 application akin to setting up the logging module, for instance. In that
 situation, a function call has a much lower barrier for use than a CLI
 option or environment variable where you'd have to create a wrapper script.

+1

I would actually prefer just sys.setsegfaultenabled() without a
controlling environment variable.  If necessary, the environment
variable can be checked in site.py and sys.setsegfaultenabled()
called.

As I suggested on python-dev, I also think this belongs to a separate
module rather than core or sys.  The relevant code is already
segregated in a file, so turning it into a module should not be
difficult.  The only function that probably must stay in core is
_Py_DumpBacktrace().  With say segvhandler module, site.py can
include something like this:

if sys.getenv('PYTHONSEGVHANDLER'):
 import segvhandler
 segvhandler.enable()

Does the latest patch address the GIL/multithreading issues?

--
title: Display Python backtrace on SIGSEGV, SIGFPE and fatal error - 
Display Python backtrace on SIGSEGV, SIGFPE and fatal error

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



[issue10587] Document the meaning of str methods

2010-12-22 Thread Alexander Belopolsky

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

Committed r87443 (3.2) and r87444 (3.1).

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

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

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

 Does the latest patch address the GIL/multithreading issues?

Yes.

--

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

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

Le jeudi 23 décembre 2010 à 02:27 +, Scott Dial a écrit :
 Scott Dial sc...@scottdial.com added the comment:
 
 On 12/22/2010 8:52 PM, STINNER Victor wrote:
  Amaury asked for a sys.setsegfaultenabled() option: I think that the 
  command line option and the environment variable are enough.
 
 I really think you should think of it as a choice the developer of an
 application makes instead of a choice an application user makes.

Why do you think so? Can you give me an use case of
sys.setsegfaultenabled()?

Extract of my email on python-dev:

--

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

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

Le jeudi 23 décembre 2010 à 02:27 +, Scott Dial a écrit :
 Scott Dial sc...@scottdial.com added the comment:
 
 On 12/22/2010 8:52 PM, STINNER Victor wrote:
  Amaury asked for a sys.setsegfaultenabled() option: I think that the 
  command line option and the environment variable are enough.
 
 I really think you should think of it as a choice the developer of an
 application makes instead of a choice an application user makes.

Why do you think so? Can you give me an use case of
sys.setsegfaultenabled()?

Extract of my email on python-dev:

  Use case: when a program crashs, the user reruns its application 
  with the fault handler enabled and tries to reproduce the crash.
  He/She can send the Python backtrace to the developer, or use
  it directly (if he/she understands it).

After the discussion on python-dev, I don't think that the fault handler
should be enabled by default, but only for a single run.

--

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread STINNER Victor

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

Le jeudi 23 décembre 2010 à 02:45 +, Alexander Belopolsky a écrit :
 As I suggested on python-dev, I also think this belongs to a separate
 module rather than core or sys.

Why do you want to move it outside Python core? It is very dependent of
Python internals (GIL/threads, frames, etc.) and so I think that it's
better to keep it in the Python core.

--

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



[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-22 Thread Scott Dial

Scott Dial sc...@scottdial.com added the comment:

On 12/22/2010 10:35 PM, STINNER Victor wrote:
 Why do you think so? Can you give me an use case of
 sys.setsegfaultenabled()?

To feed back your own argument on python-dev:

 How do you know that you application will crash? The idea is to give
 informations to the user when an application crashs: the user can use
 the backtrace or send it to the developer. Segmentation faults are
 usually not (easilly) reproductible :-( So even if you enable the
 fault handler, you may not be able to replay the crash. Or even
 worse, the fault may not occurs at all when you enable the fault
 handler... (Heisenbugs!)

 After the discussion on python-dev, I don't think that the fault handler
 should be enabled by default, but only for a single run.

I agree that it should be disabled by default because of the potential
do bad things if the application was not wrote with it in mind. But an
application developer would be in a much better position to decide what
the default should be for their application if they believe they will be
able to get more useful bug reports from their users by enabling it.

I thought that was your position, but if you no longer believe that,
then I will not push for it.

--
title: Display Python backtrace on SIGSEGV, SIGFPE and fatal error - Display 
Python backtrace on SIGSEGV,  SIGFPE and fatal error

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



[issue10755] Add posix.fdlistdir

2010-12-22 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

Hi,

Attached is a slightly updated patch that improves doc and changes fdlistdir to 
always return strings, not bytes.

--
Added file: http://bugs.python.org/file20145/i10755.patch

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