[issue24025] str(bytes_obj) should raise an error

2015-04-22 Thread eryksun
eryksun added the comment: bytes.__str__ can already raise either a warning (-b) str('abcäöü'.encode('utf-8')) __main__:1: BytesWarning: str() on a bytes instance b'abc\\xc3\\xa4\\xc3\\xb6\\xc3\\xbc' or error (-bb), which applies equally to implicit conversion by print():

[issue22785] range docstring is less useful than in python 2

2015-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa6b73823685 by Benjamin Peterson in branch '3.4': improved range docstring (closes #22785) https://hg.python.org/cpython/rev/aa6b73823685 New changeset c031fa8e6884 by Benjamin Peterson in branch 'default': merge 3.4 (#22785)

[issue24025] str(bytes_obj) should raise an error

2015-04-22 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: In Python 2, the unicode() constructor does not accept bytes arguments, unless an encoding argument is given: unicode(u'abcäöü'.encode('utf-8')) Traceback (most recent call last): File stdin, line 1, in module UnicodeDecodeError: 'ascii' codec can't

[issue24027] IMAP library lacks documentation about expected parameter types

2015-04-22 Thread R. David Murray
R. David Murray added the comment: Documentation patches are welcome. imaplib has not seen much attention for quite some time (though there is currently someone interested in working on it, so that may change). Please open a separate issue for the utf7 enhancement proposal. --

[issue16840] Tkinter doesn't support large integers

2015-04-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16840 ___

[issue24023] Django tutorial 2 not able to create a superuser on Windows 7

2015-04-22 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 23995. -- nosy: +r.david.murray resolution: - duplicate stage: - resolved status: open - closed superseder: - msvcrt could not be imported ___ Python tracker rep...@bugs.python.org

[issue24026] Python hangs forever in wait() of threading.py

2015-04-22 Thread appidman
New submission from appidman: I use paramiko to create SSH sessions to Linux machines, which works great 95% of the time. But sometimes, the Python process which creates the SSH session hangs forever in wait() of threading.py (see attachment 'gdb.txt' for full output). {code} (gdb) py-list

[issue24024] str.__doc__ needs an update

2015-04-22 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: In Python 3.4.3, the doc string of the str() builtin still reads: str(object='') - str\nstr(bytes_or_buffer[, encoding[, errors]]) - str\n\nCreate a new string object from the given object. If encoding or\nerrors is specified, then the object must

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-04-22 Thread Cyd Haselton
Cyd Haselton added the comment: Still working at this; I can't get the readline module to work. It is built successfully but importing it produces the following error: Traceback (most recent call last): File stdin, line 1, in module ImportError: dlopen failed: could not load library

[issue24019] str/unicode encoding kwarg causes exceptions

2015-04-22 Thread R. David Murray
R. David Murray added the comment: Sounds like we should close this as rejected, then. Serhiy's point is a good one. Maybe not the way we'd design the api from scratch, but it's what we've got and it serves a purpose. -- ___ Python tracker

[issue23713] intermittent failure of multiprocessing unit test test_imap_unordered_handle_iterable_exception

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: Just saw this on x86 Tiger 3.x: == FAIL: test_imap_unordered_handle_iterable_exception (test.test_multiprocessing_fork.WithProcessesTestPool)

[issue24019] str/unicode encoding kwarg causes exceptions

2015-04-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I agree with closing this as won't fix. It is true that the encoding keyword argument is only useful when passing in byte strings or (and that's also where it originated in Python 2: the default string type is a byte string), but even in Python 3, this is

[issue24025] str(bytes_obj) should raise an error

2015-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In Python 2, the unicode() constructor accepts bytes argument if it is decodeable with sys.getdefaultencoding(). unicode(b'abc') u'abc' import sys reload(sys) module 'sys' (built-in) sys.setdefaultencoding(utf-8) unicode(u'abcäöü'.encode('utf-8'))

[issue24025] str(bytes_obj) should raise an error

2015-04-22 Thread R. David Murray
R. David Murray added the comment: str accepting bytes and returning the repr was a conscious design choice, as evidenced by the -bb option, and I'm sure there is code that is both unintentionally and *intentionally* using this, despite the warning. Unless we want to discuss making the -bb

