[issue45823] phyton stopped working

2021-11-19 Thread Éric Araujo

Éric Araujo  added the comment:

Please give a more detailed answer: what is your OS version, what’s the version 
of python and how did you install it, what is your IDE or how do you run your 
python script, copy full error messages from event viewer.  It would also be 
useful if you attached your script!

--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45823] phyton stopped working

2021-11-16 Thread Roxana 7


Roxana 7  added the comment:

i'm using a low end laptop with windows 86x

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45823] phyton stopped working

2021-11-16 Thread Steve Dower


Steve Dower  added the comment:

It's impossible for us to tell what's causing this without much more 
information, but could you first try switching to Python 3.10? Even if we 
figured it out, we wouldn't be fixing 3.7 at this stage.

If 3.10 still crashes, information about your OS, IDE, any packages you've 
installed, and any details you can find in Event Viewer (check the Application 
log) will be needed to track this down.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45823] phyton stopped working

2021-11-16 Thread Roxana 7


New submission from Roxana 7 :

Hello everyone, I try to program a simple calculator for a university project 
but the sotfware always get an error window "phyton stopped working" when i add 
it on a IDE.
I have reinstalled it so many times and it's always the same

--
components: Windows
messages: 406426
nosy: paul.moore, steve.dower, tim.golden, vicentpaul869, zach.ware
priority: normal
severity: normal
status: open
title: phyton stopped working
type: crash
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue45823>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Phyton 32 or 64 bit?

2020-05-27 Thread Bischoop
On 2020-05-26, Alex Kaye  wrote:
> To all:
>
> The only stupid question is one that wasn't asked !
>
> Alex
>

Well, visit FB and you'll change your mind.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton 32 or 64 bit?

2020-05-26 Thread Alex Kaye
To all:

The only stupid question is one that wasn't asked !

Alex

On Tue, May 26, 2020 at 12:42 PM MRAB  wrote:

> On 2020-05-26 19:13, R. A. Hoffman via Python-list wrote:
> >
> > Good afternoon,
> >
> >
> >
> > Please forgive what may be a stupid question. I’m an absolute beginner
> and downloaded Python 3.8 for 32bits. I’m running Windows 10 on 64bit
> machine.
> >
> >
> >
> > Question 1 : is it OK to run Python (32 bits) on my machine ?
> >
> The 32-bit version will run on both 32-bit and 64-bit machines.
>
> If you're intending to work with many gigs of RAM then you'd need the
> 64-bit version, otherwise the 32-bit version is fine.
> >
> >
> > Question 2 : The download went fine. How do I go from here to install
> and run Python ?
> >
> What exactly did you download? If it's the "executable installer", then
> just run it to install Python.
> >
> >
> > Sorry for the dumb questions. Thanks for any help.
> >
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton 32 or 64 bit?

2020-05-26 Thread MRAB

On 2020-05-26 19:13, R. A. Hoffman via Python-list wrote:


Good afternoon,

  


Please forgive what may be a stupid question. I’m an absolute beginner and 
downloaded Python 3.8 for 32bits. I’m running Windows 10 on 64bit machine.

  


Question 1 : is it OK to run Python (32 bits) on my machine ?


The 32-bit version will run on both 32-bit and 64-bit machines.

If you're intending to work with many gigs of RAM then you'd need the 
64-bit version, otherwise the 32-bit version is fine.
  


Question 2 : The download went fine. How do I go from here to install and run 
Python ?

What exactly did you download? If it's the "executable installer", then 
just run it to install Python.
  


Sorry for the dumb questions. Thanks for any help.


--
https://mail.python.org/mailman/listinfo/python-list


Phyton 32 or 64 bit?

2020-05-26 Thread R. A. Hoffman via Python-list

Good afternoon,

 

Please forgive what may be a stupid question. I’m an absolute beginner and 
downloaded Python 3.8 for 32bits. I’m running Windows 10 on 64bit machine.

 

Question 1 : is it OK to run Python (32 bits) on my machine ?

 

Question 2 : The download went fine. How do I go from here to install and run 
Python ?

 

Sorry for the dumb questions. Thanks for any help.

 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton hata

2020-05-04 Thread Michael Torrie
On 5/4/20 4:15 AM, HÜSEYİN KOÇ wrote:
> Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile 
> karşılaştınız diyerek hata veriyor
> 
> 
> Windows 10 için Posta<https://go.microsoft.com/fwlink/?LinkId=550986> ile 
> gönderildi
> 

Please ensure Windows is up to date using Windows Update. That will
solve most installation problems.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton hata

2020-05-04 Thread Souvik Dutta
ne hatası alıyorsun

Souvik flutter dev

On Tue, May 5, 2020, 1:28 AM HÜSEYİN KOÇ  wrote:

> Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile
> karşılaştınız diyerek hata veriyor
>
>
> Windows 10 için Posta<https://go.microsoft.com/fwlink/?LinkId=550986> ile
> gönderildi
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


phyton hata

2020-05-04 Thread HÜSEYİN KOÇ
Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile karşılaştınız 
diyerek hata veriyor


Windows 10 için Posta<https://go.microsoft.com/fwlink/?LinkId=550986> ile 
gönderildi

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread Pankaj Jangid
inhahe  writes:

> On Tue, Sep 10, 2019 at 8:41 AM Pankaj Jangid 
> wrote:
>
>> You can do something like this ;-)
>>
>>
>> import math
>>
>> def add_vat(a, b):
>> return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) *
>> 0.15538))/100
>>
>> print(add_vat(101, 'high'))
>> print(add_vat(101, 'low'))
>>
>> --
>> Pankaj Jangid
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
>
> BAD BAD BAD don't do Pankaj's suggestion, tim, it's DEVILSPEAK

:-( what did I do? This is giving correct ans. hahahaha
-- 
Pankaj Jangid
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread Chris Angelico
On Tue, Sep 10, 2019 at 10:54 PM tim.gast--- via Python-list
 wrote:
>
> Op dinsdag 10 september 2019 14:45:58 UTC+2 schreef inhahe:
> > On Tue, Sep 10, 2019 at 8:41 AM Pankaj Jangid 
> > wrote:
> >
> > > tim.g...@quicknet.nl writes:
> > >
> > > > For school i need to write the right code to get the following outcome.
> > > > Can someone help me with this
> > > > I can't find a solution to link the word high to 1.21.
> > > >
> > > > 11 print(add_vat(101, 'high'))
> > > > 12 print(add_vat(101, 'low'))
> > > >
> > > > Outcome:
> > > >
> > > > 122.21
> > > > 110.09
> > > >
> > > You can do something like this ;-)
> > >
> > >
> > > import math
> > >
> > > def add_vat(a, b):
> > > return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) *
> > > 0.15538))/100
> > >
> > > print(add_vat(101, 'high'))
> > > print(add_vat(101, 'low'))
> > >
> > > --
> > > Pankaj Jangid
> > > --
> > > https://mail.python.org/mailman/listinfo/python-list
> >
> >
> > BAD BAD BAD don't do Pankaj's suggestion, tim, it's DEVILSPEAK
>
> oeii thanks...
> What will happen when i copy it?

