[Tutor] is v == for small ints

2015-12-14 Thread Alan Gauld
Somebody posted a question about this today and I approved it but it hasn't shown up. We have had about 6 or 7 such problems in the last month. Mainly they have been thank-you messages so I didn't make an issue of it but a couple have been genuine questions, like this was. So if you have posted

Re: [Tutor] interface

2015-12-14 Thread Alan Gauld
On 14/12/15 21:48, Alex Kleider wrote: > provide a graphical interface. There are several choices with pros and > cons to each but an alternative more general approach might be to use a > web based interface which I believe would make the code less platform > dependent. Not necessarily since

Re: [Tutor] Understanding a linear runtime implementation of anagram detection

2015-12-14 Thread Oscar Benjamin
On 10 December 2015 at 12:38, Spyros Charonis wrote: > Dear All, > > I am learning about analysis of algorithms (python 2.7.6). I am reading a > book (Problem solving with Algorithms and Data Structures) where Python is > the language used for implementations. The author

Re: [Tutor] Tutor Digest, Vol 142, Issue 11

2015-12-14 Thread Crusier
Dear Alan, Thank you very much for answering the question. If you don't mind, please kindly let me know which library I should focus on among beautifulsoup, selenium + PhantomJS, and dryscrape. Have a good day regards, Hank On Sun, Dec 13, 2015 at 5:11 PM, wrote: >

Re: [Tutor] is v == for small ints

2015-12-14 Thread Steven D'Aprano
On Tue, Dec 15, 2015 at 01:54:30AM +, Alan Gauld wrote: > This behaviour should never be relied on since the definition > of a "small int" is potentially implementation dependant and > could even change with Python version or platform. Always > use == to test integers. It isn't just

Re: [Tutor] interface

2015-12-14 Thread Alex Kleider
Thank you, gentlemen (Alan, Ben, Mark,) for your advice. The consensus seems to be in favour of tkinter so I'll head in that direction. Cheers, Alex ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

[Tutor] parser recommendations (was Re: Tutor Digest, Vol 142, Issue 11)

2015-12-14 Thread Alan Gauld
On 14/12/15 16:16, Crusier wrote: Please always supply a useful subject line when replying to the digest and also delete all irrelevant text. Some people pay by the byte and we have all received these messages already. > Thank you very much for answering the question. If you don't mind, > please

[Tutor] interface

2015-12-14 Thread Alex Kleider
So far all my python programming has been done using print for output and (raw)input whenever user input is required. I'd like to learn how to provide a graphical interface. There are several choices with pros and cons to each but an alternative more general approach might be to use a web

Re: [Tutor] interface

2015-12-14 Thread Mark Lawrence
On 14/12/2015 21:48, Alex Kleider wrote: So far all my python programming has been done using print for output and (raw)input whenever user input is required. I'd like to learn how to provide a graphical interface. There are several choices with pros and cons to each but an alternative more

Re: [Tutor] interface

2015-12-14 Thread Ben Finney
Alex Kleider writes: > I'd be interested in any comments regarding this idea and would be > grateful for any suggestions as to frameworks that might be helpful. The collected wisdom of the community includes this page at the Python wiki

Re: [Tutor] parser recommendations (was Re: Tutor Digest, Vol 142, Issue 11)

2015-12-14 Thread bruce
beautifulsoup, selenium + PhantomJS, and dryscrape no knowledge of dryscape, never used it. The other tools/apps are used to handle/parse html/websites. Ssoup can handle xml/html as well as other input structs. Good for being able to parse the resulting struct/dom to extract data, or to