Antoine Pitrou [EMAIL PROTECTED] added the comment:
What do you mean, overriden? The behaviour looks totally normal to me.
You change the value of p before the subprocess is started, so the
subprocess inherits the new value, not the old one.
--
nosy: +pitrou
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I agree; this is the expected behavior. Perhaps you don't understand how
globals work in Python?
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker [EMAIL
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Well, I get the OP's expected result on windows:
C:\dev\python\trunkPCbuild\python_d t.py
Got 'p' of Correct
C:\dev\python\trunkPCbuild\python_d t.py -m
Got 'p' of Correct
This is easy to explain: on Unix, the forked process has a copy
A.M. Kuchling [EMAIL PROTECTED] added the comment:
Fixed in rev. 66250 of trunk; thanks!
--
nosy: +akuchling
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3040
A.M. Kuchling [EMAIL PROTECTED] added the comment:
This is fixed in the Python 2.6 documentation, where the HOWTOs
have been incorporated and the link is therefore automatic. Thanks for
your report!
--
nosy: +akuchling
resolution: - fixed
status: open - closed
New submission from Matt Giuca [EMAIL PROTECTED]:
A missing blank line under the heading for __bool__ in datamodel.rst (in
Python 3.0 docs) causes the following line to appear in the output HTML.
.. index:: single: __len__() (mapping object method)
Visible here:
Barry Alan Scott [EMAIL PROTECTED] added the comment:
You are right that its the Py::Long( Py::Float( double( x ) ) )
that is triggering this problem.
Here is the gdb from the powerpc build that shows the
info you asked for and show res being corrupt.
I'm going to try and build a smaller
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
I hate to make API suggestions this late in the process, but this is the
first
time I've looked at this. I think the basic problem is that the context
manager API is a bit weird. What I don't like is the fact that
__getattr__()
indexes the
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
Neal, can you verify that this is still a problem now that bsddb has
been removed? The tests, run in the order of the last comment, succeed
for me in both 2.6 and 3.0, debug build or not, on both my single
processor Ubuntu box and dual core
Georg Brandl [EMAIL PROTECTED] added the comment:
Fixed in r66260.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3794
___
Georg Brandl [EMAIL PROTECTED] added the comment:
Uh, I meant r66261. Thanks for the patch!
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3794
___
___
Changes by Gregory P. Smith [EMAIL PROTECTED]:
--
nosy: +gregory.p.smith
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3783
___
___
Python-bugs-list
Changes by Gregory P. Smith [EMAIL PROTECTED]:
--
assignee: - gregory.p.smith
nosy: +gregory.p.smith
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3790
___
Raymond Hettinger [EMAIL PROTECTED] added the comment:
I would like to see something like this go into 3.0 so that shelves
don't become useless for Windows users.
--
nosy: +rhettinger
___
Python tracker [EMAIL PROTECTED]
Brett Cannon [EMAIL PROTECTED] added the comment:
And I forgot to mention that subclassing list is a new thing I tossed in
when I moved the code and tweaked the API so that's another reason that
using list's abilities was not pervasive.
___
Python tracker
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
Sounds good. This needs to go into 2.6 and 3.0. And while you're add
it, can you add catch_warnings to the __all__?
--
versions: +Python 3.0
___
Python tracker [EMAIL PROTECTED]
Brett Cannon [EMAIL PROTECTED] added the comment:
The use of __getattr__ is a historical artifact. Originally there was no
way to record multiple warnings as the object returned by
catch_warnings() represented only a single instance of a warning. But
then the ability to record multiple warnings
Barry Alan Scott [EMAIL PROTECTED] added the comment:
O.k. I know what is going on.
Here is the description from abstracts.h for PyNumber_Long:
PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o);
/*
Returns the o converted to a long integer object on success,
or
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Hmm. I suppose anything is better than segfaulting. I think the patch is
fine for now, though.
--
keywords: -needs review
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Ok. Applied in r66262.
--
resolution: - accepted
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1638033
___
New submission from Bjarke Walling [EMAIL PROTECTED]:
To reproduce the error start Python 3.0 and enter the usual WSGI hello
world application:
from wsgiref.simple_server import make_server, demo_app
httpd = make_server('', 8000, demo_app)
httpd.serve_forever()
Open a browser and point it
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
You are right: long(4.2) used to return a long.
This was changed by the introduction of the float_trunc() function,
which is now used for float.__trunc__, float.__int__ and float.__long__.
OTOH, long() has always been allowed to return
Gregory P. Smith [EMAIL PROTECTED] added the comment:
fixed in r66266 along with #3790.
leaving this open and assigned to me while i investigate the other uses
of ByteArray in the Modules/ directory.
IMHO, its fine if we fix any remaining bytearray uses up for rc2.
--
resolution: -
Gregory P. Smith [EMAIL PROTECTED] added the comment:
fixed in r66266 along with #3492.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3790
___
Changes by Gregory P. Smith [EMAIL PROTECTED]:
--
priority: release blocker - deferred blocker
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3492
___
A.M. Kuchling [EMAIL PROTECTED] added the comment:
Applied in rev. 66268; thanks!
--
nosy: +akuchling
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3669
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]:
r62680 moved some tests from test_builtin to test_float,
but the list of classes to run was not updated.
Some minor updated were needed to let these tests pass.
--
files: test_float.patch
keywords: needs review, patch, patch
Benjamin Peterson [EMAIL PROTECTED] added the comment:
Go ahead and commit.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3796
___
New submission from Gregory P. Smith [EMAIL PROTECTED]:
As noted in issue #3492 the following py3k modules still erroneously
return bytearray objects instead of bytes objects from their read functions:
mmap
dbm
ossaudiodev
Attached is a trivial patch to fix those.
--
assignee:
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Committed in r66269.
--
priority: deferred blocker - high
title: py3k aborts if -c or -m is given a non-ascii value - py3k fails
under Windows if -c or -m is given a non-ascii value
type: crash - behavior
Gregory P. Smith [EMAIL PROTECTED] added the comment:
attached a patch for PC/winreg.c and Python/marshal.c.
--
title: mmap, dbm and ossaudiodev return bytearray instead of bytes - mmap,
dbm, ossaudiodev, marshal winreg return bytearray instead of bytes
Added file:
Gregory P. Smith [EMAIL PROTECTED] added the comment:
issue #3797 has been opened to track the other files mentioned.
--
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3492
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Committed r66270 and r66271.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3796
___
Changes by A.M. Kuchling [EMAIL PROTECTED]:
--
components: -Documentation
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1674032
___
___
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment:
Hello. I confirmed test_winreg.py passed after applied
marshal-winreg_bytes.patch.
--
nosy: +ocean-city
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3797
Antoine Pitrou [EMAIL PROTECTED] added the comment:
I agree this would be a worthwhile addition too. Unfortunately given the
current schedule this will probably have to wait for 2.7/3.1.
--
nosy: +pitrou
versions: +Python 2.7, Python 3.1 -Python 2.6
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Tests pass here as well, under Windows and Linux.
--
nosy: +pitrou
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3797
___
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
- PyBytes_Resize takes a PyObject**, you should pass rv. Didn't you get
a compiler warning?
- Here is an additional test for the winreg module, your patch is needed
for it to pass.
--
nosy: +amaury.forgeotdarc
Antoine Pitrou [EMAIL PROTECTED] added the comment:
As for ossaudiodev:
-PyByteArray_Resize(rv, count);
+_PyBytes_Resize(rv, count);
I think this should be _PyBytes_Resize(rv, count) instead.
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Amaury beat me to the punch :-o
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3797
___
___
Python-bugs-list
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Here is a patch that restores the float-long conversion. The function
was simply copied from 2.5.
--
keywords: +needs review, patch
Added file: http://bugs.python.org/file11410/float_long.patch
A.M. Kuchling [EMAIL PROTECTED] added the comment:
Documentation added in rev. 66272.
--
assignee: - akuchling
nosy: +akuchling
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1317
Antoine Pitrou [EMAIL PROTECTED] added the comment:
This seems to be a duplicate of #3348.
--
nosy: +pitrou
resolution: - duplicate
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3795
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Also reported in #3795.
PJE, are you willing to work on this some day?
--
nosy: +Walling
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3348
___
Gregory P. Smith [EMAIL PROTECTED] added the comment:
heh indeed it should be rv. i made the patch on a mac and hadn't run
it on my linux host before opening the issue.
fixed locally and given all of the reviews across all relevant
platforms.. committing. py3k r66273.
--
resolution:
David Naylor [EMAIL PROTECTED] added the comment:
I'm currently developing a script that makes extensive use of threads
and Popen, with threads being created dynamically and each thread
creating a large number of Popen processes.
If I limit the thread count to 2 (main + worker) then the
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]:
When SystemExit is raised with a string argument, it is printed as UTF-8
to the (libc) stderr, and does not use the terminal's encoding.
handle_system_exit() should use PyFile_WriteString() instead of
PyObject_Print().
--
Gregory P. Smith [EMAIL PROTECTED] added the comment:
its too late in the release process for subprocess internals being EINTR
safe to make it into 2.6 but it is reasonable for 2.6.1.
--
priority: low - normal
type: - behavior
versions: +Python 2.5, Python 2.6
Gregory P. Smith [EMAIL PROTECTED] added the comment:
true, issue 1204 is more general. i'll leave this in but it can be
removed once the better general fix is in with 1204. i won't backport
this one.
--
keywords: +64bit
status: pending - closed
versions: +Python 2.6
New submission from Skip Montanaro [EMAIL PROTECTED]:
Consider these two timeit commands:
py3k% python3.0 -m timeit -s 'import dbm.ndbm as db' -s 'f =
db.open(/tmp/trash.db, c)' 'for i in range(1000): f[str(i)] = str(i)'
100 loops, best of 3: 5.51 msec per loop
py3k% python3.0 -m timeit -s
Gregory P. Smith [EMAIL PROTECTED] added the comment:
when committing this one, the platform specific openbsd/amd64 fix I
committed for this in issue 3645 should probably be verified as unneeded
and undone.
marking as release blocker as we should make sure this autoconf update
goes in before
Phillip J. Eby [EMAIL PROTECTED] added the comment:
Not any time soon; I don't currently use Py3K and can't even vouch for
the correctness of the posted patch within Py3K. (i.e., what really
happened to the message class?) Sorry; all I can really do here is
clarify WSGI-related questions.
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
This patch corrects the -m case on windows: the path has to be
decoded/recoded using the filesystem encoding, and not the default utf-8.
Review is needed, of course.
--
nosy: +amaury.forgeotdarc
Added file:
Brett Cannon [EMAIL PROTECTED] added the comment:
On Sat, Sep 6, 2008 at 11:31 AM, Barry A. Warsaw [EMAIL PROTECTED] wrote:
Barry A. Warsaw [EMAIL PROTECTED] added the comment:
Sounds good. This needs to go into 2.6 and 3.0.
Oh, definitely.
And while you're add
it, can you add
Gregory P. Smith [EMAIL PROTECTED] added the comment:
forkthread2.patch looks good to me. to be consistent shouldn't we also
apply that fix to 2.6?
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue874900
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Le samedi 06 septembre 2008 à 22:27 +, Gregory P. Smith a écrit :
Gregory P. Smith [EMAIL PROTECTED] added the comment:
forkthread2.patch looks good to me. to be consistent shouldn't we also
apply that fix to 2.6?
Only the
Barry Alan Scott [EMAIL PROTECTED] added the comment:
My concern and yours is that this is not backwards
compatible. I would hate to see random failures
of extensions written using PyCXX because of this.
I'm tempted to says that I'll keep PyCXX 5.x as is for
Python 2.x and leave all the changes
Josiah Carlson [EMAIL PROTECTED] added the comment:
Here's an alternate version with most of bsddb's interface intact.
--
nosy: +josiahcarlson
Added file: http://bugs.python.org/file11412/sq_dict.py
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Looks good and works under Linux.
One small nit, you could just as well use NN(ssi) for the
Py_BuildValue and remove Py_DECREF(fob), so as to be more consistent.
___
Python tracker [EMAIL PROTECTED]
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Committed in r66274, r66275. Thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue874900
___
A.M. Kuchling [EMAIL PROTECTED] added the comment:
I've edited the suggested text and added it to the FAQ
in rev. 11722. Thanks for your contribution!
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
Gregory P. Smith [EMAIL PROTECTED] added the comment:
I've attached an updated patch. Not much changed other than the better
diff -u format, a couple grammar errors in comments and inclusion of the
new autoconf generated configure script.
It works fine for me on ubuntu hardy 32bit, CentOS 5.x
Senthil [EMAIL PROTECTED] added the comment:
The patch and tests look fine to me, Gregory. I verified it against the
trunk. Should not we have it for py3k as well?
--
nosy: +orsenthil
___
Python tracker [EMAIL PROTECTED]
Gregory P. Smith [EMAIL PROTECTED] added the comment:
sq_dict review:
have sqlite quote/escape self._mtn before using it with a python %s
substitution. or pass it into the sql query function as a positional ?
parameter like you do for keys and values. (avoid sql injection)
raise a TypeError
Gregory P. Smith [EMAIL PROTECTED] added the comment:
yep it applies to all releases. anyways, it won't make 2.6/3.0 but it
can be put into 2.5.3/2.6.1/3.0.1.
--
versions: +Python 3.0
___
Python tracker [EMAIL PROTECTED]
Gregory P. Smith [EMAIL PROTECTED] added the comment:
I backported the last bit from r66275 to release25-maint in r66279.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue874900
___
Henry Precheur [EMAIL PROTECTED] added the comment:
According to config.log the readline functions are correctly detected. I
tested the patch with Python 2.5 2.6 and both work with the test I
posted on issue 3645.
___
Python tracker [EMAIL PROTECTED]
Josiah Carlson [EMAIL PROTECTED] added the comment:
I tried passing the db name as a parameter with '?', it doesn't always
work. Also, there shouldn't be any SQL injection issues here unless
someone designed their system wrong (if a third party is allowed to pass
the name of a db table into
Josiah Carlson [EMAIL PROTECTED] added the comment:
Fixed in 66281.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3764
___
Gregory P. Smith [EMAIL PROTECTED] added the comment:
please undo this, this broke asyncore in trunk. handle_close_event
doesn't exist in 2.6.
--
nosy: +gregory.p.smith
priority: - release blocker
resolution: fixed -
status: closed - open
___
Changes by Gregory P. Smith [EMAIL PROTECTED]:
--
keywords: +easy
type: - behavior
versions: +Python 2.6 -Python 3.0
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3764
___
Josiah Carlson [EMAIL PROTECTED] added the comment:
I reverted the change I made to 2.6, see 66282.
The handle_close_event() method also doesn't exist in 3.0, which is why
it (and the reference) were removed in revision 64883. Giampaolo needs
to update his Python 3.0 checkout.
Closing as
Gregory P. Smith [EMAIL PROTECTED] added the comment:
fixed in trunk r66283 (followed by rerunning autoconf to generate a new
configure script in r66284).
--
keywords: -needs review
versions: -Python 2.6
___
Python tracker [EMAIL PROTECTED]
73 matches
Mail list logo