Re: [Tutor] Small personal project to fill CDs/DVDs...

2013-01-24 Thread Alan Gauld
On 24/01/13 05:32, SCS Barry wrote: Need to fill some DVDs. Sounds like an interesting project. Most of what you need is in the os module. create a python application that works on many different platforms, but can work without problems on Windows (ALL), Linux (ALL) using Gtk/xfce/other

[Tutor] String formatting expression g conversion type case.

2013-01-24 Thread Krupkina Lesya Olegovna
Hello! I’m newcomer to Python and I’m on documentation reading stage and trying some of examples. I’m using Win7 x64 OS and Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]. I try to understand how string format expression (%)works. Everything is almost clear but except

[Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
hi guys i am a python 3.1.1. user but really need to use python 2 to be able to use certain libraries and frameworks. i have installed python 2.7 but they cant run together as all .py and .pyw files are opened with python 3. i can open simple python 2 files by right clicking and finding pythons

Re: [Tutor] String formatting expression g conversion type case.

2013-01-24 Thread Peter Otten
Krupkina Lesya Olegovna wrote: Python outputs decimal as declared as but with more significant digits than default value of 6 - if integer part of the decimal is equal to zero. %#g%0.3 '0.30' In this context significant digits are the first non-zero digit and any digits (including zero)

Re: [Tutor] String formatting expression g conversion type case.

2013-01-24 Thread Barnaby Scott
On 24/01/2013 13:29, Krupkina Lesya Olegovna wrote: Hello! I’m newcomer to Python and I’m on documentation reading stage and trying some of examples. I’m using Win7 x64 OS and Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]. I try to understand how string format

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Mark Lawrence
On 24/01/2013 13:46, Matthew Ngaha wrote: hi guys i am a python 3.1.1. user but really need to use python 2 to be able to use certain libraries and frameworks. i have installed python 2.7 but they cant run together as all .py and .pyw files are opened with python 3. i can open simple python 2

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Dave Angel
On 01/24/2013 08:46 AM, Matthew Ngaha wrote: hi guys i am a python 3.1.1. user but really need to use python 2 to be able to use certain libraries and frameworks. i have installed python 2.7 but they cant run together as all .py and .pyw files are opened with python 3. i can open simple python 2

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
Python 3.3 for Windows comes with a launcher, which will approximate (for Python only) what Unix and Linux users have had for years for any scripting language. You can get it separately, as Mark Lawrence has said, but maybe it's time to bring your 3.x current. there was a lot of reading in

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Dave Angel
On 01/24/2013 11:11 AM, Matthew Ngaha wrote: Python 3.3 for Windows comes with a launcher, which will approximate (for Python only) what Unix and Linux users have had for years for any scripting language. You can get it separately, as Mark Lawrence has said, but maybe it's time to bring your

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Mark Lawrence
On 24/01/2013 16:11, Matthew Ngaha wrote: there was a lot of reading in the previous links, i got a bit lost as i didnt recognize a lot of the words they were using. If i install Pyhon 3.3 do i need to uninstall my current python 3.1 and reinstall all the downloaded modules/packages i

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
You don't have to uninstall 3.1 but you would have to install all the downloaded modules or packages that you have in your 3.1 site packages folder to the 3.3 site packages folder. Maybe it's easier to simply grab the standalone pylauncher as I suggested earlier. Only you know what is the

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
yes the 2nd option (standalone pylauncher) sounds more convienient for me. i just have to try and comprehend all the instructions given.. hopefully ill get there in the end i managed to install the laucher. on the site when i click the correct launcher 32bit, i chose run and it automatically

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Dave Angel
On 01/24/2013 01:26 PM, Matthew Ngaha wrote: yes the 2nd option (standalone pylauncher) sounds more convienient for me. i just have to try and comprehend all the instructions given.. hopefully ill get there in the end i managed to install the laucher. on the site when i click the correct

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
Have you added shebang lines to those scripts yet? yes i added them. i think the problem is at the start where it asks me to: You should ensure the launcher is on your PATH - depending on how it was installed it may already be there, but check just in case it is not. From a command-prompt,

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Dave Angel
On 01/24/2013 01:56 PM, Matthew Ngaha wrote: Have you added shebang lines to those scripts yet? yes i added them. i think the problem is at the start where it asks me to: You should ensure the launcher is on your PATH - depending on how it was installed it may already be there, but check

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
I'm not using it, since I'm not using Windows. So these are guesses based on years stuck\b\b\b\b\b spent in the Windows environment. Clearly, the name of the program is py.exe, so that's what you should try searching for. From the cmd prompt, try dir /s py.exe Or, you could just try

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Oscar Benjamin
On 24 January 2013 20:14, Matthew Ngaha chigga...@gmail.com wrote: thanks Dave. the file was py.exe as you said and the temporary path is able to open both version 2 and 3's python.exe. There seems to be a problem. python 2 seems to be the only version opening my files unless i do a few

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread eryksun
On Thu, Jan 24, 2013 at 1:56 PM, Matthew Ngaha chigga...@gmail.com wrote: py is not recognized and and it said depending on how it was installed. the problem is it didnt allow me to select a path when installing. The simpler installer is launchwin.msi, which installs to the Windows directory.

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
Did you find the control-panel-way to modify the PATH (assuming py.exe wasn't already in there) ? Without it, I'd be surprised if right-click would work correctly. And as for IDLE, there are two different IDLEs, one in each directory. So run the one that corresponds to the python you'll be

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
On Thu, Jan 24, 2013 at 9:35 PM, eryksun eryk...@gmail.com wrote: On Thu, Jan 24, 2013 at 1:56 PM, Matthew Ngaha chigga...@gmail.com wrote: py is not recognized and and it said depending on how it was installed. the problem is it didnt allow me to select a path when installing. The simpler

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Matthew Ngaha
In a cmd shell, check that 'assoc .py' is Python.File and that 'ftype Python.File' points to py.exe in your Windows directory, e.g. C:\Windows\py.exe %1 %*'. If it's wrong, re-install. Or fix it manually using assoc and ftype in an elevated cmd shell, which updates the local machine registry

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread eryksun
On Thu, Jan 24, 2013 at 5:39 PM, Matthew Ngaha chigga...@gmail.com wrote: D:\Data\Py\myworkftype Python.File Python.File=D:\Data\Py2.7\python.exe %1 %* That's the file class created by the 2.7 installer in the HKLM (local machine) Software hive. Overview of the Windows Registry: