Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-21 Thread Michael M Mason
Richard D. Moores wrote on 20 July 2011 at 18:11 > On Wed, Jul 20, 2011 at 09:04, xDog Walker wrote: > > On Wednesday 2011 July 20 06:41, Richard D. Moores wrote: > > > Is the Python 3.2.1 documentation available as a .chm file from > > > Python.org? > > > > http://www.python.org/ftp/python/3.2.1

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-21 Thread Steven D'Aprano
Dave Angel wrote: Little-endian is the method used by the Intel processor (such as the Pentium). Big-endian is the system used by most network protocols, as well as the 68000 and many other processors. There used to be mainframes with various forms of middle-endian layouts. Fortunately they

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-21 Thread Lisi
On Tuesday 19 July 2011 22:43:40 Alan Gauld wrote: > Growing to hate my Netbook keyboard more by the day! Attach another keyboard? (To keep life simple it would have to be usb, but you can even get a keyboard that will roll up for carrying. I have neither seen nor tried one, so it may be no go

[Tutor] Python editor for Ipad

2011-07-21 Thread James Reynolds
I might have to discuss some routines I've written in Python (and possibly C). It would be easier to whip out the Ipad and show them some of the things I've done, rather than a bulky laptop. I could of course PDF everything with highlighting off of eclipse, but ideally Ideally I would prefer a way

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-21 Thread Richard D. Moores
On Thu, Jul 21, 2011 at 04:59, Michael M Mason wrote: > Richard D. Moores wrote on 20 July 2011 at 18:11 >> On Wed, Jul 20, 2011 at 09:04, xDog Walker wrote: >> > On Wednesday 2011 July 20 06:41, Richard D. Moores wrote: >> > > Is the Python 3.2.1 documentation available as a .chm file from >> >

[Tutor] Avoiding reauthentication to web services?

2011-07-21 Thread Ryan on the Beach
Hello. I am trying to write a python program to control a lighting controller through it's rest interface. It requires ssl and basic authentication. I have been successful using urllib2. However, the authentication takes a very long time on the controller so multiple http gets are slow. I

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread Corey Richardson
Excerpts from James Reynolds's message of Thu Jul 21 10:40:53 -0400 2011: > I might have to discuss some routines I've written in Python (and possibly > C). It would be easier to whip out the Ipad and show them some of the things > I've done, rather than a bulky laptop. > > I could of course PDF e

Re: [Tutor] Editor por iPad

2011-07-21 Thread Fernando Salamero
For an editor, 'Textastic' have syntax highlighting. It's Great!. 'Koder' is nice, too. For run (basic) python scripts, try 'PythonMath' and 'PyPad' Fernando Salamero. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

[Tutor] Removing characters in a string using format()

2011-07-21 Thread Ryan Porter
Hi there, In one part of a program I'm writing, I want a list to be printed to the string. Here's my code: # Begin snippet listString = input('Please enter a single item: >').strip(); /print(); itemList.append(listString); / /... / /print('And here it is in alphabetical orde

Re: [Tutor] Removing characters in a string using format()

2011-07-21 Thread Dave Angel
On 07/21/2011 01:53 PM, Ryan Porter wrote: Hi there, In one part of a program I'm writing, I want a list to be printed to the string. Here's my code: # Begin snippet listString = input('Please enter a single item: >').strip(); /print(); itemList.append(listString); / /... /

Re: [Tutor] Removing characters in a string using format()

2011-07-21 Thread James Reynolds
Since you're using python 3, you can just use a star to unpack the list like so: >>> print(*x) a b >>> print(*x, sep = ', ') a, b You can use sep to change the separator if you want the commas still. On Thu, Jul 21, 2011 at 1:53 PM, Ryan Porter wrote: > Hi there, > > In one part of a program

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-21 Thread Prasad, Ramit
>Attach another keyboard? (To keep life simple it would have to be usb, but >you can even get a keyboard that will roll up for carrying. I have neither >seen nor tried one, so it may be no good!) On the plus side, roll-up keyboards tend to be sealed and proof against liquids. Plus, they are u

Re: [Tutor] Removing characters in a string using format()

2011-07-21 Thread Prasad, Ramit
-Original Message- From: tutor-bounces+ramit.prasad=jpmchase@python.org [mailto:tutor-bounces+ramit.prasad=jpmchase@python.org] On Behalf Of Ryan Porter Sent: Thursday, July 21, 2011 12:54 PM To: tutor@python.org Subject: [Tutor] Removing characters in a string using format() Hi

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-21 Thread Albert-Jan Roskam
Thanks a lot for your explanations, that was most helpful! I never realized my mother tongue (Dutch) is Little Endian, whereas English is Big Endian, e.g.: dutch: negen-en-twintig (nine-and-twenty) english: twenty-nine I will improve my program based on what you all have said. I will let the pro

Re: [Tutor] Avoiding reauthentication to web services?

2011-07-21 Thread Steven D'Aprano
Ryan on the Beach wrote: Hello. I am trying to write a python program to control a lighting controller through it's rest interface. It requires ssl and basic authentication. I have been successful using urllib2. However, the authentication takes a very long time on the controller so multi

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread Tahir Hafiz
Cloud9 seems interesting as a browser based IDE. Do you know if there is a way to run Python code as well create/edit it? Thanks, Tahir On Thu, Jul 21, 2011 at 5:30 PM, Corey Richardson wrote: > Excerpts from James Reynolds's message of Thu Jul 21 10:40:53 -0400 2011: > > I might have to discus

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread ian douglas
Yes, Cloud9 supports running/debugging/testing. They've also got github support for pulling in your projects. It's a pretty clever tool. On 07/21/2011 01:24 PM, Tahir Hafiz wrote: Cloud9 seems interesting as a browser based IDE. Do you know if there is a way to run Python code as well create/e

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread Corey Richardson
Excerpts from Tahir Hafiz's message of Thu Jul 21 16:24:22 -0400 2011: > Cloud9 seems interesting as a browser based IDE. Do you know if there is a > way to run Python code as well create/edit it? > Not as far as I know. -- Corey Richardson "Those who deny freedom to others, deserve it not for

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread Corey Richardson
Excerpts from ian douglas's message of Thu Jul 21 16:44:17 -0400 2011: > Yes, Cloud9 supports running/debugging/testing. They've also got github > support for pulling in your projects. It's a pretty clever tool. > Could you share your secret? I didn't dig enough to figure it out. I saw the "Run"

[Tutor] (no subject)

2011-07-21 Thread Ryan Strunk
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Viability of Python

2011-07-21 Thread Ryan Strunk
Hello everyone, I have been reading a lot of different articles recently, and I have found a divergence of opinions on the viability of Python as a viable language for high-end programs. At the same time, even sites that recommend Python seem to recommend it as a good first language. This email is

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread ian douglas
On 07/21/2011 01:46 PM, Corey Richardson wrote: Excerpts from ian douglas's message of Thu Jul 21 16:44:17 -0400 2011: Yes, Cloud9 supports running/debugging/testing. They've also got github support for pulling in your projects. It's a pretty clever tool. Could you share your secret? I didn't

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread James Reynolds
Thanks for the input. I received another email off list and I think i'm going to look into " Textastic". The Cloud9 seems interesting, but I'm not assured to have internet access all the time (even if I do live in NYC). Thanks for all the replies! On Thu, Jul 21, 2011 at 5:09 PM, ian douglas w

[Tutor] Stack problem usind Python2.6

2011-07-21 Thread David Merrick
##from stack import Stack class Stack: def __init__(self): self.items =[] def isEmpty(self): return self.items ==[] def push(self,item): self.items.append(item) def pop(self,item): self.items.pop() def peek(self): return self.items[l

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread bob gailer
On 7/21/2011 12:30 PM, Corey Richardson wrote: If you have a browser, Cloud9 IDE might be able to do it. I just tried Cloud9 and gave up in frustration. Unintuitive interfacre. No help. Finally edited a program. Tried to run it. No results. Sigh. Also appears to be a free TRIAL only. -- Bob

Re: [Tutor] Stack problem usind Python2.6

2011-07-21 Thread bob gailer
On 7/21/2011 5:16 PM, David Merrick wrote: ##from stack import Stack class Stack: def __init__(self): self.items =[] def isEmpty(self): return self.items ==[] def push(self,item): self.items.append(item) def pop(self,item): self.items.pop()

Re: [Tutor] Stack problem usind Python2.6

2011-07-21 Thread James Reynolds
On Thu, Jul 21, 2011 at 5:16 PM, David Merrick wrote: > ##from stack import Stack > > class Stack: > def __init__(self): > self.items =[] > > def isEmpty(self): > return self.items ==[] > > def push(self,item): > self.items.append(item) > > def pop(self,ite

Re: [Tutor] Python editor for Ipad

2011-07-21 Thread Corey Richardson
Excerpts from bob gailer's message of Thu Jul 21 17:21:01 -0400 2011: > On 7/21/2011 12:30 PM, Corey Richardson wrote: > > If you have a browser, Cloud9 IDE might be able to do it. > I just tried Cloud9 and gave up in frustration. > > Unintuitive interfacre. No help. Finally edited a program. Trie

Re: [Tutor] Stack problem usind Python2.6

2011-07-21 Thread James Reynolds
On Thu, Jul 21, 2011 at 5:16 PM, David Merrick wrote: > ##from stack import Stack > > class Stack: > def __init__(self): > self.items =[] > > def isEmpty(self): > return self.items ==[] > > def push(self,item): > self.items.append(item) > > def pop(self,ite

[Tutor] OT: Drag and Drop GUI IDE ideas

2011-07-21 Thread Rance Hall
I know this is OT and I am sorry, but the readers of the list are some of the best to judge my problem. And it is about learning to code, just not python specifically. The MIS department at UNK is looking to create a course in business app development. The course will be about the app life cycl

Re: [Tutor] Viability of Python

2011-07-21 Thread Emile van Sebille
On 7/21/2011 1:49 PM Ryan Strunk said... Hello everyone, I have been reading a lot of different articles recently, and I have found a divergence of opinions on the viability of Python as a viable language for high-end programs. At the same time, even sites that recommend Python seem to recommend

Re: [Tutor] Viability of Python

2011-07-21 Thread David Schouten
Op 22 jul. 2011 om 00:18 heeft Emile van Sebille het volgende geschreven: > On 7/21/2011 1:49 PM Ryan Strunk said... >> Hello everyone, >> I have been reading a lot of different articles recently, and I have >> found a divergence of opinions on the viability of Python as a viable >> language fo

Re: [Tutor] Viability of Python

2011-07-21 Thread Prasad, Ramit
>How would one acces the code base? Some time ago, someone responded to a >question on this list by reccomending to study the built-in modules, where are >those stored? >I'm using Mac OS X 10.7 with python 3, in case this is relevant. General documentation is located http://docs.python.org/py3k

Re: [Tutor] Viability of Python

2011-07-21 Thread James Reynolds
Source files for the 3.2 branch are located here: http://hg.python.org/cpython/file/f0475f78d45c the modules and objects directory has a lot of c files. there some elsewhere. In modules theres some that start with XX. those are demonstration i believe. On Thu, Jul 21, 2011 at 6:46 PM, Prasad, Ra

Re: [Tutor] Removing characters in a string using format()

2011-07-21 Thread Ryan Porter
Thanks for help, James! It works perfectly. Ryan On 7/21/2011 11:13 AM, James Reynolds wrote: Since you're using python 3, you can just use a star to unpack the list like so: >>> print(*x) a b >>> print(*x, sep = ', ') a, b You can use sep to change the separator if you want the commas still

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-21 Thread Wayne Werner
On Jul 21, 2011 9:23 AM, "Lisi" wrote: > > On Tuesday 19 July 2011 22:43:40 Alan Gauld wrote: > > Growing to hate my Netbook keyboard more by the day! > > Attach another keyboard? (To keep life simple it would have to be usb, but > you can even get a keyboard that will roll up for carrying. I ha