[issue24025] str(bytes_obj) should raise an error

2015-04-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.04.2015 15:52, R. David Murray wrote: str accepting bytes and returning the repr was a conscious design choice, as evidenced by the -bb option, and I'm sure there is code that is both unintentionally and *intentionally* using this, despite the

[issue24026] Python hangs forever in wait() of threading.py

2015-04-22 Thread R. David Murray
R. David Murray added the comment: This could easily be a programming error. We'd need a cut down reproducer to know if it is a python bug and be able to fix it if so. Have you reported this to paramiko? -- nosy: +r.david.murray ___ Python

[issue20851] Update devguide to cover testing from a tarball

2015-04-22 Thread Brett Cannon
Brett Cannon added the comment: I don't know if Larry is planning to do tarball releases for 3.5 (added him to the nosy to see). As for the install step, it would be best to suggest people install to a temp directory so they don't accidentally end up with a beta release stuck on their

[issue24027] IMAP library lacks documentation about expected parameter types

2015-04-22 Thread Pablo
New submission from Pablo: I used the IMAP library and I feel it lacks a lot of documentation regarding types and encoding. Example: IMAP4.list([directory[, pattern]]): It doesn't state if it expects the directory argument to be an string (unicode) or a imap_utf7 encoded string or bytes. It

[issue17570] Improve devguide Windows instructions

2015-04-22 Thread Steve Dower
Steve Dower added the comment: Right at the end of the patch, .hg/hgrc also exists on Windows and is not the same as mercurial.ini - hgrc here is per-repo and it seems from the context that this is relevant here. Otherwise, the rest looks good to me. I'll merge it in when I get a chance,

[issue17570] Improve devguide Windows instructions

2015-04-22 Thread Carol Willing
Carol Willing added the comment: This patch addresses Ezio's original issue in msg185482 to improve the Windows instructions on the committing page of the devguide. I have tried to match the style of the Getting Started page when distinguishing UNIX (Mac OS X) commands from Windows commands.

[issue24025] str(bytes_obj) should raise an error

2015-04-22 Thread R. David Murray
R. David Murray added the comment: Yeah, that's why I run tests with -bb myself. Except that there was a bug in -W/-bb handling that meant I wasn't really...and that bit me because there is at least one buildbot that really does, and it complained... (Although in that case the 'bug' was

[issue23917] please fall back to sequential compilation when concurrent doesn't exist

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks Claudiu. -- nosy: +berker.peksag resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23917

[issue23917] please fall back to sequential compilation when concurrent doesn't exist

2015-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 572dc6bdc0a3 by Berker Peksag in branch 'default': Issue #23917: Fall back to sequential compilation when ProcessPoolExecutor doesn't exist. https://hg.python.org/cpython/rev/572dc6bdc0a3 -- nosy: +python-dev

[issue24019] str/unicode encoding kwarg causes exceptions

2015-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please don't deprecate the encoding parameter in str. It has a use case. str constructor works with any bytes-like objects, even with these that don't have the decode method. It raises more appropriate TypeError instead of AttributeError, so often you don't

[issue24028] Idle: add doc subsection on calltips

2015-04-22 Thread Terry J. Reedy
New submission from Terry J. Reedy: The doc currently says, in the Edit menu section, Show call tip After an unclosed parenthesis for a function, open a small window with function parameter hints. I propose to add the additional information I gave in answer to

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-04-22 Thread Tal Einat
Tal Einat added the comment: Attaching new patch for unicodeobject.c, which supersedes the previous patches. I've changed the name of the parameter of str.join() to iterable to match the docs. (In the previous patch I had changed it from seq to iterable_of_strings.) I also fixed two minor

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: More rationale from the thread: The surprising part is that it also happens for explicit relative imports. I'm guessing that part was unintentional and simply not noticed when PEP 328 was implemented. No, that must also have been intentional, because

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: As described here: http://news.gmane.org/find-root.php?message_id=20150422115959.1ff2ee58%40limelight.wooz.org Importing a submodule binds the submodule's name in the parent module's namespace. This is surprising, but it seems intentional and it's relied

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: From Guido: It's definitely intentional, and it's fundamental to the package import design. We've had many implementations of package import (remember ni.py? last seen as knee.py) and it was always there, because this is done as part of *submodule loading*.

[issue20851] Update devguide to cover testing from a tarball

2015-04-22 Thread Larry Hastings
Larry Hastings added the comment: I don't plan on doing tarball-only drops during the 3.5 beta/rc period like I did during 3.4. However, when I do a release (e.g. 3.5.0a4), I release Windows binaries (built by Steve Dower), OS X binaries (built by Ned Deily), and source in tarballs. If

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-04-22 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Removed file: http://bugs.python.org/file39171/mp_map_fail_fast_default.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23992 ___

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-04-22 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Removed file: http://bugs.python.org/file39170/mp_map_fail_fast_27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23992 ___

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-04-22 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: Added file: http://bugs.python.org/file39172/mp_map_fail_fast_27.diff Added file: http://bugs.python.org/file39173/mp_map_fail_fast_default.diff ___ Python tracker rep...@bugs.python.org

[issue24030] IMAP library encoding enhancement

2015-04-22 Thread Pablo
New submission from Pablo: IMAP library doesn't encode parameters to the required charset. The library is useful, but when it comes to complex mailbox names, the user needs to convert strings to and from the custom imap_utf7 encoding. I think this conversion could be implemented in the library

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Eric Snow
Eric Snow added the comment: Guido describes the global invariant for *all* the forms of importing a submodule, including explicit relative imports: I just mean that for relative import there is no need to bind the submodule to the parent, is there? But there *is* a reason. The submodule

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2015-04-22 Thread Charles-François Natali
Charles-François Natali added the comment: Patches for 2.7 and default. -- keywords: +patch Added file: http://bugs.python.org/file39170/mp_map_fail_fast_27.diff Added file: http://bugs.python.org/file39171/mp_map_fail_fast_default.diff ___ Python

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-22 Thread Christie
Christie added the comment: Hey @berker.peksag, @r.david.murray! Here's another change set where script_helpers.py is moved with an hg mv (still looks in the patch like the file was deleted and re-added, not sure if that's expected). I've ALSO removed some unused imports from