It won't break your computer or anything. But if you submit this to
your teacher, s/he will know for sure that you copied and pasted code
from the internet without understanding it :)

It achieves its result in one of the most ridiculous ways possible in
a single line of code.

(And having said that, I know that someone's going to post an even
more ridiculous way, just to prove it's possible.)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread inhahe
On Tue, Sep 10, 2019 at 12:06 PM tim.gast--- via Python-list <
python-list@python.org> wrote:

> Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
> > Hi everybody,
> >
> > For school i need to write the right code to get the following outcome.
> > Can someone help me with this
> > I can't find a solution to link the word high to 1.21.
> >
> > 11 print(add_vat(101, 'high'))
> > 12 print(add_vat(101, 'low'))
> >
> > Outcome:
> >
> > 122.21
> > 110.09
> >
> > Thanks!
>
> Hi inhahe,
>
> Yeah the 21 was just an example the calculation will come later.
> First i need to figure this out...
> Is this what you mean with adding a dictionary?
> berekening = amount * (1+(vat_rate={'high':21, 'low':5})
> --
> https://mail.python.org/mailman/listinfo/python-list


No, I mean add a dictionary lookup, meaning instead of vat_rate, use a
value that you look up in the dictionary, by using the syntax for looking
up values in dictionaries. What you wrote above would result in a syntax
error.

Hope this isn't considered doing your homework for you, but tell you how to
make a dictionary and look up a value from it.

#making the dictionary:
primeNumberIndexes = {179:41, 181:42, 191:43, 193:44}
#looking up a value in it:
IndexOf179 = primeNumberIndexes[179]
#IndexOf179 is now 41

Of course you can put a variable (actually a "name" in python terminology,
I think) in the brackets instead of a direct value, which you'll want to do.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
> Hi everybody,
> 
> For school i need to write the right code to get the following outcome.
> Can someone help me with this
> I can't find a solution to link the word high to 1.21.
> 
> 11 print(add_vat(101, 'high'))
> 12 print(add_vat(101, 'low'))
> 
> Outcome:
> 
> 122.21
> 110.09
> 
> Thanks!

Hi inhahe,

Yeah the 21 was just an example the calculation will come later.
First i need to figure this out...
Is this what you mean with adding a dictionary?
berekening = amount * (1+(vat_rate={'high':21, 'low':5})
-- 
https://mail.python.org/mailman/listinfo/python-list


phyton

2019-09-10 Thread tim.gast--- via Python-list
Hi everybody,

For school i need to write the right code to get the following outcome.
Can someone help me with this
I can't find a solution to link the word high to 1.21.

11 print(add_vat(101, 'high'))
12 print(add_vat(101, 'low'))

Outcome:

122.21
110.09

Thanks!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
Op dinsdag 10 september 2019 14:45:58 UTC+2 schreef inhahe:
> On Tue, Sep 10, 2019 at 8:41 AM Pankaj Jangid 
> wrote:
> 
> > tim.g...@quicknet.nl writes:
> >
> > > For school i need to write the right code to get the following outcome.
> > > Can someone help me with this
> > > I can't find a solution to link the word high to 1.21.
> > >
> > > 11 print(add_vat(101, 'high'))
> > > 12 print(add_vat(101, 'low'))
> > >
> > > Outcome:
> > >
> > > 122.21
> > > 110.09
> > >
> > You can do something like this ;-)
> >
> >
> > import math
> >
> > def add_vat(a, b):
> > return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) *
> > 0.15538))/100
> >
> > print(add_vat(101, 'high'))
> > print(add_vat(101, 'low'))
> >
> > --
> > Pankaj Jangid
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> 
> 
> BAD BAD BAD don't do Pankaj's suggestion, tim, it's DEVILSPEAK

oeii thanks...
What will happen when i copy it?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread Frank Millman

On 2019-09-10 2:29 PM, tim.gast--- via Python-list wrote:

Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:

Hi everybody,

For school i need to write the right code to get the following outcome.
Can someone help me with this
I can't find a solution to link the word high to 1.21.

11 print(add_vat(101, 'high'))
12 print(add_vat(101, 'low'))

Outcome:

122.21
110.09

Thanks!


my_dict('high':21,'low':5)

def add_vat(amount, vat_rate):
   berekening = amount * (1+vat_rate)
   return round(berekening,2)

print(add_vat(101, 'high'))

outcome:
   File "", line 3
 def add_vat(amount, vat_rate({'high':21,'low':5})):
 ^
SyntaxError: invalid syntax



First point - 122.21 is 101 + 21%, so 'high' could be 21, but 110.09 is 
101 + 9%, so I think 'low' should be 9.


Second point, I sympathise, but you do need to understand the basics of 
dictionaries before you can start using them. Check the tutorial, and 
experiment at the ipython prompt. I am using the normal python 
interpreter here, but the principle is the same -


>>> my_dict = dict()
>>> my_dict
{}
>>> my_dict = {}  # this does the same, but is shorter
>>> my_dict
{}
>>> my_dict['high'] = 21
>>> my_dict
{'high': 21}
>>>

Try that, and report back with any questions

Frank Millman

--
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread inhahe
On Tue, Sep 10, 2019 at 8:41 AM Pankaj Jangid 
wrote:

> tim.g...@quicknet.nl writes:
>
> > For school i need to write the right code to get the following outcome.
> > Can someone help me with this
> > I can't find a solution to link the word high to 1.21.
> >
> > 11 print(add_vat(101, 'high'))
> > 12 print(add_vat(101, 'low'))
> >
> > Outcome:
> >
> > 122.21
> > 110.09
> >
> You can do something like this ;-)
>
>
> import math
>
> def add_vat(a, b):
> return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) *
> 0.15538))/100
>
> print(add_vat(101, 'high'))
> print(add_vat(101, 'low'))
>
> --
> Pankaj Jangid
> --
> https://mail.python.org/mailman/listinfo/python-list


