[issue21922] PyLong: use GMP

2014-07-12 Thread Case Van Horsen
Changes by Case Van Horsen cas...@gmail.com: -- nosy: +casevh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21922 ___ ___ Python-bugs-list mailing

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Let's try. As I understand, issue10044 was rejected because it complicates the code too much. May be new attempt will be more successful. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue11077] Tkinter is not thread safe

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce the bug on 2.7.8+, but on 2.7.3 I sometimes got messages like Exception in thread Thread-26 (most likely raised during interpreter shutdown): or: File /usr/lib/python2.7/lib-tk/Tkinter.py, line 2204, in create_line File

[issue21922] PyLong: use GMP

2014-07-12 Thread Mark Dickinson
Mark Dickinson added the comment: ... and if there's one person who's *very* well placed to comment on the ease or difficulty of keeping up with GMP/MPIR (especially on Windows), it's Case Van Horsen, who I notice has recently added himself to the nosy. @casevh: any comments? --

[issue12588] test_capi.test_subinterps() failed on OpenBSD (powerpc)

2014-07-12 Thread Landry Breuil
Landry Breuil added the comment: Seems something in between fixed it, because it works with 3.4.1. Can test 3.3 if needed. mikey:/usr/obj/tmpfs/ports/Python-3.4.1/Python-3.4.1/ $LD_LIBRARY_PATH=. ./Modules/_testembed --- Pass 0 --- interp 0xac003e00, thread state 0xb4380f80: id(modules) =

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Failed on 32-bit: == ERROR: test_large_read (test.test_os.FileTests) -- Traceback (most recent call last): File

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-12 Thread STINNER Victor
STINNER Victor added the comment: I'm not interested to work on this issue right now. If anyone is interested, please go ahead! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21955 ___

