[issue7908] remove leftover macos9 support code

2010-11-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FTR, see also #9508. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7908 ___ ___

[issue10205] Can't have two tags with the same QName

2010-11-06 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10205 ___ ___ Python-bugs-list

[issue6269] threading documentation makes no mention of the GIL

2010-11-06 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6269 ___ ___ Python-bugs-list

[issue9508] python3.2 reversal of distutils reintrocud macos9 support

2010-11-06 Thread Éric Araujo
É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.

[issue3902] Packages containing only extension modules have to contain __init__.py

2010-11-06 Thread Éric Araujo
É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.

[issue10334] Add new reST directive for links to source code

2010-11-06 Thread Raymond Hettinger
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

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2010-11-06 Thread Éric Araujo
É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

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-06 Thread Éric Araujo
É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 ___

[issue10334] Add new reST directive for links to source code

2010-11-06 Thread Alex
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

[issue10334] Add new reST directive for links to source code

2010-11-06 Thread Éric Araujo
É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

[issue10299] Add index with links section for built-in functions

2010-11-06 Thread Éric 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

[issue10299] Add index with links section for built-in functions

2010-11-06 Thread Éric 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

[issue10334] Add new reST directive for links to source code

2010-11-06 Thread Georg Brandl
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). --

[issue8910] Write a text file explaining why Lib/test/data exists

2010-11-06 Thread Éric Araujo
É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

[issue5412] extend configparser to support mapping access(__*item__)

2010-11-06 Thread R. David Murray
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

[issue10273] Clean-up Unittest API

2010-11-06 Thread Raymond Hettinger
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

[issue2931] optparse: various problems with unicode and gettext

2010-11-06 Thread Steven Bethard
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. ;-)

[issue10324] Modules/binascii.c: simplify expressions

2010-11-06 Thread Nicolas Kaiser
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

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread STINNER Victor
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: ...

[issue10329] trace.py and unicode in Python 3

2010-11-06 Thread STINNER Victor
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

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Hirokazu Yamamoto
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)

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Hirokazu Yamamoto
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 ___

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Hirokazu Yamamoto
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) --

[issue10337] testTanh() of test_math fails on NetBSD 5 i386 3.x

2010-11-06 Thread STINNER Victor
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

[issue10337] testTanh() of test_math fails on NetBSD 5 i386 3.x

2010-11-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10337 ___ ___

[issue10337] testTanh() of test_math fails on NetBSD 5 i386 3.x

2010-11-06 Thread STINNER Victor
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

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Andrew Vant
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

[issue10337] testTanh() of test_math fails on NetBSD 5 i386 3.x

2010-11-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10337 ___ ___

[issue10338] test_lib2to3 failure on buildbot x86 debian parallel 3.x: node is None in find_root()

2010-11-06 Thread STINNER Victor
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

[issue10338] test_lib2to3 failure on buildbot x86 debian parallel 3.x: node is None in find_root()

2010-11-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10338 ___ ___

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Antoine Pitrou
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

[issue10339] test_lib2to3 leaks

2010-11-06 Thread Antoine Pitrou
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 --

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Julien ÉLIE
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.

[issue4931] distutils does not show any error msg when can't build C module extensions due to a missing C compiler

2010-11-06 Thread Giampaolo Rodola'
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

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Andrew Vant
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

[issue9508] python3.2 reversal of distutils reintrocud macos9 support

2010-11-06 Thread Benjamin Peterson
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

[issue10252] Fix resource warnings in distutils

2010-11-06 Thread Éric Araujo
É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

[issue10252] Fix resource warnings in distutils

2010-11-06 Thread Éric Araujo
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 ___

[issue9508] python3.2 reversal of distutils reintrocud macos9 support

2010-11-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the reply. r86264. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9508 ___ ___

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Éric Araujo
É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

[issue10336] test_xmlrpc fails if gzip is not supported by client

2010-11-06 Thread Éric 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 ___

[issue8679] write a distutils to distutils2 converter

2010-11-06 Thread Éric Araujo
É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 :). --

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-11-06 Thread Giampaolo Rodola'
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,

