[issue24588] Unable to pass argument to python script from Java program

2015-07-07 Thread Bhupesh Rathod
New submission from Bhupesh Rathod: I have following java method It makes call to python scripts I am unable to pass arguments using "engine.put(ScriptEngine.ARGV, strArg);" I have JDK 8 on windows system code as follows // public static void

[issue24584] Windows installer incorrectly detects CRT version on Windows 10

2015-07-07 Thread Steve Dower
Steve Dower added the comment: Committed a fix, but apparently messed up linking back to the issue: https://hg.python.org/cpython/rev/60eb61d6fdb4 https://hg.python.org/cpython/rev/877f47ca3b79 -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue24585] Windows installer does not detect existing installs

2015-07-07 Thread Steve Dower
Steve Dower added the comment: Looks like there's also a problem with Modify being performed by a different user than the one who installed last. Need to come up with a way to properly detect installed features, which should fix both cases. -- ___ P

[issue24136] document PEP 448: unpacking generalization

2015-07-07 Thread Neil Girdhar
Neil Girdhar added the comment: I don't receive emails from the tracker anymore either and I have no idea why that is. -- ___ Python tracker ___

[issue24587] Incorrect tkinter behavior of slave widgets of Button

2015-07-07 Thread Eugene K.
New submission from Eugene K.: I've encountered this while trying to write a program that allowed the user to edit button labels, by creating an Entry widget on top of the Button, and then hiding the Button. Sample code: http://pastebin.com/WvBbLsNj According to feedback from stackoverflow

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread Martin Panter
Martin Panter added the comment: There are currently two patches proposed, and I presume either patch would satisfy the likes of David Beazley. The first patch is more complex (extending the Completer constructor), while the second is simple. Perhaps it is okay to commit either one, and then c

[issue15014] smtplib: add support for arbitrary auth methods

2015-07-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24583] Crash when source set is changed during merging

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24583] Crash when source set is changed during merging

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 648c9fb3bdf5 by Raymond Hettinger in branch 'default': Issue 24581: Revert c9782a9ac031 pending a stronger test for mutation during iteration. https://hg.python.org/cpython/rev/648c9fb3bdf5 -- nosy: +python-dev

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2015-07-07 Thread Adam Bartoš
Adam Bartoš added the comment: David Robertson: The behaviour you pointed out is a consequence of the general issue: signals on Windows aren't fully supported. Basically, they cannot interrupt the event loop when every coroutine is waiting for something. Instead, they are fired when something

[issue24586] Operator precedence for 1<-1==0

2015-07-07 Thread R. David Murray
R. David Murray added the comment: You missed the sentence just before the table that mentions that comparisons support chaining (see https://docs.python.org/3/reference/expressions.html#not-in). 1<-1==0 is actually equivalent to (1<-1) and (1==0), which is False. -- nosy: +r.david.m

[issue24586] Operator precedence for 1<-1==0

2015-07-07 Thread tomskaczmarek
New submission from tomskaczmarek: As I understand operator precedence the expression 1<-1==0 ought to evaluate in the following order: 1<-1 evaluates to False (or 0) then False == 0 ought to evaluate yielding True. However, this evaluates to False in my Python 3.4.3 Shell. (1<-1)==0 evaluates

[issue15014] smtplib: add support for arbitrary auth methods

2015-07-07 Thread R. David Murray
R. David Murray added the comment: OK, that makes sense. I'll try to give this a thorough review soon. -- ___ Python tracker ___ ___

[issue15014] smtplib: add support for arbitrary auth methods

2015-07-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 07, 2015, at 05:59 PM, R. David Murray wrote: >I don't see any need to add the is_initial_auth_ok flag. Either the auth >method returns something that is not None (initial auth is OK), or it doesn't >(initial auth is not OK). I added this because test_

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Sven R. Kunze
Sven R. Kunze added the comment: @David What is the purpose of multitasking code? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue15014] smtplib: add support for arbitrary auth methods

