[issue13243] _Py_identifier should be _Py_IDENTIFER

2011-10-22 Thread Eric Snow
New submission from Eric Snow ericsnowcurren...@gmail.com: Looks like Parser/asdl_c.py did not get all the way updated when _Py_identifier switched over to _Py_IDENTIFER. I've included a patch that fixes it (though it's relatively trivial). With this fix I did not notice any further

[issue13235] logging.warn() is not documented

2011-10-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Just to me it clear - why do you want warn() to be removed aside from code duplication? My argument to leave it and document is that it is convenient and makes lines shorter (and won't break existing code). From logging module I also

[issue13235] logging.warn() is not documented

2011-10-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Because there should be only one way to do things. BTW, you could have used a DeprecationWarning instead of a PendingDeprecationWarning, especially if it was already deprecated. -- ___ Python

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: If you think it's fine to change this behavior, then yes :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1548891 ___

[issue12659] Add tests for packaging.tests.support

2011-10-22 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Hi Éric, Nice! and thanks for the info: I was just waiting to the check-in to compare and try further with the tests. Now I can just commit another patch by synching against the actual tip. Cheers, francis --

[issue13235] logging.warn() is not documented

2011-10-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Just to me it clear - why do you want warn() to be removed aside from code duplication? My argument to leave it and document is that it is convenient and makes lines shorter (and won't break existing code). From logging module I

[issue13235] logging.warn() is not documented

2011-10-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: BTW, you could have used a DeprecationWarning instead of a PendingDeprecationWarning, especially if it was already deprecated. It wasn't officially deprecated, just deprecation via obscurity;-) which is why I made it a

[issue13235] logging.warn() is not documented

2011-10-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: PendingDeprecations are not so useful now that warnings are silenced by default. Since it wasn't documented, you could deprecate it in 3.3 and remove it in 3.4 IMHO. -- ___ Python tracker

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
New submission from Tobias Oberstein tobias.oberst...@tavendo.de: The urlparse module currently does not support the new ws and wss schemes used for the WebSocket protocol. As a workaround, we currently use the following code (which is a hack of course): import urlparse wsschemes = [ws, wss]

[issue13235] logging.warn() is not documented

2011-10-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: PendingDeprecations are not so useful now that warnings are silenced by default. Since it wasn't documented, you could deprecate it in 3.3 and remove it in 3.4 IMHO. Hmmm, you're probably right. I'll change it to a

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti, orsenthil stage: - test needed versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13244

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-22 Thread Dima Tisnek
Dima Tisnek dim...@gmail.com added the comment: good enough for me :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930 ___ ___

[issue13235] logging.warn() is not documented

2011-10-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4a90d1ed115d by Vinay Sajip in branch 'default': Closes #13235: Changed PendingDeprecationWarning to DeprecationWarning. http://hg.python.org/cpython/rev/4a90d1ed115d -- resolution: - fixed status: open -

[issue12406] msi.py needs updating for Python 3.3

2011-10-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Adding Antoine for the short-name conflicts caused by the *.passwd.pem files. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12406

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I've taken the liberty of updating the patch, with a few minor changes: range_equality - range_equals (like range_contains) move identity check into range_equals move comments before the code they describe (PEP7) add whatsnew entry remove

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Why does my patch not get a 'review' button? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13201 ___

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, there it is. Never mind. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13201 ___

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2011-10-22 Thread Yevgen Yampolskiy
Yevgen Yampolskiy genij.m...@gmail.com added the comment: You can create object copy using both copy and pickle modules. I assume that identical results should be produced. pickle handles minidom.Document correctly, however copy does not. Even if patch to NodeList will be applied, copy or

[issue12406] msi.py needs updating for Python 3.3

2011-10-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can't you use the normal algorithm for short names? I.e. KEYCER~1.PEM etc. Or doesn't it exist anymore? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12406

[issue10925] Document pure Python version of integer-to-float correctly-rounded conversion

2011-10-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the comments. Here's an updated patch, that actually makes use of the pure Python version to test the built-in int-to-float conversion. -- versions: -Python 2.7, Python 3.2 Added file:

[issue13243] _Py_identifier should be _Py_IDENTIFER

2011-10-22 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Good catch. I see what happened. 7109f31300fb updated Python/Python-ast.c but not Parser/asdl_c.py. I will apply your patch shortly. Thanks. -- assignee: - meador.inge nosy: +meador.inge stage: - patch review

[issue13243] _Py_identifier should be _Py_IDENTIFER

2011-10-22 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Oh, and just to be clear I reproduced the build break by doing: ./Parser/asdl_c.py -c ./Python ./Parser/Python.asdl make in a built tree. The reason that this wasn't caught is that the make rules have the ASDL files as dependencies on the AST C

[issue13245] sched.py kwargs addition and default time functions

2011-10-22 Thread Chris Clark
New submission from Chris Clark clac...@gmail.com: I ended up implementing my own sched.py equivalent as I needed kwargs support. This is my attempt to improve the stdlib, so I can throw my module way ;-) Added kwargs support, and made argument optional. argument is still named argument, I

[issue13245] sched.py kwargs addition and default time functions

2011-10-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Hi, thanks for the patch! 2.7 receives only bug fixes, so your patch can't be applied to 2.7. If the feature is accepted it can go to 3.3 though. -- nosy: +ezio.melotti stage: - patch review versions: +Python 3.3 -Python 2.7

[issue13243] _Py_identifier should be _Py_IDENTIFER

2011-10-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 941d015053c6 by Meador Inge in branch 'default': Issue 13243: Rename _Py_identifier to _Py_IDENTIFIER in asdl_c.py http://hg.python.org/cpython/rev/941d015053c6 -- nosy: +python-dev

[issue13243] _Py_identifier should be _Py_IDENTIFER

2011-10-22 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Committed. Thanks! -- nosy: -python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13243

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-10-22 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If you think it's fine to change this behavior, then yes :) Well, the documented behaviour makes no sense. Either it should raise TypeError or convert. Since write() converts, it's logical for the constructor to do so as well. --

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 27ae7d4e1983 by Antoine Pitrou in branch '2.7': Issue #1548891: The cStringIO.StringIO() constructor now encodes unicode http://hg.python.org/cpython/rev/27ae7d4e1983 -- nosy: +python-dev

[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Barry, perhaps you could try to know what in Ubuntu's OpenSSL build can lead to such failures? -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13218

[issue12675] tokenize module happily tokenizes code with syntax errors

2011-10-22 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12675 ___ ___ Python-bugs-list

[issue13246] Py_UCS4_strlen and friends needn't be public

2011-10-22 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: It seems there's no reason to document these functions which operate on null-terminated unicode arrays. -- assignee: docs@python components: Documentation messages: 146187 nosy: docs@python, ezio.melotti, georg.brandl, haypo, loewis,

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Jyrki Pulliainen
Jyrki Pulliainen jy...@dywypi.org added the comment: I added a patch that adds support for WebSocket URL protocol. However, a few pointers (and questions): - The patch is now implemented according to Draft 17[1] of WebSocket protocol - Draft 17 does not support fragments, it states that the

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
Tobias Oberstein tobias.oberst...@tavendo.de added the comment: fragment identifiers: the spec says: Fragment identifiers are meaningless in the context of WebSocket URIs, and MUST NOT be used on these URIs. The character # in URIs MUST be escaped as %23 if used as part of the query

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
Tobias Oberstein tobias.oberst...@tavendo.de added the comment: Well, thinking about it, %23 can also appear in a percent encoded path component. I don't get the conditional ..if used as part of the query component in the spec. -- ___ Python

[issue13246] Py_UCS4_strlen and friends needn't be public

2011-10-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: If they aren't public, they should get an underscore. All our API functions are either public or private; all public ones should be documented. -- ___ Python tracker rep...@bugs.python.org

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Jyrki Pulliainen
Jyrki Pulliainen jy...@dywypi.org added the comment: Actually, if I get it right, it means that following url is valid: ws://example.com/something#somewhere/ and the # should be considered as being a part of the path. The spec does not say a thing should the # in path component be encoded,

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
Tobias Oberstein tobias.oberst...@tavendo.de added the comment: I see how you interpret that sentence in the spec, but I would have read it differently: invalid: 1. ws://example.com/something#somewhere 2. ws://example.com/something#somewhere/ 3. ws://example.com/something#somewhere/foo 4.

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Jyrki Pulliainen
Jyrki Pulliainen jy...@dywypi.org added the comment: I'd take only 4. as invalid, as the WebSocket (to my interpretation) do not have fragments, so it is assumed to be a part of the path in that case. But yeah, a confirmation from HyBi would be great. Can you link to the discussion from here,

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
Tobias Oberstein tobias.oberst...@tavendo.de added the comment: I'll ask (to be sure) and link. However, after rereading the Hybi 17 section, it says path = path-abempty, defined in [RFC3986], Section 3.3 And http://tools.ietf.org/html/rfc3986 says: The path is terminated by the first

[issue11183] Finer-grained exceptions for the ssl module

2011-10-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. It adds SSLZeroReturnError, SSLWantReadError, SSLWantWriteError, SSLSyscallError and SSLEOFError. -- keywords: +patch Added file: http://bugs.python.org/file23498/sslerrors.patch ___

[issue11183] Finer-grained exceptions for the ssl module

2011-10-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11183 ___ ___

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
Tobias Oberstein tobias.oberst...@tavendo.de added the comment: here the links to the question on the Hybi list: http://www.ietf.org/mail-archive/web/hybi/current/msg09257.html and http://www.ietf.org/mail-archive/web/hybi/current/msg09258.html

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Sven Marnach
Sven Marnach s...@marnach.net added the comment: Thanks for the updates, Mark. I was just about to look into this again. The changes are fine with me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13201

[issue13201] Implement comparison operators for range objects

2011-10-22 Thread Sven Marnach
Sven Marnach s...@marnach.net added the comment: Victor Stinner wrote: If would be nice to have a PyLong_CompareLong() function. In most cases, global variables Py_Zero and Py_One would be enough to simplify this kind of code. -- ___ Python

[issue6988] shlex.split() converts unicode input to UCS-4 output

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: $ ./python Python 2.7.2+ (2.7:27ae7d4e1983+, Oct 23 2011, 00:09:06) [GCC 4.6.1] on linux2 Type help, copyright, credits or license for more information. import shlex shlex.split(u'Hello, World!') ['Hello,', 'World!'] This was fixed indirectly

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-10-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I would prefer to preserve the inheritance by default, and to change the daemonic attribute only if it is explicitly set to True or False. This way it will be backward compatible. Patch attached. -- versions: -Python 2.6

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Actually, if I get it right, it means that following url is valid: ws://example.com/something#somewhere/ I don’t think so. The URI syntax RFC is generic, so a scheme spec cannot redefine the parsing to mean that in your above example, there

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Tobias Oberstein
Tobias Oberstein tobias.oberst...@tavendo.de added the comment: sorry for throw .. somewhat bad habit (stemming from wandering between languages). uses_fragment extended: [autobahn@autobahnhub ~/Autobahn]$ python Python 2.7.1 (r271:86832, Dec 13 2010, 15:52:15) [GCC 4.2.1 20070719 [FreeBSD]]

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-22 Thread Yuval Greenfield
New submission from Yuval Greenfield ubershme...@gmail.com: For Python 2: Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 os.path.abspath('.') 'C:\\Users\\yuv\\Desktop\\YuvDesktop\\??' os.path.abspath(u'.')

[issue13244] WebSocket schemes in urlparse

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: urlparse.urlparse(ws://example.com/something#somewhere) ParseResult(scheme='ws', netloc='example.com', path='/something#somewhere', params='', query='', fragment='') This makes me sad. I thought we had fixed urllib months ago to follow the

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +haypo versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13247 ___ ___

[issue6210] Exception Chaining missing method for suppressing context

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I like the class method idea, but not the no_context name. Would without_context be too long? I don’t dislike raise MyError from None, but a method will be more easy to search and will help people reading code and discovering this unknown

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Still can't reproduce It only shows in 2.4 and 2.5. (though I got one failure and three other errors) If these are not covered in #13170, please add them to that report. -- ___ Python tracker

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve found the reason: #6665. fnmatch.translate (used by _glob_to_re was changed to support filenames with embedded newlines. I don’t think it’s a concern for us: As the input we give to _glob_to_re comes one line at a time from a file, we

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I want to look at this but lack time right now. Could someone make one up-to-date patch with all changes, code and tests? It will be much easier to review and test than an archive. -- ___ Python

[issue13238] Add shell command helpers to shutil module

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [snip rationale about why shutil and not subprocess] I’m convinced (with one nit: sh in the shutil name does not ring a security alarm for me, as I understand it as “shell-like conveniences in nice, dont-do-nasty-things-with-stings Python” :)

[issue13238] Add shell command helpers to shutil module

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: s/stings/strings/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___ ___ Python-bugs-list

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Forget that, there are no automated tests for tools. So, a text version of the files would be nice. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-22 Thread Caio Romão
Caio Romão caioro...@gmail.com added the comment: Attaching files from tarball as requested. See http://bugs.python.org/issue12930#msg144314 for explanation -- Added file: http://bugs.python.org/file23500/testfile-original.py ___ Python tracker

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-22 Thread Caio Romão
Changes by Caio Romão caioro...@gmail.com: Added file: http://bugs.python.org/file23501/testfile-expected.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930 ___

[issue12930] reindent.py inserts spaces in multiline literals

2011-10-22 Thread Caio Romão
Changes by Caio Romão caioro...@gmail.com: Added file: http://bugs.python.org/file23502/testfile-issue.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12930 ___

[issue13132] distutils sends non-RFC compliant HTTP request

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The requests we send are multipart/form-data, so the RFC exception for text/* would not apply. I’m closing this bug as a duplicate and will ask on the other one if we should reopen it. -- resolution: - duplicate stage: -

[issue10510] packaging upload/register should use CRLF in HTTP requests

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Mitchell Hashimoto provided this link on a duplicate report: RFC2616 page 31 (http://tools.ietf.org/html/rfc2616#page-31) states that headers must be separated by CRLF. Specifically, the above \n\n for the header separator is causing issues

[issue10510] distutils upload/register should use CRLF in HTTP requests

2011-10-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: duplicate - stage: committed/rejected - superseder: Factor out common code for d2 commands register, upload and upload_docs - title: packaging upload/register should use CRLF in HTTP requests - distutils upload/register

[issue13237] subprocess docs should emphasise convenience functions

2011-10-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13237 ___ ___ Python-bugs-list

[issue13224] Change str(class) to return only the class name

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Here’s the python-ideas thread: http://mail.python.org/pipermail/python-ideas/2011-October/thread.html#12459 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0b39f2486314 by Éric Araujo in branch '2.7': Note that the #1548891 fix indirectly fixes shlex (#6988, #1170) http://hg.python.org/cpython/rev/0b39f2486314 -- ___ Python

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FTR, distribute recently committed two fixes for the exe wrappers: https://bitbucket.org/tarek/distribute/issue/238 and https://bitbucket.org/tarek/distribute/issue/207 -- ___ Python tracker

[issue1170] shlex have problems with parsing unicode

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: $ ./python Python 2.7.2+ (2.7:27ae7d4e1983+, Oct 23 2011, 00:09:06) [GCC 4.6.1] on linux2 Type help, copyright, credits or license for more information. import shlex shlex.split(u'Hello, World!') ['Hello,', 'World!'] This bug was fixed

[issue1170] shlex have problems with parsing unicode

2011-10-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The second message in this page reports that StringIO.StringIO works, but when I pass a unicode string with non-ASCII chars there’s a method call that fails because of implicit unicode-to-str conversion: Traceback (most recent call last):