On 12/8/21 11:18, Larry Warner wrote:
I am new at Python. I have installed Python 3.10.1 and the latest Pycharm.
When I attempt to execute anything via Pycharm or the command line, I
receive a message it can not find Python.
I do not know where Python was loaded or where to find and to update PA
I am new at Python. I have installed Python 3.10.1 and the latest Pycharm.
When I attempt to execute anything via Pycharm or the command line, I
receive a message it can not find Python.
I do not know where Python was loaded or where to find and to update PATH
to the program.
Larry
--
https://ma
In a message of Sat, 10 Oct 2015 20:39:29 +0100, Mark Lawrence writes:
>On 10/10/2015 07:15, Sébastien Pinsonneault wrote:
>> Hi,
>>
>> I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me
>> each time if I want to modify, repair or uninstall, but doesn't open.
>>
>> I have Windows
On 10/10/2015 07:15, Sébastien Pinsonneault wrote:
Hi,
I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me
each time if I want to modify, repair or uninstall, but doesn't open.
I have Windows 10 64 bits.
Thx
Check out the issue tracker as there are known problems. If you'r
On Sat, Oct 10, 2015 at 5:15 PM, Sébastien Pinsonneault
wrote:
> I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each
> time if I want to modify, repair or uninstall, but doesn't open.
>
> I have Windows 10 64 bits.
"doesn't open"? Do you mean that it's refusing to install, o
Hi,
I've downloaded Python 3.5.0 64 bits, but I can't open it. It ask me each
time if I want to modify, repair or uninstall, but doesn't open.
I have Windows 10 64 bits.
Thx
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Jul 22, 2015 at 3:38 AM, Jason P. wrote:
> Despite the impression that surely I gave, I'm quite familiar with
> programming and general bug hunting rules. The problem is that I'm
> inexperienced with Python and the subtle details of multiple threads ;)
>
Heh, it doesn't hurt to remind p
El miércoles, 15 de julio de 2015, 14:12:08 (UTC+2), Chris Angelico escribió:
> On Wed, Jul 15, 2015 at 9:44 PM, Jason P. wrote:
> > I can't understand very well what's happening. It seems that the main
> > thread gets blocked listening to the web server. My intent was to spawn
> > another proc
On Mon, 20 Jul 2015 03:25 am, Rick Johnson wrote:
> On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote:
>> And, despite Norway not being part of the EU, Scandinavia
>> is still in Europe.
>
> This is a bit off topic: But i don't consider Scandinavia to
> be a part of the EU.
La
In a message of Sun, 19 Jul 2015 10:25:35 -0700, Rick Johnson writes:
>On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote:
>> And, despite Norway not being part of the EU, Scandinavia
>> is still in Europe.
>
>This is a bit off topic: But i don't consider Scandinavia to
>be a part
On 2015-07-19 18:25, Rick Johnson wrote:
On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote:
And, despite Norway not being part of the EU, Scandinavia
is still in Europe.
This is a bit off topic: But i don't consider Scandinavia to
be a part of the EU. Not anymore than i would
On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote:
> And, despite Norway not being part of the EU, Scandinavia
> is still in Europe.
This is a bit off topic: But i don't consider Scandinavia to
be a part of the EU. Not anymore than i would consider
America to be a part of the EU
In a message of Sat, 18 Jul 2015 16:18:57 -0700, Rick Johnson writes:
>I'll have to admit you make a good point here. Although the
>argument is diminished by observing that Ruby is far more
>popular in Asia than Python. Python seems to be mainly a
>Scandinavian, European, and American toy. For the
On Friday, July 17, 2015 at 5:46:01 PM UTC-5, Terry Reedy wrote:
> But these relative numbers are, as near as I can tell,
> restricted to the english-speaking world, perhaps extended
> to the latin-1 based world. Anyone who wants unicode
> identifiers must use Python 3 (or a translated Python like
On Friday, July 17, 2015 at 3:39:02 PM UTC-5, Laura Creighton wrote:
> I think kivy is doing a very nice job of python-on-the-mobile.
> Have you looked? Please do not rant at me, just tell me what you
> think.
Hello Laura,
I'm not sure if you're replying to me (as there is no quoted
context) but
On 7/17/2015 3:45 PM, Terry Reedy wrote:
Now my question for you or anyone else: If the vast majority of Python
programmers are focused on 2.7,
I consider myself in this group.
why are volunteers to help fix 2.7 bugs so scarce?
perhaps the bugs that are show stoppers are providing the impe
On 7/17/2015 12:15 AM, Rick Johnson wrote:
On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote:
[...] My take from all this is that overall, Python 3
take-up is probably > around 10% of all Python users,
All that rambling just to agree with me? My educated guess
is a minimum
On 17/07/2015 21:38, Laura Creighton wrote:
I think kivy is doing a very nice job of python-on-the-mobile.
Have you looked? Please do not rant at me, just tell me what you
think.
Laura
At least rr occasionally comes out with something useful, usually WRT
tkinter. He's in the bottom divisio
I think kivy is doing a very nice job of python-on-the-mobile.
Have you looked? Please do not rant at me, just tell me what you
think.
Laura
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, July 17, 2015 at 1:38:52 AM UTC-5, Steven D'Aprano wrote:
> 75% or 90% is not a "vast majority". Vast majority implies more than 99%.
>
> But regardless of the precise meaning of "vast", if you want to dismiss one
> in four people (25%) or one in ten (10%) as inconsequential, then you'v
On Fri, Jul 17, 2015 at 4:47 PM, Steven D'Aprano wrote:
>> Jessie's default should be 2.7, at least. Wheezy shipped 2.7, too;
>> it's only Squeeze (now out of support) that didn't ship any 2.7.x
>> Python. Are you sure you can't at least upgrade to 2.7?
>
> I'm not sure, I'm not actively involved
- Original Message -
> From: "Steven D'Aprano"
> 75% or 90% is not a "vast majority". Vast majority implies more than
> 99%.
You could not be more wrong.
More than 99% is a stupendous majority, while within 95 to 99% is a tremendous
majority.
>From the official "Majority rating" 2015 ed
On Fri, 17 Jul 2015 01:01 pm, Chris Angelico wrote:
> On Fri, Jul 17, 2015 at 12:44 PM, Steven D'Aprano
> wrote:
>> My take from all this is that overall, Python 3 take-up is probably
>> around 10% of all Python users...
>
> Really? That low? Wow.
Well, that's based on a guess that for every P
On Fri, 17 Jul 2015 02:15 pm, Rick Johnson wrote:
> On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote:
>> [...] My take from all this is that overall, Python 3
>> take-up is probably > around 10% of all Python users,
>
> All that rambling just to agree with me? My educated gue
On Fri, Jul 17, 2015 at 2:15 PM, Rick Johnson
wrote:
> On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote:
>> [...] My take from all this is that overall, Python 3
>> take-up is probably > around 10% of all Python users,
>
> All that rambling just to agree with me? My educated g
On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote:
> [...] My take from all this is that overall, Python 3
> take-up is probably > around 10% of all Python users,
All that rambling just to agree with me? My educated guess
is a minimum of 75% still using Python2.x. But i'll take
On 07/15/2015 08:11 PM, Chris Angelico wrote:
On Thu, Jul 16, 2015 at 1:01 PM, Larry Hudson via Python-list
wrote:
On 07/15/2015 05:11 AM, Chris Angelico wrote:
[snip]
In addition to using print(), in some places I like using input() instead,
as in:
input('x={}, y={} --> '.format(x,
On Fri, Jul 17, 2015 at 12:44 PM, Steven D'Aprano wrote:
> My take from all this is that overall, Python 3 take-up is probably around
> 10% of all Python users...
Really? That low? Wow. I guess 90% could count as Rick's declared
"vast majority", although that term does imply more like 99%.
> Fur
It amuses me that this discussion started because the OP stated explicitly
that he uses Python 3, and Rick gave an answer for Python 2. Rather than
accept his mistake, Rick's defence is that practically nobody uses Python
3. (Presumably he means "apart from the guy who actually asked the
question".
On Thursday, July 16, 2015 at 6:24:21 PM UTC-5, Chris Angelico wrote:
Any attempt to translate downloads into *REAL* usage
statistics is doomed to be unreliable. Chris, you're smarter
than this!
(1) for instance: Python2.x coders have been around long
enough that they don't need to download as mu
On Fri, Jul 17, 2015 at 7:27 AM, Emile van Sebille wrote:
> On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote:
>
>> Where's the latest survey results? I think the numbers don't agree
>> with you any more.
>
>
> Not that there's a source for that info, but a quick survey of yahoo
On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote:
Where's the latest survey results? I think the numbers don't agree
with you any more.
Not that there's a source for that info, but a quick survey of yahoo
results certainly continues to show more v2 activity.
--anytime--
On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote:
> Where's the latest survey results? I think the numbers don't agree
> with you any more.
What? You think the handful of regulars on this list in any
way shape or form somehow represents the multitude of *REAL*
python programmer
On Fri, Jul 17, 2015 at 6:03 AM, Rick Johnson
wrote:
> but a vast majority of the Python community is currently
> using, and will for many years continue using, Python<3.0.
Where's the latest survey results? I think the numbers don't agree
with you any more.
ChrisA
--
https://mail.python.org/ma
On Wednesday, July 15, 2015 at 10:45:12 PM UTC-5, Chris Angelico wrote:
> A GUI is another form of console.
And a blindingly obvious association is another form of
patronizing! What's next, are you going to tell us that a
Volvo is a street-legal Scandinavian version of an armored
personal carrier
On Thu, Jul 16, 2015 at 1:33 PM, Rick Johnson
wrote:
> On Wednesday, July 15, 2015 at 10:11:43 PM UTC-5, Chris Angelico wrote:
>> That's a neat trick, as long as you actually do have a console.
>
> Well if you don't have a console, another option is to use the
> dialogs of the "batteries included
On Wednesday, July 15, 2015 at 10:11:43 PM UTC-5, Chris Angelico wrote:
> That's a neat trick, as long as you actually do have a console.
Well if you don't have a console, another option is to use the
dialogs of the "batteries included GUI" named Tkinter.
from tkMessageBox import showinfo # Syn
On Thu, Jul 16, 2015 at 1:01 PM, Larry Hudson via Python-list
wrote:
> On 07/15/2015 05:11 AM, Chris Angelico wrote:
>>
>> On Wed, Jul 15, 2015 at 9:44 PM, Jason P. wrote:
>>>
>>> I can't understand very well what's happening. It seems that the main
>>> thread gets blocked listening to the web se
On 07/15/2015 05:11 AM, Chris Angelico wrote:
On Wed, Jul 15, 2015 at 9:44 PM, Jason P. wrote:
I can't understand very well what's happening. It seems that the main thread
gets blocked listening to the web server. My intent was to spawn another
process for the server independent of the test.
On Wed, Jul 15, 2015 at 9:44 PM, Jason P. wrote:
> I can't understand very well what's happening. It seems that the main thread
> gets blocked listening to the web server. My intent was to spawn another
> process for the server independent of the test. Obviously I'm doing something
> wrong. I'v
Hi all!
I'm working in a little Python exercise with testing since the beginning. So
far I'm with my first end to end test (not even finished yet) trying to:
1) Launch a development web server linked to a demo app that just returns
'Hello World!'
2) Make a GET request successfully
I can't un
Lesego Moloko wrote:
> I am a Python novice and have recently converted the attached Matlab file
> to Python (attached). The problem is that I cannot reproduce the Matlab
> plots (attached) with the converted Python program. I am also trying to go
> line by line through my converted Python file to
Loop_variable= 1
Pi=1.0
term=0
T=1.0
While (loop_variable> 0):
Loop_variable=Loop_variable+1
T=T+2.0
If (loop_variable%2 ==0):
Term=0;
Else:
term=1;
If term ==0:
Pi=Pi- float(1/T);
Else:
Pi=Pi+ float(1/T);
--
http://mail.python.org/mai
On Tue, 19 Feb 2013 19:01:53 -0800, ach360 wrote:
> I'm so lost. Given the formula pi=4-4/3+4/5-4/7+4/9-4/11+.. How do I
> print a table showing approximate value of pi by computing one term4-4/3
> then two terms4-4/3+4/5, and so on.Then how many terms of the series
> before I get 3.14, 3.141,
I'm so lost. Given the formula pi=4-4/3+4/5-4/7+4/9-4/11+.. How do I print
a table showing approximate value of pi by computing one term4-4/3 then two
terms4-4/3+4/5, and so on.Then how many terms of the series before I get 3.14,
3.141, 3.1415, 3.14159. Please helps computer teacher literall
Dear all,
This is the solution that I came up with to deal with handling the file of
scores.
Thank you all for your feedback!
John
# define calc average function
def calcAve(mylist):
total = 0
count = 0
for i in range (0, len(mylist)):
# count scores for even number items in in
Ethan,
Thanks for pointing that out. I commented that code out and then ran it.
It created the list of names. Now, I just need to figure out how to get the
scores into the list called scores.
It would appear that this is done with a nested for loop.
Thanks,
John
On 3/28/11 12:02 PM, "Etha
On Mon, 28 Mar 2011 22:38:29 +0100, John Parker wrote:
infile = open("scores.txt", "r")
lines = infile.readlines()
infile.close()
tokens = lines.split(",")
names = []
scores = []
[snippety snip]
error:
Traceback (most recent call last):
File "Score_8.py", line 38, in
tokens = lines.s
On Mon, 28 Mar 2011 11:38:29 -1000, John Parker wrote:
[snip]
> I have written the following code so far but get an error.
>
> infile = open("scores.txt", "r")
> lines = infile.readlines()
> infile.close()
> tokens = lines.split(",")
[snip]
> error:
> Traceback (most recent call last):
> File
John Parker wrote:
I have written the following code so far but get an error.
infile = open("scores.txt", "r")
lines = infile.readlines()
infile.close()
tokens = lines.split(",")
[snip]
error:
Traceback (most recent call last):
File "Score_8.py", line 38, in
tokens = lines.split(",")
On Mon, Mar 28, 2011 at 3:38 PM, John Parker wrote:
> error:
> Traceback (most recent call last):
> File "Score_8.py", line 38, in
> tokens = lines.split(",")
> AttributeError: 'list' object has no attribute 'split'
>
> So, what am I doing wrong?
'lines' is a list of strings.
'split' is a st
Hi All,
I'm trying to figure out a problem in which I have a file named scores.txt
that contains the following information.
Jane Doe,87,92,97,33
John Doe,78,91,84,25
Bill Gates,91,88,89,56
Bruce Perens,88,92,84,99
I'm wanting to read the file and create two lists: names and scores.
I also wa
En Tue, 31 Mar 2009 09:56:48 -0300, Gary Wood escribió:
I have the DOS box with the message
Localhost CGI server started
But when i try this I get the Windows Error
Failed to Connect
The connection was refused when attempting to contact localhost:8080.
Try a different port instead of 8080
I have the DOS box with the message
Localhost CGI server started
But when i try this
Back in the www directory,
1.. Open the web link http://localhost:8080/adder.html (preferably in a new
window, separate from this this tutorial).
2.. You should see an adder form in your browser again.
>
> Well, if Python's not installed, the next step is _getting_ it installed --
> whether having your admin install it globally (I mean, who *doesn't* install
> python?! ;-) or you install it locally in your home directory as detailed
> at [1] where you download the source and compile from scratch
Tim O'Toole wrote:
Alas that cgi script confirmed python is not installed on the server
machine (which I had assumed it was).
Did you also try it with the "find" variant in addition to just
the "which" version? This would find Python if it wasn't on the
$PATH.
Looks like game over with th
Alas that cgi script confirmed python is not installed on the server
machine (which I had assumed it was).
Looks like game over with this avenue of trouble shooting?
On Fri, Nov 7, 2008 at 1:03 AM, Tim Chase <[EMAIL PROTECTED]> wrote:
>> As for writing some perl, not too sure how to do that, but
As for writing some perl, not too sure how to do that, but from the
information in phpinfo I logged onto the webserver machine and did a
"whereis python" - it came back blank! Of course doing a whereis perl
gave a non-blank answer. So this seems to be the route cause of my
trouble.
Indeed! I ma
With regard to phpinfo(), its shows the mod_cgi is loaded, but neither
mod_perl or mod_python is loaded (I read on the python.org site that
mod_python can interfere with running python through mod_python).
As for writing some perl, not too sure how to do that, but from the
information in phpinfo I
Here is the permissions, which I think are definitely right now:
drwxrwxrwx 8 4.0K Nov 6 13:34 public_html/
drwxrwxrwx 2 4.0K Nov 6 13:35 cgi-bin/ [inside public_html]
-rw-r-xr-x 1 117 Nov 6 11:39 test_pl.cgi* [inside cgi-bin]
-rw-r-xr-x 1 168
Thanks for replying Tim,
Here is the permissions, which I think are definitely right now:
drwxrwxrwx 8 4.0K Nov 6 13:34 public_html/
drwxrwxrwx 2 4.0K Nov 6 13:35 cgi-bin/ [inside public_html]
-rw-r-xr-x 1 117 Nov 6 11:39 test_pl.cgi* [inside cgi-bin]
-rw-
I've placed this file in both public_html and as a test in public_html/
cgi-bin directories in my local user account (I dont have root access
- its a corparate network). The file definitely has read and execute
permission (744) as have the assoicated directories.
My guess would be the permission
Hi all,
I'm trying to get python to work with cgi for a small intranet site,
however even a simply "hello world test isn't working". Here is the
test file:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# enable debugging
import cgitb; cgitb.enable()
print "Content-Type: text/plain;charset=utf-8"
pr
Hi
I am facing a problem while including a C header file in the SWIG
interface file. However the problem does not occur when i directly
copy the contents of header file in the same place.
My interface file read as follows.
/* interface file dep.i */
%module dep
%{
#include "dep.h"
%}
%inline %{
Hi
I am facing a problem while including a C header file in the SWIG
interface file. However the problem does not occur when i directly
copy the contents of header file in the same place.
My interface file read as follows.
/* interface file dep.i */
%module dep
%{
#include "dep.h"
%}
%inline %{
Marc,
Thank you.
I followed the instructions in given at pyenchant.sourceforge.net and
got the application to work.
((;-))
Meir
PS: My challenge now is to port the application to Redhat.
I already know that Redhat is missing the pyenchant package - I hope
the same installation process will so
On Wed, 12 Sep 2007 09:09:02 +0200, A.T.Hofkamp wrote:
> On 2007-09-11, Wiseman <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> OK - it works in WindowsXP.
>> I installed "enchant" on my SuSE 10.0 (using YAST).
>> The enchant Suse package looks like a general Linux package, not a
>> Python specific.
On 2007-09-11, Wiseman <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> OK - it works in WindowsXP.
> I installed "enchant" on my SuSE 10.0 (using YAST).
> The enchant Suse package looks like a general Linux package, not a
> Python specific.
You'd seem to be right judging by this web-page:
http://www.nove
Hi,
OK - it works in WindowsXP.
I installed "enchant" on my SuSE 10.0 (using YAST).
The enchant Suse package looks like a general Linux package, not a
Python specific.
Running the program in Python I am getting the same error message from
the line: "import enchant".
ImportError: No module nam
Carsten.
I want to thank you for your help. I could not check this until this
morning. Now that I checked your answer - THANK YOU.
I do have 2 installations of Python on my machine. Once I called
Python with a full path - my program orked as expected.
Meir
--
http://mail.python.org/mailman/l
On Fri, 2007-09-07 at 21:58 -0400, Wiseman wrote:
> Hi,
>
> The line:
>
> import enchant
>
> works perfectly OK when I call a Python progrma (sp.py) from IDLE
> (WInXP). When I try to run it ftom the command line (python sp.py) the
> response is:
>
> Traceback (most recent call last):
>File
Hi,
The line:
import enchant
works perfectly OK when I call a Python progrma (sp.py) from IDLE
(WInXP). When I try to run it ftom the command line (python sp.py) the
response is:
Traceback (most recent call last):
File "sp.py", line 3, in
import enchant
ImportError: No module named enc
Hi all,
I am using Python 2.4. I am trying to run a C++ program on Red hat linux
enterprise edition from Python by using various methods like > Os.system
Os.popen
Subprocess.popen
Os.execvp
Os.spawnl
In all of these methods the program kills python program also. So, let's say
i am in pytho
Hey Guys, Im new to working with com but i only want to do one thing.
I have activestate python and am trying to get python to run a simple
function in a com enabled 3d program called 3dsmax. If i try and
execute a function over the com interface it works fine as long as i
dont try and run the
beno wrote:
> Avell Diroll wrote:
>> beno wrote:
>>
*** tidying a little ***
>>>
>>> What do I do about the problems with mimetools and urllib2?
>>>
>>
>> This is the last report of the 'make test' command and there should be
>> a few lines before that stating each test one by one and prin
beno wrote:
> I intend to do that. However, I think this is the RIGHT list to ask
> questions pertinent to python...
I didn't intend to be abrupt, ... I was just in an hurry, sorry for
that. Anyway I still see this problem more as a program not compiling
correctly on Freebsd than python not com
Avell Diroll wrote:
> beno wrote:
> > I have to rebuild
> > python. [snip] Platform is FreeBSD 5.? I have
> > the following questions:
> >
> > What is meant by pointing to this folder thus:
> > ./configure --prefix=/usr/python
> >
> > When I run make test I get these errors:
> >
> *** errors ***
beno wrote:
> It's been years since I've done this. I had a programmer working for me
> who disappeared one day, and now I'm taking over his responsibilities. I
> need to re-configure Apache for mod_python which means I have to rebuild
> python. I'm working with the latest distro. I'm heavily depen
It's been years since I've done this. I had a programmer working for me
who disappeared one day, and now I'm taking over his responsibilities. I
need to re-configure Apache for mod_python which means I have to rebuild
python. I'm working with the latest distro. I'm heavily dependent on
zope, so
bob wrote:
> bus = dbus.Bus (dbus.Bus.TYPE_SYSTEM)
> hal_service = bus.get_service ('org.freedesktop.Hal')
> hal_manager = hal_service.get_object ('/org/freedesktop/Hal/Manager',
> 'org.freedesktop.Hal.Manager')
>
It appears that bus.get_service() has bee
Hi,
I have this sample python script from the hal sources, but it doesn't work
for me. This is despite other example python scripts I have to help me are
working fine. The problem is that this script is the closet to what it is
I actually want to learn to do.
The error is:
Traceback (most recent
We have a client using a fully embedded python in a large DTP app. It used to
be
Mac OS 9/X only, but the MAC 9 support has gone away and we now have support
for
the PC with the embedding being used in C# via external DLL
aliasing/marshalling
etc etc.
The embedding DLL has effectively a sing
wow i think i was just been too paranoid.
i thought it would affect some precision arithmetic in science.
thanks for the reply
--
http://mail.python.org/mailman/listinfo/python-list
gen_tricomi wrote:
> Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
> on win32
> Type "copyright", "credits" or "license()" for more information.
>
>
> Personal firewall software may warn about the conn
gen_tricomi wrote:
> from the above you can see what int to long promotion is causing
> i dont need to say much please see for yourself. is this a bug or
> a feature.
This is expected behavior. Why is it problematic for you?
--
Robert Kern
"I have come to believe that the whole world is an eni
"gen_tricomi" <[EMAIL PROTECTED]> wrote:
> IDLE 1.1.2
> >>> import sys
> >>> save_maxint = sys.maxint
> >>> save_maxint
> 2147483647
> >>> save_maxint += 1
> >>> save_maxint
> 2147483648L
> >>> save_maxint - 1
> 2147483647L
> >>> save_maxint + 1
> 2147483649L
> >>> save_maxint - 1
> 2147483647L
>
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.
Personal firewall software may warn about the connection IDLE
makes to its su
Hello all,
I am considering python as a 'scripting' language to be used
in my application where users must be able to write their own
code to access application data, use the application mechanisms
to gather various data and basicly must be able to control the
application itself.
Currently, to
[EMAIL PROTECTED] wrote:
> I am very much a beginner to python. I have been working on writing a
> very simple program and cannot get it and was hoping someone could help
> me out. Basically i need to write a code to print a sin curve running
> down the page from top to bottom. The trick is I ha
[EMAIL PROTECTED] wrote:
> I am very much a beginner to python. I have been working on writing a
> very simple program and cannot get it and was hoping someone could help
> me out. Basically i need to write a code to print a sin curve running
> down the page from top to bottom. The trick is I ha
[EMAIL PROTECTED] napisał(a):
> Actually, it is not a sin curve i need to plot, it is dots running down
> the page in the shape of a sin curve like this
>
> .
> .
>.
> etc...
>
Seems, like a homework to me :-)
Anyway, use the following hints:
math.sin() is your sine function, ranging, fr
Actually, it is not a sin curve i need to plot, it is dots running down
the page in the shape of a sin curve like this
.
.
.
etc...
--
http://mail.python.org/mailman/listinfo/python-list
Actually, it is not a sin curve i need to plot, it is dots running down
the page in the shape of a sin curve like this
.
.
.
etc...
--
http://mail.python.org/mailman/listinfo/python-list
I am very much a beginner to python. I have been working on writing a
very simple program and cannot get it and was hoping someone could help
me out. Basically i need to write a code to print a sin curve running
down the page from top to bottom. The trick is I have to do this using
only 7-8 line
Adriaan Renting wrote:
> In my mind all Python variables are some kind of "named pointers", I find
> that thinking this way helps me a lot in understanding what I'm doing. I know
> that this is not completely technically correct as in the first two examples
> there is actually a new a.i/a.arr cr
Adriaan Renting wrote:
> In my mind all Python variables are some kind of "named pointers",
Technically, they are key/value pairs in a dictionnary, the key being
the name and the value a reference to an object.
> I
> find that thinking this way helps me a lot in understanding what I'm
> doing. I
In my mind all Python variables are some kind of "named pointers", I find that
thinking this way helps me a lot in understanding what I'm doing. I know that
this is not completely technically correct as in the first two examples there
is actually a new a.i/a.arr created that shadows A.i, but thi
Johnny Lee wrote:
> bruno modulix wrote:
>
>>I dont see anything interesting nor problematic here. If you understand
>>the difference between class attributes and instance attributes, the
>>difference between mutating an object and rebinding a name, and the
>>attribute lookup rules in Python, you'
bruno modulix wrote:
>
> I dont see anything interesting nor problematic here. If you understand
> the difference between class attributes and instance attributes, the
> difference between mutating an object and rebinding a name, and the
> attribute lookup rules in Python, you'll find that all thi
Johnny Lee wrote:
> Hi,
>Look at the follow command in python command line, See what's
> interesting?:)
>
>
class A:
>
> i = 0
>
a = A()
b = A()
a.i = 1
print a.i, b.i
>
> 1 0
Quite what I would expect. First you declare i as being a *class*
attribute of A, with
1 - 100 of 117 matches
Mail list logo