Georg Brandl ge...@python.org added the comment:
Why shouldn't global function doctests be runnable?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7061
___
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r86189.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10315
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
It's better as a demo for cmd than as a useful utility for the turtle module.
Also, we want people using turtle to learn Python, not to bypass the language
altogether.
--
assignee: - rhettinger
resolution: -
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no:
Modules/_ctypes/callproc.c:PyCArg_repr() uses sprintf(%qd, long long),
which is a GNU (and more?) extension. ISO C99 says %lld.
Instead, use % PY_FORMAT_LONG_LONG d from pyconfig.h/pyport.h.
Kills off #ifdef MS_WIN32 too. If
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Antoine Pitrou writes:
Hallvard, if you update your py3k working copy, do these warnings disappear?
Yes, switching to the svn version shuts them up.
--
___
Python tracker
New submission from R. David Murray rdmur...@bitdance.com:
The attached patch adds support to smtplib.SMTP.sendmail for the 'msg' argument
to be, in addition to the currently accepted ASCII-only string, either a bytes
string or a Message object. It also adds support for byte strings to
R. David Murray rdmur...@bitdance.com added the comment:
I'm closing this issue as invalid, since as Martin pointed out you can't send
unicode over the wire.
However, see issue 8050 where I've attached a patch that adds support for
sending binary data as a by-product of adding support for
R. David Murray rdmur...@bitdance.com added the comment:
See issue 10321 for a proposal to add Message support to smtplib.
--
nosy: -Allison.Vollmann
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8050
R. David Murray rdmur...@bitdance.com added the comment:
I'm closing this issue as invalid, since as Martin pointed out you can't send
unicode over the wire.
However, see issue 10321 where I've attached a patch that adds support for
sending binary data as a by-product of adding support for
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg120476
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4403
___
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10313
___
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Antoine Pitrou writes:
By the way, I'd like to clear out a potential misunderstanding: the
function you are patching doesn't call Python signal handlers in itself
(those registered using signal.signal()). (...)
Good point - I'm
New submission from Rügheimer frueg...@pasteur.fr:
Words in quoted command line arguments containing whitespace are split into
separate entries of the argument vector sys.argv. This implemetation (quote
removal + word splitting) removes information required to read string arguments
passed via
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Antoine Pitrou writes:
I think it is extremely unlikely that mutating errno in a signal handler
is unsafe (after all, the library functions called from that handler can
mutate errno too: that's the whole point of the patch IIUC).
New submission from Shashank shashank.sunny.si...@gmail.com:
-- Converting the discussion here
http://mail.python.org/pipermail/python-list/2010-November/1259601.html to a
bug report (+nosy for everyone that responded, quoting the initial message for
context)
Are there any promises made with
Shashank shashank.sunny.si...@gmail.com added the comment:
@Raymond: I don't have a particular use case where I had a problem with this
behavior. I came across this problem when looking at this issue
http://bugs.python.org/issue6305.
An important problem that can happen with this behavior is
Eric Smith e...@trueblade.com added the comment:
I don't see this behavior on MacOS:
$ ./argtest arg1 arg2 this should be a single argument
2.6.1 (r261:67515, Feb 11 2010, 15:47:53)
[GCC 4.2.1 (Apple Inc. build 5646)]
['./argtest', 'arg1', 'arg2', 'this should be a single argument']
This
Eric Smith e...@trueblade.com added the comment:
Is there any reason for the test files to have a shebang line at all? I think
those should be removed, which would cut the problem in half.
Also, given -m, I'm not sure any of the files in the stdlib should have a
shebang line. Is there really
Rügheimer frueg...@pasteur.fr added the comment:
2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:51:33 EDT 2010 i686 i686 i386 GNU/Linux
GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu)
I wrote test program in C to do the same thing as before and the arguments are
treated properly:
Eric Smith e...@trueblade.com added the comment:
The python version works for me also on a Fedora box with 3.2 and 2.7.
What shell are you using?
Did you compile this python yourself, or did it come with your distro?
--
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Works fine for me on Gentoo linux.
What exactly is 'python' in your path, and what happens if you do
/usr/bin/python3 argtest?
I'm 99.99% certain this is not a bug in Python, otherwise it would have been
reported long before now, since
R. David Murray rdmur...@bitdance.com added the comment:
Benjamin did some cleanup in this area in at least py3k, so he might have some
thoughts, making him nosy.
--
nosy: +benjamin.peterson, r.david.murray
___
Python tracker rep...@bugs.python.org
New submission from Nicolas Kaiser ni...@nikai.net:
Hi there!
I noticed two expressions that can be simplified like:
(a || (!a b)) = (a || b)
Best regards,
Nicolas Kaiser
---
--- a/Modules/binascii.c2010-11-05 13:21:22.075303326 +0100
+++ b/Modules/binascii.c2010-11-05
Changes by Nicolas Kaiser ni...@nikai.net:
--
keywords: +patch
Added file: http://bugs.python.org/file19504/python-binascii.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10324
___
Frank Rügheimer frueg...@pasteur.fr added the comment:
You are right, it seems to work when the file is passed directly into python so
the quotes are stripped somewhere before python even gets to see them.
Thanks
--
status: open - closed
___
Changes by Eric Smith e...@trueblade.com:
--
components: -None
resolution: - invalid
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10322
___
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no:
Include/pyport.h invites potential compile errors with the definitions
#define PY_LLONG_MIN LLONG_MIN
#define PY_LLONG_MAX LLONG_MAX
#define PY_ULLONG_MAX ULLONG_MAX
which can fall back to gcc variants or to
#else
/*
Nick Coghlan ncogh...@gmail.com added the comment:
Removing shebang lines from svn completely and only *adding* them during
installation steps as appropriate may be an interesting approach. (I noted that
my grep of my local build found only correct references to python3.2 in the
built scripts
Nick Coghlan ncogh...@gmail.com added the comment:
For the record, my list is from an svn checkout of r86191
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
___
Nick Coghlan ncogh...@gmail.com added the comment:
A few more deeper in the py3k source tree:
Doc/tools/docutils/_string_template_compat.py
Doc/tools/docutils/readers/python/pynodes.py
Doc/tools/sphinx/pycode/pgen2/token.py
Lib/lib2to3/tests/data/different_encoding.py
Adding Georg, since this
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: d...@python -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
___
___
New submission from Michael Foord mich...@voidspace.org.uk:
In Python 2.7 a change was introduced to TestCase which involves storing a
dictionary of method objects on TestCase instances. This makes them
unpickleable.
unittest2 stores strings (method names) instead of method objects (a fix to
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10325
___
___
Nick Coghlan ncogh...@gmail.com added the comment:
Reopening as a reminder to myself that I have a new PEP I want to write in this
area. The idea is essentially a lighter weight alternative to PEP 377 that adds
an optional __entered__ method to the context management protocol along the
New submission from Pascal Chambon chambon.pas...@gmail.com:
On freebsd 8, using python 2.6.6, I've run into the bug already widely dealt
with in these reports :
http://bugs.python.org/issue1380952
http://bugs.python.org/issue1153016
When using socket timeouts (eg. with
New submission from Alexander Schmolck a.schmolck+...@gmail.com:
In certain cases a zero-width /Z match that should be replaced isn't.
An example might help:
re.compile('(?m)(?Ptrailing_ws[
\t]+\r*$)|(?Pno_final_newline(?=[^\n])\Z)').subn(lambda m:next(''+k+'' for
k,v in
Malte Helmert helm...@informatik.uni-freiburg.de added the comment:
I checked if issue1153016 has reappeared for me (Ubuntu, Python 2.6.6), but it
hasn't. Both the urllib and the imaplib examples given there work fine for me.
Or at least opening the connections works fine for me, which it
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Nov 5, 2010 at 3:34 AM, Georg Brandl rep...@bugs.python.org wrote:
..
Why shouldn't global function doctests be runnable?
They should - I just couldn't figure out a better hack that would work
for both mathods and
Jesse Noller jnol...@gmail.com added the comment:
Fine w/ committing this Ask.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9244
___
___
Antoine Pitrou pit...@free.fr added the comment:
When using socket timeouts (eg. with socket.setdefaulttimeout()),
whatever the timeout I use (eg. 10 seconds), I begin having random
SSLError: The read operation timed out exceptions in my http calls,
via urlopen or 3rd party libraries.
Well,
Jesse Noller jnol...@gmail.com added the comment:
Fine w/ committing this Ask.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7707
___
___
Jesse Noller jnol...@gmail.com added the comment:
Fine w/ committing this Ask as-is ask. You are correct in the original intent
of the code.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8028
New submission from Walter Dörwald wal...@livinglogic.de:
It seems that on Python 3 (i.e. the py3k branch) trace.py can not handle source
that includes Unicode characters. Running the test suite with code coverage
info via
./python Lib/test/regrtest.py -T -N
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
nosy: +belopolsky
stage: - patch review
type: - behavior
versions: +Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10329
Pascal Chambon chambon.pas...@gmail.com added the comment:
The exception is raised too early, none of my calls takes more than 1-2 seconds
and I've a default timeout set at 10s or more.
This occurs rather rarely, one or two times on some hundreds of calls. I'll
make a little script to try to
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10329
___
___
Python-bugs-list
Gregor Lingl gregorli...@users.sourceforge.net added the comment:
What do you mean with similar approach?
Keep in mind, that functions derived form turtle methods,
call methods for the class variable _pen of class Turtle.
A new Turtle-object is bound to _pen, if it is not already
present,
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10328
___
___
Georg Brandl ge...@python.org added the comment:
You can ignore those under Doc/tools; they are neither part of the distribution
and nor installed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
Pascal Chambon chambon.pas...@gmail.com added the comment:
Humz on second thought you may be right, now I have some trouble reproducing
the bugs (wich have been there since the beginning, though), so it may be that
the webservice I call seldom takes 10+ seconds to answer (weird anyway).
I've
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - rhettinger
components: +Documentation -Interpreter Core
priority: normal - low
versions: -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
Łukasz Langa luk...@langa.pl added the comment:
Documentation complete.
--
Added file: http://bugs.python.org/file19506/issue5412.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5412
___
Changes by Łukasz Langa luk...@langa.pl:
Removed file: http://bugs.python.org/file19501/issue5412.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5412
___
Dave Malcolm dmalc...@redhat.com added the comment:
Thanks for reviewing.
If I'm reading things correctly, the ISUPPER et al macros were added in 2.6 and
3.0, and deprecated in 2.7 and 3.1.
Tested with a full run of -m test.regrtest -uall here (x86_64 Fedora 13),
with both 2-byte and 4-byte
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10317
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
___
___
Eric Smith e...@trueblade.com added the comment:
I'd 'svnmerge block' them, just in case anyone decides to manually merge (which
I doubt will happen, but you never know).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10288
Dave Malcolm dmalc...@redhat.com added the comment:
Committed to py3k in r86210
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10288
___
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Recently, the patch to close fd when FileIO#__init__
failed and closefd = True was checked in. Is this mean
this issue is invalid?
--
___
Python tracker rep...@bugs.python.org
Dave Malcolm dmalc...@redhat.com added the comment:
FWIW, I'm working on fixing up the this patch to work against py3k; I'm
assuming there's still interest in the AST visitor + specific optimization
passes approach.
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the report; I agree that there's a potential issue here, and I also
think that all these definitions *should* be preprocessor defines. (Idle
question: does C99 require that LONG_MAX and friends are usable in the
preprocessor? I
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I think issue4 happens because all frames are grid-forgotten
in redisp(), sometimes widget becomes empty. I think we can
close this issue as invalid.
P.S. Try this change in redisp()
yy = 0
for xx in
Robert Lerche r...@msbit.com added the comment:
Thank you, Hirokazu! I see now -- deleting the rows first causes the scroll
bar to shrink. So I take it calling grid with a row/column that is already in
the grid replaces the prior mapped widget.
[or should I say, domo arigato Yamamoto-san?]
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I don't think trace.diff is proposed for commit. I see it more as a supporting
file for diagnosing the problem.
I see two problems here:
1. Apparently OP's system opens files with encoding set to 'ascii' by default.
Brian Curtin cur...@acm.org added the comment:
Works for me. I think it should be ok to commit.
--
assignee: - ocean-city
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10027
___
Antoine Pitrou pit...@free.fr added the comment:
I would be +0 on adding errors='replace' or 'backshlashreplace' to the
open() call in write_results_file(), but hardcoding encoding=utf-8
is definitely not the right thing to do.
Who are the consumers of the trace files? Is there a formal
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +benjamin.peterson
versions: +Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1346238
___
Antoine Pitrou pit...@free.fr added the comment:
I've committed the new attribute in r86213.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10282
Terry J. Reedy tjre...@udel.edu added the comment:
Robert, I interpret your response to Hirokazu to mean that his suggestion
works. Hence I am following his suggestion. Reopen is I erred.
--
resolution: - works for me
status: open - closed
___
Julien ÉLIE jul...@trigofacile.com added the comment:
Hi Steven,
I agree with what you suggest for the implementation.
Is there a case where a server advertises STARTTLS
and one would not use it?
Yes, the overhead added by the encryption. It is what people usually mention
for the reason
Julien ÉLIE jul...@trigofacile.com added the comment:
(Note that smtplib can give ideas for an implementation of AUTHINFO SASL with
PLAIN, LOGIN and CRAM-MD5 mechanisms.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1926
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Nov 5, 2010 at 1:18 PM, Éric Araujo rep...@bugs.python.org wrote:
..
nosy: +eric.araujo
Raymond has already rejected and closed this request, so I am not
optimistic that anything will happen here. (I also
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +gregorlingl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10317
___
Antoine Pitrou pit...@free.fr added the comment:
Ok, fixed in r86214 (3.x), r86215 (3.1) and r86216 (2.7). Thanks for the patch!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
New submission from Antoine Pitrou pit...@free.fr:
The trace module doesn't work when threading is disabled (./configure
--without-threads). The following patch fixes this:
diff -r 345827dcf409 Lib/trace.py
--- a/Lib/trace.py Fri Nov 05 20:58:28 2010 +0100
+++ b/Lib/trace.py Fri Nov
Éric Araujo mer...@netwok.org added the comment:
Now that argparse has been included in the standard library to supersede
optparse, I’m not sure there is still value in fixing this bug.
--
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1098749
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5404
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Barry said in
http://mail.python.org/pipermail/python-dev/2009-March/087847.html :
The class-based API for gettext takes streams, so resource_stream()
would work just fine. I think i18n plugins for Python do not
necessarily need to use
Éric Araujo mer...@netwok.org added the comment:
Should this be closed as invalid?
--
nosy: +eric.araujo, lemburg, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8409
___
Barry A. Warsaw ba...@python.org added the comment:
I'm not an expert on this, but I think it's still valid. Maybe Martin has an
opinion on it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8409
Éric Araujo mer...@netwok.org added the comment:
It would be nice to test argparse for the same behavior.
--
nosy: +bethard, eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2931
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10245
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10245
___
___
Python-bugs-list
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
It's a bug caused by trying to avoid getting stuck when a zero-width match is
found. Basically the fix is to advance one character after a zero-width match,
but that doesn't always give the correct result.
There are a number of
Antoine Pitrou pit...@free.fr added the comment:
Committed in r86220. I won't backport it since it would risk breaking existing
code, although relying on this is really a bug in itself.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7434
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - commit review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10270
___
New submission from Antoine Pitrou pit...@free.fr:
There is this kind of failures on Barry's new buildbot. It looks like warning
messages should be ignored when checking gdb output:
==
FAIL: test_NULL_ob_type
Dave Malcolm dmalc...@redhat.com added the comment:
Seems to relate to this gdb feature:
http://sourceware.org/ml/gdb-patches/2005-05/msg00637.html
Barry: is your ~/.gdbinit world writable?
I can cook up a patch to ignore such warnings
--
___
Terry J. Reedy tjre...@udel.edu added the comment:
+1 from me on a table at the top of the functions page.
I am assuming that the markup will induce hotlinks.
The main problem I see is the need to hand rewrite when another function is
added
--
nosy: +terry.reedy
Dave Malcolm dmalc...@redhat.com added the comment:
Alternatively, it looks like having it owned by another user would do this.
For curiosity's sake, what's the output of:
ls -al /home/barry/.gdbinit
on that buildbot?
Given that it's a security warning, should this simply be treated as
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
David, it would be great if an optional AST optimization pass could do
something that we don't already have (perhaps, loop invariant code motion when
python is called with -OO or somesuch). The AST tree makes it possible
Barry A. Warsaw ba...@python.org added the comment:
It is a misconfiguration. I started my new buildbot with my environment
active. I've since killed that and restarted it with a clean ~buildbot
environment. So we shouldn't see this in my buildbots any more.
(FWIW, ~/.gdbinit is 644)
Benjamin Peterson benja...@python.org added the comment:
This is fixed now.
2010/11/4 Hagen Fürstenau rep...@bugs.python.org:
Hagen Fürstenau ha...@zhuliguan.net added the comment:
The ReST links in http://docs.python.org/py3k/c-api/dict.html#PyDict_Items
seem to be broken.
--
R. David Murray rdmur...@bitdance.com added the comment:
New patch that takes a middle ground on the API: sendmail accepts string and
bytes, and a new method send_message accepts a Message object with a more
convenient signature. I think send_message does belong in smtplib since it
would be
Terry J. Reedy tjre...@udel.edu added the comment:
The sentence should be deleted. Print is *not* used in any of the previous
examples. This is the first mention of print() in the chapter and is
nonsensical in context.
--
keywords: +easy
nosy: +terry.reedy
stage: - needs patch
Ned Deily n...@acm.org added the comment:
I agree with Eric's comment about why have shebang lines at all for files in
the standard library. There isn't any use case or recommendation for ever
putting /path/to/lib/pythonx.x or its subdirectories directly on a shell search
path is there?
WRT
New submission from James Hutchison jamesghutchi...@gmail.com:
v.3.2a3
If the maxtasksperchild argument is used, the program will just hang after
whatever that value is rather than working as expected. Tested in Windows XP
32-bit
test code:
import multiprocessing
def f(x):
return 0;
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +asksol, jnoller
type: - behavior
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10332
___
1 - 100 of 139 matches
Mail list logo