Re: super or not super?

2019-07-15 Thread Ian Kelly
On Sun, Jul 14, 2019 at 7:14 PM Chris Angelico wrote: > > On Mon, Jul 15, 2019 at 10:51 AM Paulo da Silva > wrote: > > > > Às 15:30 de 12/07/19, Thomas Jollans escreveu: > > > On 12/07/2019 16.12, Paulo da Silva wrote: > > >> Hi all! > > >> > > >> Is there any difference between using the base cl

Re: PyPi twine check does not like my README.rst files anymore

2019-07-15 Thread dieter
Barry Scott writes: > I am update some PyPI projects and found that twine was refusing the upload. > ... > Failed > The project's long_description has invalid markup which will not be rendered > on PyPI. The following syntax errors were detected: > line 1: Severe: Unexpected section title or tran

Re: Class initialization with multiple inheritance

2019-07-15 Thread DL Neil
On 16/07/19 12:13 PM, Joseph L. Casale wrote: I am trying to find explicit documentation on the initialization logic for a Base class when multiple exist. For the example in the documentation at https://docs.python.org/3/tutorial/classes.html#multiple-inheritance, if Base1 and Base2 both themselv

Re: Embedding classes' names

2019-07-15 Thread Chris Angelico
On Tue, Jul 16, 2019 at 10:17 AM DL Neil wrote: > > When used, do you embed a class's name within its own code, as a literal? > > > In the thread "super or not super?", the OP asked: > <<< > C1.__init__(self) or > super().__init__() > >>> > > One of the answers recommended super()

Class initialization with multiple inheritance

2019-07-15 Thread Joseph L. Casale
I am trying to find explicit documentation on the initialization logic for a Base class when multiple exist. For the example in the documentation at https://docs.python.org/3/tutorial/classes.html#multiple-inheritance, if Base1 and Base2 both themselves inherited from the same base class, only Base

Embedding classes' names

2019-07-15 Thread DL Neil
When used, do you embed a class's name within its own code, as a literal? In the thread "super or not super?", the OP asked: <<< C1.__init__(self) or super().__init__() >>> One of the answers recommended super() [agreed!] in order to avoid embedding "C1" into the code. The expl

Re: Books for Python 3.7

2019-07-15 Thread Malcolm Greene
Python Cookbook; highly recommended. Malcolm -- https://mail.python.org/mailman/listinfo/python-list

Re: Books for Python 3.7

2019-07-15 Thread DL Neil
Wlfraed probably knows a thing-or-two about kicking-over ants' nests/wasps' nests... Talking about books is one thing. Judging them by asyncio coverage is quite another - and rather unfair. The use and methods of asyncio have changed frequently and markedly since '3.0'. Books take time to prod

Re: Books for Python 3.7

2019-07-15 Thread Andrew Z
Gys - hats off. Basically what Dennis is saying- you dont need a book "about python ". Tutorials and general search online will get you further and faster than any book. Blah-blah about myself: my bookshelf has 2 technical books, just because i got them to prepare for certifications. For my tradi

Re: Books for Python 3.7

2019-07-15 Thread Rich Shepard
On Mon, 15 Jul 2019, Dennis Lee Bieber wrote: If one lacks both A and B, one ends up with various editions of "Learning Python", "Programming Python", and "Fluent Python" (among many others). I have found those books quite helpful over the years. I recommend starting with the latest ed

Re: Books for Python 3.7

2019-07-15 Thread Gys
On 7/12/19 4:36 PM, mok...@gmail.com wrote: Can anyone help me. New to Python. Installed version 3.7 I purchased the "Python for Dummies" book But this book was written for an older version of Python. All the examples and samples don't work with version 3.7 Can anyone direct me to which is the l

PyPi twine check does not like my README.rst files anymore

2019-07-15 Thread Barry Scott
I am update some PyPI projects and found that twine was refusing the upload. I have been googling and reading the PyPI guides but did not find anthing that helps me understand what is required. What am I doing wrong? Using the twine check command I get reports about the reasons. All the code on

Re: super or not super?

