Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Christian Gollwitzer
Am 01.07.16 um 01:16 schrieb Random832: On Thu, Jun 30, 2016, at 19:06, Lawrence D’Oliveiro wrote: On Friday, July 1, 2016 at 1:09:31 AM UTC+12, Christian Gollwitzer wrote: Github makes that extremely easy, just create an account, create a repo, "git pull" and start working. Your incremental

Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Christian Gollwitzer
Am 01.07.16 um 03:38 schrieb Ben Finney: Christian Gollwitzer writes: The best place these days to publish software is on github. For what value of “best”? The question was about visibility of a project for a single beginner developer. If one wants to avoid vendor

[issue27423] Failed assertions when running test.test_os on Windows

2016-06-30 Thread Steve Dower
Steve Dower added the comment: The warnings are expected - Python has to be able to handle arbitrarily bad parameters/use without crashing, while the CRT assumes that bugs belong to the direct caller who needs to fix them. As a result, it will assert and terminate for blatantly incorrect

[issue27423] Failed assertions when running test.test_os on Windows

2016-06-30 Thread Eryk Sun
Eryk Sun added the comment: test_os intentionally operates on invalid file descriptors. In the Windows CRT this leads to failed assertions, such as from its _VALIDATE_RETURN macro. This macro would also call the default invalid parameter handler, which would kill the process, but that's

Re: Find a file

2016-06-30 Thread Karim
On 01/07/2016 02:51, tdspe...@gmail.com wrote: Hi All I have a web app that allows me to choose a file - the file name is returned but I need to find the path to the file so I can add it as an attachment to a email. The files I am returning could be in different folders/directories. Thanks

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Christian Gollwitzer
Am 01.07.16 um 01:12 schrieb Lawrence D’Oliveiro: On Friday, July 1, 2016 at 10:35:42 AM UTC+12, Chris Angelico wrote: On Fri, Jul 1, 2016 at 8:27 AM, Lawrence D’Oliveiro wrote: GUIs, by their nature, are not designed to be automated. Doesn't mean they can't be! It’s more trouble than

[issue1349732] urllib.urlencode provides two features in one param

2016-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 can get doc changes if a core developer wants to push it. -- versions: -Python 2.6 ___ Python tracker ___

[issue26348] activate.fish sets VENV prompt incorrectly

2016-06-30 Thread Vinay Sajip
Changes by Vinay Sajip : -- status: open -> closed ___ Python tracker ___ ___

[issue27423] Failed assertions when running test.test_os on Windows

2016-06-30 Thread Emanuel Barry
Emanuel Barry added the comment: I'm not sure about the patch - sure, the messages might go away, but I find it concerning that the assertions are failing to begin with. Of course, it only happens when in debug (and this might be a non-issue in practice, I haven't checked), but shouldn't we

[issue27423] Failed assertions when running test.test_os on Windows

2016-06-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo ___ Python tracker ___ ___

[issue27413] Add an option to json.tool to bypass non-ASCII characters.

2016-06-30 Thread Wei-Cheng Pan
Wei-Cheng Pan added the comment: Use "--no-ensure-ascii" instead. -- Added file: http://bugs.python.org/file43596/json-add-an-option-to-bypass-non-ascii-characters.patch ___ Python tracker

[issue27413] Add an option to json.tool to bypass non-ASCII characters.

2016-06-30 Thread Wei-Cheng Pan
Changes by Wei-Cheng Pan : Removed file: http://bugs.python.org/file43578/json-add-an-option-to-bypass-non-ascii-characters.patch ___ Python tracker

Re: Lost in descriptor land

2016-06-30 Thread Lawrence D’Oliveiro
On Friday, July 1, 2016 at 1:06:12 PM UTC+12, Ankush Thakur wrote: > 1) I don't get the idea behind the 'instance' and 'owner' parameters at > all. Is there some simple tutorial that can explain these? Read the GvR blog post I referenced separately. Then after that, the relevant section of the

Re: Creating a calculator

