Re: [Tutor] Recommendations for best tool to write/run Python :p:

2016-03-04 Thread Albert-Jan Roskam
> Date: Thu, 3 Mar 2016 15:54:56 -0600 > From: da...@graniteweb.com > To: tutor@python.org > Subject: Re: [Tutor] Recommendations for best tool to write/run Python :p: > > * Alan Gauld [2016-03-03 11:02]: > > On 03/03/16 09:31, Thomas C. Hicks wrote: > > > On 03/03/2016 02:26 AM, Lisa Hasler Wate

Re: [Tutor] recursivity and lists

2016-03-04 Thread Gaston
Thank you for these comments. Made me realize that I do not fully understand my code, and need to think about it a bit more. I totally understand the huge side effects, and it is true that it would be dangerous if the function was to actually be used. I would like to find a fully functional ve

Re: [Tutor] Tutor Digest, Vol 145, Issue 7

2016-03-04 Thread justin walters
I personally use pycharm community edition. It has helped me learn a lot. It is quite heavy though. I think your best bet would be sublime text(mac, windows, and linux) or gedit(linux only I believe). On Mar 3, 2016 9:00 AM, wrote: > Send Tutor mailing list submissions to > tutor@python.o

Re: [Tutor] Tutor Digest, Vol 145, Issue 7

2016-03-04 Thread Alan Gauld
On 04/03/16 16:49, justin walters wrote: > I personally use pycharm community edition. It has helped me learn a lot. > It is quite heavy though. I think your best bet would be sublime text(mac, > windows, and linux) or gedit(linux only I believe). Thanks for the comments Justin but please in futur

Re: [Tutor] recursivity and lists

2016-03-04 Thread Alan Gauld
On 04/03/16 15:00, Gaston wrote: > Both work but I am not satisfied. Is there not a method that could do > the job of '+' operator (namely concatenate in a copy)? Why would you want a method? An operator is a perfectly legitimate feature and is at least as readable as a method. It is certainly n

Re: [Tutor] recursivity and lists

2016-03-04 Thread Alan Gauld
On 04/03/16 19:25, sina sareth wrote: > Hi There Hi, welcome to tutor. But please do not hijack an existing thread for a new topic. Post a new message to tutor@python.org. Otherwise the archive gets very confusing for people searching for answers. Or even for people using threaded email/news read

Re: [Tutor] recursivity and lists

2016-03-04 Thread Danny Yoo
> Both work but I am not satisfied. Is there not a method that could do the job > of '+' operator (namely concatenate in a copy)? > No; unfortunately Python doesn't make functional approaches as convenient as I would personally like. The copy operation on lists itself is expensive to do, so tha

Re: [Tutor] recursivity and lists

2016-03-04 Thread Danny Yoo
> As we can see, we have to do a lot more consideration of what state > our values are in, due to all the mutation happening. It also shows > that the second recursive call to the linear_merge() is not really > using it to merge: it's really trying to select the list that was used > to accumulate

Re: [Tutor] recursivity and lists

2016-03-04 Thread sina sareth via Tutor
Hi ThereI have those projects and I would like to get some directions the way to tackle them. Thanks 1)  XML parsing into database.  2) Do the same thing but this time, get ALL the quotes and save them as separate database entries (you will have to do a for loop for this).  3) Use Django to build