[issue10886] Unhelpful backtrace for multiprocessing.Queue

2015-04-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: neologix: did you intend to re-open this ticket when you made your 2013-03-05 comment? It seems to me that you didn't intend to -- your comment doesn't say 're-opening because reason'. I'll close it again; if you want, please re-open it and just explain why.

[issue23887] HTTPError doesn't have a good repr representation

2015-04-22 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23887 ___ ___

[issue24031] Add git support to make patchcheck

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: LGTM -- nosy: +berker.peksag stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24031 ___

[issue22848] Subparser help does not respect SUPPRESS argument

2015-04-22 Thread paul j3
paul j3 added the comment: A similar Stackoverflow question http://stackoverflow.com/questions/21692395/hiding-selected-subcommands-using-argparse/21712058#21712058 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22848

[issue24033] Update _test_multiprocessing.py to use script helpers

2015-04-22 Thread Christie
New submission from Christie: As described in Issue9517, many test modules do not make use of the helpers in script_helpers.py to invoke the python interpreter in a subprocess. Issue9517 will be broken down into several smaller issues so we can address smaller change sets. This issue is to

[issue24033] Update _test_multiprocessing.py to use script helpers

2015-04-22 Thread Christie
Christie added the comment: I am working on this! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24033 ___ ___ Python-bugs-list mailing list

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-22 Thread Christie
Christie added the comment: Created issue24033. If it and issue23981 could be added as dependencies of this issue (or I could get permission to add them?) that would be swell! -- ___ Python tracker rep...@bugs.python.org

[issue23713] intermittent failure of multiprocessing unit test test_imap_unordered_handle_iterable_exception

2015-04-22 Thread Davin Potts
Davin Potts added the comment: Serhiy: If my comments on your questions make sense, should we go ahead with the patch as it is? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23713 ___

[issue23887] HTTPError doesn't have a good repr representation

2015-04-22 Thread Facundo Batista
Changes by Facundo Batista facu...@taniquetil.com.ar: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23887 ___

[issue23227] Generator's finally block not run if close() called before first iteration