2016-06-30 Thread Michael Torrie
On 06/30/2016 09:08 PM, Elizabeth Weiss wrote: > while True: > print("Options:") > print("Enter 'add' to add two numbers") > print("Enter 'subtract' to subtract two numbers") > print("Enter 'multiply' to multiply two numbers") > print("Enter 'divide' to divide two

Re: Lost in descriptor land

2016-06-30 Thread Lawrence D’Oliveiro
On Friday, July 1, 2016 at 1:06:12 PM UTC+12, Ankush Thakur wrote: > There's something I don't understand about descriptors. There’s a lot to not understand about them. :) Every time I feel unsure, I go back to the horse’s mouth: here

Creating a calculator

2016-06-30 Thread Elizabeth Weiss
while True: print("Options:") print("Enter 'add' to add two numbers") print("Enter 'subtract' to subtract two numbers") print("Enter 'multiply' to multiply two numbers") print("Enter 'divide' to divide two numbers") print("Enter 'quit' to end the

[issue27423] Failed assertions when running test.test_os on Windows

2016-06-30 Thread Eryk Sun
Eryk Sun added the comment: The attached patch suppresses the failed-assertion message boxes when running test_os on a debug build. -- keywords: +patch nosy: +eryksun stage: needs patch -> patch review Added file: http://bugs.python.org/file43595/issue27423_1.patch

Re: Iteration, while loop, and for loop

2016-06-30 Thread jfong
Steven D'Aprano at 2016/6/30 7:59:40AM wrote: > py> mi = list('bananas') > py> for char in mi: > ... if char == 'a': > ... mi.extend(' yum') > ... print(char, end='') > ... else: # oh no, the feared for...else! > ... # needed to prevent the prompt overwriting the output >

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Xiang Zhang
Xiang Zhang added the comment: Since the bug is fixed, we can also close issue26348. -- ___ Python tracker ___

Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Ben Finney
Christian Gollwitzer writes: > The best place these days to publish software is on github. For what value of “best”? If one wants to avoid vendor lock-in, Github is not best: the workflow tools (other than Git itself) are completely closed and not available for implementation

Re: Lost in descriptor land

2016-06-30 Thread Ian Kelly
On Thu, Jun 30, 2016 at 7:06 PM, Ankush Thakur wrote: > Hello, > > There's something I don't understand about descriptors. On a StackOverflow > discussion > (http://stackoverflow.com/questions/12846116/python-descriptor-vs-property) > one of the answers provides the

[issue27425] Tests fail because of git's newline preferences on Windows

2016-06-30 Thread Emanuel Barry
Emanuel Barry added the comment: I agree, but I wouldn't expect my line ending preferences to make tests fail. I think that with the move to GitHub already underway, it's not unreasonable to (at least consider to) add a .gitattributes file. Added Brett to nosy since he's responsible for PEP

Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Steven D'Aprano
On Thu, 30 Jun 2016 11:09 pm, Christian Gollwitzer wrote: > The best place these days to publish software is on github. http://nedbatchelder.com/blog/201405/github_monoculture.html -- Steven “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got

[issue27417] Call CoInitializeEx on startup

2016-06-30 Thread Mark Hammond
Mark Hammond added the comment: > > This may well break things like pythonwin until they also grow support > > for the new param > I expect that, which is why I'm only proposing it for 3.6 onwards. While > adding support for a new major version of Python should be fairly cheap, > it isn't

Lost in descriptor land

2016-06-30 Thread Ankush Thakur
Hello, There's something I don't understand about descriptors. On a StackOverflow discussion (http://stackoverflow.com/questions/12846116/python-descriptor-vs-property) one of the answers provides the following descriptors example: class Celsius( object ): def __init__( self, value=0.0 ):

[issue27425] Tests fail because of git's newline preferences on Windows

2016-06-30 Thread Martin Panter
Martin Panter added the comment: If it were me, I might try to use a version of Git that doesn’t mess with the files. But if this becomes a common problem (esp with the move from Mercurial to Git), maybe we can add a “.gitattributes” file . We aleady

Find a file

2016-06-30 Thread tdsperth
Hi All I have a web app that allows me to choose a file - the file name is returned but I need to find the path to the file so I can add it as an attachment to a email. The files I am returning could be in different folders/directories. Thanks for any help. Cheers Colin --

[issue26665] pip is not bootstrapped by default on 2.7

2016-06-30 Thread Martin Panter
Martin Panter added the comment: Revision 4fc0154ec84a links here, but actually seems to be discussed in Issue 26348 and Issue 26664 instead. -- nosy: +martin.panter ___ Python tracker

[issue27429] xml.sax.saxutils.escape doesn't escape multiple characters safely

2016-06-30 Thread tylerjohnhughes
New submission from tylerjohnhughes: The escape function appears to go through the list in multiple passes, replacing characters as it encounters them on each pass, rather than traversing the source string and replacing matches in the entities dict. This results in invalid escape strings if a

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Maitland Montmorency
On Thursday, June 30, 2016 at 3:35:42 PM UTC-7, Chris Angelico wrote: > On Fri, Jul 1, 2016 at 8:27 AM, Lawrence D’Oliveiro > wrote: > > On Friday, July 1, 2016 at 7:22:43 AM UTC+12, Maitland Montmorency wrote: > >> I'd like to use Python to do some simple OSX GUI

Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Random832
On Thu, Jun 30, 2016, at 19:06, Lawrence D’Oliveiro wrote: > On Friday, July 1, 2016 at 1:09:31 AM UTC+12, Christian Gollwitzer wrote: > > Github makes that extremely easy, just create an account, create a repo, > > "git pull" and start working. Your incremental changes will be updated > > with

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Lawrence D’Oliveiro
On Friday, July 1, 2016 at 10:35:42 AM UTC+12, Chris Angelico wrote: > > On Fri, Jul 1, 2016 at 8:27 AM, Lawrence D’Oliveiro wrote: >> >> GUIs, by their nature, are not designed to be automated. > > Doesn't mean they can't be! It’s more trouble than it’s worth. Different (even minor) versions of

Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Chris Angelico
On Fri, Jul 1, 2016 at 9:06 AM, Lawrence D’Oliveiro wrote: > On Friday, July 1, 2016 at 1:09:31 AM UTC+12, Christian Gollwitzer wrote: >> Github makes that extremely easy, just create an account, create a repo, >> "git pull" and start working. Your incremental changes will

Re: Were is a great place to Share your finished projects?

2016-06-30 Thread Lawrence D’Oliveiro
On Friday, July 1, 2016 at 1:09:31 AM UTC+12, Christian Gollwitzer wrote: > Github makes that extremely easy, just create an account, create a repo, > "git pull" and start working. Your incremental changes will be updated > with each "git push". I start with “git init” and never pull, only

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Chris Angelico
On Fri, Jul 1, 2016 at 8:27 AM, Lawrence D’Oliveiro wrote: > On Friday, July 1, 2016 at 7:22:43 AM UTC+12, Maitland Montmorency wrote: >> I'd like to use Python to do some simple OSX GUI manipulations such as >> automatically arranging windows, periodically refreshing

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2016-06-30 Thread Brett Cannon
New submission from Brett Cannon: Currently the docs claim it inherits from importlib.abc.Finder. -- assignee: docs@python components: Documentation messages: 269633 nosy: brett.cannon, docs@python priority: normal severity: normal status: open title: Document WindowsRegistryFinder

[issue27427] Math tests

2016-06-30 Thread Francisco Couzo
New submission from Francisco Couzo: I added some tests for the math module. -- components: Tests files: test_math.patch keywords: patch messages: 269632 nosy: franciscouzo priority: normal severity: normal status: open title: Math tests versions: Python 3.6 Added file:

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Lawrence D’Oliveiro
On Friday, July 1, 2016 at 7:22:43 AM UTC+12, Maitland Montmorency wrote: > I'd like to use Python to do some simple OSX GUI manipulations such as > automatically arranging windows, periodically refreshing applications > across multiple desktops, etc.. > > I have tried to learn Applescript and

[issue24379] Add operator.subscript as a convenience for creating slices

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue25830] _TypeAlias: Discrepancy between docstring and behavior

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread hasan . diwan
>On 6/30/2016 3:22 PM, you wrote: >> I'd like to use Python to do some simple OSX GUI manipulations such >> as automatically arranging windows, periodically refreshing >> applications across multiple desktops, etc.. Is this possible and if >> so, is there a preferred package? Please see this

[issue26075] typing.Union unifies types too broadly

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue26477] typing forward references and module attributes

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue26696] Document collections.abc.ByteString

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is preliminary patch. It contains leaks, don't worry. -- keywords: +patch Added file: http://bugs.python.org/file43592/tkinter_trace_tcl.patch ___ Python tracker

