Re: [Tutor] Creating lists with definite (n) items without repetitions

2015-09-14 Thread Oscar Benjamin
On 10 September 2015 at 08:45, Francesco Loffredo via Tutor wrote: > > I wrote a small routine (below) to check when and if my code and the formula > do match. It easily shows that > they only match for len(pool) == (2 ** N) - 1, with N greater or equal to 2. That's

Re: [Tutor] Type Error

2015-09-14 Thread Zachary Ware
On Mon, Sep 14, 2015 at 9:29 AM, richard kappler wrote: > everything works except the os.remove(file) which gives the following error: > > Traceback (most recent call last): > File "DataFeedBatch.py", line 104, in > os.remove(file) > TypeError: coercing to Unicode:

Re: [Tutor] Type Error

2015-09-14 Thread Joel Goldstick
On Mon, Sep 14, 2015 at 10:29 AM, richard kappler wrote: > Still working on my data feed script, if you'll recall from previous > emails, it reads incoming data and creates a name for image files based on > the incoming data in a test environment. below is a snippet of that

[Tutor] Type Error

2015-09-14 Thread richard kappler
Still working on my data feed script, if you'll recall from previous emails, it reads incoming data and creates a name for image files based on the incoming data in a test environment. below is a snippet of that code that copies the next image in the pool renaming it as it copies, sends to another

Re: [Tutor] Type Error

2015-09-14 Thread Rohit kumar
Correct, The filename should be passed as string value. Regards, -- Rohit Kumar | Technical Lead ZeOmega | Population Health Management Solutions Improving Population Health One Person at a Time Office: +91 80 4243 2000 (4067) | Mobile: +91 9342637703 -Original Message- From: Tutor

Re: [Tutor] Python 3.5 32-bit installer not creating standard registry key

2015-09-14 Thread Pete
Sorry, I've just realised that my previous message was wrong - please delete it. I now see that the key in question is actually a Python for Windows Extensions key. The problem appears to lie in the Python for Windows Extensions 32-bit installer not recognising any of the new Python 3.5

Re: [Tutor] Python 3.5 32-bit installer not creating standard registry key

2015-09-14 Thread Alan Gauld
On 14/09/15 15:53, Pete wrote: Sorry, I've just realised that my previous message was wrong We don't seem to have that one. Are you sure you sent it to the tutor list? Python 3.5 32-bit keys. I'll have to find some way of contacting the Python for Windows Extensions developers to ask them

Re: [Tutor] ftp socket.error

2015-09-14 Thread richard kappler
Thanks for all the assistance, turned out it was a problem with the iptables not having an accept for eth1. Onward and upward! regards, Richard On Sat, Sep 12, 2015 at 12:24 PM, Martin A. Brown wrote: > > Hello and good morning > > I may be mistaken, but it looks like you

Re: [Tutor] Python 3.5 32-bit installer not creating standard registry key

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 15:53:16 +0100, Pete writes: > > >Sorry, I've just realised that my previous message was wrong - please >delete it. I now see that the key in question is actually a Python for >Windows Extensions key. The problem appears to lie in the Python for >Windows

Re: [Tutor] Need help with python

2015-09-14 Thread Alan Gauld
On 15/09/15 00:25, Laura Creighton wrote: The gmane.org reference is here: gmane.comp.python.testing.general I am not getting anything sensible out of this. Works for me, but admittedly I only see one post in September. -- Alan G Author of the Learn to Program web site

Re: [Tutor] Python 3.5 32-bit installer not creating standard registry key

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 18:19:47 +0100, Pete writes: > > >Thanks Laura. > >In the end I posted the bug to Python for Windows Extensions >(http://sourceforge.net/p/pywin32/bugs/702/) because I suspect that the >fault may well lie with the PWE installer. > >If I don't get any resolution

Re: [Tutor] Invalid Syntax Message

2015-09-14 Thread Emile van Sebille
On 9/14/2015 2:50 PM, Shannon Rodenbeck wrote: I have downloaded Python 3.4.3 on my Mac 10.10.4. When i try running my programs from IDLE to go on Shell i get the message that says "Invalid Syntax". I've tried my programs on a different windows computer and it runs and works perfectly. How do I

Re: [Tutor] Need help with python

2015-09-14 Thread Laura Creighton
In a message of Mon, 14 Sep 2015 19:48:01 +0100, Alan Gauld writes: >On 14/09/15 18:02, vijayram wrote: >> Hi, >> >> I need help with python nose tests and test-suite… can I request help >> with a tutor.. > >You can try asking basic questions here, but as nose is not >part of the standard

[Tutor] Invalid Syntax Message

2015-09-14 Thread Shannon Rodenbeck
I have downloaded Python 3.4.3 on my Mac 10.10.4. When i try running my programs from IDLE to go on Shell i get the message that says "Invalid Syntax". I've tried my programs on a different windows computer and it runs and works perfectly. How do I fix this problem so the programs are able to run

Re: [Tutor] Need help with python

2015-09-14 Thread Steven D'Aprano
On Mon, Sep 14, 2015 at 10:02:35AM -0700, vijayram wrote: > Hi, > > I need help with python nose tests and test-suite… can I request help with > a tutor.. Sure. Ask your questions on the mailing list, and somebody will answer. This is a group for *public* tutoring, so that everyone can learn

[Tutor] syntax error

2015-09-14 Thread Sarah
Hi What's wrong with the following code? def main() lunch = int(input('How many hours did you eat?')) cost = float(input('Enter the hourly cost: ')) gross_cost = lunch * cost print('cost:$', format(cost, '.2f'), sep='') main() I get the error File "", line 6 Thanks,

Re: [Tutor] syntax error

2015-09-14 Thread Steven D'Aprano
On Mon, Sep 14, 2015 at 01:20:55PM -0400, Sarah wrote: > Hi > What's wrong with the following code? > > def main() >lunch = int(input('How many hours did you eat?')) >cost = float(input('Enter the hourly cost: ')) >gross_cost = lunch * cost >print('cost:$',

Re: [Tutor] Python 3.5 32-bit installer not creating standard registry key

2015-09-14 Thread Pete
Thanks Laura. In the end I posted the bug to Python for Windows Extensions (http://sourceforge.net/p/pywin32/bugs/702/) because I suspect that the fault may well lie with the PWE installer. If I don't get any resolution there then I'll post to the Python bugs link you kindly list. However,

[Tutor] Need help with python

2015-09-14 Thread vijayram
Hi, I need help with python nose tests and test-suite… can I request help with a tutor.. Thank you, vijay ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] syntax error

2015-09-14 Thread Joel Goldstick
On Mon, Sep 14, 2015 at 1:20 PM, Sarah wrote: > Hi > What's wrong with the following code? > > def main() >lunch = int(input('How many hours did you eat?')) >cost = float(input('Enter the hourly cost: ')) >gross_cost = lunch * cost >

Re: [Tutor] syntax error

2015-09-14 Thread Alan Gauld
On 14/09/15 19:25, Joel Goldstick wrote: On Mon, Sep 14, 2015 at 1:20 PM, Sarah wrote: Hi What's wrong with the following code? def main() lunch = int(input('How many hours did you eat?')) cost = float(input('Enter the hourly cost: ')) gross_cost =

Re: [Tutor] Need help with python

2015-09-14 Thread Alan Gauld
On 14/09/15 18:02, vijayram wrote: Hi, I need help with python nose tests and test-suite… can I request help with a tutor.. You can try asking basic questions here, but as nose is not part of the standard library you might get more help on the python testing list: The gmane.org reference