[Tutor] Unicode Encode Error

2014-06-17 Thread Aaron Misquith
I'm trying to obtain the questions present in StackOverflow for a particular tag. Whenever I try to run the program i get this *error:* Message File Name Line Position Traceback C:\Users\Aaron\Desktop\question.py 20 UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in positi

Re: [Tutor] Unicode Encode Error

2014-06-17 Thread Peter Otten
Aaron Misquith wrote: > I'm trying to obtain the questions present in StackOverflow for a > particular tag. > > Whenever I try to run the program i get this *error:* > > Message File Name Line Position > Traceback > C:\Users\Aaron\Desktop\question.py 20 > UnicodeEncodeError: 'ascii' codec c

[Tutor] Tips

2014-06-17 Thread keith papa
Hi, I want to no what some tips or information you can give me to remember some of the rules of python, when you first start learning programming? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.pytho

Re: [Tutor] Tips

2014-06-17 Thread Alan Gauld
On 17/06/14 19:52, keith papa wrote: Hi, I want to no what some tips or information you can give me to > remember some of the rules of python, > when you first start learning programming? Most of my tips/rules are about programming rather than python... --

Re: [Tutor] Tips

2014-06-17 Thread Alex Kleider
On 2014-06-17 13:35, Alan Gauld wrote: Don't test types, use the interface Can you please explain what you mean by this? alex ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listi

Re: [Tutor] Tips

2014-06-17 Thread Danny Yoo
On Tue, Jun 17, 2014 at 5:02 PM, Alex Kleider wrote: > On 2014-06-17 13:35, Alan Gauld wrote: > >> Don't test types, use the interface > > > Can you please explain what you mean by this? If you are writing type tests on a function's inputs, you might better off by having the inputs implement an