BAD BAD BAD don't do Pankaj's suggestion, tim, it's DEVILSPEAK
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
Op dinsdag 10 september 2019 14:36:13 UTC+2 schreef Pankaj Jangid:
> tim.g...@quicknet.nl writes:
> 
> > For school i need to write the right code to get the following outcome.
> > Can someone help me with this
> > I can't find a solution to link the word high to 1.21.
> >
> > 11 print(add_vat(101, 'high'))
> > 12 print(add_vat(101, 'low'))
> >
> > Outcome:
> >
> > 122.21
> > 110.09
> >
> You can do something like this ;-)
> 
> 
> import math
> 
> def add_vat(a, b):
> return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) * 
> 0.15538))/100
> 
> print(add_vat(101, 'high'))
> print(add_vat(101, 'low'))
> 
> -- 
> Pankaj Jangid

Wow
No idea what you did there :O
Thanks but I think I need to use the dictionary
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread Pankaj Jangid
tim.g...@quicknet.nl writes:

> For school i need to write the right code to get the following outcome.
> Can someone help me with this
> I can't find a solution to link the word high to 1.21.
>
> 11 print(add_vat(101, 'high'))
> 12 print(add_vat(101, 'low'))
>
> Outcome:
>
> 122.21
> 110.09
>
You can do something like this ;-)


import math

def add_vat(a, b):
return math.ceil(100*(a * 0.57 + sum([ord(c) for c in list(b)]) * 
0.15538))/100

print(add_vat(101, 'high'))
print(add_vat(101, 'low'))

-- 
Pankaj Jangid
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread inhahe
On Tue, Sep 10, 2019 at 8:31 AM inhahe  wrote:

>
>
> On Tue, Sep 10, 2019 at 8:10 AM tim.gast--- via Python-list <
> python-list@python.org> wrote:
>
>> Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
>> > Hi everybody,
>> >
>> > For school i need to write the right code to get the following outcome.
>> > Can someone help me with this
>> > I can't find a solution to link the word high to 1.21.
>> >
>> > 11 print(add_vat(101, 'high'))
>> > 12 print(add_vat(101, 'low'))
>> >
>> > Outcome:
>> >
>> > 122.21
>> > 110.09
>> >
>> > Thanks!
>>
>> I have tried to get it with the dictonary but it doesn't work
>> You are right that it is homework and i am trying to figure it out but i
>> cant find anything on the internet that can help me.
>> What am i doing wrong.
>>
>> my_dict('high':21,'low':5)
>>
>> def add_vat(amount, vat_rate):
>>   berekening = amount * (1+vat_rate)
>>   return round(berekening,2)
>>
>> print(add_vat(101, 'high'))
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
>
> I'm not sure exactly what you're trying to do (since 101+21 would give you
> 122, not 122.21), but I think your problem is that you're not actually
> using the dictionary in your add_vat function. You're just adding 1 to
> vat_rate which is 'high'. Adding an integer to a string should be an error.
> Instead of "vat_rate" in "1+vat_rate" you need to do a dictionary lookup.
>

Oh, and my_dict('high':21, 'low':5) isn't actually how you set dictionary
values. Unless you have some weird function my_dict in your code that does
that that you're not listing
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread inhahe
On Tue, Sep 10, 2019 at 8:10 AM tim.gast--- via Python-list <
python-list@python.org> wrote:

> Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
> > Hi everybody,
> >
> > For school i need to write the right code to get the following outcome.
> > Can someone help me with this
> > I can't find a solution to link the word high to 1.21.
> >
> > 11 print(add_vat(101, 'high'))
> > 12 print(add_vat(101, 'low'))
> >
> > Outcome:
> >
> > 122.21
> > 110.09
> >
> > Thanks!
>
> I have tried to get it with the dictonary but it doesn't work
> You are right that it is homework and i am trying to figure it out but i
> cant find anything on the internet that can help me.
> What am i doing wrong.
>
> my_dict('high':21,'low':5)
>
> def add_vat(amount, vat_rate):
>   berekening = amount * (1+vat_rate)
>   return round(berekening,2)
>
> print(add_vat(101, 'high'))
> --
> https://mail.python.org/mailman/listinfo/python-list


I'm not sure exactly what you're trying to do (since 101+21 would give you
122, not 122.21), but I think your problem is that you're not actually
using the dictionary in your add_vat function. You're just adding 1 to
vat_rate which is 'high'. Adding an integer to a string should be an error.
Instead of "vat_rate" in "1+vat_rate" you need to do a dictionary lookup.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
> Hi everybody,
> 
> For school i need to write the right code to get the following outcome.
> Can someone help me with this
> I can't find a solution to link the word high to 1.21.
> 
> 11 print(add_vat(101, 'high'))
> 12 print(add_vat(101, 'low'))
> 
> Outcome:
> 
> 122.21
> 110.09
> 
> Thanks!

my_dict('high':21,'low':5)

def add_vat(amount, vat_rate):
  berekening = amount * (1+vat_rate)
  return round(berekening,2)

print(add_vat(101, 'high'))

outcome:
  File "", line 3
def add_vat(amount, vat_rate({'high':21,'low':5})):
^
SyntaxError: invalid syntax
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread Joel Goldstick
On Tue, Sep 10, 2019 at 8:10 AM tim.gast--- via Python-list
 wrote:
>
> Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
> > Hi everybody,
> >
> > For school i need to write the right code to get the following outcome.
> > Can someone help me with this
> > I can't find a solution to link the word high to 1.21.
> >
> > 11 print(add_vat(101, 'high'))
> > 12 print(add_vat(101, 'low'))
> >
> > Outcome:
> >
> > 122.21
> > 110.09
> >
> > Thanks!
>
> I have tried to get it with the dictonary but it doesn't work
> You are right that it is homework and i am trying to figure it out but i cant 
> find anything on the internet that can help me.
> What am i doing wrong.
>
> my_dict('high':21,'low':5)
>
> def add_vat(amount, vat_rate):
>   berekening = amount * (1+vat_rate)
>   return round(berekening,2)
>
> print(add_vat(101, 'high'))
> --
> https://mail.python.org/mailman/listinfo/python-list
These code snippets don't run  Can you paste your complete code that
runs, with the output you get?



-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread tim.gast--- via Python-list
Op dinsdag 10 september 2019 13:03:46 UTC+2 schreef tim...@quicknet.nl:
> Hi everybody,
> 
> For school i need to write the right code to get the following outcome.
> Can someone help me with this
> I can't find a solution to link the word high to 1.21.
> 
> 11 print(add_vat(101, 'high'))
> 12 print(add_vat(101, 'low'))
> 
> Outcome:
> 
> 122.21
> 110.09
> 
> Thanks!

I have tried to get it with the dictonary but it doesn't work
You are right that it is homework and i am trying to figure it out but i cant 
find anything on the internet that can help me.
What am i doing wrong.

my_dict('high':21,'low':5)

def add_vat(amount, vat_rate):
  berekening = amount * (1+vat_rate)
  return round(berekening,2)

print(add_vat(101, 'high'))
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: phyton