2015-04-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks logical to me. The finally block is only entered if the try block is ever entered, but if you don't consume anything in the generator then the generator's code is never actually executed. -- nosy: +pitrou

[issue23887] HTTPError doesn't have a good repr representation

2015-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9ea679a92fa by Facundo Batista in branch 'default': Issue #23887: urllib.error.HTTPError now has a proper repr() representation. https://hg.python.org/cpython/rev/e9ea679a92fa -- nosy: +python-dev ___

[issue22501] Optimise PyLong division by 1 or -1

2015-04-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: From reading the discussion thread, it looks like the consensus is to not apply this set of patches because the speed-up is unfortunately small. Closing as won't-fix; please re-open if someone wishes to pursue this again. -- nosy: +akuchling

[issue23979] Multiprocessing Pool.map pickles arguments passed to workers

2015-04-22 Thread Davin Potts
Davin Potts added the comment: @Luis: Before closing this bug, could you give a quick description of the fix you put in place? Two reasons: 1) Someone else encountering this frustration with similar needs might well benefit from hearing what you did. 2) To provide evidence that there is

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Here's some new text for the Language Reference. -- Added file: http://bugs.python.org/file39175/issue24029-1.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24029

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3968e7a9614c by Barry Warsaw in branch '3.4': Issue #24029: Document the name binding behavior for submodule imports. https://hg.python.org/cpython/rev/3968e7a9614c New changeset 351ad8c4f3a6 by Barry Warsaw in branch '3.4': Issue #24029: Document

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Cool, thanks! I'll commit it and we can always clean it up/add to it later if needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24029 ___

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24029 ___

[issue24032] urlparse.urljoin does not add query part

2015-04-22 Thread albertsmuktupavels
New submission from albertsmuktupavels: From documentation: Construct a full (“absolute”) URL by combining a “base URL” (base) with another URL (url). Informally, this uses components of the base URL, in particular the addressing scheme, the network location and (part of) the path, to provide

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Christie. Review comments: http://bugs.python.org/review/9517/ (still looks in the patch like the file was deleted and re-added, not sure if that's expected). I don't know if it's important. I'm using a very old version of Mercurial

[issue24034] Make fails Objects/typeslots.inc

2015-04-22 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I wrote the patch to replace $(PYTHON). Changes: Add TYPESLOTSGEN to configure.ac. TYPESLOTSGEN values is the built-in python. If the built-in python is not found, TYPESLOTSGEN echoes message that is skipping like ASDLGEN. Generated the configure script

[issue24034] Make fails Objects/typeslots.inc

2015-04-22 Thread Masayuki Yamamoto
New submission from Masayuki Yamamoto: Objects/typeslots.inc is broken, and make stop on cygwin-1.7.35-i686. If built-in python is not found in make processing, Objects/typeslots.inc generating will fail. Because Objects/typeslots.inc is generated using $(PYTHON) in Makefile, but $(PYTHON)

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-22 Thread James
New submission from James: Referring to Python 2.7 running on Windows (7/8): At the interactive interpreter, if either 1) Caps are Locked OR 2) Shift is held while an alpha-character is selected, the character is output and displayed as uppercase, as one would expect. However, in Python 2.7,

[issue24019] str/unicode encoding kwarg causes exceptions

2015-04-22 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24019 ___

[issue24031] Add git support to make patchcheck

2015-04-22 Thread Christian Heimes
New submission from Christian Heimes: 'make patchcheck' supports only Mercurial checkouts. The tool uses the 'hg status' command to find modified files. My patch implements 'git status' support in order to make the patch check tool available on git checkouts. -- components: Build

[issue24029] Surprising name binding behavior of submodule imports needs documenting

2015-04-22 Thread Eric Snow
Eric Snow added the comment: LGTM. You've covered all the key points and the example is good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24029 ___

[issue22137] Test imaplib API on all methods specified in RFC 3501

2015-04-22 Thread Maciej Szulik
Maciej Szulik added the comment: Thanks Milan for the info, I was about to ping you about that. I have a working prototype for the tests that I've been working on during PyCon sprints with David. I'll try to submit new patch within a couple of next days. --

[issue16840] Tkinter doesn't support large integers