[issue26141] typing module documentation incomplete

2016-06-30 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I would like to do this (update the typing docs) at some point before 3.6 beta1. There probably will be some updates to the PEP (it is still provisional), and maybe to typing.py soon. -- nosy: +levkivskyi ___

[issue25958] Implicit ABCs have no means of "anti-registration"

2016-06-30 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

[issue23951] Update devguide style to use a similar theme as Docs

2016-06-30 Thread Zachary Ware
Zachary Ware added the comment: Another +1 here, looks good and has some nice improvements. The patch needs some cleanup, though: We don't need the extensions [1], the version switcher, or the susp-ignored file. The templates dir needs some cleanup; we don't need the download page at all,

Re: fastest way to read a text file in to a numpy array

2016-06-30 Thread Christian Gollwitzer
Am 30.06.16 um 17:49 schrieb Heli: Dear all, After a few tests, I think I will need to correct a bit my question. I will give an example here. I have file 1 with 250 lines: X1,Y1,Z1 X2,Y2,Z2 Then I have file 2 with 3M lines: X1,Y1,Z1,value11,value12, value13,

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Brett Cannon
Brett Cannon added the comment: I wish it was a two-click fix. It's actually a fix-in-3.5-then-test-then-update-Misc/NEWS-then-commit-then-merge-then-verify-again-then-commit-then-push-then-update-the-issue (IOW it's about 8 separate steps). -- ___

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Chris Angelico
On Fri, Jul 1, 2016 at 6:30 AM, Terry Reedy wrote: >> Seeking FMs to RT, so to speak. > > > Derivative of the old expression, "RTFM". Normally it means "Go read the manual that you ought to have already read", but AIUI, the OP is saying that he'd be happy to be pointed to

