Re: [Tutor] Borrowing restricted code

2018-12-05 Thread Steven D'Aprano
On Wed, Dec 05, 2018 at 07:49:58PM +, Mark Lawrence wrote: > On 05/12/2018 16:22, Avi Gross wrote: > > [huge snip] > > Please take yourself to another forum, your ramblings have no place on > the *PYTHON TUTOR* mailing list. Steady on Mark, a lot of what Avi says is misinformed or close to

Re: [Tutor] Borrowing restricted code

2018-12-05 Thread Steven D'Aprano
On Wed, Dec 05, 2018 at 11:22:35AM -0500, Avi Gross wrote: > I am NOT advocating copying code. Not even "free" code. > > I am saying there may be times you want to package the code for special > purposes. "Packaging" the code IS copying the code. > Perhaps someone can enlighten me on a subtle

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Sarfraaz Ahmed
Hello Matthew, Although, its not for Graphics, I have noticed that http://www.pythontutor.com is a good place that can come in handy for students who are new to programming. It gives a graphical view of how memory is allocated for variables and how functions are invoked in a program. I have seen

Re: [Tutor] Borrowing restricted code

2018-12-05 Thread Mark Lawrence
On 05/12/2018 16:22, Avi Gross wrote: [huge snip] Please take yourself to another forum, your ramblings have no place on the *PYTHON TUTOR* mailing list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence _

Re: [Tutor] Borrowing restricted code

2018-12-05 Thread Avi Gross
I don't want to start (and continue) another sideways discussion. Alan and Steven (not Stephen) both made very good points and helped clarify my understanding. I am NOT advocating copying code. Not even "free" code. I am saying there may be times you want to package the code for special purposes.

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Adam Eyring
I've liked turtle and make my graphing more interesting by asking for user input such as dimensions, then graph automatically. One starter source for using pygame graphics is https://inventwithpython.com/pygame/ It jumps into game writing very quickly, but provides explanations of commands. The o

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Steven D'Aprano
On Wed, Dec 05, 2018 at 11:39:49AM +1100, Matthew Polack wrote: > Hi All, > > We're using Python with our Year 9 and 10 students to teach programming. Yay! And I see you're a fellow Aussie :-) > I've started with basic console programming...doing simple games like a > quiz game etc. > > Studen

Re: [Tutor] Beginners Book, Python and PyScripter

2018-12-05 Thread Steven D'Aprano
On Wed, Dec 05, 2018 at 08:44:14AM +, Alan Gauld via Tutor wrote: > On 04/12/2018 23:52, James Stapleton-Cotton wrote: > > > USERs-MacBook-Pro:~ user$ python hello.py > > python: can't open file 'hello.py': [Errno 2] No such file or directory > > You need to provide the full path to the Pytho

Re: [Tutor] Copyleft

2018-12-05 Thread Steven D'Aprano
Avi, Why do you keep changing the subject line? You started a new thread about "borrowing" (copying) code, people responded to that thread, and you've immediately changed the subject to "Copyleft" even though you talk about much more than copyleft licences. (You barely mention copyleft at all

Re: [Tutor] Regarding Python api script

2018-12-05 Thread Alan Gauld via Tutor
CCing the list, please use Reply All when responding to the tutor list. On 05/12/2018 03:44, Ravi Kumar wrote: > Yes  thats right I want to extract the xml and store into database(SQL > Server) and I will have to cteate a new table > > Here is the sample output I am getting similarly there bulk d

Re: [Tutor] Borrowing free code

2018-12-05 Thread Alan Gauld via Tutor
On 05/12/2018 06:14, Steven D'Aprano wrote: > On Tue, Dec 04, 2018 at 11:43:05PM +, Alan Gauld via Tutor wrote: >> On 04/12/2018 19:31, Avi Gross wrote: >> >>> But some packages are simply python code that you can >>> simply insert into your own python files. >> >> If they are fully public do

Re: [Tutor] Beginners Book, Python and PyScripter

2018-12-05 Thread Alan Gauld via Tutor
On 04/12/2018 23:52, James Stapleton-Cotton wrote: > USERs-MacBook-Pro:~ user$ python hello.py > python: can't open file 'hello.py': [Errno 2] No such file or directory You need to provide the full path to the Python file. > I previously created a python file called 'hello.py' using the PyCharmE

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Alan Gauld via Tutor
On 05/12/2018 00:39, Matthew Polack wrote: > Can anyone recommend any ways of integrating 'graphics' but in a simpler > way. > Have you considered the turtle module. Its limited to drawing shapes but does give some immediate results. You can of course create functions to draw more sophisticated

[Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Matthew Polack
Hi All, We're using Python with our Year 9 and 10 students to teach programming. I've started with basic console programming...doing simple games like a quiz game etc. Students always seem to like 'graphics'..one of the reasons things like 'Scratch' are so popular in schools is because of the re

Re: [Tutor] Beginners Book, Python and PyScripter

2018-12-05 Thread James Stapleton-Cotton
Thank you Adam. I am currently going through the book, 'A Byte of Python' - found here - https://python.swaroopch.com. On pages 29-30 it writes about 'Using A Source File', creating a file called '/tmp/py' on a Mac OS using the 'bash-terminal' and running the saved PyCharm file, 'hello.py'. I type

[Tutor] Copyleft

2018-12-05 Thread Avi Gross
Alan, Just a reminder. I am NOT suggesting the first way to solve a problem is what I described. I am saying that sometimes a roadblock (real or imagined) can be gotten around using methods like that. Agreed. There are copyrights that have to be considered, albeit often SMALL amounts are consi