[Tutor] intro book for python

2017-09-01 Thread Derek Smith

Hello!

I am new to python coming from a Perl and Unix Admin background.  I reviewed 
the site https://wiki.python.org/moin/IntroductoryBooks and would like to know 
which book(s) you all recommended for a newbie?

Thank you!

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


Re: [Tutor] intro book for python

2017-09-01 Thread Mats Wichmann
On 09/01/2017 07:42 AM, Derek Smith wrote:
> 
> Hello!
> 
> I am new to python coming from a Perl and Unix Admin background.  I reviewed 
> the site https://wiki.python.org/moin/IntroductoryBooks and would like to 
> know which book(s) you all recommended for a newbie?

Hi Derek, welcome to Python.

We don't recommend anything on the wiki, it wouldn't really be fair,
there are so many books written by dedicated Python enthusiasts, how
could we seem to prefer one over another? Some publishers are more
diligent than others at adding everything they publish, but that's not
really representative of quality, either.

That said, there's obviously more to choose from than one could possibly
get through.  There ARE forums where people will be more than happy to
offer an opinion, some of those were listed in the autoreply.

The python tutor mailing list (of which some of the webmasters are also
participants) will be happy to help you along as you run into questions.
 Stack Overflow is also a good source for answers to questions, although
there it's best to search first, or you'll get shut down with the
somewhat unhelpful "this question has already been asked and answered" ding.



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


Re: [Tutor] intro book for python

2017-09-01 Thread Mats Wichmann
Okay, this reply makes it seem like I was really confused.  My mail
client did a weird thing, made it look to me like this question was on
the Python webmaster list, where I also hang out - now it's resorted and
I see it was already sent to tutor.  Sorry about confusing anyone else
:)  And welcome!


On 09/01/2017 11:43 AM, Mats Wichmann wrote:
> On 09/01/2017 07:42 AM, Derek Smith wrote:
>>
>> Hello!
>>
>> I am new to python coming from a Perl and Unix Admin background.  I reviewed 
>> the site https://wiki.python.org/moin/IntroductoryBooks and would like to 
>> know which book(s) you all recommended for a newbie?
> 
> Hi Derek, welcome to Python.
> 
> We don't recommend anything on the wiki, it wouldn't really be fair,
> there are so many books written by dedicated Python enthusiasts, how
> could we seem to prefer one over another? Some publishers are more
> diligent than others at adding everything they publish, but that's not
> really representative of quality, either.
> 
> That said, there's obviously more to choose from than one could possibly
> get through.  There ARE forums where people will be more than happy to
> offer an opinion, some of those were listed in the autoreply.
> 
> The python tutor mailing list (of which some of the webmasters are also
> participants) will be happy to help you along as you run into questions.
>  Stack Overflow is also a good source for answers to questions, although
> there it's best to search first, or you'll get shut down with the
> somewhat unhelpful "this question has already been asked and answered" ding.
> 
> 
> 

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


Re: [Tutor] intro book for python

2017-09-01 Thread Raghunadh
Hello Derek,

I would start with this book

https://learnpythonthehardway.org

Raghunadh

On September 1, 2017, at 12:35 PM, Derek Smith  
wrote:


Hello!

I am new to python coming from a Perl and Unix Admin background.  I reviewed 
the site https://wiki.python.org/moin/IntroductoryBooks and would like to know 
which book(s) you all recommended for a newbie?

Thank you!

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


Re: [Tutor] intro book for python

2017-09-01 Thread Chris Warrick
I would recommend reading the official Python tutorial [0] This
tutorial will explain the important parts of Python. It doesn’t spend
too much time explaining programming basics though.

My alternate recommendations include Think Python [1] or Automate the
Boring Stuff with Python [2].


On 1 September 2017 at 19:51, Raghunadh  wrote:
> Hello Derek,
>
> I would start with this book
>
> hxxps://learnpythonthehardway.org
>
> Raghunadh

