[Tutor] use python to change the webpage content?

2013-05-17 Thread Jiajun Xu
There is a online simulator about a physic project I'm doing and I want to use the data the simulator generates on that website. I can get data using urllib.request and regular expression but I also want to change some of the input values and then get different sets of data. However, if I change th

[Tutor] Unsubscribe

2013-05-17 Thread Stafford Baines
I only intend this to be temporary. I'm going away for a couple of weeks and don't want my mailbox overflowing when I return.😃 Thanks for all the help Sent from my iPhone ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription opti

Re: [Tutor] Retrieving data from a web site

2013-05-17 Thread Alan Gauld
On 18/05/13 00:57, Phil wrote: I'd like to "download" eight digits from a web site where the digits are stored as individual graphics. Is this possible, using perhaps, one of the countless number of Python modules? Is this the function of a web scraper? In addition to Dave's points there is als

Re: [Tutor] why is unichr(sys.maxunicode) blank?

2013-05-17 Thread Steven D'Aprano
On 18/05/13 05:23, Albert-Jan Roskam wrote: I was curious what the "high" four-byte ut8 unicode characters look like. By the way, your sentence above reflects a misunderstanding. Unicode characters (strictly speaking, code points) are not "bytes", four or otherwise. They are abstract entitie

Re: [Tutor] why is unichr(sys.maxunicode) blank?

2013-05-17 Thread eryksun
On Fri, May 17, 2013 at 11:06 PM, Dave Angel wrote: > One tool that can help is the name function in module unicodedata > > >>> import unicodedata > >>> unicodedata.name(u'\xb0') > 'DEGREE SIGN' > > If you try that on the values near sys.maxunicode you get an exception: > ValueError: no such nam

Re: [Tutor] why is unichr(sys.maxunicode) blank?

2013-05-17 Thread eryksun
On Fri, May 17, 2013 at 3:23 PM, Albert-Jan Roskam wrote: > > I was curious what the "high" four-byte ut8 unicode characters look like. > Why does the snippet below not print anything (well, it will eventually, I > think, but at that point I have lost my patience already). The following site list

Re: [Tutor] why is unichr(sys.maxunicode) blank?

2013-05-17 Thread Dave Angel
On 05/17/2013 08:46 PM, Steven D'Aprano wrote: On 18/05/13 05:23, Albert-Jan Roskam wrote: Hi, I was curious what the "high" four-byte ut8 unicode characters look like. What typeface are you using to print them? Most type faces ("fonts") only support a tiny portion of the Unicode range. For t

Re: [Tutor] Retrieving data from a web site

2013-05-17 Thread Dave Angel
On 05/17/2013 07:57 PM, Phil wrote: I'd like to "download" eight digits from a web site where the digits are stored as individual graphics. Is this possible, using perhaps, one of the countless number of Python modules? Is this the function of a web scraper? Anything's possible. But if these

Re: [Tutor] why is unichr(sys.maxunicode) blank?

2013-05-17 Thread Steven D'Aprano
On 18/05/13 05:23, Albert-Jan Roskam wrote: Hi, I was curious what the "high" four-byte ut8 unicode characters look like. What typeface are you using to print them? Most type faces ("fonts") only support a tiny portion of the Unicode range. For that matter, most of the Unicode range is curre

[Tutor] Retrieving data from a web site

2013-05-17 Thread Phil
I'd like to "download" eight digits from a web site where the digits are stored as individual graphics. Is this possible, using perhaps, one of the countless number of Python modules? Is this the function of a web scraper? -- Regards, Phil ___ Tutor

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread Ken G.
On 05/17/2013 02:19 PM, Alan Gauld wrote: On 17/05/13 18:16, bob gailer wrote: On 5/16/2013 8:49 PM, Alan Gauld wrote: don't run programs on real data using IDLE. IDLE is for developing programs not running them. That is really scary. Why do you say that? The IDLE documentation does NOT say

Re: [Tutor] Word Jumble - Chpt4 (Explanation)

