Steven Bethard steven.beth...@gmail.com added the comment:
I'm definitely open to providing such functionality. I assume you're imagining
something like:
parser = argparse.ArgumentParser()
a_action = parser.add_argument('-a')
b_action = parser.add_argument('-b')
c_action =
Steven Bethard steven.beth...@gmail.com added the comment:
Georg, is this something we can patch for rc2? It's a bug - errors encountered
by argparse-internal code should be translated into command line errors, and
they currently aren't for read-only files.
For what it's worth, the tests fail
Georg Brandl ge...@python.org added the comment:
This would be acceptable to patch; I wonder whether to swallow the exception
text of IOError though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9509
Steven Bethard steven.beth...@gmail.com added the comment:
Good point. Here's the updated patch that reports the IOError as well. All
tests pass. I'll apply in a bit if I don't hear otherwise.
--
Added file: http://bugs.python.org/file20491/argparse.diff
Nestor Aguilera aguil...@santafe-conicet.gov.ar added the comment:
On 23 Jan 2011, at 04:33, Georg Brandl wrote:
Georg Brandl ge...@python.org added the comment:
I disagree. There aren't really 64-bit users on OSX, thanks to fat
binaries. So if starting IDLE would start a 32-bit
Georg Brandl ge...@python.org added the comment:
Library patch looks good.
Tests: Does the create_readonly_file helper work on all platforms, esp.
Windows? Maybe it's better to create a different error situation?
--
___
Python tracker
Nestor Aguilera aguil...@santafe-conicet.gov.ar added the comment:
On 22 Jan 2011, at 04:50, Ned Deily wrote:
[...]
A similar exception occurs (without a crash) when saving a file to a
non-ASCII file name and LANG is not properly set:
[...]
Is there a way of telling tkinter to set the
SilentGhost ghost@gmail.com added the comment:
I've tested this on windows. It passed all test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9509
___
Prasun Ratn pras...@gmail.com added the comment:
What is the status of this bug?
I tried to build the svn trunk with patches provided by zhirsch but I had
problems applying the patches. I went ahead and made a new patch which is
pretty similar to the earlier patch (mentioned above). The one
Changes by Prasun Ratn pras...@gmail.com:
Added file: http://bugs.python.org/file20493/pdcurses.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2889
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
facepalmSorry, Georg! I think I've been working too hard, this completely
passed me by. Should have left py3k till later, as it's not that
urgent./facepalm
--
___
Python tracker
Steven Bethard steven.beth...@gmail.com added the comment:
The docs for os.chmod claim:
Availability: Unix, Windows.
Although Windows supports chmod(), you can only set the file's read-only flag
with it (via the stat.S_IWRITE and stat.S_IREAD constants or a corresponding
integer value). All
Michael Foord mich...@voidspace.org.uk added the comment:
There are a few issues here.
X11 is not installed by *default* on Mac OS X (it is supplied separately) so it
doesn't provide an out of the box solution.
Starting IDLE as 32bit alone doesn't solve the problem as it launches a
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch. I also strength the recursion limit testing script by testing
both recursion through dicts and through lists.
--
components: +Extension Modules
keywords: +patch
nosy: +alexandre.vassalotti, amaury.forgeotdarc,
R. David Murray rdmur...@bitdance.com added the comment:
I don't think Georg considers it a bug in Sphinx, it's just how the
disambiguation machinery works. You can write :func:`~os.stat` if you want the
link text to just be 'stat' but the link to be to 'os.stat'.
I don't think the addition
R. David Murray rdmur...@bitdance.com added the comment:
The API change would be generating an error if newline='' wasn't specified.
Amplifying the bytes-case error message would be fine, though. On the other
hand, we are in RC phase, and I'm not at all sure this is important enough to
go
Antoine Pitrou pit...@free.fr added the comment:
Committed in r88147 (3.2) and r88148 (3.1).
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Joshua Arnold josharnol...@gmail.com:
In 'Doc/reference/datamodel.rst', the 'Invoking Descriptors' documentation
specifies the following behavior for super objects:
[snip]
Super Binding
If ``a`` is an instance of :class:`super`, then the binding ``super(B,
obj).m()``
Ronald Oussoren ronaldousso...@mac.com added the comment:
Data files can be anything that can be a data-file in a setuptools/distribute
setup.py file. Note that #10972 isn't necessary when python32.zip is build
using the zipfile module, _encodeFilenameFlags uses either ASCII or UTF-8 to
Ned Deily n...@acm.org added the comment:
Michael, the crash documented here is *not* fixed by installing ActiveState
8.5; it is currently a problem seen with both A/S and Apple's Tk 8.5. Also, to
answer my own question, I double-checked the Snow Leopard 10.6 installation DVD
and, unlike
Georg Brandl ge...@python.org added the comment:
Can we have a concrete proposal in the form of a patch, please?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10954
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: docs@python - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10988
___
Michal Nowikowski godf...@gmail.com added the comment:
The patch v2:
- in description of os.stat function added information about following symlinks,
- made list of returned attributes by os.stat function more readable,
- fixed links to os.stat function in whole document.
--
Added file:
Brett Cannon br...@python.org added the comment:
I have a patch for this which makes it a CPython-only test along with being
conditional if a trace function is set. Making it a release blocker to see if
Georg will let me commit it.
--
keywords: +patch
nosy: +georg.brandl
priority:
New submission from STINNER Victor victor.stin...@haypocalc.com:
ssl.SSLContext(True).load_verify_locations(None, True) does segfault.
Py_DECREF(cafile_bytes) in Modules/_ssl.c:1686 should be replaced by
Py_XDECREF(cafile_bytes).
--
components: Library (Lib)
messages: 126901
nosy:
Antoine Pitrou pit...@free.fr added the comment:
Needs a patch + tests :)
--
nosy: +georg.brandl
priority: normal - high
stage: - needs patch
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10989
Skip Montanaro s...@pobox.com added the comment:
Looking at the csv.rst file I see this statement early in the py3k
docs:
If *csvfile* is a file object, it should be opened with ``newline=''``.
There is also a footnote about the consequences of leaving it out:
.. [#] If ``newline=''`` is
Skip Montanaro s...@pobox.com added the comment:
My suggestion attached.
--
keywords: +patch
Added file: http://bugs.python.org/file20497/csv.rst.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10954
Brett Cannon br...@python.org added the comment:
Georg cleared the commit; just waiting for a test run with coverage.py to
finish before committing.
--
resolution: - accepted
stage: unit test needed - commit review
___
Python tracker
John Machin sjmac...@lexicon.net added the comment:
Skip, the docs bug is #7198. This is the meaningful-exception bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10954
___
Brett Cannon br...@python.org added the comment:
r88153 w/ a review by Georg Brandl
--
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Brett Cannon br...@python.org:
The attached patch adds resource monitoring to test.regrtest to detect which
tests are changing the trace function w/o putting back to what it was
previously. The tests listed below are thus all being naughty. This is a
meta-issue to help
New submission from Brett Cannon br...@python.org:
If you run ``test.regrtest -T`` you will discover that (at least)
test_importlib and test_runpy prevent coverage data from being written out as
'trace' will try to find files which no longer exist. Both test suites create
temp files, import
Changes by Michael Foord mich...@voidspace.org.uk:
--
assignee: - michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10979
___
___
Changes by Ron Adam ron_a...@users.sourceforge.net:
Removed file: http://bugs.python.org/file20473/pydoc_misc_fix_c.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10961
___
Michael Foord mich...@voidspace.org.uk added the comment:
There was a BDFL ruling on python-dev mailing list that assert argument names
should be (first, second).
See:
http://mail.python.org/pipermail/python-dev/2010-December/106954.html
I'm basically reverting the patch to go back to
Michael Foord mich...@voidspace.org.uk added the comment:
Note that I looked at making the sequence comparison code symmetric - but it
generates nice diffs for even nested containers by using prettyprint and
difflib. Switching to a symmetric output (in first, not in second etc) would
be very
New submission from Brett Cannon br...@python.org:
A bunch of tests fail when run under coverage (trend seems to be refcount
tests). This is to act as a meta-issue to keep track of what tests need to be
fixed.
[fail under both coverage.py and regrtest -T]
test_ctypes
test_descr
test_gc
Ned Deily n...@acm.org added the comment:
IDLE 3.x currently does not specify an explicit encoding when reading or
writing the recent files list (~/.idlerc/recent-files.lst) and it defaults to
errors=strict. So IDLE 3.x is vulnerable to crashes if any of the recent
files contain characters
Senthil Kumaran orsent...@gmail.com added the comment:
Why is reindent.py translating the whole file to platform default newline such
a bad thing? Could not it be considered as helpful behavior, especially in the
case where the user has mixed EOLs by mistake?
--
nosy: +orsenthil
Senthil Kumaran orsent...@gmail.com added the comment:
I find this problem with 3.x and not with 2.x codeline
--
nosy: +orsenthil
versions: +Python 3.1, Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
Gregory Czajkowski gcflym...@gmail.com added the comment:
Also happening with python2.6 and building pyzmq-2.0.10 using easy_install.
dschnur's suggestion fixes it.
--
nosy: +gcflymoto
___
Python tracker rep...@bugs.python.org
42 matches
Mail list logo