2015-07-07 Thread R. David Murray
R. David Murray added the comment: I don't see any need to add the is_initial_auth_ok flag. Either the auth method returns something that is not None (initial auth is OK), or it doesn't (initial auth is not OK). Providing for that initial return value from the authobj is still a change to th

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread R. David Murray
R. David Murray added the comment: "finally a Pythonic (i.e. a single, explicit) way to do squeeze out more of our servers'" I think that you don't understand the purpose of asyncio, then, since squeezing more out of servers is, to my understanding, neither a goal nor something it does (excep

[issue15014] smtplib: add support for arbitrary auth methods

2015-07-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Attached patch includes test, documentation, and implementation. While this is technically a new feature, it fixes a regression in Python 3.5 w.r.t. 3.4. I'll email python-dev with a request for beta exemption. -- Added file: http://bugs.python.org/

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Sven R. Kunze
Sven R. Kunze added the comment: > I also fear adding too many functions to do the same things. > > For example, scheduling the execution of a coroutine can now be done by: > * asyncio.async(coro) > * asyncio.Task(coro) > * loop.create_task(coro) > * asyncio.ensure_task(coro) If you ask me, th

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Sven R. Kunze
Sven R. Kunze added the comment: > Why bother with asyncio at all? Good question. My initial reaction to async+await was: 'great, finally a Pythonic (i.e. a single, explicit) way to do squeeze out more of our servers'. Moreover, the goal of 'being more like classic code' + 'having reasonable

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: The test for the size being constant has always been weak (it was possible to produce a unstable and incorrect but non-crashing result). I was considering checking both size and that the table itself hasn't moved. -- __

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24582] Minor branch optimization in set implementation

2015-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. FWIW, there was one other issue. The code is set-up to accommodate aggressive in-lining so that the code in set_contains(), for example, the sets a return value of -1 gets combined with the downstream test for -1 and the pairs gets folded away in

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2015-07-07 Thread David Robertson
David Robertson added the comment: Dear all, I have just been trying to understand the TCP Echo example from the asyncio documentation: https://docs.python.org/3/library/asyncio-protocol.html#protocol-examples I copied the two examples from the docs into `server.py' and `client.py'. I ran serve

[issue24585] Windows installer does not detect existing installs

2015-07-07 Thread Steve Dower
Steve Dower added the comment: Making this a release blocker - the installer changes required here are probably big enough that I really don't want the last beta going out without them (or alternatively, the rc to be the first time they get tried). -- priority: normal -> release blocke

[issue24585] Windows installer does not detect existing installs

2015-07-07 Thread Steve Dower
New submission from Steve Dower: If you have Python 3.5.0b2 installed and run the Python 3.5.0b3 installer, it will upgrade correctly, but gives no indication that it will remove the old one. We should default to an upgrade using the same settings as the previous installation when one exists.

[issue24584] Windows installer incorrectly detects CRT version on Windows 10

2015-07-07 Thread Steve Dower
New submission from Steve Dower: The Windows installer attempts to load one of the public facing API sets to detect the current CRT version. However, on Windows 10, these DLLs are not directly loadable. We should probably just load ucrtbase.dll directly for the version check. -- assig

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread R. David Murray
R. David Murray added the comment: No, that's what I said when I marked this one as a release blocker: the other one *hadn't been*, which is why it didn't get in to 3.4. -- ___ Python tracker _

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread Larry Hastings
Larry Hastings added the comment: This issue was created 2015/02/11. Python 3.4 was released on 2014/03/16. Is there an earlier duplicate issue for this problem that was marked "release blocker" for 3.4? -- ___ Python tracker

[issue24582] Minor branch optimization in set implementation

2015-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then feel free to close this issue. I'm not very experienced with modern superscalar CPUs. -- ___ Python tracker ___

[issue24551] byte conversion