[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: Let's try. As I understand, issue10044 was rejected because it complicates the code too much. May be new attempt will be more successful. I read that Mark rejected the issue #10044 because it introduces an undefined

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 880e2cdac8b1 by Victor Stinner in branch 'default': Issue #21932: Skip test_os.test_large_read() on 32-bit system http://hg.python.org/cpython/rev/880e2cdac8b1 -- ___ Python tracker

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread STINNER Victor
STINNER Victor added the comment: Re-add the @unittest.skipUnless(INT_MAX PY_SSIZE_T_MAX, needs INT_MAX PY_SSIZE_T_MAX) decorator (between cpython_only and bigmemtest). Oh, I removed it because I thought that it was useless. I didn't understand the purpose of the test. I added a comment.

[issue21965] Add support for Memory BIO to _ssl

2014-07-12 Thread Geert Jansen
New submission from Geert Jansen: The attached patch adds a _MemoryBIO type to _ssl, and a _wrap_bio() method to _SSLContext. The patch also includes tests. For now I kept _wrap_bio() and _MemoryBIO semi-private. The reason is that it returns an _SSLSocket instead of an SSLSocket and this

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is very similar to issue13153. Both these issues can have same solution or can have different solutions. This issue relates to more realistic situation and therefore is more important. Here is simple and almost working solution for this issue.

[issue21961] Add What's New for Idle.

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't IDLE-specific What's New file was merged in general What's New file few years ago? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21961

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for fixing os.read(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21932 ___ ___

[issue21951] tcl test change crashes AIX

2014-07-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21951 ___ ___

[issue21951] tcl test change crashes AIX

2014-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it crashes when comment out check((), '')? Is it crashes when comment out two previous checks (for inf and -inf)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21951

[issue16494] Add a method on importlib.SourceLoader for creating bytecode file format/container

2014-07-12 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16494 ___

[issue15600] expose the finder details used by the FileFinder path hook

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Eric do you wish to take this any further? I'm only asking as Brett's questions in msg185283 are currently unanswered. -- nosy: +BreamoreBoy status: pending - open versions: +Python 3.5 -Python 3.4 ___ Python

[issue7979] connect_ex returns 103 often

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: As the resolution is already set to out of date I believe this can be closed. -- nosy: +BreamoreBoy status: pending - open versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker

[issue19919] SSL: test_connect_ex_error fails with EWOULDBLOCK

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Accidentally set to pending? -- nosy: +BreamoreBoy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19919 ___

[issue19954] test_tk floating point exception on my gentoo box with tk 8.6.1

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: I think this was meant to be closed rather than moved to pending see msg210788. -- nosy: +BreamoreBoy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19954

[issue20026] sqlite: handle correctly invalid isolation_level

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Accidentally set to pending? -- nosy: +BreamoreBoy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20026 ___

[issue18228] AIX locale parsing failure

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably this can be closed as fixed. -- nosy: +BreamoreBoy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18228 ___

[issue2008] cookielib lacks FileCookieJar class for Safari

2014-07-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2008 ___ ___

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2014-07-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9325 ___ ___

[issue19076] Pdb.do_break calls error with obsolete file kwarg

2014-07-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset afa9c0e24a71 by Berker Peksag in branch '3.4': Issue #19076: Don't pass the redundant 'file' argument to self.error(). http://hg.python.org/cpython/rev/afa9c0e24a71 New changeset d891ad8aeb80 by Berker Peksag in branch 'default': Issue #19076:

[issue19076] Pdb.do_break calls error with obsolete file kwarg

2014-07-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Michael. -- assignee: - berker.peksag components: -Extension Modules nosy: +r.david.murray resolution: - fixed stage: needs patch - resolved status: open - closed type: - behavior versions: +Python 3.5 -Python 3.3

[issue21932] os.read() must use Py_ssize_t for the size parameter

2014-07-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: Thank you for fixing os.read(). You're welcome, thanks for your help with the test. I hope that it would help you to implement FileIO in Python. FYI I saw EINVAL errors on test_large_read() on some buildbots, Mac OS X

[issue21914] Create unit tests for Turtle guionly

2014-07-12 Thread Lita Cho
Lita Cho added the comment: Make some changes to patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21914 ___ ___ Python-bugs-list mailing

[issue20026] sqlite: handle correctly invalid isolation_level

2014-07-12 Thread STINNER Victor
STINNER Victor added the comment: The patch has been commited, the issue can be closed. Yes pending was a mistake. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20026 ___

[issue21914] Create unit tests for Turtle guionly

2014-07-12 Thread Lita Cho
Lita Cho added the comment: Trying to attach a file again. I seem to be having trouble attaching it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21914 ___

[issue21914] Create unit tests for Turtle guionly

2014-07-12 Thread Lita Cho
Changes by Lita Cho lita@gmail.com: Added file: http://bugs.python.org/file35930/test_turtle_guionly_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21914 ___

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: When invoked with -q option, python3 prints no banner: $ python3 -q However, code.InteractiveConsole does not implement this feature: $ python3 -mcode -q Python 3.4.1 (default, May 19 2014, 13:10:29) [GCC 4.2.1 Compatible Apple LLVM 5.1

[issue21922] PyLong: use GMP

2014-07-12 Thread Case Van Horsen
Case Van Horsen added the comment: Disclaimer: as Mark alluded to, I maintain gmpy2. Some comments on MPIR/GMP: For all practical purposes, building GMP on Windows requires some version of the mingw compiler toolchain. None of the performance gains of custom assembly code is available if GMP

[issue21967] Interpreter crash upon accessing frame.f_restricted of a frame from a dead thread

2014-07-12 Thread Anselm Kruis
New submission from Anselm Kruis: If you store a reference to a frame from a dead thread and then access frame.f_restricted python eventually crashed. I didn't investigate this bug in depth. Here is my preliminary explanation. The access of frame.f_restricted causes a call of

[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: Do you want to propose a patch? -- components: +Windows nosy: +ezio.melotti, loewis, steve.dower, tim.golden, zach.ware stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21931

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: ntpath.join() was fixed in issue19456 so I think all we need here is a commit review of the attached documentation patch. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue21965] Add support for Memory BIO to _ssl

2014-07-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___

[issue1669539] Improve Windows os.path.join (ntpath.join) smart joining

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: I've asked for a commit review on issue 15414 so can we close this? -- nosy: +BreamoreBoy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1669539

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15414 ___ ___ Python-bugs-list

[issue1669539] Improve Windows os.path.join (ntpath.join) smart joining

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1669539 ___ ___ Python-bugs-list

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I added documentation to the components list because this in the main purpose of this module - to serve as a template for extension module writers. -- assignee: - docs@python components: +Documentation nosy: +docs@python

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15849 ___

[issue21928] Incorrect reference to partial() in functools.wraps documentation

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: The docstring is correct, as this is how wraps is implemented (see Lib/functools.py#l73). partial(update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated) will return a partial version of update_wrapper() where only the wrapper argument is missing.

[issue21934] OpenBSD has no /dev/full device

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: If it's not needed in other places, I think the proposed patch might be OK (assuming it works fine on other platforms). -- nosy: +ezio.melotti stage: - patch review versions: +Python 3.4, Python 3.5 ___ Python

[issue21941] Clean up turtle TPen class

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: While TPen doesn't seem to be documented, it's not prefixed by a '_', so there might people using it and relying on these methods. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2014-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21946 ___ ___ Python-bugs-list

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Stefan Krah
Stefan Krah added the comment: I think we should perhaps leave the xxmodule as an example for static types and create another pep-384 version that mentions *potential* performance traps. Of course many modules won't suffer from this, but first-time extension writers tend to paste from the

[issue15849] PEP 3121, 384 Refactoring applied to xx module

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: create another pep-384 version +1 - and with a more descriptive name than xxmodule.c Suggestions: * pep384module.c * pep384demo.c * pep384.c * abidemo.c -- ___ Python tracker rep...@bugs.python.org

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: Here's a patch. -- keywords: +patch nosy: +anton.barkovsky Added file: http://bugs.python.org/file35932/code.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21966

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: That was quick! (Well - I knew it would not be hard.) I have two questions: 1. How should python3 -q -mcode behave? 2. If we add this patch, should we also attempt to emulate other command line options (-V, -h, etc.)? -- assignee: - belopolsky

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21966 ___

[issue14050] Tutorial, list.sort() and items comparability

2014-07-12 Thread R. David Murray
R. David Murray added the comment: Unless I'm misremembering, it is exactly __lt__ (or __gt__, if __lt__ returns NotImplemented) that sorting depends on. Since I'm sure there is code out there that depends on this fact, I wonder if it should be part of the language definition. Also, the

[issue7979] connect_ex returns 103 often

2014-07-12 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7979 ___

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread R. David Murray
R. David Murray added the comment: Whether or not other options are emulated, unimplemented ones should probably be rejected. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21966

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: 1. How should python3 -q -mcode behave? I've only now found out about sys.flags. I think we should check for -q both before -m and after, because why not? 2. If we add this patch, should we also attempt to emulate other command line options (-V, -h,

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In order to implement reasonable rejection behavior, we probably need to add some support for -h. $ python3 -z Unknown option: -z usage: python3 [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. I don't think we

[issue7976] warnings should provide a public API for accessing its option parsing code

2014-07-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7976 ___

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: Here's a patch that checks both sys.flags and sys.argv and uses argparse. -- Added file: http://bugs.python.org/file35933/code_flags_argparse.patch ___ Python tracker rep...@bugs.python.org

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think we should check for -q both before -m and after, because why not? If we check for sys.flags.quiet, wouldn't it be surprising to have $ python3 -mcode -q import sys; sys.flags.quiet 0 -- ___ Python

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: That's not a very likely scenario and I think the distinction between arguments that are passed to the script and interpreter flags is fairly obvious. -- ___ Python tracker rep...@bugs.python.org

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: A nitpick: banner=banner in + interact(banner=banner) is redundant. + interact(banner) would work and is just as clear. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21966

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Anton Barkovsky
Anton Barkovsky added the comment: Yeah, my love for keyword arguments is a bit too big sometimes. -- Added file: http://bugs.python.org/file35934/code_flags_argparse_v2.patch ___ Python tracker rep...@bugs.python.org

[issue21934] OpenBSD has no /dev/full device

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: The patch is against test_file2k.py which I can't find in my default cpython setup. If this was removed from (say) Python 3.0 how do I check for that? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: I agree with the sentiment expressed in msg218513 and would close this as out of date. -- nosy: +BreamoreBoy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895

[issue21934] OpenBSD has no /dev/full device

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to grep on 3.x for this test but it looks like it's been removed there, so this issue only affects 2.7. -- versions: -Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue21961] Add What's New for Idle.

2014-07-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Python x.y docs describe the Python x.y language and stdlib, minus Idle (and turtledemo). The Python x.(y+1) What's New describes the delta between Python x.y and x.(y+1) in a user friendly and relevant way. The Idle model of What's New type changes in

[issue5248] Adding T_SIZET to structmember.h

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: msg81942 states structmember.h lacks a 'T_SIZET' define in order to properly support struct fields of type 'size_t' within PyMemberDef. As we have managed without this feature for the last five years do we really need it now? What do we gain by implementing

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: There seem to be two issues here: list comprehension with yield(-from) would return a generator. This is somewhat surprising, and I'm not sure it's expected/documented. The example you provided seems to behave reasonably, so I don't think we should change the

[issue21968] 'abort' object is not callable

2014-07-12 Thread Apple Grew
New submission from Apple Grew: I am sometimes getting the following error from imaplib. Traceback (most recent call last): File client.py, line 105, in get_new_mail_uids result, data = retryableCall(lambda : mail.uid('search', None, UNSEEN), retries, delay) # search and return uids

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f8843ec34ee by Alexander Belopolsky in branch 'default': Issue #21966: Respect -q command-line option when code module is ran. http://hg.python.org/cpython/rev/7f8843ec34ee -- nosy: +python-dev ___

[issue21968] 'abort' object is not callable

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: Do you assign anything to self.abort in your code? Without further information we can't determine if this is a bug with impalib, I checked the code and I don't see anything that might change self.abort. -- nosy: +ezio.melotti type: crash - behavior

[issue21966] InteractiveConsole does not support -q option

2014-07-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed. Thanks, Anton. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21966

[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-07-12 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: Attached a patch. The dangers of using goto... -- keywords: +patch Added file: http://bugs.python.org/file35935/_msi.3.4.0.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21931

[issue21968] 'abort' object is not callable

2014-07-12 Thread Apple Grew
Apple Grew added the comment: That is the problem. I don't assign anything to that. I in fact grepped my code for the word abort but could find none, except in the following code block. def retryableCall(f, retries, delay): while True: try: return f() except

[issue21968] 'abort' object is not callable

2014-07-12 Thread Ezio Melotti
Ezio Melotti added the comment: In imaplib, abort is either raised or caught (in addition to be the defined once), so the error doesn't seem to be there. I suggest you to try and print self.abort (and possibly its repr()/id() or similar informations) and try to determine if/when it gets

[issue21968] 'abort' object is not callable

2014-07-12 Thread Apple Grew
Apple Grew added the comment: Yes, I actually doing - print '', self.abort, from _init_, and other methods I am invoking. However, that seems to print nothing! I don't know why. My codes which is using impalib is able to print stuffs. -- ___ Python

[issue8972] subprocess.list2cmdline doesn't quote the character

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: I believe this is still valid in which case could we have the stage and resolution fields set appropriately please. You might also like to take a look at issue 13238 which is referred to by issue 7839. -- nosy: +BreamoreBoy versions: +Python 3.4,

[issue8972] subprocess.list2cmdline doesn't quote the character

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8972 ___ ___ Python-bugs-list

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: I can confirm that this works fine with 3.4.1 and 3.5.0a0. I don't run 2.7 any more so I don't know if this is fixed in later versions. -- nosy: +BreamoreBoy versions: -Python 2.6, Python 3.1 ___ Python tracker

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2014-07-12 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +steve.dower, zach.ware versions: +Python 2.7, Python 3.4, Python 3.5 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8075

[issue16895] Batch file to mimic 'make' on Windows

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still relevant or has it been overtaken by other work from Zach or Steve? -- nosy: +BreamoreBoy, steve.dower versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8075 ___ ___ Python-bugs-list

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10837 ___ ___ Python-bugs-list

[issue16895] Batch file to mimic 'make' on Windows

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16895 ___ ___ Python-bugs-list

[issue16516] argparse types (and actions) must be hashable

2014-07-12 Thread paul j3
paul j3 added the comment: This is a straight forward patch, modifying '_registry_get' to return 'default' if it gets this 'TypeError'. 'test_argparse.py' has a testcase based on jnothman's example. Temporarily it includes a skipped test that would pass the original code. The alternative

[issue17023] Subprocess does not find executable on Windows if it is PATH with quotes

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Pekka sorry about the delay in getting back to you. I can confirm that this is still in issue in 3.4.1 and 3.5.0a0. -- components: +Library (Lib) nosy: +BreamoreBoy type: - behavior versions: +Python 2.7, Python 3.4, Python 3.5

[issue18016] subprocess should open stdin in mode w+b on windows

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Jason I'm very sorry about the delay in getting back to you. Can our Windows gurus shed any light on this one? -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware type: - behavior versions: +Python 3.4, Python 3.5

[issue18544] subprocess.Popen support for redirection of arbitrary file descriptors

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Robert can we have a response to Victor's question please. -- nosy: +BreamoreBoy versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18544

[issue10482] subprocess and deadlock avoidance

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Glenn can you provide a formal patch so we can take this forward? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10482

[issue21961] Add What's New for Idle.

2014-07-12 Thread Ned Deily
Ned Deily added the comment: The Python x.y docs describe the Python x.y language and stdlib, minus Idle (and turtledemo). The Python x.(y+1) What's New describes the delta between Python x.y and x.(y+1) in a user friendly and relevant way. I don't understand minus IDLE (and turtledemo).

[issue20117] subprocess on Windows: wrong return code with shell=True

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: Can our Windows gurus advise on this please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20117 ___

[issue21951] tcl test change crashes AIX

2014-07-12 Thread David Edelsohn
David Edelsohn added the comment: If I comment out all three tests, it runs. --- a/Lib/test/test_tcl.py Thu Jul 10 01:17:11 2014 -0400 +++ b/Lib/test/test_tcl.py Sat Jul 12 16:59:33 2014 -0700 @@ -455,9 +455,9 @@ check(float('inf'), 'Inf', eq=float_eq)

[issue20117] subprocess on Windows: wrong return code with shell=True

2014-07-12 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20117 ___ ___ Python-bugs-list

[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-12 Thread Nick Coghlan
Nick Coghlan added the comment: It's a side effect of the hidden closure that provides the new scope for the iteration variable - that's an ordinary function object, so using yield or yield from turns it into a generator expression instead. Generator expressions are already generators, so

[issue21969] WindowsPath constructor does not check for invalid characters

2014-07-12 Thread Antony Lee
New submission from Antony Lee: PureWindowsPath(foo*) returns a path object, even though it is an invalid one (e.g., open(foo*) on Windows throws an OSError for invalid argument rather than a FileNotFoundError). Given the amount of checking that is done in (e.g.) with_name and with_suffix,

[issue6631] Disallow relative files paths in urllib*.open()

2014-07-12 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6631 ___ ___ Python-bugs-list

[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-07-12 Thread Martijn Pieters
Martijn Pieters added the comment: The *redirect* should be corrected here too! http://www.python.org/peps/pep-0263.html is still going to be in use for some time to come, a simple redirect *on Python.org* to the correct location would be helpful. -- nosy: +mjpieters

[issue21970] Broken code for handling file://host in urllib.request.FileHandler.file_open

2014-07-12 Thread Martin Panter
New submission from Martin Panter: This isn’t a particularly important problem for me but when reading the code I noticed some bit rot in this function, where a host name in a “file:” URL would be handled differently than intended. * The url[:2] == '//' check is probably wrong because it is

[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-07-12 Thread Ned Deily
Ned Deily added the comment: Martijn, please report problems with the python.org web site to its issue tracker: https://github.com/python/pythondotorg/issues. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21789

  1   2   >