Éric Araujo mer...@netwok.org added the comment:
FTR, see also #9508.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7908
___
___
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10205
___
___
Python-bugs-list
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6269
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Fixed in r86248, thanks. BTW, my commit removes a bit more than yours
originally did.
In 2.7, the unused distutils.sysconfig._init_mac function is still left over.
I don’t know if killing dead code is acceptable in a stable version.
Éric Araujo mer...@netwok.org added the comment:
Reclassifying as request for doc enhancement. I’ll check the distutils2 doc
and add a line about this problem if I find the text is not clear enough.
Someone finding this report thanks to the “easy” keyword can feel free to
propose a patch.
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
In a few cases where the pure python source code is a helpful adjunct to the
documentation, I've added some links using the seealso directive:
.. seealso::
Latest version of the `ast module Python source code
Éric Araujo mer...@netwok.org added the comment:
Giampaolo, can you test Amaury’s patch? I’d prefer some testing before
committing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4931
Éric Araujo mer...@netwok.org added the comment:
I can review a patch for this bug but not write it, lacking knowledge in C.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9709
___
Alex alex.gay...@gmail.com added the comment:
Seems to me it should be an inline directive (or whatever they're called).
i.e. it'd be written::
.. seealso::
Latest version of the :sourcecode:`ast module Python source code
Lib/ast.py`.
--
nosy: +alex
Éric Araujo mer...@netwok.org added the comment:
A directive can take options, for example to control highlighting, display of
line numbers, etc. Similar existing constructs like literalinclude are
directives.
Inline reST things are called roles :)
--
nosy: +eric.araujo
Éric Araujo mer...@netwok.org added the comment:
+1 on the general idea. I applied the patch and built the documentation to see
what the output looks like: The hotlinks are here and work, that’s cool, but I
think the table wastes space. You could use five columns without damaging
usability
Éric Araujo mer...@netwok.org added the comment:
+1 on the general idea. I applied the patch and built the documentation to see
what the output looks like: The hotlinks are here and work, that’s cool, but I
think the table wastes space. You could use five columns without damaging
usability
Georg Brandl ge...@python.org added the comment:
OK, I added a source role in r86256. It can be used as Alex showed:
either like :source:`ast module Python source code Lib/ast.py`
(with an explicit link title)
or like :source:`Lib/ast.py`
(where the link title is the file name).
--
Éric Araujo mer...@netwok.org added the comment:
By the way, is this file picked up by Tools/msi/msi.py?
--
nosy: +loewis
versions: -Python 2.6, Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8910
R. David Murray rdmur...@bitdance.com added the comment:
Email uses 'failobj' instead of 'default'. I find that kind of odd, but oh
well.
I'm not sure how useful a single data point is, but just last month I wrote an
application that uses the DEFAULT section. Each configfile section gives a
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
people who are used to the current spelling
will have to notice the change, note that one
name is now deprecated
I haven't proposed any deprecations.
Just add the new names as aliases.
Change the docs list the new names
Steven Bethard steven.beth...@gmail.com added the comment:
Yep, argparse almost certainly has the same kind of problems - I basically
copied the optparse gettext behavior into argparse because I don't really know
how that stuff works but figured people must have wanted what was in there. ;-)
Nicolas Kaiser ni...@nikai.net added the comment:
Sorry, found it - with patched builds of Python 2.6.5 and 3.1.2:
python2.6 test_binascii.py
test_base64invalid (__main__.BinASCIITest) ... ok
test_base64valid (__main__.BinASCIITest) ... ok
test_crc32 (__main__.BinASCIITest) ... ok
New submission from STINNER Victor victor.stin...@haypocalc.com:
In Python3, the following pattern becomes common:
with open(fullname, 'rb') as fp:
coding, line = tokenize.detect_encoding(fp.readline)
with open(fullname, 'r', encoding=coding) as fp:
...
STINNER Victor victor.stin...@haypocalc.com added the comment:
1. It opens the source file one more time. This is probably acceptable
because existing code already opens it at least four times when -m (show
missing) option is selected. (Twice in find_executable_linenos() and
twice in
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
In test_xmlrpc.py,
def test_gsip_response(self):
# (sniP)
self.assertTrue(ab)
last line can fail if gzip is not supported by client.
(gzip is not set in HTTP header's Accept-Encoding)
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
Removed message: http://bugs.python.org/msg120602
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10336
___
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
In test_xmlrpc.py,
def test_gsip_response(self):
# (sniP)
self.assertTrue(ab)
last line can fail if gzip is not supported by client.
(gzip is not set in HTTP header's Accept-Encoding)
--
New submission from STINNER Victor victor.stin...@haypocalc.com:
On NetBSD 5 i386 3.x buildbot, testTanh() of test_math fails because the sign
of wrong.
configure scripts has a test to check if tanh(-0.0) keeps the sign or no, and
on this buildbot the result is no. pyconfig.h contains a
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10337
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
test_cmath does also fail:
http://www.python.org/dev/buildbot/builders/NetBSD%205%20i386%203.x/builds/237/steps/test/logs/stdio
==
FAIL: test_specific_values
Andrew Vant ajv...@gmail.com added the comment:
Here's a second version of the previous patch taking into account the errors
Antoine noticed and some odds and ends from the other comments. Specifically:
Comments fixed and tabs (I think...I hope...) all removed.
Added explicit skip to
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10337
___
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
http://www.python.org/dev/buildbot/builders/x86%20debian%20parallel%203.x/builds/806/steps/test/logs/stdio
test test_lib2to3 failed -- multiple errors occurred
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10338
___
___
Antoine Pitrou pit...@free.fr added the comment:
Thanks for the patch, Andrew. It looks mostly good.
I would rename setreadermode to _setreadermode (there's no reason to
make it public IMO). Also, I would not explicitly check STARTTLS in
the capabilities. It the server doesn't support it, it
New submission from Antoine Pitrou pit...@free.fr:
This is only on 3.1:
$ ./python -m test.regrtest -R 3:3 test_lib2to3
test_lib2to3
beginning 6 repetitions
123456
No handlers could be found for logger RefactoringTool
..
test_lib2to3 leaked [32, 32, 32] references, sum=96
--
Julien ÉLIE jul...@trigofacile.com added the comment:
More significant than my own potentially newbie-ish
opinion is that the RFC suggests as a valid use case
the idea of a client starting up TLS or authentication
in reaction to a 483 command response, rather than right
off the bat.
Yes.
Giampaolo Rodola' g.rod...@gmail.com added the comment:
I don't have the same setup I had at the time when I submitted the first
message so maybe something has changed in meantime.
Below is what I get on Windows 2000 SP-3, no VS installed, python 2.7, before
and after the patch.
C:\Documents
Andrew Vant ajv...@gmail.com added the comment:
On 6 Nov 2010 at 11:48, Antoine Pitrou wrote:
I would rename setreadermode to _setreadermode (there's no reason to
make it public IMO). Also, I would not explicitly check STARTTLS in
the capabilities. It the server doesn't support it, it will
Benjamin Peterson benja...@python.org added the comment:
Fine.
2010/11/6 Éric Araujo rep...@bugs.python.org:
Éric Araujo mer...@netwok.org added the comment:
Fixed in r86248, thanks. BTW, my commit removes a bit more than yours
originally did.
In 2.7, the unused
Éric Araujo mer...@netwok.org added the comment:
The tests don’t pass on a Windows buildbot (thanks Antoine): I was mistaken
about subprocess.Popen, it has no close method like os.popen objects. Attached
patch should fix it, can someone kindly review and/or test it?
--
nosy: +pitrou
Changes by Éric Araujo mer...@netwok.org:
--
resolution: fixed -
stage: committed/rejected - patch review
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10252
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the reply. r86264.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9508
___
___
Éric Araujo mer...@netwok.org added the comment:
Looks good.
In the test, do you have to remove the TESTFN file manually? Isn’t that
handled by unittest or regrtest?
I think the name of the function could be better but I don’t have a proposal.
--
nosy: +eric.araujo
Éric Araujo mer...@netwok.org added the comment:
Do you want to make a patch?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10336
___
Éric Araujo mer...@netwok.org added the comment:
Rejected in http://hg.python.org/distutils2/rev/05f890cbd877: “Removing the
converter. This is not going to work out. We have better ideas about d1 - d2
migration paths” (like mkpkg, now mkcfg, still to be given a better name :).
--
New submission from Giampaolo Rodola' g.rod...@gmail.com:
http://code.google.com/p/pyftpdlib/issues/detail?id=143
This comes from a user who sent me a report via e-mail. Unfortunately I don't
have an OSX box to test against.
Code which should replicate the problem is this:
import socket,
New submission from Éric Araujo mer...@netwok.org:
There are some leftovers of the short-lived presence of setuptools in the
CPython source tree, precisely in Tools/msi/msi.py and Makefile.pre.in.
Attached patch removes them.
--
components: Build
files:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10334
___
th3flyboy th3fly...@gmail.com added the comment:
Hey, even if it's not perfect, it would be nice to at least see partial sand
boxing in Python, rather than none at all. I'm working on an open source game
project that uses Python, but recently the issue of security came up involving
using
Éric Araujo mer...@netwok.org added the comment:
We’re saying the same thing :) It all depends on the promise: If you’re making
a best-effort sandbox, you’re trying to do the best you can, in cooperation
with your users. For a game, I think you want an iron-clad sandbox that is
totally
th3flyboy th3fly...@gmail.com added the comment:
Cool, thanks for that link, that should really help. One quick question
however, do you or anyone else know if that will work under Python 3, we
currently use 2, however it would be nice to be able to future proof for moving
to 3.
--
Malte Helmert helm...@informatik.uni-freiburg.de added the comment:
I see. (The tutorial really talks about the interactive interpreter though -- I
don't think IDLE has been mentioned yet.)
--
___
Python tracker rep...@bugs.python.org
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Please run attached zip archive as a python script. Note that the problem is
not specific for using __main__.py - any module that comes from a zip archive
or loaded by a custom loader would show the same bug.
$ unzip
Éric Araujo mer...@netwok.org added the comment:
I think there is some py3 support in pysandbox, but I’m not sure, and this
discussion is off-topic for this bug tracker. If you don’t find anything in
the links on the pysandbox page, feel free to ask on the python-list mailing
list.
STINNER Victor victor.stin...@haypocalc.com added the comment:
In the test, do you have to remove the TESTFN file manually? Isn’t that
handled by unittest or regrtest?
The test uses TESTFN+'.py', not TESTFN ;-)
I think the name of the function could be better but I don’t have a
proposal.
Éric Araujo mer...@netwok.org added the comment:
The test uses TESTFN+'.py', not TESTFN ;-)
Ah, right. You can use addCleanup then.
Do you prefer a name like tokenize.open()?
Hm, tokenize being “Tokenization help for Python programs”, I think this name
is rather good. Or
Martin v. Löwis mar...@v.loewis.de added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10341
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Committed to py3k in r86274, after “LGTM” from Brian on IRC. Will backport if
buildbots don’t scream at me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10252
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
+1 on adding the function.
Note that it is useful for opening any text file with an encoding cookie, not
only python source code, so tokenize.open() sounds attractive.
Once we are at it, I would like to factor out and
Éric Araujo mer...@netwok.org added the comment:
Thanks, committed to py3k in r86275. Shall I backport to the stable branches?
(On another bug, Benjamin told me it was acceptable to remove dead code in
stable branches.)
--
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
In this case, backporting is ok (but IMO not needed).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10341
___
Éric Araujo mer...@netwok.org added the comment:
Note that it is useful for opening any text file with an encoding
cookie, not only python source code,
This is cool. doctest could benefit from that, I think.
so tokenize.open() sounds attractive.
Agreed, even though the docstring of tokenize
Stephen Hansen me+pyt...@ixokai.io added the comment:
I can verify the problem exists in asyncore at release27-maint on the mac, and
that the below patch fixes it.
After applying, I ran a full regrtest and nothing new broke.
--
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Sat, Nov 6, 2010 at 12:15 PM, Éric Araujo rep...@bugs.python.org wrote:
..
so tokenize.open() sounds attractive.
Agreed, even though the docstring of tokenize does talk about Python code.
I still like tokenize.open()
Éric Araujo mer...@netwok.org added the comment:
I don’t know if it would be okay to depend on tokenize in io. Anyway, I tend
to prefer tokenize.open over builtins.open(..., encoding='fromcookie').
--
nosy: +pitrou
___
Python tracker
Giampaolo Rodola' g.rod...@gmail.com added the comment:
While writing a test case for this I found out another problem in asyncore:
handle_connect was erroneously called when the dispatcher delegates the
connection to a handler resulting in ENOTCONN being raised.
Patch in attachment targeted
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +josiah.carlson
versions: +Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10340
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Forgot to attach the patch.
--
Added file: http://bugs.python.org/file19523/asyncore.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10340
StevenJ sjohn...@sakuraindustries.com added the comment:
The only comment I have is, if the caller needs to organise when to auth and
instigate tls then for completeness getcapabilities() should have an option to
force a reget of the current capabilities, in line with rfc3977 5.2.2:
An NNTP
Éric Araujo mer...@netwok.org added the comment:
Given your recent email on python-dev about backporting changes that don’t fix
bugs, I will not backport this. 2.5 and 2.6 were fine with the unneeded lines,
2.7 and 3.1 will be too.
--
assignee: - eric.araujo
resolution: - fixed
Changes by Brian Curtin cur...@acm.org:
Added file: http://bugs.python.org/file19524/fix_pipe_close.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10252
___
Georg Brandl ge...@python.org added the comment:
+1 for the feature. However, tokenize.open() sounds a bit unspecific. But I
don't really have better suggestions; open_cookie() is wrong too, since it
doesn't open cookies :)
--
nosy: +georg.brandl
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch. r86276
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10252
___
___
Andrew Vant ajv...@gmail.com added the comment:
On 6 Nov 2010 at 17:23, StevenJ wrote:
As it stands, the nntplib can cause the cached capabilities to be
refreshed at certain points automatically (as it should), but I think
it should be possible for the caller of the method to also specify
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
Mark Dickinson writes:
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.
Indeed, my suggestion to castify everything for uniformity
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no:
urlunparse(url or params = bytes object) produces a result
with the repr of the bytes object.
urllib.parse.urlunparse(['http', 'host', '/dir', b'params', '', ''])
-- http://host/dir;b'params'
That's confusing since
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment:
I wrote:
#define PY_LLONG_MAX \
(1 + 2 * ((Py_LL(1) (CHAR_BIT*SIZEOF_LONG_LONG-2)) - 1))
#define PY_ULLONG_MAX (PY_LLONG_MAX * 2ULL + 1)
Eh, Py_ULL(2).
(...) I just get peeved when people get this
wrong, then document
R. David Murray rdmur...@bitdance.com added the comment:
I believe this is effectively a duplicate of issue 9873. If not, it is still
probably more appropriate to add commentary there rather than have a separate
bug here.
--
nosy: +r.david.murray
resolution: - duplicate
stage: -
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue935117
___
___
Torsten Landschoff t.landsch...@gmx.net added the comment:
Thanks for applying!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue850728
___
___
New submission from Santiago Piccinini gringotuma...@gmail.com:
codecs.readline has an internal buffer of 72 chars so calling codecs.open with
buffering=0 doesn't work as expected although buffering is passed to the
underlying __builtin__.open call.
Example session:
Python 3.2a3+ (py3k, Nov
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Antoine, should codecs.open() be removed or simply aliased to open()?
--
nosy: +amaury.forgeotdarc, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10344
Mark Roddy markro...@gmail.com added the comment:
Attaching patch which adds support for registering a skip when raised from
tearDown. Per Michael's point regarding failed tests, this is only handled if
the test has been successful when SkipTest is raised from tearDown.
--
keywords:
Mark Roddy markro...@gmail.com added the comment:
Attaching patch which does the same as the previous for the release27-maint
branch.
--
Added file: http://bugs.python.org/file19527/python27.skipteardown.patch
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
Amaury Forgeot d'Arc wrote:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Antoine, should codecs.open() be removed or simply aliased to open()?
Both is not possible: codecs.open() provides a different API than
open().
New submission from Ben Gamari bgam...@gmail.com:
Even the simple example included below fails in the following manner,
$ sudo python3.1 hi.py
class 'int' 3
Traceback (most recent call last):
File hi.py, line 13, in module
ioctl(a, EVIOCGID, buf, True)
TypeError: ioctl requires a file or
Changes by Ben Gamari bgam...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10345
___
___
Python-bugs-list mailing
Santiago Piccinini gringotuma...@gmail.com added the comment:
Marc-Andre Lemburg wrote:
Regarding the issue itself: I think this is a wrong interpretation of
what the buffering parameter does. File buffering is different
from .readline() buffering (which can be customized on a per-call
basis by
Ben Gamari bgam...@gmail.com added the comment:
The problem seems to have been that I tried passing mutate_flag. Things seem to
work fine when the last parameter is omitted.
--
___
Python tracker rep...@bugs.python.org
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I updated the patch. (I hope we can remove ANSI version
of Win32 API, though)
--
Added file: http://bugs.python.org/file19528/py3k_winsound_v2.patch
___
Python tracker
87 matches
Mail list logo