2015-07-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Bytes in Python 3 do use ASCII representation: py> b'\x41' == b'A' # ASCII True If you think the documentation is unclear, please tell us which part of the docs you read (provide a URL) and we will see if it can be improved. --

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread STINNER Victor
STINNER Victor added the comment: > *If* it needs to be added I like call_in_thread(). Except if you explicitly set the executor to a thread pool executor, the function name can be a lie. It's possible to modify the default executor to a process poll executor. I vote -1 for the function. I wo

[issue15014] smtplib: add support for arbitrary auth methods

2015-07-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I have a patch to support initial-response, which I'll be posting here after a bit of clean up and a full (local) test run, with documentation. I ended up adding a keyword argument `initial_response_ok=True` to .login() and .auth(). The reason for this is t

[issue24582] Minor branch optimization in set implementation

2015-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I had tried some variants of this a one point and saw no benefit at all. -- ___ Python tracker ___

[issue24582] Minor branch optimization in set implementation

2015-07-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I believe this patch will make matters worse. The current pair of tests can essentially be run in parallel and the one with rv==-1 is highly predictable (essentially zero cost). -- priority: normal -> low ___ Py

[issue24582] Minor branch optimization in set implementation

2015-07-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: But that example also shows what's wrong with the idea. I presume load_remote_data_set1 and load_remote_data_set2 are themselves just using synchronous I/O, and the parallelization is done using threads. So why not use concurrent.futures? Why bother with asy

[issue24566] Unsigned Integer Overflow in sre_lib.h

2015-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report. Without your example the patch would postponed indefinitely. -- ___ Python tracker ___ ___

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: As a minor note, we didn't use call_in_thread on the event loop because it may be "call_in_process". I've also merged issue 24578 back into this one as Guido suggested. I think the example Sven gave on the mailing list provides a better rationale here than my o

[issue24566] Unsigned Integer Overflow in sre_lib.h

2015-07-07 Thread bee13oy
bee13oy added the comment: Thank you. I got it. 2015-07-06 18:53 GMT+08:00 Serhiy Storchaka : > > Serhiy Storchaka added the comment: > > Yes, this patch was not applied because it had no visible effect on Linux. > Now, with your report, there is a case on Windows. > > -- > > __

[issue24578] [RFE] Add asyncio.wait_for_result API

2015-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: As Guido suggested, merging back into issue 24571 -- resolution: -> duplicate status: open -> closed superseder: -> [RFE] Add asyncio.call_async API ___ Python tracker

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: *If* it needs to be added I like call_in_thread(). (We should have used that instead of call_in_executor() on the loop, but too late now.) -- ___ Python tracker

[issue24578] [RFE] Add asyncio.wait_for_result API

2015-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe the two issues should be merged so the two proposals can be considered together. I'm -0 on both, because each of these is really just one line of code and it seems they both encourage mindless copy-pasting that just saddens me (similar to "Python" scri

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, and yes, it's not obvious this is needed at all :-) -- ___ Python tracker ___ ___ Python-bugs-li

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW: > The concerns I have with "get_awaitable" are [snip] I agree with you. > I've changed the suggestion function name to "call_async" I disagree. "async" is an extremely overloaded term with no unambiguous meaning (but possible misinterpretations), espec

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Guido van Rossum
Guido van Rossum added the comment: You seem to miss that run_in_executor() does take *args -- so the partial() call is only needed if you need to pass keyword args. Is it really worth having a helper for this one-liner? def call_async(func, *args): return asyncio.get_event_loop().run_in_e

[issue24578] [RFE] Add asyncio.wait_for_result API

