[issue11899] TarFile.gettarinfo modifies self.inodes

2011-04-22 Thread Lars Gustäbel

Lars Gustäbel l...@gustaebel.de added the comment:

Good point. Do you happen to have a working implementation already?

--
assignee:  - lars.gustaebel
priority: normal - low
versions: +Python 3.3 -Python 3.2

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



[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-22 Thread Lars Gustäbel

Changes by Lars Gustäbel l...@gustaebel.de:


--
assignee:  - lars.gustaebel
priority: normal - low

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



[issue9228] Make changes in the PATH and PATHEXT on installation

2011-04-22 Thread Jonathan Hartley

Changes by Jonathan Hartley tart...@tartley.com:


--
nosy: +jonathan.hartley

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



[issue11907] SysLogHandler can't send long messages

2011-04-22 Thread Lukáš Lalinský

New submission from Lukáš Lalinský lalin...@gmail.com:

It seems that logging.handlers.SysLogHandler can't handle messages that can't 
be passed atomically via the socket. I'm not sure what is the right behavior 
(the syslog() function truncates the message), but I think it shouldn't 
propagate the exception to the application.

Python 2.7.1 (r271:86832, Apr 18 2011, 08:47:29) 
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
Type help, copyright, credits or license for more information.
 import logging.handlers
 handler = logging.handlers.SysLogHandler('/dev/log')
 logger = logging.getLogger()
 logger.addHandler(handler)
 logger.warn('x' * 4096)
Traceback (most recent call last):
  File /usr/local/lib/python2.7/logging/handlers.py, line 808, in emit
self.socket.send(msg)
error: [Errno 40] Message too long
Logged from file stdin, line 1

--
messages: 134265
nosy: lukas.lalinsky
priority: normal
severity: normal
status: open
title: SysLogHandler can't send long messages
type: crash
versions: Python 2.7

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



[issue2292] Missing *-unpacking generalizations

2011-04-22 Thread Fred L. Drake, Jr.

Changes by Fred L. Drake, Jr. fdr...@acm.org:


--
nosy: +fdrake

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



[issue9325] Add an option to pdb/trace/profile to run library module as a script

2011-04-22 Thread Greg Słodkowicz

Greg Słodkowicz jerg...@gmail.com added the comment:

Thanks, Nick. Before your last comment, I haven't looked much into Pdb, instead 
focusing on profile.py and trace.py because they looked like simpler cases. I 
think the approach with CodeRunner objects would work just fine for profile and 
trace but Pdb uses run() inherited from Bdb. In order to make it work with a 
CodeRunner object, it seems run() would have to be reimplemented in Pdb 
(effectively becoming a 'runCodeRunner()'), and we could probably do without 
_runscript(). Is that what you had in mind?

--

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



[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-04-22 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Commented on the patch.  I'll be happy to land this for Evan.

--
assignee:  - barry
nosy: +barry

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



[issue11885] argparse docs needs fixing

2011-04-22 Thread Éric Araujo

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


Removed file: http://bugs.python.org/file21750/unnamed

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



[issue11885] argparse docs needs fixing

2011-04-22 Thread Éric Araujo

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

No problem, it’s Ezio who did the work.

--
versions:  -Python 3.4

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



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

2011-04-22 Thread Éric Araujo

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

The hard part was supporting distro-specific release files; I think that now 
most of them provide the lsb_release info.  If it proves more complicated than 
that, then let’s deprecate the function.

--

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



[issue11881] Add list.get

2011-04-22 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue11862] urlparse.ParseResult to have meaningful __str__

2011-04-22 Thread Éric Araujo

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

Why couldn’t ParseResult call urlunparse to implement a useful __str__?

--
components: +Library (Lib) -Extension Modules
nosy: +eric.araujo
versions: +Python 3.3

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



[issue11869] Include information about the bug tracker Rietveld code review tool

2011-04-22 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-04-22 Thread Piotr Sikora

Piotr Sikora piotr.sik...@frickle.com added the comment:

It's the same on OpenBSD (and I'm pretty sure it's true for other BSDs as well).

 locale.resetlocale()
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/local/lib/python2.6/locale.py, line 523, in resetlocale
_setlocale(category, _build_localename(getdefaultlocale()))
locale.Error: unsupported locale setting
 locale._build_localename(locale.getdefaultlocale())
'en_US.UTF8'

Works fine with Marc-Andre's alias table fix.

Any chances this will be eventually fixed in 2.x?

--
nosy: +PiotrSikora

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



[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x

2011-04-22 Thread Éric Araujo

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

How do we debug this?  Does someone have access to a similar box to see whether 
the pyc files do get created and where?

--
nosy: +eric.araujo

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



[issue11874] argparse assertion failure with brackets in metavars

2011-04-22 Thread Éric Araujo

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


--
nosy: +bethard, eric.araujo
versions: +Python 3.2, Python 3.3

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



[issue11879] TarFile.chown: should use TarInfo.uid if user lookup fails

2011-04-22 Thread Éric Araujo

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

If you make the suggested change to your Python, do the tests still pass?

--
nosy: +eric.araujo

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



[issue11884] Argparse calls ngettext but doesn't import it

2011-04-22 Thread Éric Araujo

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

I added the import and calls in 1827a8ac9b18, so this report is strange.  What 
is your exact version and where did you get it?

--
assignee:  - eric.araujo
nosy: +eric.araujo

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



[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-22 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-22 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

+1

--
nosy: +rhettinger

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



[issue11908] Weird `slice.stop or sys.maxint`

2011-04-22 Thread Ram Rachum

New submission from Ram Rachum cool...@cool-rr.com:

In the documentation for `itertools.islice` I see this line:

it = iter(xrange(s.start or 0, s.stop or sys.maxint, s.step or 1))

Is it really okay to do `s.stop or sys.maxint`? I'm assuming this was targeting 
`None`, but what if `s.stop == 0`? And `s.step` could (pathologically) be `0` 
too, no?

--
assignee: docs@python
components: Documentation
messages: 134276
nosy: cool-RR, docs@python
priority: normal
severity: normal
status: open
title: Weird `slice.stop or sys.maxint`
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3, Python 3.4

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



[issue11908] Weird `slice.stop or sys.maxint`

2011-04-22 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: docs@python - rhettinger
nosy: +rhettinger

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



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

2011-04-22 Thread Zooko O'Whielacronx

Zooko O'Whielacronx zo...@zooko.com added the comment:

There seems to be some mistake, re #msg134219 and #msg134255. The current 
version of may patch *does* avoid the cost of a subprocess in the common case. 
I described this new strategy in #msg73744 and as far as I know it satisfies 
all of MAL's earlier objection about that.

To recap, this code here: 
http://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/src/allmydata/__init__.py?annotate=blamerev=5033#L36
 does the following strategy:

1. Parse the /etc/lsb-release file. /etc/lsb-release is not part of the de jure 
standard, but it is a de facto standard that is available on many 
distributions. Parsing it is fast and gives the right answer on many 
distributions.

2. If that didn't work (which can happen on some distributions, including 
common ones when a certain optional lsb base package isn't installed), then 
invoke the current platform.dist() code. This is a lot of code, its code has to 
be changed before it can recognize any new distribution or a change in a 
distribution, and it gives answers on Ubuntu and Arch Linux which users say are 
the wrong answer, but it is fast and it gives the answer users want in most 
cases.

3. If that didn't work (which presumably only happens on distributions that the 
authors of platform.dist() didn't know about or didn't bother to support), then 
invoke the de jure standard executable lsb_release. This works on any 
LSB-compliant system, but it costs a subprocess.

4. If that didn't work, check for /etc/arch-release to signal Arch Linux.

--

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



[issue11909] Doctest sees directives in strings when it should only see them in comments

2011-04-22 Thread Devin Jeanpierre

New submission from Devin Jeanpierre jeanpierr...@gmail.com:

From the doctest source:

'Option directives are comments starting with doctest:.  Warning: this may 
give false  positives for string-literals that contain the string #doctest:.  
Eliminating these false positives would require actually parsing the string; 
but we limit them by ignoring any line containing #doctest: that is 
*followed* by a quote mark.'

This isn't a huge deal, but it's a bit annoying. Above being confusing, this is 
in contradiction with the doctest documentation, which states:

'Doctest directives are expressed as a special Python comment following an 
example’s source code'

No mention is made of this corner case where the regexp breaks.

As per the comment in the source, the patched version parses the source using 
the tokenize module, and runs a modified directive regex on all comment tokens 
to find directives.

--
components: Library (Lib)
files: comments.diff
keywords: patch
messages: 134278
nosy: Devin Jeanpierre
priority: normal
severity: normal
status: open
title: Doctest sees directives in strings when it should only see them in 
comments
Added file: http://bugs.python.org/file21757/comments.diff

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



[issue11909] Doctest sees directives in strings when it should only see them in comments

2011-04-22 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
stage:  - patch review
type:  - feature request
versions: +Python 3.3

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



[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x

2011-04-22 Thread R. David Murray

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

Given that it happens randomly I suspect a timing issue, but without having 
reviewed the code in question.  I'm not sure when I'll have time to look at 
this.

--

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



[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
status: closed - open

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



[issue11885] argparse docs needs fixing

2011-04-22 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

I ment to say Ezio. Got confused. Thanks, Ezio!

--
Added file: http://bugs.python.org/file21758/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11885
___I ment to say Ezio. Got confused. Thanks, Ezio!
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-04-22 Thread STINNER Victor

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


--
title: expose signalfd(2) and sigprocmask(2) in the signal module - expose 
signalfd(2) and pthread_sigmask in the signal module

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



[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset fa5e348889c2 by Victor Stinner in branch '3.2':
Issue #9319: Fix a crash on parsing a Python source code without encoding
http://hg.python.org/cpython/rev/fa5e348889c2

--

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



[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread STINNER Victor

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

Fixed in 3.2 (fa5e348889c2) and 3.3 (7b8d625eb6e4). The bug is a regression 
introduced in Python 3.2, so Python 3.1 doesn't need to be fixed.

--
status: open - closed

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



[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-22 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 701069f9888c by Victor Stinner in branch '3.2':
Issue #9319: Fix the unit test
http://hg.python.org/cpython/rev/701069f9888c

--

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



[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Terry J. Reedy

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

If I put the same line I ran interactively in a file and run it

from test import test_argparse as t; t.test_main()

all tests pass. So it is specifically a problem from the interactive prompt.

--
nosy: +michael.foord

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



[issue11619] On Windows, don't encode filenames in the import machinery

2011-04-22 Thread STINNER Victor

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

Another huge patch to support Unicode filenames: parser_unicode.patch


 Doc/c-api/exceptions.rst |   26 +++---
 Include/ast.h|5 ++
 Include/compile.h|   15 +++-
 Include/parsetok.h   |   42 ++-
 Include/pyerrors.h   |7 +++
 Include/pythonrun.h  |   16 
 Include/symtable.h   |6 ++-
 Include/warnings.h   |8 
 Modules/parsermodule.c   |   49 +--
 Modules/symtablemodule.c |   10 +++--
 Parser/parsetok.c|   82 +
 Python/_warnings.c   |   31 +++--
 Python/ast.c |   40 --
 Python/compile.c |   69 +-
 Python/errors.c  |   57 ++-
 Python/future.c  |   27 +++---
 Python/import.c  |   20 +++
 Python/pythonrun.c   |   85 +--
 Python/symtable.c|   73 +++-
 19 files changed, 480 insertions(+), 188 deletions(-)

It creates new functions of the following functions which are undocumented:
 - PyAST_FromNode
 - PyFuture_FromAST
 - PyAST_Compile
 - PyParser_ParseFileFlagsEx
 - PyParser_ParseStringFlagsFilenameEx
 - PyErr_ProgramText
 - PyParser_ASTFromString
 - PyParser_ASTFromFile
 - PySymtable_Build

We might remove these functions, but they are part of the public API (but they 
are undocumented).

--
Added file: http://bugs.python.org/file21759/parser_unicode.patch

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



[issue11619] On Windows, don't encode filenames in the import machinery

2011-04-22 Thread STINNER Victor

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


Removed file: http://bugs.python.org/file21743/compile_filename.patch

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



[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Andreas Stührk

Andreas Stührk andy-pyt...@hammerhartes.de added the comment:

That happens because argparse uses `os.basename(sys.argv[0])` (per default) as 
program name, but `sys.argv[0]` is usually a string of length 0 at interactive 
sessions. The tests use ``usage: {} format(program_name)`` (note that 
there will be two spaces for an empty `program_name`) for the expected output, 
while argparse only outputs one space in that case.

--
nosy: +Trundle

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



[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Terry J. Reedy

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

I presume you are talking about long boxed grammar or example lines that run 
horizontally past the right edge of the window, like

id_start ::=  all characters in general categories Lu, Ll, Lt, Lm, Lo, Nl, 
the underscore, and characters with the Other_ID_Start property

For both the .html (online) and .chm (windows help) versions of the docs, these 
boxes have horizontal scroll bars. For both types of files, regular text is 
wrapped according to the size of the window, which the user can change. Neither 
involved latex and there is no such thing as the width of the page, and there 
are no page numbers either.

Are you, possibly, referring to a .pdf version, which I believe is run through 
latex?

--
nosy: +terry.reedy

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



[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Ezio Melotti

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

Yes, the problem is with the PDF. See also #4173.

--

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



[issue4173] PDF documentation: long verbatim lines are cut off at right hand side

2011-04-22 Thread Ezio Melotti

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

See also #11860.

--
nosy: +ezio.melotti

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



[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-04-22 Thread Terry J. Reedy

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

Note: 3.x correct gives the signature at enumerate(iterable, start) rather that 
enumerate(sequence, start).

I agree that the current entry is a bit awkward. Perhaps the doc would be 
clearer with a reference to zipping. Removing the unneeded definition of 
*iterable* (which should be linked to the definition in the glossary, along 
with *iterator*), my suggestion is:
'''
enumerate(iterable, start=0)
Return an enumerate object, an *iterator* of tuples, that zips together a 
sequence of counts and *iterable*. Each tuple contain a count and an item from 
*iterable*, in that order. The counts begin with *start*, which defaults to 0. 
enumerate() is useful for obtaining an indexed series: enumerate(seq) produces 
(0, seq[0]), (1, seq[1]), (2, seq[2]),  For another example, which uses 
*start*:

 for i, season in enumerate(['Spring','Summer','Fall','Winter'], 1):
... print(i, season)
1 Spring
2 Summer
3 Fall
4 Winter
'''
Note that I changed the example to use a start of 1 instead of 0, to produce a 
list in traditional form, which is one reason to have the parameter!

--
nosy: +terry.reedy
versions: +Python 3.2, Python 3.3

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



[issue11906] Test_argparse failure but only in interactive mode

2011-04-22 Thread Terry J. Reedy

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

Thanks for the diagnosis. I am glad it is something simple.

--

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



[issue11860] reference 2.3 has text that runs past the page

2011-04-22 Thread Terry J. Reedy

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

Then this appears to be a duplicate. Closing

--
resolution:  - duplicate
status: open - closed
superseder:  - PDF documentation: long verbatim lines are cut off at right 
hand side

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



[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-04-22 Thread Ezio Melotti

New submission from Ezio Melotti ezio.melo...@gmail.com:

When _heapq is missing, test_heapq still runs both the Py and the C tests 
instead of skipping the C ones.  The attached patch skips the C tests when 
_heapq is missing.

--
files: issue11910.diff
keywords: patch
messages: 134293
nosy: ezio.melotti
priority: normal
severity: normal
status: open
title: test_heapq C tests are not skipped when _heapq is missing
Added file: http://bugs.python.org/file21760/issue11910.diff

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



[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-04-22 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Tests
nosy: +brett.cannon
stage:  - patch review
type:  - behavior
versions: +Python 2.7, Python 3.2, Python 3.3

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



[issue11884] Argparse calls ngettext but doesn't import it

2011-04-22 Thread John O'Hagan

John O'Hagan resea...@johnohagan.com added the comment:

It's argparse version 1.1 (1.1-1) from current Debian testing, Python 3.2 
(r32:88445, Feb 20 2011, 18:43:30)

--

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