Re: Controlling the Mac OSX GUI via Python?

2016-06-30 Thread Terry Reedy
On 6/30/2016 3:22 PM, maitlandmontmore...@gmail.com wrote: I'd like to use Python to do some simple OSX GUI manipulations such as automatically arranging windows, periodically refreshing applications across multiple desktops, etc.. Is this possible and if so, is there a preferred package?

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread erdban fed
erdban fed added the comment: > Activation doesn't "load" the Python interpreter in the venv; all it does is > tweak shell variables to put the interpreter in venv early on PATH. I'm aware. > You have to realize that ... I know it's often a thankless task and that mistakes can and do happen.

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant adding API similar to sys.settrace() for specifying a function that will be called before executing every Tcl command. -- ___ Python tracker

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Tin Tvrtković
Tin Tvrtković added the comment: Thanks for dealing with this, Brett, your efforts are appreciated. :) On Thu, Jun 30, 2016 at 9:24 PM Brett Cannon wrote: > > Brett Cannon added the comment: > > Activation doesn't "load" the Python interpreter in the venv; all it does

[issue27421] PPC64LE Fedora 2.7: certificate for hg.python.org has unexpected fingerprint

2016-06-30 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___

[issue27421] PPC64LE Fedora 2.7: certificate for hg.python.org has unexpected fingerprint

2016-06-30 Thread STINNER Victor
STINNER Victor added the comment: David Edelsohn: "I have updated the fingerprint in .hgrc." Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. -- ___ Python tracker ___ ___

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-06-30 Thread Paul Moore
Paul Moore added the comment: Thanks for the explanation. Based on what's been said, I'd have no objections to this, on a "you don't pay for what you don't use" basis - i.e., users who don't enable AMSI should not pay any cost for its existence. I'd be extremely happy if Python was viewed as

[issue26665] pip is not bootstrapped by default on 2.7

2016-06-30 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg269614 ___ Python tracker ___

[issue27417] Call CoInitializeEx on startup

