Re: [Tutor] How to write a function which reads files

2018-08-08 Thread boB Stepp
On Wed, Aug 8, 2018 at 8:30 PM boB Stepp  wrote:
>
> On Tue, Aug 7, 2018 at 9:13 AM Rafael Knuth  wrote:

Curses!  Sorry, Chris!  This should be:

> > Chris Warrick wrote:
> > > Also, consider using snake_case instead of PascalCase for your
> > > function name, since the latter is typically used for classes, and
> > > perhaps call it read_file to better describe it?
> >
> > thanks, I wasn't aware of the naming conventions for functions and classes.
> > will bear that in mind!
>
> Have you had a look at PEP 8 yet?  It covers most of the Python
> stylistic conventions, particularly if you intend to contribute to
> Python and its standard libraries.  It may be found at:
> https://www.python.org/dev/peps/pep-0008/

-- 
boB
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] How to write a function which reads files

2018-08-08 Thread boB Stepp
On Tue, Aug 7, 2018 at 9:13 AM Rafael Knuth  wrote:

> Alan Gauld wrote:
> > Also, consider using snake_case instead of PascalCase for your
> > function name, since the latter is typically used for classes, and
> > perhaps call it read_file to better describe it?
>
> thanks, I wasn't aware of the naming conventions for functions and classes.
> will bear that in mind!

Have you had a look at PEP 8 yet?  It covers most of the Python
stylistic conventions, particularly if you intend to contribute to
Python and its standard libraries.  It may be found at:
https://www.python.org/dev/peps/pep-0008/



-- 
boB
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] python3 - °F/°C printing those degree signs

2018-08-08 Thread Steven D'Aprano
On Tue, Aug 07, 2018 at 08:43:53PM -0700, Evuraan wrote:
> >
> > You could try setting
> >
> > PYTHONIOENCODING="UTF-8"
> >
> > in your OS shell and see if that helps, but I suspect
> > there's a better way to deal with it...
> >
> 
> Thank you! That was it!

What system are you using that doesn't already have UTF-8 as the default 
encoding?


-- 
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] [Promotion] Book for Data Science Aspirants

2018-08-08 Thread Karthikeyan A K via Tutor
Hello Python people,

Two years ago, my profession changed, I had to do data science work. When I 
started it, I (though I knew Python) found it to be extremely difficult and I 
had these doubts: What to learn? Where to learn? Am I doing things right? Where 
can I find a person who would guide me in the right path? Were the questions 
that arose in my mind. I had no proper guide and it was pain.

So I wrote this book "How To Become A Data Scientist" 
https://www.amazon.com/dp/B07FYVTNX7 , a guide for those who would like to 
become Data Scientist. I have crystallized two years of my struggle and answers 
to it in this book. I hope this book would help you.

- Karthikeyan A K
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor