[Tutor] Demystification of Lambda Functions

2015-10-28 Thread Hunter Jozwiak
Hello,

 

I am not sure exactly why there would be a practical use for a lambda
function, other than the fact that you can make one-liner functions that
take parameters in to a variable. Or at least that is how things look when
they are written. Can I have some demystification?

 

Thanks,

 

Hunter

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


[Tutor] Best Practices with JSON Data

2016-05-08 Thread Hunter Jozwiak
Hello,

 

I am intending to start work on a Python program that will allow me to
better manage my Digital Ocean droplets, due to the fact that the website
can be at times a bit overkill for some of the basic tasks I want to do. I
have a question in regards to the best practice of manipulating JSON data.
Would it be better to just parse the data that Digital Ocean returns as a
result of doing such things as a Get command, or would it be better to
create a Droplet class with functionality specific to Droplets? The reason I
am asking is due to the fact that I haven't found any good information on
the topic, so am not sure of the Pythonic or standard way to do this.

 

Thanks,

 

Hunter

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