[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think the new patch is still incorrect. You now pass long variables into the i argument parser. Also, I would expect that compilers prefer to see an explicit cast from long to uid_t, in case it's a truncating cast. Can you try your patch on a system where

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-11 Thread STINNER Victor
STINNER Victor added the comment: @loewis: I don't think that the explicit cast is required. posix_setuid() has no explicit cast. But I would also prefer an explicit cast (just for the readability). -- ___ Python tracker

[issue6881] incorrect signature in doc for PyByteArray_Resize

2009-09-11 Thread egreen
New submission from egreen : in Doc/c-api/bytearray.rst: PyObject* PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len) should be: int PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len) as per Include/bytearrayobject.h -- assignee: georg.brandl components: Documentati

[issue6882] uuid creates zombies

2009-09-11 Thread Dirk Haage
New submission from Dirk Haage : a simple import uuid will always result in a zombie sh process: $ python3 Python 3.1.1 (r311:74480, Aug 19 2009, 16:23:08) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import uuid >>> 13528 pts/5Ss 0:

[issue6617] During compiling python 3.1 getting error Undefined symbol libintl_bind_textdomain_codeset

2009-09-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm not a Unix expert at all, but did you try to export the variable? export LDFLAGS=-lintl then "configure" and "make". -- ___ Python tracker ___

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

2009-09-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: Just when I was starting to feel comfortable using Hg, this happens. It appears that between my inexperience with Hg and the non-intuitive TortoiseHg rebase merge tool, many of the changes I made to posixmodule.c were lost and as amaury.forgeotdarc remarked, ot

[issue6883] OptionParser.allow_interspersed_args is undocumented

2009-09-11 Thread Skip Montanaro
New submission from Skip Montanaro : The OptionParser.allow_interspersed_args attribute is undocumented in the Sphinx documentation. (It is mentioned in the OptionParser docstring.) By its name it appears to actually part of the official API, so should at least be mentioned in the rst file. --

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2009-09-11 Thread Chris Withers
New submission from Chris Withers : With a simple setup.py: from distutils.core import setup setup(name='packagename') And a MANIFEST.in containing: include buildout.cfg The result of a debug run of python setup.py sdist on Windows is: Distribution.parse_config_files(): options (after parsi

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-11 Thread Boya Sun
Boya Sun added the comment: Martin, I am sorry that I do not have a system where this code actually triggered a problem, since this bug is discovered by a *static* analysis tool that is recently developed by our research group, which finds code segments that are similar to a previously fixed bu

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

2009-09-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: After only a few hours of fighting with Hg and gnashing of teeth, I've merged the patch with the head of the SVN py3k branch. I'm attaching this as draft 9. This patch was created with Subversion and should be suitable for easy merging. I've compiled and test

[issue6882] uuid creates zombies

2009-09-11 Thread Marcin Bachry
Marcin Bachry added the comment: Actually it's a bug in ctypes.util.find_library() which is called from uuid.py. The function doesn't close() popen object leaving forked process in zombie state. I attach the fix. -- keywords: +patch nosy: +marcin.bachry Added file: http://bugs.python.or

[issue6885] pdb documentation shows running as script using "python" not "python3"

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : The library documentation page for pdb shows running pdb as a script using the command python -m pdb Shouldn't that be python3 -m pdb ? -- assignee: georg.brandl components: Documentation messages: 92515 nosy: MLModel, georg.brandl sev

[issue6839] zipfile can't extract file

2009-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the case at issue, the file name is the same (contrary to the error message). The two representations of the *path* are different, but equivalent. There is no ambiguity: the file should be put in directory 'test' and named 'test2.txt'. So I think zipfile shou

[issue6886] cgi.py runs python, not python3

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : The file cgi.py in the lib directory is an executable beginning with the line: #! /usr/local/bin/python Shouldn't that be python3? -- components: Library (Lib) messages: 92517 nosy: MLModel severity: normal status: open title: cgi.py runs python, no

[issue6887] executables in lib use /usr/bin/env python, not python3

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : Some of the executables in lib begin with the line: #! /usr/bin/env python Shouldn't that be python3? -- components: Library (Lib) messages: 92518 nosy: MLModel severity: normal status: open title: executables in lib use /usr/bin/env python, not pyt

[issue6887] executables in lib use /usr/bin/env python, not python3

2009-09-11 Thread Brett Cannon
Brett Cannon added the comment: Honestly those lines should probably be stripped out and simply expect people to use runpy to execute the modules. -- nosy: +brett.cannon ___ Python tracker

[issue6887] executables in lib use /usr/bin/env python, not python3

2009-09-11 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> low type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6854] UnicodeDecodeError when retrieving binary data from cgi.FieldStorage()

