Re: unittest.Testsuite and execution order

2018-04-19 Thread Chris Angelico
On Fri, Apr 20, 2018 at 3:01 PM, Francesco Russo wrote: > On 18/04/18 20:26, Chris Angelico wrote: >> This is a bad idea. Each function that starts test_ should be >> completely independent. You should be able to run any one of them on >> its own (say, if you're trying to figure out why your lates

Re: unittest.Testsuite and execution order

2018-04-19 Thread Francesco Russo
On 18/04/18 20:26, Chris Angelico wrote: > On Thu, Apr 19, 2018 at 2:51 AM, Francesco Russo > wrote: >> My use case: my SUT is split into modules. Besides writing unit tests for >> each module, I want to write an integration test, and I also need to >> perform some actions between two calls to th

Re: Thanks

2018-04-19 Thread Ben Finney
"viplued" writes: > Thank you very much for python, We're glad that Python is useful to people! Can you say a little about how Python has helped you? -- \ Eccles: “I'll get [the job] too, you'll see. I'm wearing a | `\Cambridge tie.” Greenslade: “What were you doing there?

Thanks

2018-04-19 Thread viplued
Thank you very much for python, -- https://mail.python.org/mailman/listinfo/python-list

Pip 10.0.1 has been released

2018-04-19 Thread Paul Moore
On behalf of the PyPA, I am pleased to announce that pip 10.0.1 has just been released. This release fixes a number of issues with the initial release of pip 10.0, notably: * A problem with running the "pip.exe" wrapper script on Windows from a directory with a space in the name. * A problem with

Re: Open (txt) editor and get its content

2018-04-19 Thread Random832
On Thu, Apr 19, 2018, at 03:39, zljubi...@gmail.com wrote: > Is there any other option for getting interactive multi line input from user. If you don't need a full-featured text editor, you could build a simple input popup with the Textbox widget in tkinter. -- https://mail.python.org/mailman/li

Re: New PyPI launched, legacy PyPI shutting down April 30

2018-04-19 Thread Jon Ribbens
On 2018-04-18, Tony van der Hoff wrote: > On 18/04/18 13:15, Zbigniew Jędrzejewski-Szmek wrote: >> On Mon, Apr 16, 2018 at 01:21:50PM -0400, Laura Hampton wrote: >>> New PyPI launched, legacy PyPI shutting down April 30[1] >>> >>> Starting today, the canonical Python Package Index is at >>> http

Re: Open (txt) editor and get its content

2018-04-19 Thread Rhodri James
On 19/04/18 08:39, zljubi...@gmail.com wrote: Hi, I have a script that should accept sql query as a parameter and change it in a way. For now I have a file in which I have put sql query and than python script opens it and do everything else. Is it possible to run python script that will open

Re: Open (txt) editor and get its content

2018-04-19 Thread Steven D'Aprano
On Thu, 19 Apr 2018 00:39:40 -0700, zljubisic wrote: > Is it possible to run python script that will open editor and let me > paste sql query in the editor, and than after closing editor, get > editor's content in python script? Try this recipe: it will work for many, but not all editors. https:

Re: The basics of the logging module mystify me

2018-04-19 Thread Thomas Jollans
On 2018-04-19 03:00, Skip Montanaro wrote: > This session is from Python 3.6.5 on Linux: > import logging log = logging.getLogger() log.level > 30 logging.WARN > 30 log.warn("Awk! Goodbye...") > Awk! Goodbye... log.level = logging.INFO log.info("Awk! Goodbye...")

Re: The basics of the logging module mystify me

2018-04-19 Thread Paul Moore
On 19 April 2018 at 02:00, Skip Montanaro wrote: > I really don't like the logging module, but it looks like I'm stuck > with it. Why aren't simple/obvious things either simple or obvious? If you can use non-stdlib things there are alternatives. I've heard good things about logbok (https://logboo

Open (txt) editor and get its content

2018-04-19 Thread zljubisic
Hi, I have a script that should accept sql query as a parameter and change it in a way. For now I have a file in which I have put sql query and than python script opens it and do everything else. Is it possible to run python script that will open editor and let me paste sql query in the editor

Re: python 3 creating hard links on ntfs

2018-04-19 Thread zljubisic
Thanks guys. -- https://mail.python.org/mailman/listinfo/python-list