2016-06-30 Thread Paul Moore
Paul Moore added the comment: I presume by "we" you mean "the core"? There's nothing to stop 3rd party code using COM APIs. The only downside to using COM in (user) Python code at the moment is the need for a dependency on pywin32 (robust, mature, but a big dependency) or comtypes

Controlling the Mac OSX GUI via Python?

2016-06-30 Thread maitlandmontmorency
I'd like to use Python to do some simple OSX GUI manipulations such as automatically arranging windows, periodically refreshing applications across multiple desktops, etc.. Is this possible and if so, is there a preferred package? I know that Qt, Tkinter, and such are available for heavy-duty

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Brett Cannon
Brett Cannon added the comment: Activation doesn't "load" the Python interpreter in the venv; all it does is tweak shell variables to put the interpreter in venv early on PATH. I personally never use the activate.* scripts and simply directly execute the Python interpreter, e.g.

[issue27415] BaseEventLoop.create_server does not accept port=None

2016-06-30 Thread Marcus Cobden
Marcus Cobden added the comment: I should add that port=0 is an acceptable workaround -- type: -> behavior ___ Python tracker ___

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread erdban fed
erdban fed added the comment: > Two, this is not a release blocker. Python itself continues to function > properly with this bug and it doesn't prevent you from working with a venv > under fish (but I recognize it's an annoyance). If you can't load the venv, I think that pretty definitely

[issue16142] ArgumentParser inconsistent with parse_known_args

2016-06-30 Thread Omar Sandoval
Changes by Omar Sandoval : -- nosy: +Omar Sandoval ___ Python tracker ___ ___

[issue22724] byte-compile fails for cross-builds

2016-06-30 Thread Xavier de Gaye
Xavier de Gaye added the comment: > On Android cross-builds, it should be possible to reproduce the failure when > the build system and the host system have the same PLATFORM_TRIPLET I confirm that this is the case. The following backtrace is produced when cross-building and installing

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Brett Cannon
Brett Cannon added the comment: Two things. One, sorry for not getting to this before 3.5.1 got out. It simply slipped off my radar thanks to various other issues that I've been dealing with. It's obviously now fixed. Two, this is not a release blocker. Python itself continues to function

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d7bde14d7a4 by Brett Cannon in branch 'default': Merge from 3.5 for issue #26664 https://hg.python.org/cpython/rev/8d7bde14d7a4 -- nosy: +python-dev ___ Python tracker

[issue26665] pip is not bootstrapped by default on 2.7

2016-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fc0154ec84a by Brett Cannon in branch '3.5': Issue #26665: Remove mis-use of ``$`` in activate.fish. https://hg.python.org/cpython/rev/4fc0154ec84a -- nosy: +python-dev ___ Python tracker

[issue26664] Misuse of $ in activate.fish of venv

2016-06-30 Thread Brett Cannon
Changes by Brett Cannon : -- title: find a bug in activate.fish of venv of cpython3.6 -> Misuse of $ in activate.fish of venv ___ Python tracker

[issue27422] Deadlock when mixing threading and multiprocessing

2016-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: It is in-fact problem prone (and not just in Python). The rule is "thread after you fork, not before". Otherwise, the locks used by the thread executor will get duplicated across processes. If one of those processes dies while it has the lock, all of

Re: Can math.atan2 return INF?

2016-06-30 Thread Steven D'Aprano
On Fri, 1 Jul 2016 01:28 am, Rustom Mody wrote: > On Thursday, June 30, 2016 at 1:55:18 PM UTC+5:30, Steven D'Aprano wrote: > >> you state that Turing "believes in souls" and that he "wishes to >> put the soul into the machine" -- what do his religious beliefs have to >> do with his work? > >

[issue26664] find a bug in activate.fish of venv of cpython3.6

2016-06-30 Thread Xiang Zhang
Xiang Zhang added the comment: I get the same feeling. Add Larry. -- nosy: +larry ___ Python tracker ___ ___

[issue23644] g++ module compile fails with ‘_Atomic’ does not name a type