[issue10341] Remove traces of setuptools

2010-11-06 Thread Éric Araujo
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:

[issue10334] Add new reST directive for links to source code

2010-11-06 Thread Ezio Melotti
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 ___

[issue8680] Add a sandbox in Distutils2

2010-11-06 Thread th3flyboy
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

[issue8680] Add a sandbox in Distutils2

2010-11-06 Thread Éric Araujo
É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

[issue8680] Add a sandbox in Distutils2

2010-11-06 Thread th3flyboy
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. --

[issue10304] error in tutorial triple-string example

2010-11-06 Thread Malte Helmert
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

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-06 Thread Alexander Belopolsky
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

[issue8680] Add a sandbox in Distutils2

2010-11-06 Thread Éric Araujo
É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.

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread STINNER Victor
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.

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Éric Araujo
É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

[issue10341] Remove traces of setuptools

2010-11-06 Thread Martin v . Löwis
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

[issue10252] Fix resource warnings in distutils

2010-11-06 Thread Éric Araujo
É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

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Alexander Belopolsky
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

[issue10341] Remove traces of setuptools

2010-11-06 Thread Éric Araujo
É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

[issue10341] Remove traces of setuptools

2010-11-06 Thread Martin v . Löwis
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 ___

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Éric Araujo
É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

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-11-06 Thread Stephen Hansen
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

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Alexander Belopolsky
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()

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Éric Araujo
É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

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-11-06 Thread Giampaolo Rodola'
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

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-11-06 Thread Giampaolo Rodola'
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 ___

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2010-11-06 Thread Giampaolo Rodola'
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

[issue1926] NNTPS support in nntplib

2010-11-06 Thread StevenJ
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

[issue10341] Remove traces of setuptools

2010-11-06 Thread Éric Araujo
É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

[issue10252] Fix resource warnings in distutils

2010-11-06 Thread Brian Curtin
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 ___

[issue10335] tokenize.open_python(): open a Python file with the right encoding

2010-11-06 Thread Georg Brandl
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

[issue10252] Fix resource warnings in distutils

2010-11-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. r86276 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10252 ___ ___

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Andrew Vant
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

[issue10325] PY_LLONG_MAX co - preprocessor constants or not?

2010-11-06 Thread Hallvard B Furuseth
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

[issue10343] urllib.parse problems with bytes vs str

2010-11-06 Thread Hallvard B Furuseth
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

[issue10325] PY_LLONG_MAX co - preprocessor constants or not?

2010-11-06 Thread Hallvard B Furuseth
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

[issue10343] urllib.parse problems with bytes vs str

2010-11-06 Thread R. David Murray
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: -

[issue935117] pkgutil doesn't understand case-senseless filesystems

2010-11-06 Thread Éric Araujo
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 ___ ___

[issue850728] Semaphore.acquire() timeout parameter

2010-11-06 Thread Torsten Landschoff
Torsten Landschoff t.landsch...@gmx.net added the comment: Thanks for applying! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue850728 ___ ___

[issue10344] codecs.readline doesn't care buffering=0

2010-11-06 Thread Santiago Piccinini
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

[issue10344] codecs.readline doesn't care buffering=0

2010-11-06 Thread Amaury Forgeot d'Arc
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

[issue9857] SkipTest in tearDown is reported an as an error

2010-11-06 Thread Mark Roddy
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:

[issue9857] SkipTest in tearDown is reported an as an error

2010-11-06 Thread Mark Roddy
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

[issue10344] codecs.readline doesn't care buffering=0

2010-11-06 Thread Marc-Andre Lemburg
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().

[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari
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

[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari
Changes by Ben Gamari bgam...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10345 ___ ___ Python-bugs-list mailing

[issue10344] codecs.readline doesn't care buffering=0

2010-11-06 Thread Santiago Piccinini
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

[issue10345] fcntl.ioctl always fails claiming an invalid fd

2010-11-06 Thread Ben Gamari
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

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2010-11-06 Thread Hirokazu Yamamoto
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