2013-05-17 Thread Prasad, Ramit
Please always send to the list (use your email client's Reply-to-list or Reply-all functionality). Arvind Virk wrote: > Thanks Ramit! > > I did try to use print statements to understand my outputs but I may have > been best placed to utilse > some formatting to make it more readable. I did not

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread Marc Tompkins
On Fri, May 17, 2013 at 12:35 PM, Prasad, Ramit wrote: > Forwarding to the list as I believe the reply was mistakenly sent only to > me. > Grr. Sorry about that! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread Prasad, Ramit
Forwarding to the list as I believe the reply was mistakenly sent only to me. Marc Tompkins wrote: > On Fri, May 17, 2013 at 11:08 AM, Prasad, Ramit > wrote: > bob gailer wrote: > > > > On 5/16/2013 8:49 PM, Alan Gauld wrote: > > > don't run programs on real data using IDLE. IDLE is for developi

[Tutor] why is unichr(sys.maxunicode) blank?

2013-05-17 Thread Albert-Jan Roskam
Hi, I was curious what the "high" four-byte ut8 unicode characters look like. Why does the snippet below not print anything (well, it will eventually, I think, but at that point I have lost my patience already). Puh-lease tell me there are no such things as Mongolian, Chinese backspaces and oth

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread Prasad, Ramit
bob gailer wrote: > > On 5/16/2013 8:49 PM, Alan Gauld wrote: > > don't run programs on real data using IDLE. IDLE is for developing > > programs not running them. > > That is really scary. Why do you say that? The IDLE documentation does > NOT say that! Relates to IDEs and not IDLE in specific.

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread Alan Gauld
On 17/05/13 18:16, bob gailer wrote: On 5/16/2013 8:49 PM, Alan Gauld wrote: don't run programs on real data using IDLE. IDLE is for developing programs not running them. That is really scary. Why do you say that? The IDLE documentation does NOT say that! No, but IDLE is *intended* for devel

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread Steven D'Aprano
On 18/05/13 03:16, bob gailer wrote: On 5/16/2013 8:49 PM, Alan Gauld wrote: don't run programs on real data using IDLE. IDLE is for developing programs not running them. That is really scary. Why do you say that? The IDLE documentation does NOT say that! IDLE is an IDE, that is, Integrate

Re: [Tutor] Pygraphics crashed

2013-05-17 Thread Oscar Benjamin
On 17 May 2013 17:04, eryksun wrote: > On Fri, May 17, 2013 at 10:31 AM, Oscar Benjamin > wrote: > >> Since my own Windows machine has the wrong version of Visual Studio >> (and out IT policy won't let me change it) I use mingw. However, every >> time I install a new Python I have to patch distut

Re: [Tutor] Python Idle Crashing

2013-05-17 Thread bob gailer
On 5/16/2013 8:49 PM, Alan Gauld wrote: don't run programs on real data using IDLE. IDLE is for developing programs not running them. That is really scary. Why do you say that? The IDLE documentation does NOT say that! -- Bob Gailer 919-636-4239 Chapel Hill NC __

Re: [Tutor] Pygraphics crashed

2013-05-17 Thread eryksun
On Fri, May 17, 2013 at 10:31 AM, Oscar Benjamin wrote: > > The wheel format will solve part of the problem in that it will make > it safer and easier to install prebuilt binaries. It will still > require someone to create all of the prebuilt binaries for each > OS/architecture/Python version and

Re: [Tutor] unsubscribe

2013-05-17 Thread Steven D'Aprano
On 18/05/13 00:39, Web Jedi wrote: unsubscribe Please read the instructions printed immediately under your "unsubscribe" message: To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/tutor or, via email, send a message with subject or body '

[Tutor] unsubscribe

2013-05-17 Thread Web Jedi
unsubscribe On May 17, 2013, at 6:00 AM, tutor-requ...@python.org wrote: > Send Tutor mailing list submissions to >tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit >http://mail.python.org/mailman/listinfo/tutor > or, via email, send a message with subject or

Re: [Tutor] Pygraphics crashed

2013-05-17 Thread Oscar Benjamin
On 17 May 2013 05:56, eryksun wrote: > On Thu, May 16, 2013 at 6:15 PM, Jim Mooney wrote: >> How do I install PIL with easy-install? I used that once but forget >> how. I seem to recall reading it installs a version that is Py native >> and doesn't choke on your OS. Or did I read that wrong? > >

Re: [Tutor] Pygraphics crashed

2013-05-17 Thread Walter Prins
Hi, On 16 May 2013 23:49, Jim Mooney wrote: > > By the way, do you mind if I ask why you're using PyGraphics? It's > > only meant to be used for education (and even there, AFAIK the only > > users are the University of Toronto (and even there, I think they > > stopped using it because they swit

Re: [Tutor] Can't install latest PIL

2013-05-17 Thread eryksun
On Fri, May 17, 2013 at 3:23 AM, Jim Mooney wrote: > BTW, I noticed that Msoft Visual Studio has Python. Does that mean I > could made a standalone Win executable with Python, or would a user > still need the Py interpreter installed? It would be nice if you could > make an exe. Are you referring

Re: [Tutor] Can't install latest PIL

2013-05-17 Thread Jim Mooney
> If you see a syntax error, that means your code could not be compiled. > Python's parser doesn't grok "import image from pil". In natural > language we have the freedom to swap the order of clauses, but > programming languages are generally more rigid. The correct order is > "from pil import imag