[Tutor] Need a mentor, Any help would be great

2013-03-01 Thread bessenkphilip
Hello, I'm just a newbie in python and it would be great if someone could help me in this. I don't know where to start, I'd like to contribute to small opensource projects too which will help me to learn more in python. Thanks & Regards, -Bessen ___

Re: [Tutor] confusing installation

2013-03-01 Thread Alan Gauld
On 02/03/13 00:14, Lolo Lolo wrote: i didnt see this Alan. my interests is only SQL but the book indicates things like ORMs are very important?.. It depends. In some frameworks like TurboGears or Django ORMs are a big part of the story. In everyday programming I tend to just use straight SQL

Re: [Tutor] confusing installation

2013-03-01 Thread Jim Byrnes
On 03/01/2013 05:19 PM, Lolo Lolo wrote: He is showing you what to expect. Where ever you see a line starting with C:\ that is what he typed into the command line session, and > the lines that follow is the program you are installing informing you what it is doing. (Until you get to the next C:\

Re: [Tutor] confusing installation

2013-03-01 Thread Lolo Lolo
> problems else where. i will look for some easy install tutorials > If you just want to know about SQL databases you could try my tutorial topic > (only in the V2 version at the moment but it's nearly > > identical on V3) It > uses SQLite which is part of standard Python, although you can also

Re: [Tutor] confusing installation

2013-03-01 Thread Lolo Lolo
> He is showing you what to expect.  Where ever you see a line starting with > C:\ that is what he typed into the command line session, and > the lines that > follow is the program you are installing informing you what it is doing. > (Until you get to the next C:\ or the end)   i managed to inst

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Prasad, Ramit
Dave Angel wrote: > On 03/01/2013 02:48 PM, Huperetes wrote: > > I am getting the following for my installation. > > > > Why is this happening, and how do I get it to work properly (returning > > element 0 - n, versus n - 0)? > > > > Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Brad Hudson
> I am getting the following for my installation. > > Why is this happening, and how do I get it to work properly (returning > element 0 - n, versus n - 0)? > > Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on > win32 > Type "help", "copyright", "credits" or "license" fo

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Dave Angel
On 03/01/2013 02:48 PM, Huperetes wrote: I am getting the following for my installation. Why is this happening, and how do I get it to work properly (returning element 0 - n, versus n - 0)? Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyrigh

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Joel Goldstick
On Fri, Mar 1, 2013 at 2:48 PM, Huperetes wrote: > I am getting the following for my installation. > > Why is this happening, and how do I get it to work properly (returning > element 0 - n, versus n - 0)? > This is happening because dictionaries are not ordered. The fact that it happens to loo

Re: [Tutor] Reversed dictionary returned by default

2013-03-01 Thread Danny Yoo
> Why is this happening, and how do I get it to work properly (returning > element 0 - n, versus n - 0)? Python dictionaries are unordered collections. When we iterate across them, we can not guarantee that we'll walk the elements in the order that we inserted them. The reason for that is becaus

Re: [Tutor] Problem with os.system

2013-03-01 Thread Brad Hudson
> #!/usr/bin/env python > > import os > > global name_wo_ext > > name_wo_ext = "d:\\fun" > > os.system("mkdir %s" % (name_wo_ext)) > > > > This gets executed well but there is no directory created L I tried with > another command as below and it works for me > This is not a problem with os.system.

[Tutor] Reversed dictionary returned by default

2013-03-01 Thread Huperetes
I am getting the following for my installation. Why is this happening, and how do I get it to work properly (returning element 0 - n, versus n - 0)? Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more informa

Re: [Tutor] confusing installation

2013-03-01 Thread Alan Gauld
On 01/03/13 11:50, Lolo Lolo wrote: i want to learn about how to use databases and this specific chapter is meant to introduce its readers to options available (not just SQLAlchemy). It's already at a beginner's level so i might run into the same problems else where. i will look for some easy in

Re: [Tutor] confusing installation

2013-03-01 Thread Alan Gauld
On 01/03/13 16:05, Lolo Lolo wrote: > This should be relevant: http://www.voidspace.org.uk/python/articles/command_line.shtml in searching for command line tutorials i also came across Powershell and noticed commands that work in one don't work in the other. Would you recommend Powershell over C

Re: [Tutor] Problem with os.system

2013-03-01 Thread Dave Angel
On 03/01/2013 08:07 AM, Vijay Kumar R wrote: I was using python for some application which used to create directories and also to run some exes using the os.system command from a program.py file which was working fine. For some reasons I got my system formatted and got the windows 7 installed.

Re: [Tutor] confusing installation

2013-03-01 Thread Prasad, Ramit
Lolo Lolo wrote: > >Welcome to the world of software development. GUIs like Windows are great > >for doing simple things but > they can't compete with >command line tools for doing powerful things > quickly. So pretty much every > programmer has to get used to using the command line >sooner or la

Re: [Tutor] confusing installation

2013-03-01 Thread Lolo Lolo
> Since you use python 3 you will need to download the file: > distribute_setup.py.  To do so you will need a web browser or the > command > line tool curl.  I use Firefox and when I click on the url you give below it > immediately offers to download the required file. thanks i tried it on fire

Re: [Tutor] confusing installation

2013-03-01 Thread Lolo Lolo
> This should be relevant:  > http://www.voidspace.org.uk/python/articles/command_line.shtml in searching for command line tutorials i also came across Powershell and noticed commands that work in one don't work in the other. Would you recommend Powershell over CMD?_

Re: [Tutor] confusing installation

2013-03-01 Thread Jim Byrnes
On 02/28/2013 08:33 PM, Lolo Lolo wrote: Hi all. Im working through a database tutorial in a book called Core Python Applications. On page 290 it asks of me to install something though its not clear what it is. I think it has to do with SQLAlchemy. It says if you use Python 3 you'll need to get d

Re: [Tutor] confusing installation

2013-03-01 Thread Walter Prins
Hi, On 1 March 2013 10:58, Alan Gauld wrote: > On 01/03/13 02:33, Lolo Lolo wrote: > >> SQLAlchemy with easy install. Here is what this entire process might >> > look like on a Windows-based PC... then it proceeds to write a whole >> bunch of god know what. It looks similar to when you install

Re: [Tutor] Problem with os.system

2013-03-01 Thread Albert-Jan Roskam
>I was using python for some application which used to create directories and >also to run some exes using the os.system command from a program.py file which >was working fine. For some reasons I got my system formatted and got the >windows 7 installed. >  >Now again I installed python and trie

[Tutor] Problem with os.system

2013-03-01 Thread Vijay Kumar R
I was using python for some application which used to create directories and also to run some exes using the os.system command from a program.py file which was working fine. For some reasons I got my system formatted and got the windows 7 installed. Now again I installed python and tried runnin

Re: [Tutor] confusing installation

2013-03-01 Thread Lolo Lolo
>Welcome to the world of software development. GUIs like Windows are great for >doing simple things but they can't compete with >command line tools for doing >powerful things quickly. So pretty much every programmer has to get used to >using the command line >sooner or later. >If you are not us

Re: [Tutor] confusing installation

2013-03-01 Thread Alan Gauld
On 01/03/13 02:33, Lolo Lolo wrote: Hi all. Im working through a database tutorial in a book called Core Python Applications. I'm not familiar with that book so can't offer specific help. SQLAlchemy with easy install. Here is what this entire process might look like on a Windows-based PC... t