2016-06-30 Thread Martin Ritter
Martin Ritter added the comment: For me compiling 3.5.2 on GCC 5.2.0 fails when I supply --with-cxx-main=g++ with the same "error: ‘_Atomic’ does not name a type" messages. I'm guessing that --with-cxx-main is probably outdated(?) but at least it worked with 3.5.0 -- nosy: +Martin

[issue26664] find a bug in activate.fish of venv of cpython3.6

2016-06-30 Thread erdban fed
erdban fed added the comment: This bug shipped in 3.5.2. It should've been a blocker. -- nosy: +erdban fed ___ Python tracker ___

[issue26226] Test failures with non-ascii character in hostname on Windows

2016-06-30 Thread Emanuel Barry
Emanuel Barry added the comment: So I checked to make sure everything re-compiled properly and re-ran tests. Now, only a very few fail, and I've opened separate issues for each of them. test_os: #27423 test_logging: #27424 test_random: #27425 test_sax: #27425 test_strptime: #27426 I'm keeping

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-06-30 Thread Steve Dower
Steve Dower added the comment: And in case it's not clear, I *totally* recognize that AMSI is not for everyone. If you're running in a developer environment, your security is almost certainly so lax that it's irrelevant. However, once you start getting serious about what's deployed on your

[issue27426] Encoding mismatch causes some tests to fail on Windows

2016-06-30 Thread Emanuel Barry
New submission from Emanuel Barry: Specifically, test_strptime fails: ss.F.E... == ERROR: test_timezone (__main__.StrptimeTests)

Re: Operator Precedence/Boolean Logic

2016-06-30 Thread Steven D'Aprano
On Fri, 1 Jul 2016 02:01 am, Rustom Mody wrote: > On Thursday, June 30, 2016 at 5:10:41 AM UTC+5:30, Steven D'Aprano wrote: >> On Wed, 29 Jun 2016 11:30 pm, Rustom Mody wrote: >> >> > The other answers -- graphs and automata -- are questionable and/or >> > wrong >> > >> > You may wish to think

Re: Can math.atan2 return INF?

2016-06-30 Thread Steven D'Aprano
On Thu, 30 Jun 2016 08:11 pm, Andreas Rc3b6hler wrote: > > > On 30.06.2016 10:24, Steven D'Aprano wrote: >> On Thursday 30 June 2016 12:13, Rustom Mody wrote: >> >> >> The irrational and emotional psychological forces that inspire >> mathematicians can make interesting reading, but they have no

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-06-30 Thread Steve Dower
Steve Dower added the comment: > what's to stop the attacker from distributing their own interpreter that just > doesn't use AMSI? AppLocker https://technet.microsoft.com/en-us/library/ee619725.aspx (In short, restrict which executables can be run on a particular system by

[issue26894] Readline not aborting line edition on sigint

2016-06-30 Thread Memeplex
Memeplex added the comment: Martin: I can't reproduce the issue by just importing matplotlib with the TkAgg backend into a vanilla python repl. I will try to isolate the problem when I have some free time. -- status: pending -> open ___ Python

[issue27422] Deadlock when mixing threading and multiprocessing

2016-06-30 Thread R. David Murray
R. David Murray added the comment: Mixing multiprocessing and threading is problem prone in general. Hopefully one of the multiprocessing experts can say if this is a known problem or not... -- nosy: +devin, r.david.murray, sbt ___ Python tracker

[issue27424] Failures in test.test_logging

2016-06-30 Thread Emanuel Barry
New submission from Emanuel Barry: Ran the test as 'python -W error -m test.test_logging' on latest 3.6 version. No idea what causes this; full traceback attached. Not sure if it's relevant, but I'm running Windows 7. -- components: Library (Lib), Tests files: test_logging

[issue27421] PPC64LE Fedora 2.7: certificate for hg.python.org has unexpected fingerprint

2016-06-30 Thread David Edelsohn
David Edelsohn added the comment: I have updated the fingerprint in .hgrc. -- ___ Python tracker ___ ___

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-06-30 Thread Zachary Ware
Zachary Ware added the comment: > But in that case, why hook into exec? The malware author can execute > arbitrary Python so doesn't *need* exec. As I understand it, the malware is distributed in encrypted form (probably encrypted differently each time it propagates) so as to be given a