2009-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0. When you have a problem, and you are not sure it is an error in the interpreter or stdlib, try posting to python-list first. If you do not soon get a definitive determination here, do that. This is not a question-answering or user-code debugging list. 1. Whe

[issue6874] sequence method .count() and .index() shoud be in immutable sequence method list.

2009-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is covered in point 4 of open issue #4966 -- nosy: +tjreedy resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___

[issue6888] pdb alias command with no arguments is broken

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : Typing just alias in pdb doesn't work. Because dict.keys() now returns a dict_keys object instead of a list the line keys.sort() in Pdb.do_alias breaks because dict_keys doesn't have a sort method. -- components: Library (Lib) messages: 92522

[issue6889] «Python’s default encoding is the ‘ascii’ encoding.»

2009-09-11 Thread flox
New submission from flox : In the Python «Unicode HOWTO», we still read the statement: «For example, Python's default encoding is the 'ascii' encoding.» Here: http://svn.python.org/view/python/branches/py3k/Doc/howto/unicode.rst?revision=72294&view=markup -- assignee: georg.brandl comp

[issue6889] «Python’s default encoding is the ‘ascii’ encoding.»

2009-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r74740. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6890] IOError has no __unicode__ method - and loses information

2009-09-11 Thread Michael Foord
New submission from Michael Foord : >>> try: ... open('flooble') ... except Exception as e: ... pass ... [39343 refs] >>> str(e) "[Errno 2] No such file or directory: 'flooble'" [39345 refs] >>> unicode(e) u"(2, 'No such file or directory')" The Unicode representation of an IOError has no inf

[issue6839] zipfile can't extract file

2009-09-11 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue6882] uuid creates zombies

2009-09-11 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> theller components: +ctypes nosy: +theller ___ Python tracker ___ ___ Python-bugs-li

[issue6891] small typo in «unicode.rst»: « the Uniode APIs should be used» and broken URL

2009-09-11 Thread flox
New submission from flox : Found 2 typos: - Uniode instead of Unicode - Acknowledgements instead of Acknowledgments And the following reference is broken (Jason Orendorff website): http://www.jorendorff.com/articles/unicode/ The last version is dated 2007 on the wayback machine: http://web.ar

[issue6888] pdb alias command with no arguments is broken

2009-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r74741. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6890] IOError has no __unicode__ method - and loses information

2009-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: If your curious, this is the bug report that broke it: http://bugs.python.org/issue2517 -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue6882] uuid creates zombies

2009-09-11 Thread Dirk Haage
Dirk Haage added the comment: this patch solves it for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue6892] optparser example in optparse documentation is broken

2009-09-11 Thread Mitchell Model
New submission from Mitchell Model : The help example in the middle of the optparse library documentation is broken. The code reads: parser = OptionParser() parser.add_option("-h", "--help", action="help"), parser.add_option("-v", action="store_true", dest="verbose", help="Be m

[issue6892] optparser example in optparse documentation is broken

2009-09-11 Thread Mitchell Model
Mitchell Model added the comment: There are other places on the same page with weird trailing commas that should be removed. I think they all follow right parentheses. -- ___ Python tracker

[issue6891] small typo in «unicode.rst»: « the Uniode APIs should be used» and broken URL

2009-09-11 Thread Ezio Melotti
Ezio Melotti added the comment: These typos are present in py3k but not in the trunk. I searched for the commit on the trunk to see if other things had been fixed and not merged on py3k but I couldn't find it. -- nosy: +ezio.melotti priority: -> low ___

[issue6875] add os.close() suggestion to mkstemp documentation

2009-09-11 Thread R. David Murray
R. David Murray added the comment: I don't think it would be beneficial to just talk about closing the file descriptor, or to talk about os open file limits. Closing open files when they are no longer needed is just good programming practice and IMO a discussion of it doesn't belong in the libr

[issue6893] defaultdict example in py3 doc should mention the new Counter class

2009-09-11 Thread Ezio Melotti
New submission from Ezio Melotti : The 3rd example of defaultdict [1] shows how to use it to count the letters of a string, but the new Counter class is a better tool for doing that. Possible solutions: 1) "Setting the default_factory to int makes the defaultdict useful for counting (like a bag

[issue6247] should we include argparse

2009-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: Only +0 purely because I haven't used argparse myself yet. Otherwise I would probably be +1, since I have several scripts that have fairly kludgy hacked together optparse based approaches to handling positional arguments, subparsers and building new parsers that

[issue6891] small typo in «unicode.rst»: « the Uniode APIs should be used» and broken URL

2009-09-11 Thread R. David Murray
R. David Murray added the comment: The sentence containing the Uniode typo didn't exist when the howtos were imported on trunk. That sentence was added to the py3k docs by r67338. Fixed in r74749. The Acknowledgements spelling exists on trunk. But apparently both spellings are acceptable, so