2015-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: It occurs to me that given both this API and the "call_async()" API now proposed in issue 24571, otherwise synchronous code can do things like: futureB = asyncio.call_async(slow_io_bound_operation) futureC = asyncio.call_async(another_slow_io_bound_operat

[issue24571] [RFE] Add asyncio.call_async API

2015-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: After trying out some example code in issue 24578, I've changed the suggestion function name to "call_async". The reason is because it makes this kind of code read quite well: futureB = asyncio.call_async(slow_io_bound_operation) futureC = asyncio.call_a

[issue24571] [RFE] Add asyncio.call_in_executor API

2015-07-07 Thread Nick Coghlan
Nick Coghlan added the comment: The concerns I have with "get_awaitable" are: * it doesn't express user intent - the user doesn't care about getting an awaitable, they want to initiate a blocking call without holding up the current coroutine * it's too broad - there are many other ways to get

[issue24583] Crash when source set is changed during merging

2015-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: When the set is not empty and set.update() argument is set that is modified during merging, the crash is caused. Here is a test that reproduces a crash. Only Python 3.5+ is affected. -- components: Interpreter Core files: test_set__merge_and_mutate

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2015-07-07 Thread Dima Tisnek
Dima Tisnek added the comment: beep! -- nosy: +Dima.Tisnek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue20825] containment test for "ip_network in ip_network"

2015-07-07 Thread James
James added the comment: What is the status of these changes? Apparently they were slated for inclusion in 3.5 but it looks as though they haven't hit yet - is there a reason for this, or was it just forgotten? -- nosy: +JamesGuthrie ___ Python trac

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread David Beazley
David Beazley added the comment: For what it's worth, I'm kind of tired having to hack site.py every time I upgrade Python in order to avoid being shown 6000 choices when hitting tab on an empty line. It is crazy annoying. -- ___ Python tracker

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, there is a patch, and I think a couple core developers interested in this, so I wouldn't bet on this never getting fixed. Just leave them a bit more time. -- ___ Python tracker

[issue23441] rlcompleter: tab on empty prefix => insert spaces

2015-07-07 Thread David Beazley
David Beazley added the comment: This is a problem that will never be fixed. Sure, it was a release blocker in Python 3.4. It wasn't fixed. It is a release blocker in Python 3.5. It won't be fixed. They'll just tell you to indent using the spacebar as generations of typists have done for c

[issue24580] Wrong or missing exception when compiling regexes with recursive named backreferences

2015-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is questionable if an exception should be raised in older Python versions. Here is a patch for 3.4 that just issues a warning. -- Added file: http://bugs.python.org/file39880/re_open_group_symbolic_ref-3.4.patch __

[issue24580] Wrong or missing exception when compiling regexes with recursive named backreferences

2015-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24580] Wrong or missing exception when compiling regexes with recursive named backreferences

2015-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that forbids symbolic references to opened groups in 3.5+. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file39879/re_open_group_symbolic_ref.patch ___ Pyt

[issue24582] Minor branch optimization in set implementation

2015-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: For now multiple set functions call helpers that returns one of three possible values (0, 1, and -1 for error) and then analyze return code in the loop. while (...) { rv = some_set_operation(); if (rv < 0) { // clean up

[issue24581] Crash when a set is changed during iteration

2015-07-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Changeset c9782a9ac031 caused segmentation fault when underlying table of the set is reallocated but the number of set elements is kept the same during iteration. Crash reproducer: s = set(range(100)) s.clear() s.update(range(100)) si = iter(s) s.clear() a

[issue24136] document PEP 448: unpacking generalization

2015-07-07 Thread Konstantin Molchanov
Konstantin Molchanov added the comment: @vadmium thanks for the assistance! I'll kick off with the reference then. P.S. Am I the only one who doesn't receive any emails from the tracker? I never got the registration link or a follow-up notification from this issue. Am I missing something? P.P

[issue1927] raw_input behavior incorrect if readline not enabled

2015-07-07 Thread Tal Einat
Tal Einat added the comment: See also issue #24402: input() uses sys.__stdout__ instead of sys.stdout for prompt -- nosy: +taleinat ___ Python tracker ___ ___