LPTHW is a terrible book: slow and boring, tells readers to memorize
truth tables instead of understanding them (sic!), 19% of it is
thoughtlessly teaching print() — overall, a failure at teaching people
to program. Moreover, the author wrote a nonsensical essay bashing
Python 3 [3] (debunked in [4]), and released a Python 3.6 version of
his book shortly afterwards.

[0] https://docs.python.org/3/tutorial/index.html
[1] http://greenteapress.com/wp/think-python-2e/
[2] https://automatetheboringstuff.com/
[3] https://learnpythonthehardway.org/book/nopython3.html
[4] https://eev.ee/blog/2016/11/23/a-rebuttal-for-python-3/

-- 
Chris Warrick 
PGP: 5EAAEA16
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] intro book for python

2017-09-01 Thread Mats Wichmann
On 09/01/2017 01:08 PM, Chris Warrick wrote:
> I would recommend reading the official Python tutorial [0] This
> tutorial will explain the important parts of Python. It doesn’t spend
> too much time explaining programming basics though.
> 
> My alternate recommendations include Think Python [1] or Automate the
> Boring Stuff with Python [2].
> 
> 
> On 1 September 2017 at 19:51, Raghunadh  wrote:
>> Hello Derek,
>>
>> I would start with this book
>>
>> hxxps://learnpythonthehardway.org
>>
>> Raghunadh
> 
> LPTHW is a terrible book: slow and boring, tells readers to memorize
> truth tables instead of understanding them (sic!), 19% of it is
> thoughtlessly teaching print() — overall, a failure at teaching people
> to program. Moreover, the author wrote a nonsensical essay bashing
> Python 3 [3] (debunked in [4]), and released a Python 3.6 version of
> his book shortly afterwards.


So I pointed out people would have strong opinions :)


Turns out - I had forgotten this though I saw it once long ago - that
some people tried to put together a page for people coming from Perl.

https://wiki.python.org/moin/PerlPhrasebook

that might possibly help setting some early concepts, and "idioms", into
place; it certainly won't replace a good Python book, but still...


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


[Tutor] Oauth 2

2017-09-01 Thread Mohamed Sidik via Tutor
Hello all, can someone advice on any easy to follow resources of python and 
oauth 2. 

Thanks, 

Mo

Sent from my Sony Xperia™ smartphone
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] intro book for python

2017-09-01 Thread Sri Kavi
I would choose to learn from The Python Tutorial:

https://docs.python.org/3/tutorial/


On Sep 1, 2017 23:06, "Derek Smith"  wrote:


Hello!

I am new to python coming from a Perl and Unix Admin background.  I
reviewed the site https://wiki.python.org/moin/IntroductoryBooks and would
like to know which book(s) you all recommended for a newbie?

Thank you!

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


[Tutor] Variable name containing '-'

2017-09-01 Thread ramakrishna reddy
Hi there,

I am implementing a soap webservice where a method which has keyword
parameter(named:abc-xyz) needs to be used to call third party app.

eg: obj.method(abc-xyz=10)

As python does not support '-' in variable names, I am a bit confused.
I know in case of methods we can use getattr(self.object, 'method-name')()
can be used. But in case of variable how we can use ?

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


Re: [Tutor] Variable name containing '-'

2017-09-01 Thread Steven D'Aprano
On Fri, Sep 01, 2017 at 01:48:06PM -0700, ramakrishna reddy wrote:
> Hi there,
> 
> I am implementing a soap webservice where a method which has keyword
> parameter(named:abc-xyz) needs to be used to call third party app.

Just because your webservice offers a parameter called "foo" doesn't 
mean your Python code has to use the same name "foo". Pick a different 
name.

Or change your webservice to use abc_xyz instead.

> eg: obj.method(abc-xyz=10)
> 
> As python does not support '-' in variable names, I am a bit confused.
> I know in case of methods we can use getattr(self.object, 'method-name')()
> can be used. But in case of variable how we can use ?

It is an accident that getattr(self.object, 'method-name') works. You 
cannot rely on it, it is not supported by the language, and although it 
works today it may not work in the future.



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