2019-09-10 Thread Piet van Oostrum
tim.g...@quicknet.nl writes:

> Hi everybody,
>
> For school i need to write the right code to get the following outcome.
> Can someone help me with this
> I can't find a solution to link the word high to 1.21.
>
> 11 print(add_vat(101, 'high'))
> 12 print(add_vat(101, 'low'))
>
> Outcome:
>
> 122.21
> 110.09
>
> Thanks!

You could use a dictionary to connect the words to the values.

As this is homework you have to do it yourself. Learn about dictionaries. 
Otherwise just use 'if'.
-- 
Piet van Oostrum 
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Chris Angelico
On Mon, Mar 7, 2016 at 5:45 PM,   wrote:
> As a side note, you are probably aware that if you look at the Linux
> ecosystems there are still a lot of distributions that have Python 2
> as a default. There are still also large mainstream libraries that
> do not (or just very recently) have support for Python 3. For me this
> in particular applied to VTK. I am now finally ready to move to Python 3.

There aren't many mainstream libraries that are still being developed
and don't support Python 3 and don't have equivalents that support
Python 3. There are a reasonable number of third-party modules that
are basically "hey folks, here's the bindings for C++, here's the
bindings for Java, and here's the bindings for Python", where "Python"
has for years meant Py2 only; from what I see of VTK, that seems to be
the case. (It's true of the Google API module, too.) The only way to
get this sort of thing to change is to show these companies that there
is real demand for Python 3 support.

As to Linux distros having Py2 as default - there are two separate
things here. One is that the name "python" will run Python 2, and
Python 3 has to be invoked as "python3". That's stipulated by PEP 394,
and won't be changing. The second concept is of packages being
installed by default, and/or being depended on by critical services.
At the moment, that's more Py2 than Py3, but several distros are
working on migrating (Ubuntu tried hard to have 14.04 ship without Py2
on the main CD ISO, but failed; not sure where they're at now, but
it's definitely the plan), and that's going to start shifting. But for
an application developer, it hardly even matters. If you ship Ruby
code, you declare a dependency on Ruby; if you ship Python code, you
declare a dependency on either Python 2 or Python 3, or "python-any"
or somesuch if you're compatible with both. It's easy enough to have
both Pythons installed on every Linux system that I've ever worked on,
and I rather doubt that that will change.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread marco . nawijn
On Sunday, March 6, 2016 at 6:10:22 PM UTC+1, Mark Lawrence wrote:
> On 06/03/2016 15:28, marco.naw...@colosso.nl wrote:
> > On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote:
> >> Hello! I have a question in an exercise that says : Write an expression to 
> >> determine whether a person should or should not pay tax . Consider paying 
> >> tax people whose salary is greater than R $ 1,200.00
> >>
> >> I do not know how to mount the logical expression !!!
> >>
> >> It's like:
> >>
> >> salary = 1250
> >> tax = Not True
> >> salary > 1200 or not tax 
> >
> > Hello Diego,
> >
> > You are looking for the "if" statement. See the link below for
> > the corresponding documentation:
> > https://docs.python.org/2/tutorial/controlflow.html
> >
> > Your example would become something like:
> >
> > salary = 1250.
> > if salary > 1200:
> >  has_to_pay_tax = True
> > else:
> >  has_to_pay_tax = False
> >
> > Marco
> >
> 
> Why in the year 2016 are people still giving links to the Luddite Python 
> 2 docs?
> 
> -- 
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
> 
> Mark Lawrence



On Sunday, March 6, 2016 at 6:10:22 PM UTC+1, Mark Lawrence wrote:
> On 06/03/2016 15:28, marco.naw...@colosso.nl wrote:
> > On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote:
> >> Hello! I have a question in an exercise that says : Write an expression to 
> >> determine whether a person should or should not pay tax . Consider paying 
> >> tax people whose salary is greater than R $ 1,200.00
> >>
> >> I do not know how to mount the logical expression !!!
> >>
> >> It's like:
> >>
> >> salary = 1250
> >> tax = Not True
> >> salary > 1200 or not tax 
> >
> > Hello Diego,
> >
> > You are looking for the "if" statement. See the link below for
> > the corresponding documentation:
> > https://docs.python.org/2/tutorial/controlflow.html
> >
> > Your example would become something like:
> >
> > salary = 1250.
> > if salary > 1200:
> >  has_to_pay_tax = True
> > else:
> >  has_to_pay_tax = False
> >
> > Marco
> >
> 
> Why in the year 2016 are people still giving links to the Luddite Python 
> 2 docs?
> 
> -- 
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
> 
> Mark Lawrence


> Why in the year 2016 are people still giving links to the Luddite Python 
>2 docs?

As Ian already mentioned, the Python 2 docs came up as the first hit on
Google. However, I agree with you that for a newcomers to Python a link
to Python 3 would probably have been more appropriate (not that I believe
the content of the sections would be any different). 

As a side note, you are probably aware that if you look at the Linux
ecosystems there are still a lot of distributions that have Python 2
as a default. There are still also large mainstream libraries that
do not (or just very recently) have support for Python 3. For me this
in particular applied to VTK. I am now finally ready to move to Python 3.

Marco
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Chris Angelico
On Mon, Mar 7, 2016 at 10:14 AM, Steven D'Aprano  wrote:
> And I take exception to your use of the word "Luddite" to describe Python 2.
> Python 2 is a perfectly fine programming language, and it will continue to
> be used by some well past 2020. There's no need to bully people into
> upgrading to Python 3, or insult those using Python 2. Python 2 is here for
> the long haul.

I would, however, use the term "legacy" to describe Python 2. It's no
longer the "current stable" version - it's the "old stable", being
maintained at its current state and not advanced further. It's not as
insulting as "Luddite", and more accurate.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Larry Martell
On Sun, Mar 6, 2016 at 6:14 PM, Steven D'Aprano  wrote:
> On Mon, 7 Mar 2016 04:05 am, Mark Lawrence wrote:
>
>> Why in the year 2016 are people still giving links to the Luddite Python
>> 2 docs?
>
> Because Python 2.7 is still supported, and will be officially supported
> until 2020, after which it will still have third-party support from
> companies like Red Hat until at least 2023.
>
> And I take exception to your use of the word "Luddite" to describe Python 2.
> Python 2 is a perfectly fine programming language, and it will continue to
> be used by some well past 2020. There's no need to bully people into
> upgrading to Python 3, or insult those using Python 2. Python 2 is here for
> the long haul.

I am an independent contractor and I have worked for 7 companies in
the last 10 years. A total of 1 of those 7 are using python 3. All the
others are using 2.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Steven D'Aprano
On Mon, 7 Mar 2016 04:05 am, Mark Lawrence wrote:

> Why in the year 2016 are people still giving links to the Luddite Python
> 2 docs?

Because Python 2.7 is still supported, and will be officially supported
until 2020, after which it will still have third-party support from
companies like Red Hat until at least 2023.

And I take exception to your use of the word "Luddite" to describe Python 2.
Python 2 is a perfectly fine programming language, and it will continue to
be used by some well past 2020. There's no need to bully people into
upgrading to Python 3, or insult those using Python 2. Python 2 is here for
the long haul.


-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Mark Lawrence

On 06/03/2016 17:20, Ian Kelly wrote:

On Sun, Mar 6, 2016 at 10:05 AM, Mark Lawrence  wrote:

Why in the year 2016 are people still giving links to the Luddite Python 2
docs?


Maybe because it's the version that comes up when googling for "python
if statement".



The obvious solution is to take down all the Python 2 stuff so people 
can only find Python 3, problem solved.


Hears screams of anguish despite having ears firmly closed :)

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Ian Kelly
On Sun, Mar 6, 2016 at 10:05 AM, Mark Lawrence  wrote:
> Why in the year 2016 are people still giving links to the Luddite Python 2
> docs?

Maybe because it's the version that comes up when googling for "python
if statement".
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Mark Lawrence

On 06/03/2016 15:28, marco.naw...@colosso.nl wrote:

On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote:

Hello! I have a question in an exercise that says : Write an expression to 
determine whether a person should or should not pay tax . Consider paying tax 
people whose salary is greater than R $ 1,200.00

I do not know how to mount the logical expression !!!

It's like:

salary = 1250
tax = Not True
salary > 1200 or not tax 


Hello Diego,

You are looking for the "if" statement. See the link below for
the corresponding documentation:
https://docs.python.org/2/tutorial/controlflow.html

Your example would become something like:

salary = 1250.
if salary > 1200:
 has_to_pay_tax = True
else:
 has_to_pay_tax = False

Marco



Why in the year 2016 are people still giving links to the Luddite Python 
2 docs?


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread Mark Lawrence

On 05/03/2016 15:41, Diego ... wrote:

Hello! I have a question in an exercise that says : Write an expression to 
determine whether a person should or should not pay tax . Consider paying tax 
people whose salary is greater than R $ 1,200.00

I do not know how to mount the logical expression !!!

It's like:

salary = 1250
tax = Not True
salary > 1200 or not tax 



Start here 
https://docs.python.org/3/tutorial/controlflow.html#if-statements.  You 
won't need your 'tax' variable if all you're doing is deciding whether 
or not they pay tax.


--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread BartC

On 06/03/2016 15:28, marco.naw...@colosso.nl wrote:

On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote:

Hello! I have a question in an exercise that says : Write an expression to 
determine whether a person should or should not pay tax . Consider paying tax 
people whose salary is greater than R $ 1,200.00

I do not know how to mount the logical expression !!!

It's like:

salary = 1250
tax = Not True
salary > 1200 or not tax 


Hello Diego,

You are looking for the "if" statement. See the link below for
the corresponding documentation:
https://docs.python.org/2/tutorial/controlflow.html

Your example would become something like:

salary = 1250.
if salary > 1200:
 has_to_pay_tax = True
else:
 has_to_pay_tax = False


The OP mentioned finding an expression. So perhaps:


has_to_pay_tax = salary > 1200

--
Bartc



--
https://mail.python.org/mailman/listinfo/python-list


Re: Phyton

2016-03-06 Thread marco . nawijn
On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote:
> Hello! I have a question in an exercise that says : Write an expression to 
> determine whether a person should or should not pay tax . Consider paying tax 
> people whose salary is greater than R $ 1,200.00
> 
> I do not know how to mount the logical expression !!!
> 
> It's like:
> 
> salary = 1250
> tax = Not True
> salary > 1200 or not tax 

Hello Diego,

You are looking for the "if" statement. See the link below for
the corresponding documentation:
   https://docs.python.org/2/tutorial/controlflow.html

Your example would become something like:

salary = 1250.
if salary > 1200:
has_to_pay_tax = True
else:
has_to_pay_tax = False

Marco
-- 
https://mail.python.org/mailman/listinfo/python-list


Phyton

2016-03-06 Thread Diego ...
Hello! I have a question in an exercise that says : Write an expression to 
determine whether a person should or should not pay tax . Consider paying tax 
people whose salary is greater than R $ 1,200.00

I do not know how to mount the logical expression !!!

It's like:

salary = 1250
tax = Not True
salary > 1200 or not tax 

-- 
https://mail.python.org/mailman/listinfo/python-list


What is a phyton?

2009-02-16 Thread www.livtotravel.blogspot.com
is phyton a programming language? what can a python do? how is it
different from others?
--
http://mail.python.org/mailman/listinfo/python-list


Re: What is a phyton?

2009-02-16 Thread Thorsten Kampe
* www.livtotravel.blogspot.com (Mon, 16 Feb 2009 05:45:09 -0800 (PST))
 is phyton a programming language?

http://en.wikipedia.org/wiki/Phyton
--
http://mail.python.org/mailman/listinfo/python-list


Re: What is a phyton?

2009-02-16 Thread Diez B. Roggisch

Thorsten Kampe schrieb:

* REMOVED(Mon, 16 Feb 2009 05:45:09 -0800 (PST))

is phyton a programming language?


http://en.wikipedia.org/wiki/Phyton


Thanks for quoting the OPs spam name so that the visibility of his post 
 is increased.


Diez
--
http://mail.python.org/mailman/listinfo/python-list


Re: What is a phyton?

2009-02-16 Thread Python


On 16 feb 2009, at 14:45, www.livtotravel.blogspot.com wrote:


is phyton a programming language? what can a python do? how is it
different from others?
--

If i were to replace 'python' with 'french'
would you be willing to write the answer in one email?
it's gonna be a loong email...

if you want to know, type the same questions in google...
or start by reading http://www.python.org

if you don;t want that, then maybe go to a zoo and follow the signs ;)

