>Installing 3.3 associated .py files with %windir%\py.exe, but it seems
>the icon cache wasn't refreshed. You can trigger a refresh by setting
>any default in the "Default Programs" control panel applet. If that
>fails, you can manually delete the cache from the cmd shell:
> del /a %localappd
On Tue, Mar 5, 2013 at 12:14 AM, Dave Angel wrote:
>
> #!c:\python3.3\python.exe (or wherever the installation directory
> actually is)
>
> or what Eryksun suggested:
>
> #!/usr/bin/env python3.0
>
> I can't tell which would be right, since I don't run Windows. Any more.
Both forms work. The
On 03/04/2013 11:57 PM, eryksun wrote:
On Mon, Mar 4, 2013 at 10:54 PM, Lolo Lolo wrote:
no if i double click the .py file, Python 3.3 opens all of my python 3
files. A lot of 3.0 files won't run but that's okay. Now on my command line
if i enter the correct version's directory, and use: python
On Mon, Mar 4, 2013 at 10:54 PM, Lolo Lolo wrote:
> no if i double click the .py file, Python 3.3 opens all of my python 3
> files. A lot of 3.0 files won't run but that's okay. Now on my command line
> if i enter the correct version's directory, and use: python myfile.py then
> the correct versio
> (Please get the quoting right in your messages. Either you've got a
> brain-dead mail program, or you're trying to bypass it's methods.
> On your last message you attributed Eryksun's comments as though they were
> your own.)
sorry this is yahoo's fault, i have to manually insert the ">"
(Please get the quoting right in your messages. Either you've got a
brain-dead mail program, or you're trying to bypass it's methods. On
your last message you attributed Eryksun's comments as though they were
your own.)
On 03/04/2013 09:49 PM, Lolo Lolo wrote:
no sorry i made a mistake it
I don't know how that's working. There are no executables or batch
files with those names in the default installations. It's always
"python.exe". Plus the default install options don't muck with the
PATH environment variable. Did you rename (or NTFS symlink) the
executables and add the install dire
On 05/03/13 01:22, Charles Leviton wrote:
I have some confusion regarding when findall returns a list of strings
and when it returns a list of tuples.
Would appreciate an explanation.
re is not my strongest suite but I'll have a go.
My understanding of how findall works is that it returns a l
On Mon, Mar 4, 2013 at 8:22 PM, Charles Leviton
wrote:
> I have some confusion regarding when findall returns a list of strings and
> when it returns a list of tuples.
> Would appreciate an explanation.
If there are no groups, it returns a list of strings, where the
strings are the whole match.
I have some confusion regarding when findall returns a list of strings and
when it returns a list of tuples.
Would appreciate an explanation.
I thought if I "grouped" my match string using parentheses I'd get a list
of tuples but this example below belies my expectation.
s1 = '1MichaelJessica'
>>
On 03/04/2013 07:28 PM, Pravya Reddy wrote:
Hi
I am having a builtin intendation error for print Addem(3,2).Does it vary
for different versions of python?
How to clear the error?
def Addem(this, that):
return this + that
print Addem(3, 2)
The print statement doesn't line up with t
Hi
I am having a builtin intendation error for print Addem(3,2).Does it vary
for different versions of python?
How to clear the error?
def Addem(this, that):
return this + that
print Addem(3, 2)
print Addem("book", "worm")
print Addem(3.2, 1)
try:
print Addem("caution",1)
exce
On Mon, Mar 4, 2013 at 2:58 PM, Lolo Lolo wrote:
>>then you should be able to say
>> python3.3 myscript.py
>>or python3.0 myscript.py
>
> thanks it installed independently like you said. and those python3.3 or
> python3.0 in the command line seems to do the trick!
I don't know how that's wo
thanks for the recommendations. I think i will try a smaller framework first
(haven't decided which) to learn how it all works without the additional
features. Then probably will go for Django after i get comfortable working with
the web ___
Tuto
>Python 3.3 will definitely install independently of 3.0 on Windows. It's only
>the minor versions that happen in place, like going from 3.3 >to 3.3.1
>If you're running your scripts explicitly, by something like:
> python myscript.py
>then you should be able to say
> python3.3 myscript.p
On Mon, 2013-03-04 at 17:58 +, Alan Gauld wrote:
[…]
> There are so many web frameworks for Python that asking which is bet is
> rather pointless. They are all fairly good, some are very good for
> specific tasks, others are more general. The main thing to start with is
> pick one and learn
On 04/03/13 16:30, Lolo Lolo wrote:
Also i want to learn web development ...
ask which is a better bet, Bottle or Cherrypy? ... Also is Pyramid a
lightweight framework as its description suggests or is it big/complex
like Django?
There are so many web frameworks for Python that asking which is
On 03/04/2013 11:30 AM, Lolo Lolo wrote:
Hey all, i am running python 3.0 but i realized a lot of modules that support
version 3 do not support 3.0. now i want to install Python 3.3 but im worried
the two versions (3.0 and 3.3) might confuse my machine. i don't want to lose
my work in 3.0 and
Hey all, i am running python 3.0 but i realized a lot of modules that support
version 3 do not support 3.0. now i want to install Python 3.3 but im worried
the two versions (3.0 and 3.3) might confuse my machine. i don't want to lose
my work in 3.0 and i installed some modules and saved some wor
On 05/03/13 00:24, Dave Angel wrote:
import array
myarray = array.array('b', mylist)
An array is somewhat slower than a list,
I think that it's true that using a list *can* be faster, but that's only
because we're comparing apples with oranges. Arrays do more work than lists.
For example, u
On 03/04/2013 01:48 AM, DoanVietTrungAtGmail wrote:
Don, Dave - Thanks for your help!
Don: Thanks! I've just browsed the AST documentation, much of it goes over
my head, but the ast.literal_eval helper function works beautifully for me.
Dave: Again, thanks! Also, you asked "More space efficient
> I have given the admin privileges for my drive but still os.system won't
> work :(
>
Are you saying you applied "Administrator" privileges to the
drive/folder? If so, are you executing your script as a normal user or
as "Administrator"? Example: In order to run something from the
command prompt a
22 matches
Mail list logo