Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Many os functions started to accept file descriptors. I don't know how many are
available on Windows, but IMO _PyVerify_fd() could be used for all of them;
it's a no-op macro on Unix anyway.
--
nosy: +amaury.forgeotdarc, larry
New submission from Mark myagn...@students.poly.edu:
Consider the following code:
from thread import start_new
def f(): typo #there is no variable called typo
start_new(f, ())
If run from the command line, this produces a traceback. If run from IDLE, it
does not. I suspect this is not by
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 62b9bfbc3356 by Richard Oudkerk in branch 'default':
Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open.
http://hg.python.org/cpython/rev/62b9bfbc3356
--
nosy: +python-dev
Richard Oudkerk shibt...@gmail.com added the comment:
Many os functions started to accept file descriptors.
I don't know how many are available on Windows...
On Windows os.stat() seems to be the only one:
os.supports_fd
{built-in function stat}
--
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14649
___
___
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I have attached a patch with tests.
--
keywords: +easy, patch
stage: - patch review
Added file: http://bugs.python.org/file26269/issue-14649-1.patch
___
Python tracker rep...@bugs.python.org
Changes by Richard Oudkerk shibt...@gmail.com:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15261
___
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14649
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15257
___
___
Python-bugs-list mailing
New submission from Larry Hastings la...@hastings.org:
#15261 shows us that Windows can crash if you pass in an invalid file handle to
Windows POSIX-y functions. We should ensure that functions which accept
path-as-an-int-fd guard against this where necessary.
I propose a macro, something
Larry Hastings la...@hastings.org added the comment:
The 62b9bfbc3356 changeset does more than add the guard against invalid file
handles; it also adds documentation to os.path.exists documenting that it now
accepts path-as-int-fd. While this modification is fine in principle I would
have
Antoine Pitrou pit...@free.fr added the comment:
Which other functions are you thinking about?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15263
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Windows will also crash if you pass INVALID_HANDLE_VALUE (which is not a file
descriptor) to crt functions...
How did you want to use this macro?
--
___
Python tracker rep...@bugs.python.org
andisthermal andisthermal@gmail.com added the comment:
#!/usr/bin/env python
A small wrapper file for parsing AsciiDoc files at Github.
__author__ = Devin Weaver
__copyright__ = Copyright (C) 2009 Devin Weaver
__license__ = Public Domain
__version__ = 0.1
github_asciidoc.py
Larry Hastings la...@hastings.org added the comment:
Antoine: all the functions enumerated in os.supports_fd. Note that the set of
such functions may in fact just be os.stat which is already fixed.
Amaury: If you read the checkin that fixes this problem ( 62b9bfbc3356 ) it
actually
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b7cfdb48af62 by Nick Coghlan in branch 'default':
Issue 14814: Better handling of cases where octet/hextet parsing fails,
including ensuring that tracebacks are still clean even when calling class
constructors
Antoine Pitrou pit...@free.fr added the comment:
Antoine: all the functions enumerated in os.supports_fd. Note that the
set of such functions may in fact just be os.stat which is already fixed.
As far as I can tell, it is:
os.supports_fd
{built-in function stat}
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 30e8f2242190 by Nick Coghlan in branch 'default':
Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an
exception early when given bytes data of the wrong length. Also removes 2.x
backwards
Richard Oudkerk shibt...@gmail.com added the comment:
Every use of _get_osfhandle() should be guarded by _Py_VerifyFd().
Grepping through the source it seems that that is now true, but we could
instead use
#define _PY_GET_OSFHANDLE(fd) _Py_VerifyFd(fd) ? _get_osfhandle(fd) :
Richard Oudkerk shibt...@gmail.com added the comment:
Sorry about that...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15261
___
___
Changes by Dave King d...@davbo.org:
--
nosy: +davbo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15247
___
___
Python-bugs-list mailing list
Éric Araujo mer...@netwok.org added the comment:
“python3 -m /tmp/b” is invalid IIUC. -m takes a module name, not a path.
--
nosy: +eric.araujo, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15230
Éric Araujo mer...@netwok.org added the comment:
In 2.7 and newer “setup.py check” is a better interface than rst2html. +1 to
list all checks performed by PyPI on some wiki or PyPI doc page (and +1 to add
the same checks in distutils2’s check command).
--
nosy: +eric.araujo
Changes by Éric Araujo mer...@netwok.org:
--
title: allow newer berkley db versions - allow newer berkeley db versions
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15235
___
Éric Araujo mer...@netwok.org added the comment:
The whole file is ordered with newest on top (newest Python version), so I
guess it’s implicit for all committers that sections are also ordered with
newest on top. It does not actually matter; the contents of one “what’s new in
Python W.XyZ”
New submission from Antoine Pitrou pit...@free.fr:
Title says it all.
--
assignee: docs@python
components: Documentation, Interpreter Core
messages: 164736
nosy: docs@python, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9cf9527358a5 by Antoine Pitrou in branch '3.2':
Issue #15247: FileIO now raises an error when given a file descriptor pointing
to a directory.
http://hg.python.org/cpython/rev/9cf9527358a5
New changeset
Antoine Pitrou pit...@free.fr added the comment:
Thanks, the issue should be fixed now.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15247
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15256
___
___
Python-bugs-list mailing list
Martin v. Löwis mar...@v.loewis.de added the comment:
Éric: your request is in passive voice. I'm not aware that anybody volunteered
document the tests, but I doubt that this wiki page can reasonably be kept
up-to-date. So the wiki page will outdate just as the current documentation got
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15245
___
___
Marc Abramowitz msabr...@gmail.com added the comment:
I think this is just a simple typo and a consistency issue; not a grammatical
issue.
The misspelled version was added in a recent commit:
[last: 0] marca@SCML-MarcA:~/dev/hg-repos/cpython$ hg log -r 76455
changeset: 76455:085cf1480cfe
Ezio Melotti ezio.melo...@gmail.com added the comment:
A FAQ entry could be added to explain this error, like we already do for the
UnboundLocalError:
http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
--
nosy: +ezio.melotti
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: collinwinter -
components: -Benchmarks
nosy: -andisthermal555, collinwinter
resolution: fixed - invalid
status: open - closed
type: security -
versions: -3rd party
___
Python tracker
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
hgrepos: -138
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15255
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
Removed file: http://bugs.python.org/file26270/query.csv
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15255
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15255
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15256
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +georg.brandl
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15259
___
New submission from Roy Smith r...@panix.com:
The docs don't say what happens if you call random.sample() with a population
smaller than k. Experimentally, it raises ValueError, but this should be
documented.
I would have guessed it would return IndexError, by analogy to random.choice().
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Another way to make it easier for users to run the same command as PyPI locally
-- also phrased in the passive voice :) -- would be if PyPI packaged its
conversion code as a separate module that could also be run as a stand-alone
Marc Abramowitz msabr...@gmail.com added the comment:
Attaching patch
--
keywords: +patch
Added file: http://bugs.python.org/file26271/python_issue_15256.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15256
Dave Abrahams d...@boostpro.com added the comment:
I won't get to this, FYI.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9458
___
___
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Does the proposed patch to the documentation look okay given the way things are
today?
I can open an issue on the PyPI tracker to discuss the broader issue or, if you
prefer, on the main Python tracker.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
Chris, can you please submit a contrib form? Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15231
___
Terry J. Reedy tjre...@udel.edu added the comment:
On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window.
Closing it gives prompt back in Shell window.
Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and
maybe 64 bit version (you can install
Georg Brandl ge...@python.org added the comment:
It does, in the 2.7 branch. You're welcome to port it to Python 3 and put it
into 3.x. I don't see the point though, and rather would have the mention
removed from the devguide.
--
___
Python
Georg Brandl ge...@python.org added the comment:
... because the script is absolutely irrelevant to building or helping with the
docs.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15259
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I did yesterday. I will post here when I receive a response.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15231
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Ah, ok. Processing may take some time.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15231
___
Terry J. Reedy tjre...@udel.edu added the comment:
I agree with Raymond. You might, however, emphasize 'normal' in 'normal
interpreter termination'. That is the key point. The 'note' merely explains
'abnormal'.
--
nosy: +terry.reedy
___
Python
Marc Abramowitz msabr...@gmail.com added the comment:
Patch with Brett's comments
--
Added file: http://bugs.python.org/file26272/python_issue_15256.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15256
Glenn Linderman v+pyt...@g.nevcal.com added the comment:
See also issue 14191, which describes the problems of trying to make argparse
achieve the goal of the default optparse handling of allow_interspersed_args !
The documentation for that branch of the feature is also seriously incomplete,
Glenn Linderman v+pyt...@g.nevcal.com added the comment:
See also issue 15258 which points out issues with the converse case.
Further testing and development also discovered that in certain error cases,
the help message produced by t18-equivalent code was incorrect.
t18a.py is an
Antoine Pitrou pit...@free.fr added the comment:
Ping. The ARM buildbot still fails on test_fs_holes:
http://buildbot.python.org/all/builders/ARM%20Ubuntu%203.x/builds/775/steps/test/logs/stdio
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
I think you can make nice graphs with graphviz if you put effort into it :)
--
assignee: georg.brandl - larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4011
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
There should be an easy way to check a reST long_description on one's local
machine before uploading to PyPI. The check should use the same rules that
PyPI uses, so that passing the check locally ensures that PyPI will convert the
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I created issue 15266 for the broader issue. The corresponding issue I made
earlier on the PyPI tracker is also referenced there.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
This easy way exists: “pysetup run check” checks the rst syntax; retitling.
Basically it’s a matter of using the same settings (no file inclusion, etc.) as
PyPI and checking the URI schemes.
One maintenance issue is the possible discrepancy
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Patch attached. I moved the discussion of NEWS entries to a section before the
discussion on commit messages because previously, the commit message discussion
referenced NEWS entries before they had been discussed (and not vice
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Patch attached; reference to the script removed.
--
keywords: +patch
Added file: http://bugs.python.org/file26275/issue-15259-1.patch
___
Python tracker rep...@bugs.python.org
New submission from Tim Smith t...@tzs.net:
In httplib.py, there is this code to try to get the body length:
def _set_content_length(self, body):
# Set the content-length based on the body.
thelen = None
try:
thelen = str(len(body))
except
New submission from Matthias Klose d...@debian.org:
the curses configure checks fail if only /usr/include/ncursesw/curses.h is
installed (on a Debian/Ubuntu system, uninstall the libncurses5-dev package,
and install the libncursesw5-dev package).
The attached patch adds
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 707761d59a4a by doko in branch 'default':
- Issue #15268: Search curses.h in /usr/include/ncursesw.
http://hg.python.org/cpython/rev/707761d59a4a
--
nosy: +python-dev
___
Matthias Klose d...@debian.org added the comment:
can be closed if we don't bother to use the wrong header for the checks
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15268
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d1958a94d0ff by Ned Deily in branch 'default':
Issue #15259: Remove reference to dailybuild.py.
http://hg.python.org/devguide/rev/d1958a94d0ff
--
nosy: +python-dev
___
Matthias Klose d...@debian.org added the comment:
and only add the dir for the curses.h and nurses.h header checks
--
Added file: http://bugs.python.org/file26277/curses2.diff
___
Python tracker rep...@bugs.python.org
Changes by Matthias Klose d...@debian.org:
--
keywords: +needs review -patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15268
___
___
Ned Deily n...@acm.org added the comment:
Thanks of the patch! I reworded it slightly to completely remove the reference
to the script.
--
nosy: +ned.deily
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Matthias Klose d...@debian.org added the comment:
and a variant, which moves all curses header related check together
(curses3.diff)
--
keywords: +patch
Added file: http://bugs.python.org/file26278/curses3.diff
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15268
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset bbe197bf57a1 by Ned Deily in branch 'default':
Issue #15260: Expand information on Misc/NEWS entries.
http://hg.python.org/devguide/rev/bbe197bf57a1
--
nosy: +python-dev
Ned Deily n...@acm.org added the comment:
Thanks for the patch!
--
nosy: +ned.deily
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15260
Terry J. Reedy tjre...@udel.edu added the comment:
Stephen is right; this sort of guess-the-bug heuristic is out of scope for the
CPython interpreter. I believe you grossly under estimate the difficulty of
such a this. Consider that idea rejected.
What *is* disconcerting is the exact form of
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - needs patch
title: In TypeError: 'tuple' object is not callable, explain that a comma may
be missing - Better explain TypeError: 'tuple' object is not callable
versions: +Python 3.4
___
Python
Terry J. Reedy tjre...@udel.edu added the comment:
In Py3, new.code and new.function become types.CodeType and types.FunctionType.
The 'documentation' of their signatures is only available with help(types.xxx).
So the library doc issue is 2.7 only.
Running with IDLE, 3.3b0, Win7, the
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15256
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15258
___
___
Python-bugs-list
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
With regard to the maintenance issue, what about the idea of aiming for PyPI to
include that logic in a separately packaged module? Then there would be no
need to cut and paste -- just include the right version.
If that were done,
Terry J. Reedy tjre...@udel.edu added the comment:
In 3.3, you do not need it
Unhandled exception in thread started by function f at 0x031D0158
Traceback (most recent call last):
File F:\Python\mypy\tem.py, line 2, in f
def f(): typo #there is no variable called typo
NameError:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d9c98730e2e8 by Nick Coghlan in branch 'default':
Issue 14814: %s implies coercion with str() - remove a lot of redundant str()
calls from the ipaddress implementation
http://hg.python.org/cpython/rev/d9c98730e2e8
Justin Venus justin.ve...@gmail.com added the comment:
@jcea I am the owner of the Solaris 11 buildslave[1]. I have configured the
build user to have dtrace privileges if you need to run additional tests
against it. Let me know if you encounter any additional issues with this system.
Justin Venus justin.ve...@gmail.com added the comment:
I have a similar issue on Solaris and a patch[1] to fix it attached to issue
3786.
1) http://bugs.python.org/file26171/bug3786.patch
--
nosy: +Justin.Venus
___
Python tracker
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
The documentation for the filecmp.dircmp class doesn't mention dircmp.left and
dircmp.right.
Being aware of this up front would make certain simplifications easier to think
of. For example, knowing about these attributes opens up
Justin Venus justin.ve...@gmail.com added the comment:
I can confirm this issue is resolved on Solaris 11 x86 and has been since
'--with-system-ffi' was added to the build rules.
--
___
Python tracker rep...@bugs.python.org
Eric Snow ericsnowcurren...@gmail.com added the comment:
Here's a new patch that keeps things simpler, but still cleans up the concerns
about using sys.implementation.cache_tag in PyImport_GetMagicTag().
--
Added file: http://bugs.python.org/file26280/cache_tag_via_sys_var.diff
Justin Venus justin.ve...@gmail.com added the comment:
Does OpenIndiana ship with the gnu version of ncurses like Solaris 11?
Headers:
/usr/include/ncurses
Libraries:
/usr/gnu/lib
If it matches Solaris, then you can use my patch[1] in issue 3786 to see if
that works around the issue, like it
Changes by Eric Snow ericsnowcurren...@gmail.com:
Removed file: http://bugs.python.org/file26280/cache_tag_via_sys_var.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15242
___
Eric Snow ericsnowcurren...@gmail.com added the comment:
Patch updated to include a doc addition.
--
Added file: http://bugs.python.org/file26281/cache_tag_via_sys_var.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15242
Nick Coghlan ncogh...@gmail.com added the comment:
Just letting people know I'm working on a patch that updates the class
constructors to give meaningful error messages for malformed addresses, instead
of assuming that users can figure it out just by looking at the address. I'm
also updating
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file26282/issue-15269-1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15269
Mark myagn...@students.poly.edu added the comment:
So, I should not hold my breath in the hope of this being fixed in 2.7?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15262
___
92 matches
Mail list logo