gr
Arno
--
http://mail.python.org/mailman/listinfo/python-list


Phyton module for Windows Event Viewer?

2008-05-03 Thread [EMAIL PROTECTED]
Hi all,

Can someone point me in the right direction? I'm looking for a module
to monitor the Windows Event Viewer.

Thanks
--
http://mail.python.org/mailman/listinfo/python-list


Re: Phyton module for Windows Event Viewer?

2008-05-03 Thread Tzury Bar Yochay

 Can someone point me in the right direction? I'm looking for a module
 to monitor the Windows Event Viewer.

http://docs.python.org/lib/module-logging.html

NTEventLogHandler is the one you should use.

happy pythoning
--
http://mail.python.org/mailman/listinfo/python-list


Download new version of phyton language | http://freenewsoftware.blogspot.com/2007/12/python.html

2007-12-14 Thread yuni . wijayanti
follow this link
http://freenewsoftware.blogspot.com/2007/12/python.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Regular expression for phyton ebook, free download | http://freepdf-ebook.blogspot.com/2007/12/regex-for-python.html

2007-12-14 Thread yuni . wijayanti
download free reference regex for phyton
http://freepdf-ebook.blogspot.com/2007/12/regex-for-python.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Web archtecture using two layers in Phyton

2007-05-27 Thread wagner

