Rogi r...@linuxmail.org added the comment:
I may be wrong, but I think Py_Main() will _never_ return 1.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
___
Rogi r...@linuxmail.org added the comment:
Oh, and other functions on this doc, such as PyRun_SimpleStringFlags(),
have this same documentation problem about SystemError.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
Mark Hammond skippy.hamm...@gmail.com added the comment:
It will return 1 if you specify a script to run and that has an unhandled
exception.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
Mark Hammond skippy.hamm...@gmail.com added the comment:
Good catch - new patch with PyRun_SimpleStringFlags() corrected too.
--
keywords: +patch
Added file: http://bugs.python.org/file21448/bug-6498.patch
___
Python tracker rep...@bugs.python.org
Torsten Landschoff t.landsch...@gmx.net added the comment:
Torsten basically you are suggesting that PRAGMA would never work at all with
my 'do not strcmp() the sql at all, always begin a transaction' approach?
No. Most pragmas should still work and getting the current setting of a pragma
ysj.ray ysj@gmail.com added the comment:
Here I worked out a patch to make the function decorated by context manager
returned by @contextmanager reusable, by storing original function object and
argments(args, kwds objects) in _GeneratorContextManager and construct a
generator when
Marc-Andre Lemburg m...@egenix.com added the comment:
Westley Martínez wrote:
Westley Martínez aniko...@gmail.com added the comment:
('arch', '', '')
I've had a look at http://www.archlinux.org/download/ which does list
a release version (currently 2010.05).
Could you try to get that
Changes by anatoly techtonik techto...@gmail.com:
--
assignee: - docs@python
components: +Devguide, Documentation -None
nosy: +docs@python
title: Add communication FAQ to devguide - Devguide: Add communication FAQ
___
Python tracker
anatoly techtonik techto...@gmail.com added the comment:
Is there any tool to see how it works step-by-step. The whole stuff is
extremely interesting, but I can't fit all the details of AST processing in my
head.
--
nosy: +techtonik
___
Python
New submission from Palm Kevin kevin.p...@labsolution.lu:
The interactive help-method provided by python crashes when no stdin-stream is
available (sys.stdin == None).
Exception:
Traceback (most recent call last):
File MyScript, line 4, in module
File C:\Python32\lib\site.py, line
Changes by Palm Kevin kevin.p...@labsolution.lu:
--
components: +IO
type: - crash
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11709
___
Nick Coghlan ncogh...@gmail.com added the comment:
Part of the problem is that there was a specific reason we didn't go with lazy
initialisation of the internal generator: lazy initialisation means there can
be an arbitrary delay between creation of the context manager and the creation
of the
Nick Coghlan ncogh...@gmail.com added the comment:
Eugene: I suggest raising the question on python-dev. The answer potentially
affects the PEP 380 patch as well (which adds a new attribute to the Yield
node).
Anatoly: If you just want to get a feel for the kind of AST various pieces of
code
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
What is the line that the parent process is executing? Line numbers don't seem
to match any more.
And is it possible to set a breakpoint in the child process where the fatal
error is triggered? It would be good to know what is
Davide Rizzo sor...@gmail.com added the comment:
An effective way to automate user interaction tests is by using
pseudo-terminals. The attached test uses Pexpect and bash as tools to test the
issue and demonstrates the bug on affected builds/platforms. There are a number
of (possibly related)
Changes by Serdar Dalgic ser...@pardus.org.tr:
--
nosy: +serdar.dalgic
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
___
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Mon, Mar 28, 2011 at 09:52:43PM +, Amaury Forgeot d'Arc wrote:
But then, is close=False necessary?
It's about 'class _PartialFile(_ProxyFile)', for which this
argument is always false.
Alternatively there could be a
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The code fails precisely when checking that sys.stdin is a valid terminal. See
the attached patch for a fix.
Out of curiosity, why did you set sys.stdin to None?
--
keywords: +patch
nosy: +amaury.forgeotdarc
stage: - patch
New submission from Nick Coghlan ncogh...@gmail.com:
http://docs.python.org/py3k/urllib errors out rather than returning an index
page for the modules that are part of the urllib package.
This index page could also link to the HOWTO at
http://docs.python.org/py3k/howto/urllib2.html
The
Palm Kevin kevin.p...@labsolution.lu added the comment:
I embed Python into an existing, external C application. In addition to this I
extend Python to access that app from Python.
I do never set explicitly set the standard input to NULL. I guess that the
external C application does this...
Changes by Filip Gruszczyński grusz...@gmail.com:
--
nosy: +gruszczy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11707
___
___
Python-bugs-list
ysj.ray ysj@gmail.com added the comment:
For 3.3, the fix could be generalised with ContextDecorator supporting a
documented self._recreate internal interface that, by default, just returns
self, but would be overridden in _GeneratorContextManager to actually create
a new instance.
Nick Coghlan ncogh...@gmail.com added the comment:
Because I don't want to conflate the two APIs. ContextDecorator can be used
with *any* context manager, and some of those may already be using their copy
semantics for something else.
If anyone ever writes the __with__ PEP, then
Roundup Robot devnull@devnull added the comment:
New changeset c7f7672b70a9 by Vinay Sajip in branch 'default':
Closes issue #11557: Added Natalia Bidart's patch to improve test coverage.
http://hg.python.org/cpython/rev/c7f7672b70a9
--
nosy: +python-dev
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Closing, thanks for the patch.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11557
___
Guido van Rossum gu...@python.org added the comment:
This issue was first reported by Niels Heinen from the Google Security Team.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
Antoine Pitrou pit...@free.fr added the comment:
I don't have a 2.5 checkout to test but the patch looks ok to me.
Under 2.7 I get a test failure, I suppose you'll have some merging work to do:
test test_urllib2 failed -- Traceback (most recent call last):
File
Michael Foord mich...@voidspace.org.uk added the comment:
I agree. copy is a separate protocol and shouldn't be involved here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11647
___
Brett Cannon br...@python.org added the comment:
It's actually not surprising that imp works this way: it predates packages.
Because the semantics (I assume) have been like this for ages I say we document
the current behavior (it's easy to work around) and simply continue to replace
imp
R. David Murray rdmur...@bitdance.com added the comment:
This seems to be causing some issues on the buildbots:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/137
--
nosy: +r.david.murray
status: closed - open
Natalia B. Bidart nataliabid...@gmail.com added the comment:
I'll work on a fix during next weekend (sooner if I have an open slot).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11557
Éric Araujo mer...@netwok.org added the comment:
A similar function already exists: test.support.patch
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11664
___
Michael Foord mich...@voidspace.org.uk added the comment:
Right, I helped with the writing of that at PyCon. The patch method would look
very similar. test.support.patch is not something we want to make public (in
that location).
--
___
Python
Guido van Rossum gu...@python.org added the comment:
I have the final version of the patch for Python 2 in the 2.5, 2.6 and 2.7
branches in my repo (http://hg.python.org/sandbox/guido).
What's the next step? Just push this to the central repo? There are a few
separate changes:
summary:
Guido van Rossum gu...@python.org added the comment:
Also for the Python 3 family it's best to backport Senthil's patch. I will try
that in my tree as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11703
___
Santoso Wijaya santoso.wij...@gmail.com added the comment:
This is because the Request class' constructor splits the URL into __original
and fragment:
def __init__(self, url, data=None, headers={},
origin_req_host=None, unverifiable=False):
#
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The SystemExit vs. SystemError is clearly a typo in the doc. The VC comment
accompanying the addition of that note says note that Py_Main doesnt return on
SystemExit. See [e5d8f0c0d634] and #5227.
--
nosy:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The updated doc patch is missing :exc: markup on one of SystemExits.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
Guido van Rossum gu...@python.org added the comment:
The fix is now also in the 3.1, 3.2 and default branches of my repo
(http://hg.python.org/sandbox/guido).
Maybe I should just merge the whole bunch into the root repo and be
done with it?
--
___
Benjamin Peterson benja...@python.org added the comment:
2011/3/29 Guido van Rossum rep...@bugs.python.org:
Guido van Rossum gu...@python.org added the comment:
The fix is now also in the 3.1, 3.2 and default branches of my repo
(http://hg.python.org/sandbox/guido).
Maybe I should just
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
This new patch adheres your suggestion.
Now all implemented operations perform
a file is open at all check and raise
ValueError if not, which somewhat reflects
what i've seen when i was looking into fileio.c.
My questions:
-
Barry A. Warsaw ba...@python.org added the comment:
Here's a fix that works for me on Ubuntu 11.04.
--
hgrepos: +12
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
Changes by Barry A. Warsaw ba...@python.org:
Added file: http://bugs.python.org/file21453/a9b05b89ea39.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
Changes by Barry A. Warsaw ba...@python.org:
Removed file: http://bugs.python.org/file21453/a9b05b89ea39.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
Changes by Barry A. Warsaw ba...@python.org:
Added file: http://bugs.python.org/file21454/a4dcae4cd033.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
New submission from Cloudberry tm...@skaugmail.net:
System where issue was reproduced is Ubuntu 10.04 32-bit with python 2.6.5
Expected behavior for socket.socketpair as per the docstring: The arguments
are the same as for socket() except the default family is AF_UNIX if defined on
the
Barry A. Warsaw ba...@python.org added the comment:
I should note that I'd love to backport this to Python 3.2, 3.1, 2.7 and 2.6
since none of them can build entirely now on multiarch systems. Since it only
affects search order in the build process, one could argue that it's not a new
Antoine Pitrou pit...@free.fr added the comment:
Barry: does it allow to install Python into /usr/lib/whateverarch, or is it
just a partial fix for something slightly unrelated to this issue?
--
nosy: +pitrou
___
Python tracker
New submission from Terry J. Reedy tjre...@udel.edu:
l=[1,3,2]
l.sort(cmp=lambda x,y:y-x, key=lambda x: x)
print(l)
With CPython 2.7 this
1) could raise an exception like TypeError: conflicting arguments passed;
2) could ignore cmp= and print [1,2,3] on the basis that the new should
override
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Attaching patches against 2.7 and 3.1 branches.
--
keywords: +patch
Added file: http://bugs.python.org/file21456/issue11703_py27.patch
___
Python tracker rep...@bugs.python.org
Changes by Santoso Wijaya santoso.wij...@gmail.com:
Added file: http://bugs.python.org/file21457/issue11703_py31.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11703
___
Ross Lagerwall rosslagerw...@gmail.com added the comment:
It is noted in the Linux man page for socketpair:
On Linux, the only supported domain for this call is AF_UNIX (or synonymously,
AF_LOCAL). (Most implementations have the same restriction.)
--
nosy: +rosslagerwall
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1571878
___
___
Westley Martínez aniko...@gmail.com added the comment:
That's the release version for the installation disc.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11678
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
A proper fix is to introduce sys.libdir, which would be controllable by
--libdir=${value} option of `configure`. If --libdir=${value} is not passed,
then sys.libdir would default to sys.prefix + /lib.
sysconfig,
Cloudberry tm...@skaugmail.net added the comment:
Thank you for clarifications. Closing it as an invalid issue, as this is (not)
working as expected. Apologies for the noise.
--
resolution: - invalid
status: open - closed
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: docs@python - rhettinger
nosy: +rhettinger
priority: normal - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11712
New submission from Davide Rizzo sor...@gmail.com:
collections.deque docstring is:
'deque(iterable[, maxlen]) -- deque object\n\nBuild an ordered collection
accessible from endpoints only.'
As it reads now, it seems to imply that only endpoints can be read/modified.
The rst correctly states
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11713
___
___
Westley Martínez aniko...@gmail.com added the comment:
Well it's been quite some time and no response yet.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11155
___
New submission from Thomas Rachel th.rac...@googlemail.com:
The acquire() and release() functions of threading.Semaphore do not make use of
the try...finally suite as it would be reasonable.
They just do
def acquire(self, blocking=1):
rc = False
self.__cond.acquire()
Sandro Tosi sandro.t...@gmail.com added the comment:
I took the freedom to refresh the patch against default (I don't know yet the
policies for what to backport and what not), built a debug version of python
with the patch applied and run the test suite with no regression.
A test would be
Roundup Robot devnull@devnull added the comment:
New changeset 5937d2119a20 by guido in branch '3.1':
Issue 11662: Fix vulnerability in urllib/urllib2.
http://hg.python.org/cpython/rev/5937d2119a20
New changeset 96a6c128822b by guido in branch '3.2':
Merge Issue 11662 from 3.1 branch.
Guido van Rossum gu...@python.org added the comment:
Ok, merged into the central repo. Let me know where I screwed up.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
Gregory P. Smith g...@krypto.org added the comment:
not yet, thanks for the reminder. if any other committers feel like jumping on
this and doing it before I get around to it, feel free.
--
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
Python-bugs-list mailing list
Erik Cederstrand e...@1calendar.dk added the comment:
I'm not sure if I was supposed to respond. The patch looks straight-forward to
me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11155
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi Gregor,
are you still able to replicate this bug? I just tried on a freshly built 3.3
and (hopefully correctly) following your description, I can print help just
fine:
help(print)
Help on built-in function print in module builtins:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11155
___
___
Erik Cederstrand e...@1calendar.dk added the comment:
Just checked on Python 2.7.1 with the same result. Test script attached.
--
Added file: http://bugs.python.org/file21459/q.py
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
Changes by Erik Cederstrand e...@1calendar.dk:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11155
___
___
Thomas Rachel th.rac...@googlemail.com added the comment:
I wonder if it is right what I wrote. After a second thought, the acquire()
should come *after* try:, as well in threading.Event. Because if Ctrl-C is
pressed while waiting in acquire(), a KeyboardInterrupt is thrown immediately
after
Thomas Rachel th.rac...@googlemail.com added the comment:
Of course.
I hope it is correct, and I hop it is ok when I change to use with ...: on
the other places I consider it useful as well...
--
keywords: +patch
type: - behavior
Added file:
Antoine Pitrou pit...@free.fr added the comment:
It would be simpler to use with indeed.
Do you want to provide a patch?
--
nosy: +pitrou
versions: +Python 3.3 -Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
priority: normal - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11713
___
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi,
I don't understand why you think tarfile should not fail in case you're trying
to add a non-existing file. the problem is that glob() already extracted a list
of filesdirs and then while the script is tar-ring them, you're removing some
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
The comment in the source that describes `Py_InspectFlag` also says
`SystemError` instead of `SystemExit`. I changed that and added the missing
:exc: for the SystemExit and created a patch for 3.1.
--
nosy: +Trundle
Added
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
Added file: http://bugs.python.org/file21462/issue6498_31.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
___
Gregor Lingl gregorli...@users.sourceforge.net added the comment:
Right. I cannot replicate this bug even with an IDLE from Python 3.2. So it
seems to me, that this problem has been solved.
Regards,
Gregor
--
___
Python tracker
Sandro Tosi sandro.t...@gmail.com added the comment:
As Benjamin just confirmed on #python-dev, sys.setprofile is not a cpython impl
detail, hence closing this issue.
--
nosy: +benjamin.peterson, sandro.tosi
resolution: - invalid
stage: needs patch - committed/rejected
status: open -
Nadeem Vawda nadeem.va...@gmail.com added the comment:
For what its worth, an strace of Java's Process class appears to cheat by
opening /proc/self/fd inbetween fork exec.
Looking at the OpenJDK source confirms this:
STINNER Victor victor.stin...@haypocalc.com added the comment:
regrtest_timeout.patch: add --timeout option to regrtest.py to display the
traceback and then exit if a test takes more than TIMEOUT seconds. It adds also
a check on the subprocess exit code (regrtest.py -j): raise a exception if
STINNER Victor victor.stin...@haypocalc.com added the comment:
I like the approach suggested by Gregory in issue11284 (msg129912) - if we are
sure the program is not multithreaded, get the list of fds before forking, and
use that; otherwise, do it the slow way.
A signal handler can also
Sandro Tosi sandro.t...@gmail.com added the comment:
that's great, closing then :)
--
resolution: - out of date
stage: needs patch -
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7124
Benjamin Peterson benja...@python.org added the comment:
I have an idea. How about instead of reusing abstractmethod for abstract
getters and setters, you add abstractproperty.abstractgetter/setter/deleter?
--
___
Python tracker
Barry A. Warsaw ba...@python.org added the comment:
On Mar 29, 2011, at 07:28 PM, Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
Barry: does it allow to install Python into /usr/lib/whateverarch, or is it
just a partial fix for something slightly unrelated to this
New submission from Barry A. Warsaw ba...@python.org:
Ubuntu 11.04 introduces new directories for libraries and headers to support
multiple architectures on a single machine. E.g. 64bit and 32bit on a 64bit
Ubuntu. Here are the specs:
https://wiki.ubuntu.com/MultiarchSpec
Barry A. Warsaw ba...@python.org added the comment:
I retract my patch for this bug because the issue described here is actually
different than the one I want to fix. See issue 11715 for the problem of
building Python on multiarch Debian and Ubuntu (e.g. Ubuntu 11.04).
--
Changes by Barry A. Warsaw ba...@python.org:
Removed file: http://bugs.python.org/file21454/a4dcae4cd033.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
Changes by Barry A. Warsaw ba...@python.org:
--
keywords: +patch
Added file: http://bugs.python.org/file21464/a9b05b89ea39.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11715
___
Changes by Barry A. Warsaw ba...@python.org:
Removed file: http://bugs.python.org/file21464/a9b05b89ea39.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11715
___
Changes by Barry A. Warsaw ba...@python.org:
Added file: http://bugs.python.org/file21465/d504ca7e0fe5.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11715
___
Barry A. Warsaw ba...@python.org added the comment:
On Mar 29, 2011, at 07:38 PM, Arfrever Frehtes Taifersar Arahesis wrote:
A proper fix is to introduce sys.libdir, which would be controllable by
--libdir=${value} option of `configure`. If --libdir=${value} is not passed,
then sys.libdir would
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
That fixed it - but it seems we need that for the other Types defined in the
module.
Regarding testing - would it be a good idea to add an MSI to the test suite -
or better to create one during testing (using msilib) and then use that
Matthias Klose d...@debian.org added the comment:
heh, that's easy, just add the multiarch id to the extension name ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
Barry A. Warsaw ba...@python.org added the comment:
Antoine, -P is fine with me!
Also, since my idea is that --usetmp/-P would just use the mkdtemp() algorithm
(which looks for $TMPDIR, $TEMP or $TMP), getting the build into a
subdirectory, e.g. /tmp/test_python would be as easy as setting
Matthias Klose d...@debian.org added the comment:
On 29.03.2011 21:28, Antoine Pitrou wrote:
Barry: does it allow to install Python into /usr/lib/whateverarch,
no, it looks for headers and libraries in more directories. But really, this
whole testing for paths is wrong. Just use the compiler
Mark Mc Mahon mtnbikingm...@gmail.com added the comment:
This issue has been fixed by changes made in issue7639 and issue11696
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2694
___
1 - 100 of 133 matches
Mail list logo