Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Ufuk Eskici
any help is appreciated, thanks... 2012/12/28 Ufuk Eskici > Hello, > My Python version is 2.7.3 and it is installed in "C:\Python27 (on the > web, it says Paramiko-1.7.4 is supported with Python 2.7) > @Dave: Previous output was from IDLE which should be same with CLI. > > I'm getting this outp

Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Steven D'Aprano
On 02/01/13 20:22, Ufuk Eskici wrote: any help is appreciated, thanks... Have you successfully installed it yet? Last time you tried to install, you tried to install the Python 2 version of Paramiko with Python 3, and got many SyntaxErrors. Until you actually install Paramiko using Python 2,

Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Ufuk Eskici
Hello Steven, I've written this before: "My Python version is 2.7.3 and it is installed in "C:\Python27 (on the web, it says Paramiko-1.7.4 is supported with Python 2.7)" so I'm using the correct Python verion (2.7.3). But I dont know why I'm getting errors during Paramiko installation as I ment

Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Steven D'Aprano
On 02/01/13 20:48, Ufuk Eskici wrote: Hello Steven, I've written this before: "My Python version is 2.7.3 and it is installed in "C:\Python27 (on the web, it says Paramiko-1.7.4 is supported with Python 2.7)" How do you know it is installed in C:\Python27? What is the output of dir C:\Pyt

Re: [Tutor] Trouble importing Paramiko

2013-01-02 Thread Hugo Arts
On Wed, Jan 2, 2013 at 10:48 AM, Ufuk Eskici wrote: > Hello Steven, > > I've written this before: > > "My Python version is 2.7.3 and it is installed in "C:\Python27 (on the > web, it says Paramiko-1.7.4 is supported with Python 2.7)" > > so I'm using the correct Python verion (2.7.3). But I dont

Re: [Tutor] HELP- Regarding working with python

2013-01-02 Thread Alan Gauld
On 02/01/13 07:20, Gayathri S wrote: Hi.. I am using python 2.7 and scikit-learn for machine learning. And OS is Windows 7. Wanna know how to import our own data sets in scikit-learn? Hi, This list is for learning Python and its standard library. Your question looks to be specific

Re: [Tutor] HELP- Regarding working with python

2013-01-02 Thread Alan Gauld
On 02/01/13 07:20, Gayathri S wrote: Hi.. I am using python 2.7 and scikit-learn for machine learning. And OS is Windows 7. Wanna know how to import our own data sets in scikit-learn? Further to my last mail there is a gmane group gmane.comp.python.scikit-learn I'd try looking ther

Re: [Tutor] Limitation of int() in converting strings

2013-01-02 Thread Oscar Benjamin
On 1 January 2013 05:07, Steven D'Aprano wrote: > On 23/12/12 04:38, Oscar Benjamin wrote: >> >> On 22 December 2012 01:34, Steven D'Aprano wrote: >>> >>> On 18/12/12 01:36, Oscar Benjamin wrote: >>> I think it's unfortunate that Python's int() function combines two distinct behaviours

Re: [Tutor] Limitation of int() in converting strings

2013-01-02 Thread Alan Gauld
This is going somewhat off-topic but my curiosity is roused... On 02/01/13 15:16, Oscar Benjamin wrote: > When the idea was discussed in the run up to Python 3, Guido raised exactly this case and said """... (BTW Pascal also had the division operator right, unlike C, and we're ... If we had do

Re: [Tutor] Limitation of int() in converting strings

2013-01-02 Thread Steven D'Aprano
On 03/01/13 03:18, Alan Gauld wrote: This is going somewhat off-topic but my curiosity is roused... On 02/01/13 15:16, Oscar Benjamin wrote: When the idea was discussed in the run up to Python 3, Guido raised exactly this case and said """... (BTW Pascal also had the division operator right, u

Re: [Tutor] Limitation of int() in converting strings

2013-01-02 Thread Dave Angel
On 01/02/2013 11:41 AM, Steven D'Aprano wrote: > > > The bit about __index__ refers to using trunc(): > > "I still really wish I had followed Pascal's lead instead of C's here: > Pascal requires you to use trunc() to convert a real to an integer. ... > If we had done it that way, we wouldn't have

Re: [Tutor] Limitation of int() in converting strings

2013-01-02 Thread Alan Gauld
On 02/01/13 16:55, Dave Angel wrote: On 01/02/2013 11:41 AM, Steven D'Aprano wrote: The bit about __index__ refers to using trunc(): OK, that partially solves it :-) I don't know what this "index() builtin" is, it doesn't appear to exist. That was also what confused me. The only indexz(

[Tutor] writing effective unittests

2013-01-02 Thread Luke Thomas Mergner
Hi, I am trying to learn a bit of test-driven programming using unittests and nosetests. I am having trouble finding resources that explain how to write effective tests. I am not a programmer or a student, so I do not have access to collegues or classes. I'm hoping that someone knows of a good

Re: [Tutor] writing effective unittests

2013-01-02 Thread Alan Gauld
On 02/01/13 20:43, Luke Thomas Mergner wrote: I am trying to learn a bit of test-driven programming using unittests and nosetests. Well done, thats a good idea. I am having trouble finding resources that explain how to write effective tests. Thee are whole books on the subject of testing.

[Tutor] Python Programming for Absolute Beginners, 3rd Edition

2013-01-02 Thread Conor Grevlos
I recently bought and starting reading the Python Programming for Absolute Beginners, 3rd Edition by Michael Dawson. I got through the first chapter fine, no problems. But when I got to the second chapter I realized that I did not know how to do the first programming lesson, Game Over 2.0 With

Re: [Tutor] Python Programming for Absolute Beginners, 3rd Edition

2013-01-02 Thread Matthew Ngaha
> With the code not being on the page, I went to the directed website and got > the downloads, yet I couldn't find the source code > anywhere to be found. Am I missing something plainly obvious? what exactly did you download? all the source code for every chapter is included in the download __

Re: [Tutor] writing effective unittests

2013-01-02 Thread Steven D'Aprano
On 03/01/13 07:43, Luke Thomas Mergner wrote: Hi, I am trying to learn a bit of test-driven programming using unittests and nosetests. I am having trouble finding resources that explain how to write effective tests. I am not a programmer or a student, so I do not have access to collegues or clas

[Tutor] Python Programming for Absolute Beginner

2013-01-02 Thread Conor Grevlos
I downloaded the python source folder, with chapters 1 through 12 I think. But it just opens up the program that is already built, not one that shows me the code. Sent from my iPhone ___ Tutor maillist - Tutor@python.org To unsubscribe or change subs

Re: [Tutor] Python Programming for Absolute Beginner

2013-01-02 Thread Robert Sjoblom
On Jan 3, 2013 2:22 a.m., "Conor Grevlos" wrote: > > I downloaded the python source folder, with chapters 1 through 12 I think. But it just opens up the program that is already built, not one that shows me the code. Open the files in an editor of your choice, don't run them. _

Re: [Tutor] Python Programming for Absolute Beginner

2013-01-02 Thread Dave Angel
On 01/02/2013 08:20 PM, Conor Grevlos wrote: > I downloaded the python source folder, with chapters 1 through 12 I think. > But it just opens up the program that is already built, not one that shows me > the code. > Starting a new thread with each message is unproductive and impolite. If you ac

Re: [Tutor] Python Programming for Absolute Beginner

2013-01-02 Thread Ryan Macy
Conor Grevlos wrote: I downloaded the python source folder, with chapters 1 through 12 I think. But it just opens up the program that is already built, not one that shows me the code. Sent from my iPhone ___ Tutor maillist - Tutor@python.org To uns