Hello,
 
I need to develop an web applications that meet the following requirements:
 
- 2 layers: the first one is the user interface (browser) and the second
one is the interaction with the operacional system of the server.
- the second layer must be developed using Python.
 
I'd like to know if it is possible to implement this system... making the
second layer using python and the first layer using another web
technologies like AJAX for example.
 
Does anybody have any experience in developing python web applications?
Maybe send me some links or documentation about it...
 
The final goal is to make diferent user interfaces (layer 1) that can
integrate with the second layer... for example, one web interface and one
local interface using python+qt (example)... i don't know if this is
possible and how can this be implemented... any help is aprreciated...
 
Thanks in advance,
Wagner.
-- 
http://mail.python.org/mailman/listinfo/python-list


Web Archtecture using tow layers in Phyton

2007-05-24 Thread Wagner Garcia Campagner
Hello,

I need to develop an web applications that meet the following requirements:

- 2 layers: the first one is the user interface (browser) and the second one is 
the interaction with the operacional system of the
server.
- the second layer must be developed using Python.

I'd like to know if it is possible to implement this system... making the 
second layer using python and the first layer using
another web technologies like AJAX for example.

Does anybody have any experience in developing python web applications? Maybe 
send me some links or documentation about it...

The final goal is to make diferent user interfaces (layer 1) that can integrate 
with the second layer... for example, one web
interface and one local interface using python+qt (example)... i don't know if 
this is possible and how can this be implemented...
any help is aprreciated...

Thanks in advance,
Wagner.

-
AVISO LEGAL: Esta mensagem eletrônica (e qualquer anexo) é confidencial e 
endereçada ao(s) indivíduo(s) referidos acima e a outros que tenham sido 
expressamente autorizados à recebe-la. Se você não é o destinatário(a) desta 
mensagem, por favor não copie, use ou divulgue seu conteúdo à outros. Caso você 
tenha recebido esta mensagem equivocadamente, por favor apague esta mensagem e 
eventuais copias.

LEGAL NOTICE: This e-mail communication (and any attachments) is confidential 
and is intended only for the individual(s) named above and others who have been 
specifically authorized to receive it. If you are not the intended recipient, 
please do not read, copy, use or disclose the contents of this communication to 
others. Please then delete the e-mail and any copies of it. 

AVISO LEGAL: Este mensaje electrónico (y cualquier anexo) es confidencial y 
está dirigido exclusivamente a su(s) destinatario(s) arriba indicados y 
aquellos que hayan sido expresamente autorizados a recibirlo. Si usted no es el 
destinatario(s) de este mensaje, por favor no copie, use o divulgue el 
contenido a terceros. En caso que usted haya recibido este mensaje por error, 
por favor proceda a su destrucción y al de las posibles copias.
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Web Archtecture using tow layers in Phyton

2007-05-24 Thread Amit Khemka
On 5/23/07, Wagner Garcia Campagner [EMAIL PROTECTED] wrote:
 Hello,

 I need to develop an web applications that meet the following requirements:

 - 2 layers: the first one is the user interface (browser) and the second one
 is the interaction with the operacional system of the server.
 - the second layer must be developed using Python.

 I'd like to know if it is possible to implement this system... making the
 second layer using python and the first layer using another web technologies
 like AJAX for example.

Yes, It is very much possible and you will find the quite a few of
such impementations .

 Does anybody have any experience in developing python web applications?
 Maybe send me some links or documentation about it...

Search this news-group or web for python web framework and you can
choose one based on your specific needs. ( some names that often pop
up are: django, cherrypy, webware, pylons etc)

 The final goal is to make diferent user interfaces (layer 1) that can
 integrate with the second layer... for example, one web interface and one
 local interface using python+qt (example)... i don't know if this is
 possible and how can this be implemented... any help is aprreciated...

Read the documentation of the framework ( if any) you choose to work
with you may find templating system useful.
For standalone app you can look at wxPython, which can communicate to
your server at some port.


Cheers,
-- 

Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Web Archtecture using tow layers in Phyton

2007-05-24 Thread Wagner Garcia Campagner
Thanks Amit,

I'll search those python web framework and try to find what is the best for
my needs.

Thanks again for your help,
Wagner.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Amit Khemka
Sent: quinta-feira, 24 de maio de 2007 09:35
To: python-list@python.org
Subject: Re: Web Archtecture using tow layers in Phyton


On 5/23/07, Wagner Garcia Campagner [EMAIL PROTECTED] wrote:
 Hello,

 I need to develop an web applications that meet the following
requirements:

 - 2 layers: the first one is the user interface (browser) and the second
one
 is the interaction with the operacional system of the server.
 - the second layer must be developed using Python.

 I'd like to know if it is possible to implement this system... making the
 second layer using python and the first layer using another web
technologies
 like AJAX for example.

Yes, It is very much possible and you will find the quite a few of
such impementations .

 Does anybody have any experience in developing python web applications?
 Maybe send me some links or documentation about it...

Search this news-group or web for python web framework and you can
choose one based on your specific needs. ( some names that often pop
up are: django, cherrypy, webware, pylons etc)

 The final goal is to make diferent user interfaces (layer 1) that can
 integrate with the second layer... for example, one web interface and one
 local interface using python+qt (example)... i don't know if this is
 possible and how can this be implemented... any help is aprreciated...

Read the documentation of the framework ( if any) you choose to work
with you may find templating system useful.
For standalone app you can look at wxPython, which can communicate to
your server at some port.


Cheers,
--

Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
--
http://mail.python.org/mailman/listinfo/python-list

-
AVISO LEGAL: Esta mensagem eletrônica (e qualquer anexo) é confidencial e 
endereçada ao(s) indivíduo(s) referidos acima e a outros que tenham sido 
expressamente autorizados à recebe-la. Se você não é o destinatário(a) desta 
mensagem, por favor não copie, use ou divulgue seu conteúdo à outros. Caso você 
tenha recebido esta mensagem equivocadamente, por favor apague esta mensagem e 
eventuais copias.