2015-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4bf210f59ac6 by Serhiy Storchaka in branch '2.7': Issue #16840: Skip bignum tests on minor releases where they are not supported. https://hg.python.org/cpython/rev/4bf210f59ac6 New changeset 97519d85b5c8 by Serhiy Storchaka in branch '3.4': Issue

[issue24023] Django tutorial 2 not able to create a superuser on Windows 7

2015-04-22 Thread Johan Pretorius
New submission from Johan Pretorius: When running the $python manage.py createsuperuser command the following is returned: C:\Users\johanP\mysitepython manage.py cre Username (leave blank to use 'johanp'): Email address: jar...@gmail.com Traceback (most recent call last): File manage.py,

[issue21483] Skip os.utime() test on NFS?

2015-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa60f4d1a569 by Berker Peksag in branch 'default': Issue #21483: Skip test_timestamp_overflow on NFS. https://hg.python.org/cpython/rev/aa60f4d1a569 -- nosy: +python-dev ___ Python tracker

[issue21483] Skip os.utime() test on NFS?

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks Isaac. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21483 ___

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2015-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The file preset is default now, but if you will consider Argument Clinic as general tool for use in third-party software, the bug still is here. -- priority: normal - low ___ Python tracker rep...@bugs.python.org

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2015-04-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - remind versions: +Python 3.6 -Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20323 ___

[issue11587] METH_KEYWORDS alone gives METH_OLDARGS is no longer supported!

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: issue 15657 is actually a duplicate of this issue, but since there's more information there I'm closing this. Please take a look the patch at issue 15657. Thank you all! -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open -

[issue15657] Error in Python 3 docs for PyMethodDef

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch for Python 3.5. -- components: +Interpreter Core -Documentation keywords: +patch nosy: +berker.peksag, serhiy.storchaka type: - behavior versions: +Python 3.5 -Python 3.2, Python 3.3 Added file:

[issue15216] Support setting the encoding on a text stream after creation

2015-04-22 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15216 ___

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2015-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, if the two-pass preset is gone, then of course the bug is gone too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20323 ___

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2015-04-22 Thread Larry Hastings
Larry Hastings added the comment: I thought the bug only happened with the two-pass preset. The two-pass preset is gone, because I broke it, and nobody was using it anyway, so I removed it. (I don't even remember what two-pass was trying to do. It's possible the same effect could be

[issue24019] str/unicode encoding kwarg causes exceptions

2015-04-22 Thread Martin Panter
Martin Panter added the comment: I thought it might be okay to use codecs.decode() instead for those cases, though it doesn’t check for text encodings. And support for arbitrary bytes-like object doesn’t seem to be documented (though seems to work in reality). --

[issue23227] Generator's finally block not run if close() called before first iteration

2015-04-22 Thread Marco Paolini
Marco Paolini added the comment: I think there is an issue in the way you designed your cleanup logic. So I think this issue is invalid. Usually, the code (funcion, class, ...) that *opens* the file should also be resposible of closing it. option 1) the caller opens and closes the file and

[issue23275] Can assign [] = (), but not () = []

2015-04-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: About the patch: I'm sure there are other tests to change, in test_syntax.py for example:: It's a syntax error to assign to the empty tuple. Why isn't it an error to assign to the empty list? It will always raise some error at runtime.

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2015-04-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: It's only been six years, no need to rush. -- nosy: +Jean-Paul Calderone ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6731 ___

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2015-04-22 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -Jean-Paul Calderone, exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6731 ___

[issue22619] Possible implementation of negative limit for traceback functions

2015-04-22 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: Added file: http://bugs.python.org/file39166/traceback_limit_doc_rev3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___

[issue23275] Can assign [] = (), but not () = []

2015-04-22 Thread Berker Peksag
Berker Peksag added the comment: I don't have a strong opinion on this, but here is a patch to make () = [] a valid assignment. -- keywords: +patch nosy: +berker.peksag stage: - patch review versions: +Python 3.5 Added file: http://bugs.python.org/file39165/issue23275.diff

[issue24021] document urllib.urlretrieve

2015-04-22 Thread Karl Richter
Karl Richter added the comment: I suspect the complaint might be about the lack of doc string Exactly. It'd be helpful to figure out the return value and the means of the function arguments in a more compact form than the referenced website docs and to have it available in the interpreter