2019-07-15 Thread Barry Scott
> On 12 Jul 2019, at 15:12, Paulo da Silva > wrote: > > Hi all! > > Is there any difference between using the base class name or super to > call __init__ from base class? > > class C1: > def __init__(self): > ... > > class C2(C1): > def __init__(self): >

Re: How to sort the files based on the date?

2019-07-15 Thread Peter Pearson
On Mon, 15 Jul 2019 09:20:51 +0200, Peter Otten <__pete...@web.de> wrote: > Madhavan Bomidi wrote: > [snip] >> >> 3RIMG_01APR2018_0514_L2G_AOD.h5 >> 3RIMG_01APR2018_0544_L2G_AOD.h5 >> 3RIMG_01APR2018_0644_L2G_AOD.h5 >> 3RIMG_01APR2018_0714_L2G_AOD.h5 >> 3RIMG_01APR2018_0744_L2G_AOD.h5 [snip] >> >

Re: Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks

2019-07-15 Thread copeterson07
On Monday, July 15, 2019 at 12:44:20 AM UTC-6, kumar...@gmail.com wrote: > Want to learn python as I have donne manual testing for 12 years. Please help > to share opinion how to start. Thanks I don't know your skill level with programming, but I have found this https://www.learnpython.org/ webs

Re: Python string with character exchange

2019-07-15 Thread Matt Zand
Thanks Reto. I got it now. Matt On Sun, Jul 14, 2019 at 2:26 PM Reto wrote: > On Sun, Jul 14, 2019 at 12:20:56PM -0400, Matt Zand wrote: > > Given a string, return a new string where the first and last chars have > > been exchanged. > > This sounds awfully like a homework question. > What did yo

Re: How to sort the files based on the date?

2019-07-15 Thread Richard Damon
On 7/15/19 2:59 AM, Madhavan Bomidi wrote: > I am using the following command line to sort the files: > > import glob > a = sorted(glob.glob('3RIMG_*.h5') > > Following is the result: > > 3RIMG_01APR2018_0514_L2G_AOD.h5 > 3RIMG_01APR2018_0544_L2G_AOD.h5 > 3RIMG_01APR2018_0644_L2G_AOD.h5 > 3RIMG_01A

Re: How to sort the files based on the date?

2019-07-15 Thread Madhavan Bomidi
Thanks Peter. The following lines worked: import glob import datetime def get_datetime (filename): parts = filename.split ("_") return datetime.datetime.strptime (parts[1] + parts[2], "%d%b%Y%H%M") filenames = sorted(glob.glob('3RIMG _ *. h5'), key = get_datetime) -- https://mail.

Re: Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks

2019-07-15 Thread Aldwin Pollefeyt
Try to find small projects to solve with Python instead of using other applications. Hereby my experience: * solve or just represent a riddle or mathematical question. - Youtube channels called standupmaths and numberphile has some interesting videos about algorithms. Then it's fun trying to bui

Re: How to sort the files based on the date?

2019-07-15 Thread Peter Otten
Madhavan Bomidi wrote: > I am using the following command line to sort the files: > > import glob > a = sorted(glob.glob('3RIMG_*.h5') > > Following is the result: > > 3RIMG_01APR2018_0514_L2G_AOD.h5 > 3RIMG_01APR2018_0544_L2G_AOD.h5 > 3RIMG_01APR2018_0644_L2G_AOD.h5 > 3RIMG_01APR2018_0714_L2G_

How to sort the files based on the date?

2019-07-15 Thread Madhavan Bomidi
I am using the following command line to sort the files: import glob a = sorted(glob.glob('3RIMG_*.h5') Following is the result: 3RIMG_01APR2018_0514_L2G_AOD.h5 3RIMG_01APR2018_0544_L2G_AOD.h5 3RIMG_01APR2018_0644_L2G_AOD.h5 3RIMG_01APR2018_0714_L2G_AOD.h5 3RIMG_01APR2018_0744_L2G_AOD.h5 3RIMG_0

Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks

2019-07-15 Thread kumarscheen
Want to learn python as I have donne manual testing for 12 years. Please help to share opinion how to start. Thanks -- https://mail.python.org/mailman/listinfo/python-list