LEGAL NOTICE: This e-mail communication (and any attachments) is confidential 
and is intended only for the individual(s) named above and others who have been 
specifically authorized to receive it. If you are not the intended recipient, 
please do not read, copy, use or disclose the contents of this communication to 
others. Please then delete the e-mail and any copies of it. 

AVISO LEGAL: Este mensaje electrónico (y cualquier anexo) es confidencial y 
está dirigido exclusivamente a su(s) destinatario(s) arriba indicados y 
aquellos que hayan sido expresamente autorizados a recibirlo. Si usted no es el 
destinatario(s) de este mensaje, por favor no copie, use o divulgue el 
contenido a terceros. En caso que usted haya recibido este mensaje por error, 
por favor proceda a su destrucción y al de las posibles copias.-- 
http://mail.python.org/mailman/listinfo/python-list

Re: problem at installing phyton on windows

2007-03-26 Thread bryan rasmussen

 Obviously, Phyton will never be defined.


Indeed I remember in the climactic showdown between Phyton and the
rest of the gamma ranger FooDroids and he kept doing the mega kick
move. and I was thinking wow Phyton will never be defined, he will
just keep kicking ass.

I hear they're gonna make a Phyton Commandant movie.

Cheers,
Bryan Rasmussen
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-26 Thread gslm
On 26 Mart, 00:50, Stephen Eilert [EMAIL PROTECTED] wrote:
 On Mar 25, 6:23 pm, gslm [EMAIL PROTECTED] wrote:





  Please, can you read again?
  Yes, I understand that in phyton interpreter, i can't call phyton
  command.Thanks...

  But how can i run '.py' files from this command line?I wanted to use
  the phyton command for this.

  When i click a py extended file, for example calendar.py in lib
  directory, file opens, then suddenly close,except graphical ones.Why?
  How can i see the results?

  And where can i learn which library must i import for whic class?

  Sorry, i ask much:(But after learning these starting knowledeges, i
  read tutorials, manuals etc.
  But now i haven't found my answers yet.
  Regards...

 For god's sake. It's PYTHON, not PHYTON.

 Use IDLE and run your files from there. That way you won't have to
 mess with the hideous windows console.

 However, if you really want to use the windows console, keep in mind
 that it will always close automatically when the program ends. That is
 true for Python, C, whatever, unless it was open before. So, Start-run, type 
 cmd then run python filename.py. If that does not work,

 it's because the path is not set correctly.

 And that's probably because you keep mispelling Python. See below:

  But I'm sorry.I haven't understood what i must do for ruunnig phyton
 command.I delete path from proportiesof my computer.Then i open
 command line of phyton.But when i write phyton these view below:
 Tracebackmost recent call last:
 File stdin; line 1 in module
 NameError: name phyton is not defined 
 ^^^

 Obviously, Phyton will never be defined.

 Stephen- Alıntıyı gizle -

 - Alıntıyı göster -

Thanks to all of you!Sorry, I must be more careful!
You're right, my problem is of course this:writing the word python
wrong.
Now it's ok!Thanks again and again!

-- 
http://mail.python.org/mailman/listinfo/python-list


problem at installing phyton on windows

2007-03-25 Thread gslm
Hi!
I'm too new on phyton.I have installed phyton.But when I write phyton
command, unfortunately, i can't run.I suppose that it is bacause of
setting path.But i can't solve.
Can you help?

Another thing is, when i double click the .py file, there are the
project form and the command line.How can i provide to view only the
project?
Thanks...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread Paul Boddie
gslm wrote:
 Hi!
 I'm too new on phyton.I have installed phyton.But when I write phyton
 command, unfortunately, i can't run.I suppose that it is bacause of
 setting path.But i can't solve.
 Can you help?

It's python you should be typing, of course. If that doesn't work
then it may be a PATH issue, yes.

 Another thing is, when i double click the .py file, there are the
 project form and the command line.How can i provide to view only the
 project?

I think you need to rename the .py file so that it ends with .pyw -
this stops the command line window from opening, but it's only useful
if you are running a graphical program, obviously.

Paul

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread gslm
On 25 Mart, 20:16, Paul Boddie [EMAIL PROTECTED] wrote:
 gslm wrote:
  Hi!
  I'm too new on phyton.I have installed phyton.But when I write phyton
  command, unfortunately, i can't run.I suppose that it is bacause of
  setting path.But i can't solve.
  Can you help?

 It's python you should be typing, of course. If that doesn't work
 then it may be a PATH issue, yes.

  Another thing is, when i double click the .py file, there are the
  project form and the command line.How can i provide to view only the
  project?

 I think you need to rename the .py file so that it ends with .pyw -
 this stops the command line window from opening, but it's only useful
 if you are running a graphical program, obviously.

 Paul

First, thaks a lot.
But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Tracebackmost recent call last:
File stdin; line 1 in module
NameError: name phyton is not defined
Sorry may be you think i'm comic but i am not be able to correct.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread Gabriel Genellina
En Sun, 25 Mar 2007 15:40:14 -0300, gslm [EMAIL PROTECTED] escribió:

 But I'm sorry.I haven't understood what i must do for ruunnig phyton
 command.I delete path from proportiesof my computer.Then i open
 command line of phyton.But when i write phyton these view below:
 Tracebackmost recent call last:
 File stdin; line 1 in module
 NameError: name phyton is not defined
 Sorry may be you think i'm comic but i am not be able to correct.

So, you *already* have started the Python interpreter. You don't have to  
type any more thing to start!
If you see a console like this:

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]  
on win
32
Type help, copyright, credits or license for more information.


you are inside the Python interpreter.
You may use IDLE, an integrated editor+debugger+other things (Start menu,  
All programs, Python, Idle).
Or install the Python for Windows extensions, by Mark Hammond, that comes  
with its own editor (PythonWin) and may be better suited for a Windows  
environment https://sourceforge.net/projects/pywin32/
Try reading some introductory texts. The book Dive into Python may be  
useful: www.diveintopython.org
There is a wiki with more resources: http://wiki.python.org/moin/

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread tac-tics
On Mar 25, 1:06 pm, gslm [EMAIL PROTECTED] wrote:
 Hi!
 I'm too new on phyton.I have installed phyton.But when I write phyton
 command, unfortunately, i can't run.I suppose that it is bacause of
 setting path.But i can't solve.
 Can you help?

You need to set what is called your PATH environment variable. See:
http://www.computerhope.com/issues/ch000549.htm
and add C:\python\ (or wherever your python package is installed) to
your PATH.


 Another thing is, when i double click the .py file, there are the
 project form and the command line.How can i provide to view only the
 project?

