Mark Hammond skippy.hamm...@gmail.com added the comment:
Note the quoted documentation in comment 1, the paragraph Note that if an
otherwise unhandled SystemError ...
I don't think that paragraph is correct - SystemError doesn't seem to terminate
Py_Main - but if you replace SystemError with
Jan Kaliszewski z...@chopin.edu.pl added the comment:
Thank you. Raymond is against the idea so I don't know if it makes sense to
create the real patch for now (it would patch the collections module and, I
suppose, addming tests, docs etc.). Anyway, if somebody would be interested in
the
New submission from Weeble clockworksa...@gmail.com:
The docs for optparse say this:
OptionParser.get_option_group(opt_str)
Return, if defined, the OptionGroup that has the title or the long
description equals to opt_str
After failing to get this to work at all, I looked at the
Weeble clockworksa...@gmail.com added the comment:
I think the documentation for get_option_group is not right. I've created a new
bug: http://bugs.python.org/issue11699
--
nosy: +weeble
___
Python tracker rep...@bugs.python.org
Changes by Sandro Tosi sandro.t...@gmail.com:
--
nosy: +sandro.tosi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11699
___
___
Python-bugs-list
New submission from Kaushik Kannan kaushik1...@gmail.com:
I wrote a daemon to monitor a directory and send out emails periodically. To
create the email, I used MIMEMultipart() object. When as_string() method is
called on the MIMEMultipart() object, it seemed to cause memory leaks. On
looking
Kaushik Kannan kaushik1...@gmail.com added the comment:
The memory usage trace as printed out by guppy is attached. For every new call
of the Generator.flatten() method by the MIMEMultipart.as_string() method, the
number of objects increases by 3 and the total size increases by 484Bytes.
Torsten Becker torsten.bec...@gmail.com added the comment:
I incorporated that change as well. My rationale behind the previous version
was to be consistent with how Lib/email/header.py handled this, unfortunately I
did not look around in the other classes and didn't think about that kind of
R. David Murray rdmur...@bitdance.com added the comment:
Ah, yes. Header is probably wrong there, I should fix that at some point.
Sorry for the misytpes in my last message (it was late at night for me when I
wrote it :)
As for time, it probably didn't take any more time than it would have
Changes by R. David Murray rdmur...@bitdance.com:
--
versions: -Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1690608
___
Roundup Robot devnull@devnull added the comment:
New changeset cc04b591d768 by Ezio Melotti in branch '2.7':
#10617: add class directives to collections ABCs.
http://hg.python.org/cpython/rev/cc04b591d768
--
nosy: +python-dev
___
Python tracker
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Attached is a simple script to show include and lib paths.
The makefile location seems OK on my system.
--
Added file: http://bugs.python.org/file21437/libdir.py
___
Python tracker
Felix Gröbert groeb...@google.com added the comment:
If the spec forbids control characters in headers, the module should
enforce that.
The most frequent example of header injection is the redirect-case: an
application is forwarding using the Location header to a user-supplied
URL.
Marc-Andre Lemburg m...@egenix.com added the comment:
Westley Martínez wrote:
Westley Martínez aniko...@gmail.com added the comment:
I forgot to say, Arch Linux is rolling release so it doesn't have a version
or id.
Ok, but then what's the output of the function on Arch Linux (with the
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
I'll send a patch that updates/fixes handling of
file closes in the internal proxy-file classes.
It could cause errors yet because self._file is
del-eted but that field may still be used afterwards.
mb =
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Here's the patch.
--
keywords: +patch
Added file: http://bugs.python.org/file21438/11700.1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11700
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
... and that closes the original file, too!
(I've also opened #11700 due to the mailbox.py
side of this.)
static PyObject *
textiowrapper_close(textio *self, PyObject *args)
return PyObject_CallMethod(self-buffer,
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
\|/
_ .
|
=
Yes!?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11650
___
Eric Frederich eric.freder...@gmail.com added the comment:
So there is a disconnect.
You can either change the documentation to match the behavior or you can change
the code to match the documentation.
I would prefer to leave the documentation alone and make Py_Main return rather
than exit
Changes by knickerkicker knicker.kic...@gmail.com:
--
nosy: +knicker.kicker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6085
___
___
Changes by Charles-Francois Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file17081/base_http_server_fqdn_lag.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6085
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
___
___
Python-bugs-list
Changes by Brian Curtin br...@python.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1673007
___
___
Python-bugs-list
Brian Curtin br...@python.org added the comment:
Closing as duplicate. #1673007 tackles the same issues and has a few patches
available.
--
nosy: +brian.curtin
resolution: - duplicate
stage: test needed - committed/rejected
status: open - closed
superseder: - urllib2 requests history
ysj.ray ysj@gmail.com added the comment:
Now I found that I am wrong and I feel OK with make the context manager
reusable when used as a decorator. I missed one thing: the reusable behavior is
regarded as in the decorated function but not in the decorator context manager.
:)
--
New submission from Mark Mc Mahon mtnbikingm...@gmail.com:
Running the following code:
import msilib
db = msilib.OpenDatabase('c:/windows/installer/1c7a1.msi', 1)
db
_msi.Database object at 0x01E230A0
dir(db)
(Python crashes - tested on current Trunk and Python 2.7.1).
I tried tracking
Changes by Éric Araujo mer...@netwok.org:
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python, eric.araujo, georg.brandl, lunar_yorn, nnorwitz
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3
___
Python tracker
Charles Solar charlesso...@gmail.com added the comment:
Hello again, I got a copy of the latest python from the 2.7 branch, recompiled
with CFLAGS=-m64 -O3 and LDFLAGS=-m64 and my extension compiled just fine.
So I can verify this bug fixed
--
___
Antoine Pitrou pit...@free.fr added the comment:
Thanks for checking. Closing as fixed.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9181
___
Changes by Filip Gruszczyński grusz...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9544
___
___
Henri Salo he...@nerv.fi added the comment:
CVE-2011-1521 has been assigned to this issue.
--
nosy: +Henri.Salo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
Roundup Robot devnull@devnull added the comment:
New changeset c5de208d205c by Ezio Melotti in branch '3.1':
#10617: add class directives to collections ABCs.
http://hg.python.org/cpython/rev/c5de208d205c
New changeset 3daca2b76297 by Ezio Melotti in branch '3.2':
#10617: merge with 3.1.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10617
___
Rogi r...@linuxmail.org added the comment:
Sorry, some years have passed since I posted this. I will take a look on teh
code again.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I replaced guppy by a debug build of Python and a simple print
sys.gettotalrefcount().
Indeed, I see a reference leak with Python2.6 (10 more references on every
loop). There seems to be no leak with Python2.7.
Which version of Python
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Attaching patches against 3.1 and 3.2 (due to unicode and slightly different
unittest layout).
--
Added file: http://bugs.python.org/file21439/issue11397_py31.patch
___
Python tracker
Changes by Santoso Wijaya santoso.wij...@gmail.com:
Added file: http://bugs.python.org/file21440/issue11397_py32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11397
___
Changes by Sandro Tosi sandro.t...@gmail.com:
--
nosy: +sandro.tosi
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1571878
___
Changes by Sandro Tosi sandro.t...@gmail.com:
--
keywords: -patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1571878
___
___
Python-bugs-list
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7796
___
___
Python-bugs-list
Changes by Sridhar Ratnakumar sridh...@activestate.com:
--
nosy: -srid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7796
___
___
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi Brian,
are you able to replicate it? I just build 3.2 and default (3.3) on a Debian
unstable system and wasn't able to replicate it (with a busy loop like while
date ; do ./python -c import multiprocessing.managers ; mpp =
Ned Deily n...@acm.org added the comment:
(Darren, I'm not sure why you are running into problems with that setup. I
test with what sounds to be a very similar one including a MacPorts gettext
port providing libintl although I do install ports as +universal (i386, x86_64)
by default. And I
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6498
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Thanks Ezio.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10617
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5340
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11702
___
___
Python-bugs-list mailing
Rogi r...@linuxmail.org added the comment:
I reviewed teh problem and rewrote teh text to better explain what is
happening. Also, I noticed teh change to teh docs, and in fact it is
not correct that teh functions call exit() on SystemError.
*** From teh docs:
dholth dho...@fastmail.fm 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?
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
With PEP 384, this is now obsolete, so closing it as such. If you think that
selected features of this patch should still be added, please submit them as
separate patches.
--
nosy: +loewis
resolution: - out of date
status: open -
Brett Cannon br...@python.org added the comment:
I say it's a documentation bug.
--
assignee: - docs@python
components: +Documentation -Interpreter Core, Library (Lib)
nosy: +brett.cannon, docs@python
stage: - needs patch
___
Python tracker
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7796
___
___
Python-bugs-list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Did you see a compiler warning? Indeed, this function (mmap.move) decodes its
arguments with:
PyArg_ParseTuple(args, kkk:move, dest, src, cnt)
This looks wrong to me: these three numbers should be Py_ssize_t, and decoded
with nnn.
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11697
___
___
Brian Quinlan br...@sweetapp.com added the comment:
No, I wasn't able to replicate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10632
___
___
Changes by Guido van Rossum gu...@python.org:
Added file: http://bugs.python.org/file21441/9d06d5eb1a7e.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
Guido van Rossum gu...@python.org added the comment:
Aha. I now see the point of raising an exception instead of just returning
None. I have backported Senthil's patch to the 2.5 branch. Please review.
--
___
Python tracker rep...@bugs.python.org
Changes by Guido van Rossum gu...@python.org:
Added file: http://bugs.python.org/file21442/f03e2acb9826.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
Changes by Guido van Rossum gu...@python.org:
Removed file: http://bugs.python.org/file21441/9d06d5eb1a7e.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11662
___
Ned Deily n...@acm.org added the comment:
Antoine is correct in principle, however LD_LIBRARY_PATH does not work on OS X.
To test without installing, you would need to use DYLD_LIBRARY_PATH instead.
Also keep in mind that, unlike most other systems, OS X binaries embed absolute
paths to
Jean-Marc Saffroy saff...@gmail.com added the comment:
So I finally cooked a little patch for netrc.py in python 2.6.
The patch extends netrc.authenticators() with an extra parameter to select a
login name, but otherwise the behaviour remains the same (still returns the
last entry for a given
Brian Curtin br...@python.org added the comment:
Can you add your tests to Lib/test/test_netrc.py?
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11416
___
New submission from Ivan Ivanenko ivan.ivane...@gmail.com:
result = urllib.urlopen(http://docs.python.org/library/urllib.html#OK;)
print result.geturl()
result = urllib2.urlopen(http://docs.python.org/library/urllib.html#OK;)
print result.geturl()
Python 2.6 returns:
Barry A. Warsaw ba...@python.org added the comment:
Please note another aspect of this problem will bite all Python developers on
Ubuntu 11.04. With the introduction of multiarch, not all stdlib Python
extension modules can be built out of the box, as seen here:
New submission from Alex Gaynor alex.gay...@gmail.com:
This is related to the discussion we had at the PyCon language summit about C
vs Python function binding. If you create a partial instance and put it on a
class it doesn't create bound instances. This behavior is a tad surprising in
my
Martin v. Löwis mar...@v.loewis.de added the comment:
Aren’t you supposed to use the DB API to get safe queries?
http://docs.python.org/dev/library/sqlite3
Yes, but the OP complains that the DB API doesn't support specification
of the table name from a parameter. So the DB API won't help
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
mbf.close() should not fail when called twice. The close() method in the io
module states that This method has no effect if the file is already closed.
But then, is close=False necessary?
--
nosy: +amaury.forgeotdarc
stage: -
Sandro Tosi sandro.t...@gmail.com added the comment:
Is someone still able to replicate this crash? I'm not, with a fresh built 3.2
and default (3.3), --with-pydebug enabled. Brian confirmed on msg132418 that he
can't any longer replicate it.
--
nosy: +sandro.tosi
Sandro Tosi sandro.t...@gmail.com added the comment:
can we close this issue then?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10632
___
___
Mark Hammond skippy.hamm...@gmail.com added the comment:
@Rogi - you seem to have a problem with your keyboard - the 'h' and 'e' keys
seem to have been swapped.
The docs are wrong regardless - I don't think anyone would suggest the
behaviour match the docs regarding SystemError - having
David Kirkby david.kir...@onetel.net added the comment:
Yes, I think this could do with being documented, as it is not obvious.
Generally one would expect CFLAGS to do this, and not OPT.
--
___
Python tracker rep...@bugs.python.org
Sandro Tosi sandro.t...@gmail.com added the comment:
This was fixed in f8fc2d03d7e4 by Benjamin Peterson.
--
nosy: +sandro.tosi
resolution: - out of date
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi Stefan, can you please expand a bit this issue and details the places you
think can benefit from pyctype macros? you know, a patch would be the best :)
--
nosy: +sandro.tosi
versions: +Python 3.3
Jean-Marc Saffroy saff...@gmail.com added the comment:
Good that you mentioned the official tests, they let me see that netrc.hosts is
actually part of the API, and my first patch broke it.
Here is an updated patch, with extra tests.
--
Added file:
Nick Coghlan ncogh...@gmail.com added the comment:
True, this could be documented better - flagging as a docs bug. (It is
mentioned at the bottom of
http://docs.python.org/library/functools.html#partial-objects, but that could
be referenced better from the main documentation of the function
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
A call to PyType_Ready() fixes the issue, see attached patch.
I added a test that opens a random file in c:\windows\installer, I don't know
if this is correct for all Windows version.
--
keywords: +patch
nosy:
New submission from Elias Zamaria mikez...@gmail.com:
I am trying to design a Python program that logs all uncaught exceptions using
the logging module. I am doing this by using the sys.excepthook function to
override the default exception handling. I noticed that if I run the program
Alex Gaynor alex.gay...@gmail.com added the comment:
Indeed I completely missed the section at the bottom. A note in the above
section would be a useful addition.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11704
Roundup Robot devnull@devnull added the comment:
New changeset 57e99f5f5e8f by Benjamin Peterson in branch '3.2':
Correct handling of functions with only kwarg args in getcallargs (closes
#11256)
http://hg.python.org/cpython/rev/57e99f5f5e8f
New changeset b19d76d9d2a7 by Benjamin Peterson in
New submission from Dave Malcolm dmalc...@redhat.com:
With hg/mercurial 0.9.3, the build of CPython fails with this error:
gcc -pthread -c -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes-I.
-IInclude -I./Include-DPy_BUILD_CORE \
-DHGVERSION=\`LC_ALL=C hg id -i .`\ \
Justin justin.warken...@gmail.com added the comment:
Just following up on this. Now that 3.2 is out, has the patch been committed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11109
___
Dave Malcolm dmalc...@redhat.com added the comment:
Works OK with mercurial 1.3.1
(specifically, this is on a RHEL5 box, using mercurial-1.3.1-3.el5.i386.rpm
from EPEL5)
Closing this out, and changing title to help people searching for this. Not
sure of the exact version of mercurial that's
Dave Peck davep...@gmail.com added the comment:
Definitely could agree with this assessment, but it is surprising given the
lack of parallel behavior between 'import' and 'imp'.
Note that imp.load_module(subpackage) _does_ modify the parent module's
attributes -- but it will never put the
Dave Malcolm dmalc...@redhat.com added the comment:
I tried again, and I'm still able to reproduce this bug on a RHEL5 box with
cpython --with-pydebug as of a recent checkout (69030:00217100b9e7 as it
happens):
$ ./python -c import multiprocessing.managers ; mpp = multiprocessing.Pool(4);
sm
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
assignee: docs@python - vinay.sajip
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11639
___
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
I really doubt that this issue has anything to do with `sys.excepthook` at all.
It's rather that module members are set to `None` during module cleanup.
Because the module raises an exception when one tries to import it, it will be
Rogi r...@linuxmail.org added the comment:
@mhammond
Maybe its just me but it seems to be a really bad idea to let
those functions terminate your process as they wish. Teh programmer
should be allowed to control teh flow of his application.
However, I am not teh only one
Roundup Robot devnull@devnull added the comment:
New changeset bfa2a8d91859 by Vinay Sajip in branch '2.6':
Issue #11639: Configuration function documentation referred to logging.XXX
rather than logging.config.XXX.
http://hg.python.org/cpython/rev/bfa2a8d91859
New changeset f494339674e7 by
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
For cases where the underlying comparison function is in C (strcoll for
example), the pure Python dispatch in cmp_to_key dominates running time. This
can be reduced considerably by writing cmp_to_key in C, making its overhead
Roundup Robot devnull@devnull added the comment:
New changeset 1a5aab273332 by Vinay Sajip in branch '2.7':
Issue #11639: Configuration function documentation referred to logging.XXX
rather than logging.config.XXX.
http://hg.python.org/cpython/rev/1a5aab273332
--
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
resolution: - fixed
status: open - closed
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11639
___
Rogi r...@linuxmail.org added the comment:
@mhammond
After reading your post again I noticed you talk about
SystemError and not SystemExit. In fact, Py_Main() should not return on
SystemError. Teh documentation states if the interpreter exits due to
an exception, which implies teh
Kaushik Kannan kaushik1...@gmail.com added the comment:
I'm on Ubuntu 10.04 with Python 2.6.5, Python 3.1 is also available in the
repos, I'll try that and post back.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11693
Mark Hammond skippy.hamm...@gmail.com added the comment:
@Rogi - you might like to re-read my responses a couple more times:
* I refer to SystemError as the docs *you quoted* refer to SystemError.
Therefore, we should *not* make the implementation match the docs - the docs
would be wrong
Eugene Toder elto...@gmail.com added the comment:
If we have to preserve backward compatibility of Python AST API, we can do this
relatively easily (at the expense of some code complexity):
* Add 'version' argument to compile() and ast.parse() with default value of 1
(old AST). Value 2 will
Elias Zamaria mikez...@gmail.com added the comment:
Andreas, your explanation seems plausible. What has changed between 2.7 and
2.7.1 such that doing the same thing produces different results?
--
___
Python tracker rep...@bugs.python.org
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Eugene, I think you're doing great work here and would like to see you succeed.
In the near term, I don't have time to participate, but don't let that stop
you.
--
___
Python tracker
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
The difference between 2.7 and 2.7.1 is issue #10068 (e2aa3b1d08bc).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11705
___
Elias Zamaria mikez...@gmail.com added the comment:
Is my issue a bug or is it expected behavior?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11705
___
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
In my opinion, it is expected behaviour (but then, I'm not a core developer).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11705
1 - 100 of 109 matches
Mail list logo