[issue27423] Failed assertions when running test.test_os on Windows

2016-06-30 Thread Emanuel Barry
New submission from Emanuel Barry: Running test_os yields a ton (something like 20) failed assertion warnings. The attached screenshot is one of them (comes up a few times), but there are others. Choosing to Ignore the error makes Python think that the test was merely skipped without any

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-06-30 Thread Steve Dower
Steve Dower added the comment: > So the malicious payload is the whole python command, not just file.bin Yeah, sorry that wasn't clear. Many vulnerabilities allow attackers to schedule process launches (e.g. via cron/Task Scheduler/etc.) without actually being able to add any files to the

[issue27417] Call CoInitializeEx on startup

2016-06-30 Thread Steve Dower
Steve Dower added the comment: > What about instead of unconditionally calling CoInitializeEx in all cases, > add a Py_EnsureCOM(flags) C API function? This is essentially what CoInitializeEx does anyway - if the flags don't match the existing ones, it returns an error. So all we gain is a

[issue26226] Various test suite failures on Windows when computer name contains a non-ascii character

2016-06-30 Thread ppperry
Changes by ppperry : -- title: Various test suite failures on Windows -> Various test suite failures on Windows when computer name contains a non-ascii character ___ Python tracker

[issue27417] Call CoInitializeEx on startup

2016-06-30 Thread Paul Moore
Paul Moore added the comment: > This doesn't work when COM objects have to be kept around. In the AMSI case... OK, so that's a limitation. Is there any *other* use case for keeping COM objects (that are created by the core) around? If not, then like it or not, this is a problem for AMSI, not

[issue27417] Call CoInitializeEx on startup

2016-06-30 Thread Zachary Ware
Zachary Ware added the comment: What about instead of unconditionally calling CoInitializeEx in all cases, add a Py_EnsureCOM(flags) C API function? The flags param would be any flags that the caller must have, would default to 0, and would be combined with sys.coinit_flags before calling

[issue27422] Deadlock when mixing threading and multiprocessing

2016-06-30 Thread Martin Ritter
Martin Ritter added the comment: I attached a gdb backtrace of one of the child processes -- Added file: http://bugs.python.org/file43589/test_threadfork_backtrace.txt ___ Python tracker

[issue27422] Deadlock when mixing threading and multiprocessing

2016-06-30 Thread Martin Ritter
New submission from Martin Ritter: When creating a multiprocessing.Process in a threaded environment I get deadlocks waiting, I guess waiting for the lock to flush the output. I attached a minimal example of the problem which hangs for me starting with 4 threads. -- files:

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-06-30 Thread Paul Moore
Paul Moore added the comment: >> I am puzzled as to why "use safe_exec rather than exec" isn't an option > Because you're going to have a hard time convincing malware authors to use it. :-) So the malicious payload is the whole python command, not just file.bin. OK, fair enough. But in that

Re: Operator Precedence/Boolean Logic

2016-06-30 Thread Rustom Mody
On Thursday, June 30, 2016 at 5:10:41 AM UTC+5:30, Steven D'Aprano wrote: > On Wed, 29 Jun 2016 11:30 pm, Rustom Mody wrote: > > > The other answers -- graphs and automata -- are questionable and/or wrong > > > > You may wish to think about them again? > > You may wish to justify your

[issue27417] Call CoInitializeEx on startup

2016-06-30 Thread Steve Dower
Steve Dower added the comment: Mark: > CoInitialize will load a number of COM DLLs into the process, which isn't > free and will have some memory and performance costs for programs that don't > use COM. I see around 10 such DLLs loaded. Very good point. Most of those should already be loaded

[issue27421] PPC64LE Fedora 2.7: certificate for hg.python.org has unexpected fingerprint

2016-06-30 Thread R. David Murray
R. David Murray added the comment: I'll post a message to the buildbots list. -- ___ Python tracker ___ ___

[issue27421] PPC64LE Fedora 2.7: certificate for hg.python.org has unexpected fingerprint

2016-06-30 Thread R. David Murray
R. David Murray added the comment: Oh, wait, this is buildbot client side...so the buildbot slave itself needs to be updated? -- ___ Python tracker ___

  1   2   >