I don't quite understand what you're asking here.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread Hertha Steck
gslm schrieb:
 First, thaks a lot.
 But I'm sorry.I haven't understood what i must do for ruunnig phyton
 command.I delete path from proportiesof my computer.Then i open
 command line of phyton.But when i write phyton these view below:
 Tracebackmost recent call last:
 File stdin; line 1 in module
 NameError: name phyton is not defined

Such an answer comes from Python, I think you must already be in the 
interactive interpreter. Do you see something similar to this, with your 
cursor after the ?

Python 2.5 (r25:51908, Oct  6 2006, 15:22:41)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu4)] on linux2
Type help, copyright, credits or license for more information.
 

At this point you can enter valid Python statements, but you can't call 
Python from Python (wouldn't make sense anyway).

I'd look at this page first:

http://www.python.org/about/gettingstarted/

HTH
Hertha
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread gslm
Please, can you read again?
Yes, I understand that in phyton interpreter, i can't call phyton
command.Thanks...

But how can i run '.py' files from this command line?I wanted to use
the phyton command for this.

When i click a py extended file, for example calendar.py in lib
directory, file opens, then suddenly close,except graphical ones.Why?
How can i see the results?

And where can i learn which library must i import for whic class?

Sorry, i ask much:(But after learning these starting knowledeges, i
read tutorials, manuals etc.
But now i haven't found my answers yet.
Regards...

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread Stephen Eilert
On Mar 25, 6:23 pm, gslm [EMAIL PROTECTED] wrote:
 Please, can you read again?
 Yes, I understand that in phyton interpreter, i can't call phyton
 command.Thanks...

 But how can i run '.py' files from this command line?I wanted to use
 the phyton command for this.

 When i click a py extended file, for example calendar.py in lib
 directory, file opens, then suddenly close,except graphical ones.Why?
 How can i see the results?

 And where can i learn which library must i import for whic class?

 Sorry, i ask much:(But after learning these starting knowledeges, i
 read tutorials, manuals etc.
 But now i haven't found my answers yet.
 Regards...

For god's sake. It's PYTHON, not PHYTON.

Use IDLE and run your files from there. That way you won't have to
mess with the hideous windows console.

However, if you really want to use the windows console, keep in mind
that it will always close automatically when the program ends. That is
true for Python, C, whatever, unless it was open before. So, Start-
run, type cmd then run python filename.py. If that does not work,
it's because the path is not set correctly.

And that's probably because you keep mispelling Python. See below:

 But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Tracebackmost recent call last:
File stdin; line 1 in module
NameError: name phyton is not defined 
^^^

Obviously, Phyton will never be defined.


Stephen




-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread Steve Holden
gslm wrote:
 Please, can you read again?
 Yes, I understand that in phyton interpreter, i can't call phyton
 command.Thanks...
 
 But how can i run '.py' files from this command line?I wanted to use
 the phyton command for this.
 
 When i click a py extended file, for example calendar.py in lib
 directory, file opens, then suddenly close,except graphical ones.Why?
 How can i see the results?
 
 And where can i learn which library must i import for whic class?
 
 Sorry, i ask much:(But after learning these starting knowledeges, i
 read tutorials, manuals etc.
 But now i haven't found my answers yet.
 Regards...
 

http://www.python.org/doc/faq/windows.html#how-do-i-run-a-python-program-under-windows

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd  http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings   http://holdenweb.blogspot.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: problem at installing phyton on windows

2007-03-25 Thread Paul Boddie
gslm wrote:
 Please, can you read again?
 Yes, I understand that in phyton interpreter, i can't call phyton
 command.Thanks...

 But how can i run '.py' files from this command line?I wanted to use
 the phyton command for this.

Once you are in the Python interpreter you can run Python files, but
the best way to run files is one of the following:

 * From the command prompt (DOS prompt); type something like this:

python file.py

 * In the file manager (Windows Explorer, not Internet Explorer), open/
run file.py.

If you *really* want to run files in the interpreter, you can do
something like this:

execfile(file.py)

 When i click a py extended file, for example calendar.py in lib
 directory, file opens, then suddenly close,except graphical ones.Why?
 How can i see the results?

For things that don't open windows you really need to run them from
the command prompt.

 And where can i learn which library must i import for whic class?

Look at the library reference: each of the listed libraries are named,
and for the calendar module you'd put this in your program (or type it
at the Python prompt):

import calendar

Note that in Python programs or at the Python prompt you do not refer
to it as calendar.py or C:\Python24\Lib\calendar.py (or wherever it
lives): Python knows where to look and knows to add the .py on the end
of the file.

Note also that this doesn't run the calendar module, so it isn't quite
the same as running the calendar.py file as described above.

 Sorry, i ask much:(But after learning these starting knowledeges, i
 read tutorials, manuals etc.
 But now i haven't found my answers yet.

I hope this helps a little.

Paul

-- 
http://mail.python.org/mailman/listinfo/python-list


add re module to a embeded device phyton interpreter

2007-01-10 Thread odlfox
   I hav to add the re (regular expressions) functionality to an
Embeded device that I'm using.  I read the re.py file and it says I
need several dependencies, one of them is the pcre module but I found
no pcre.py or pcre.pyc file.  Someone knows where to find something to
solve my problem. Thanks a lot

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: add re module to a embeded device phyton interpreter

2007-01-10 Thread robert
odlfox wrote:
I hav to add the re (regular expressions) functionality to an
 Embeded device that I'm using.  I read the re.py file and it says I
 need several dependencies, one of them is the pcre module but I found
 no pcre.py or pcre.pyc file.  Someone knows where to find something to
 solve my problem. Thanks a lot
 

that drills down to a .dll/.so thing depending on installation and python 
version.

Best make a project/test/dummy script using all the things you want - or 
actually your project as it. 
And then use cx-freeze like FreezePython -OO mystart.py to let him collect 
all the dependent modules in a dist-folder. Then you don't have to worry about 
all the details yourself.
You can also use UPX and 7zip to further compress the dll's/so's and the 
py-modules zip archive well.


Robert
-- 
http://mail.python.org/mailman/listinfo/python-list


phyton memory management

2005-05-05 Thread Carlos Garcia



Hi all,

 I do have a problem with python and it 
is that it raise an outofmemory (i comment lines in Py.java to avoid 
system.exit, to debug),
i try to debug this issue with jprobe and realize 
that i get the exception even although the java heap is not in the limit, i can 
notice that
python needa memory pick to parse the 
command line.

 The program is a command line 
that receive a string line that python parse and call some java classes ti 
execute the appropiate command, 
any idea?

Thansk,
==Carlos 
García 
Phone : +34 91 714 8796Lucent 
Technologies e-mail : [EMAIL PROTECTED]Avenida de 
Bruselas , 8 - 28108 Alcobendas 
(Madrid)==
-- 
http://mail.python.org/mailman/listinfo/python-list