[ANN] Austin -- Python frame stack sampler for CPython v1.0.1 is now available

2020-06-21 Thread Gabriele
I am delighted to announce the release 1.0.1 of Austin. If you haven't
heard of Austin before, it is a frame stack sampler for CPython. It can
be used to obtain statistical profiling data out of a running Python
application without a single line of instrumentation. This means that you
can start profiling a Python application straightaway, even while it's
running on a production environment, with minimal impact on performance.

The simplest way of using Austin is by piping its output to FlameGraph
for a quick and detailed representation of the collected samples. The
latest release introduces a memory profiling mode which allows you to
profile memory usage.

Austin is a pure C application that has no other dependencies other than
the C standard library. Its source code is hosted on GitHub at

https://github.com/P403n1x87/austin

The README contains installation and usage details, as well as some
examples of Austin in action. Details on how to contribute to Austin's
development can be found at the bottom of the page.

Austin v1.0.1 is also the first version of Austin to be available from 
Homebrew
for easy installation on MacOS. These are the other places where Austin 
can be
downloaded

Linux:
- Snap Store
- Debian repositories

Windows:
- Chocolatey

Furthermore, you can stay up-to-date with the project's development by
following Austin on Twitter (https://twitter.com/AustinSampler).

All the best,
Gabriele


Bugfixes


- Fixed Python 3.8 support on MacOS.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how to let argument be optional falling back to certain integer

2020-06-21 Thread Boris Dorestand
Chris Angelico  writes:

[...]

>> Anyway, I kind of replied just to thank you all for the great group this
>> is.  ChrisA, I don't know how can keep up with this newsgroup, but you
>> do.  This is crazy.  Years go by and when I come back, there you are
>> still.  You're priceless.
>
> You're most welcome! I hang out here a lot because the people here are
> awesome. I've learned a lot, helped a lot of people, the language has
> shifted, it's been great.
>
> I like to think of myself as an empowerer - I help YOU to be able to
> do amazing things. It's you who are the awesome creative person who's
> making code do magic, and I'm just removing barriers from your way :)

I appreciate that a lot!  But of course if that's your view of things,
then you are the great one here.  No doubt about it.  Have a great day!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to test?

2020-06-21 Thread Manfred Lotz
On Wed, 17 Jun 2020 17:34:55 +0100
Tony Flury  wrote:

> On 24/04/2020 19:40, Manfred Lotz wrote:
> > I have a command like application which checks a directory tree for
> > certain things. If there are errors then messages will be written to
> > stdout.
> >
> > How to test this in the best way?
> >
> > One idea was for the error situations to write messages to files and
> > then later when running the tests to compare the error messages
> > output to the previously saved output.
> >
> > Is there anything better?
> >  
> 
> In a recent application that I wrote (where output to the console was 
> important), I tested it using the 'unittest' framework, and by
> patching sys.stderr to be a StringIO - that way my test case could
> inspect what was being output.
> 
> with patch('sys.stderr', StringIO()) as
> stderr:application.do_stuff()self.assertTrue(stderr.getvalue(),
> 'Woops - that didn\'t work')
> 
> I am not sure of the structure of your application, and whether you
> have a callable API that you can invoke.
> 

Thanks a lot. That's really great.

In the meantime I switched to pytest because things are so much more
convenient to setup. So, also thanks to the others who gave the links to
how this can be done with pytest.

-- 
Manfred

-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: regarding issues faced while running python in the command prompt

2020-06-21 Thread Sundram Bajaj
-- Forwarded message -
From: 
Date: Sun, 21 Jun 2020, 14:06
Subject: regarding issues faced while running python in the command prompt
To: 


Hello!  I see you want to post a message to the Python List.  We would
be happy to help, but you must subscribe first:

  https://mail.python.org/mailman/listinfo/python-list

After you have subscribed, please send your message again.

Alternatively, this list is mirrored both ways with the
comp.lang.python newsgroup (news:comp.lang.python).

Some people find it easier to follow this and other lists via gmane
(http://news.gmane.org/gmane.comp.python.general), a service which
offers a newsgroup interface to many online mailing lists.

*NB all posts to the mailing list are publicly archived at:*

  https://mail.python.org/pipermail/python-list





-- Forwarded message --
From: Sundram Bajaj 
To: "[email protected]" 
Cc:
Bcc:
Date: Sun, 21 Jun 2020 14:06:09 +0530
Subject: regarding issues faced while running python in the command prompt

Respected sir/ madam

Every time I try to run program written in Atom text editor on command
prompt in my windows 10 a message pops up that file is not recognised as
internal file. Please go through the screenshot of the same attached
herewith and help me asap. I also tried uninstalling python and reinstall
it but am also unable to do it. Every time I try reinstalling through the
setup the inly option that I get is of repairing the software. I am really
facing a lot of issues and request you to please resolve my problems ASAP.

Thank you



Sent from Mail  for Windows
10
-- 
https://mail.python.org/mailman/listinfo/python-list


Problem installing Python

2020-06-21 Thread Aisha Akintola
Good day,
I downloaded python(python3.8.3) on my system (windows 8) to enable me use
PyCharm. However, I realised the python wasn't well installed. I get
message "the program can't start because api-ms-win-crt-runtime-I1-1-0.dll
is missing from your computer. Try reinstalling the program to fix
this problem'.
I have reinstalled but got the same error message; what should I do?
Thank you
-- 
https://mail.python.org/mailman/listinfo/python-list


mdo_import_help python code

2020-06-21 Thread Merino Isbest
Hi, I'm a new user, also a python newbie,
hoping to learn here from the wisdom and
experience of other members.

Now, anyone is familiar with mdo_import_help ?
I'm trying to run some python code code but it
keeps failing because mdo_import_ help is missing.

Thanks, guys

Mirabelle la Terreur


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: regarding issues faced while running python in the command prompt

2020-06-21 Thread Souvik Dutta
You cannot attach any screenshots because the list strips them. You will
have to provide your errors and your tries as an inline text in the email
(copy and paste the error).

Souvik flutter dev

On Mon, Jun 22, 2020, 12:02 PM Sundram Bajaj 
wrote:

> -- Forwarded message -
> From: 
> Date: Sun, 21 Jun 2020, 14:06
> Subject: regarding issues faced while running python in the command prompt
> To: 
>
>
> Hello!  I see you want to post a message to the Python List.  We would
> be happy to help, but you must subscribe first:
>
>   https://mail.python.org/mailman/listinfo/python-list
>
> After you have subscribed, please send your message again.
>
> Alternatively, this list is mirrored both ways with the
> comp.lang.python newsgroup (news:comp.lang.python).
>
> Some people find it easier to follow this and other lists via gmane
> (http://news.gmane.org/gmane.comp.python.general), a service which
> offers a newsgroup interface to many online mailing lists.
>
> *NB all posts to the mailing list are publicly archived at:*
>
>   https://mail.python.org/pipermail/python-list
>
>
>
>
>
> -- Forwarded message --
> From: Sundram Bajaj 
> To: "[email protected]" 
> Cc:
> Bcc:
> Date: Sun, 21 Jun 2020 14:06:09 +0530
> Subject: regarding issues faced while running python in the command prompt
>
> Respected sir/ madam
>
> Every time I try to run program written in Atom text editor on command
> prompt in my windows 10 a message pops up that file is not recognised as
> internal file. Please go through the screenshot of the same attached
> herewith and help me asap. I also tried uninstalling python and reinstall
> it but am also unable to do it. Every time I try reinstalling through the
> setup the inly option that I get is of repairing the software. I am really
> facing a lot of issues and request you to please resolve my problems ASAP.
>
> Thank you
>
>
>
> Sent from Mail  for
> Windows
> 10
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list