OSX has been shipping with Python 2.7 for several years. I’m not sure why you
are seeing 2.6.
Bill
> On Oct 27, 2017, at 2:48 AM, Lutz Horn wrote:
>
> On Thu, Oct 26, 2017 at 07:59:10PM -0700, randyli...@gmail.com wrote:
>> Hi Bob, thanks for responding. I'm not sure where to do so, my
>> pro
On Thu, Oct 26, 2017 at 07:59:10PM -0700, randyli...@gmail.com wrote:
> Hi Bob, thanks for responding. I'm not sure where to do so, my
> professor had us download Pycharm for mac's which uses python 2.6
The code from your question is not specific to Python 2 or 3. Just try
it in the Python install
I guess your professor just asked you to download Pycharm. It is just MacOS
that happens to have Python 2.6 inbuilt. Had your professor actually wanted you
to be using Python 2 (I doubt), that would have been 2.7. Regardless of that I
recommend having latest Python 2 or 3 as per your requirement
On Sat, Oct 28, 2017 at 1:14 AM, Christopher Reimer
wrote:
> On Oct 27, 2017, at 1:49 AM, Peter J. Holzer wrote:
>>
>> BTW, I find it hard to believe that PyCharm for the Mac "comes with"
>> Python 2.6. Python 2.6 is quite old. The Linux version isn't bundled
>> with a python interpreter and just
On Oct 27, 2017, at 1:49 AM, Peter J. Holzer wrote:
>
> BTW, I find it hard to believe that PyCharm for the Mac "comes with"
> Python 2.6. Python 2.6 is quite old. The Linux version isn't bundled
> with a python interpreter and just uses whatever is already installed on
> the machine. I guess it'
On 2017-10-27 02:59, randyli...@gmail.com wrote:
> On Thursday, October 26, 2017 at 7:41:10 PM UTC-7, boB Stepp wrote:
>> On Thu, Oct 26, 2017 at 9:25 PM, wrote:
[...]
>> Why not find out for yourself and print these in the Python
>> interpreter? For instance:
>>
>> > py
>> Python 3.6.2 (v3.6.
On Thursday, October 26, 2017 at 7:41:10 PM UTC-7, boB Stepp wrote:
> On Thu, Oct 26, 2017 at 9:25 PM, wrote:
> > If s1 = "Welcome students", what is the output when you print the following:
> >
> > 1. s4 = 3 * s1
> >
> > 2. s1[3 : 6]
> >
> > 3. 'W' in s1
> >
> > 4. S1[-1]
> >
> > 5. S1[:-1]
> >
On Thu, Oct 26, 2017 at 9:25 PM, wrote:
> If s1 = "Welcome students", what is the output when you print the following:
>
> 1. s4 = 3 * s1
>
> 2. s1[3 : 6]
>
> 3. 'W' in s1
>
> 4. S1[-1]
>
> 5. S1[:-1]
>
> Any help would be great, thanks!
Why not find out for yourself and print these in the Pytho
If s1 = "Welcome students", what is the output when you print the following:
1. s4 = 3 * s1
2. s1[3 : 6]
3. 'W' in s1
4. S1[-1]
5. S1[:-1]
Any help would be great, thanks!
--
https://mail.python.org/mailman/listinfo/python-list
On 18/06/2014 10:03, cutey Love wrote:
I'm on windows, I'm going to uninstall python and reinstall
On Wednesday, June 18, 2014 9:32:40 AM UTC+1, alister wrote:
Please also see the various comments regarding top posting & google groups
Please note that if you carry on top posting and (mis)us
I'm on windows, I'm going to uninstall python and reinstall
On Wednesday, June 18, 2014 9:32:40 AM UTC+1, alister wrote:
> On Wed, 18 Jun 2014 00:36:29 -0700, cutey Love wrote:
>
>
>
> > No it's still paused after selection and only excutes when the window is
>
> > closed.
>
> >
>
> > On Tu
On Wed, 18 Jun 2014 00:36:29 -0700, cutey Love wrote:
> No it's still paused after selection and only excutes when the window is
> closed.
>
> On Tuesday, June 17, 2014 6:34:41 PM UTC+1, MRAB wrote:
>> On 2014-06-17 17:49, cutey Love wrote:
>>
>> > My first attempt at Python,
>> > I'm using Tkin
On Wed, Jun 18, 2014 at 5:36 PM, cutey Love wrote:
> No it's still paused after selection and only excutes when the window is
> closed.
Treat the file dialog exactly the way you would in a text editor or
word processor. Does your program continue as normal then? If not,
please be really specific
No it's still paused after selection and only excutes when the window is closed.
On Tuesday, June 17, 2014 6:34:41 PM UTC+1, MRAB wrote:
> On 2014-06-17 17:49, cutey Love wrote:
>
> > My first attempt at Python,
>
> >
>
> > I'm using Tkinter and all is going well except when I'm using
>
> >
>
On 2014-06-17 17:49, cutey Love wrote:
My first attempt at Python,
I'm using Tkinter and all is going well except when I'm using
file_path = tkFileDialog.askopenfilename()
print "test"
opens great and lets me select a file, the problem is it then pauses? instead
of continuing with t
My first attempt at Python,
I'm using Tkinter and all is going well except when I'm using
file_path = tkFileDialog.askopenfilename()
print "test"
opens great and lets me select a file, the problem is it then pauses? instead
of continuing with the function? until I close, then it goes a
On Mon, Apr 15, 2013 at 9:45 PM, rusi wrote:
> I am trying to understand your points Chris. On the one hand you say:
>
> On Apr 14, 6:22 pm, Chris Angelico wrote:
>> No, no, a thousand times no! If I am doing financial transactions,
>> even if I'm alone on my machine, I will demand full ACID comp
I am trying to understand your points Chris. On the one hand you say:
On Apr 14, 6:22 pm, Chris Angelico wrote:
> No, no, a thousand times no! If I am doing financial transactions,
> even if I'm alone on my machine, I will demand full ACID compliance.
On the other you describe a bookmark stora
In article ,
Tim Chase wrote:
> I'd really love if there was a simple DNS-lookup module available in
> the stdlib, especially if it allowed overriding the server to ask.
pip install dnspython
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Apr 15, 2013 at 2:40 AM, Ned Deily wrote:
> In article
> ,
> Chris Angelico wrote:
> > Actually, this is one place where I disagree with the current decision
>> of the Python core devs: I think bindings for other popular databases
>> (most notably PostgreSQL, and probably MySQL since it
On 2013-04-14 09:40, Ned Deily wrote:
> DNS client lookups use published, well-understood
> Internet-standard protocols, not at all like talking to a
> third-party database, be it open-source or not.
That said, even though DNS is a publicly documented standard, I've
reached for DNS code in the Py
Steven D'Aprano wrote:
> On Fri, 12 Apr 2013 23:26:05 +, Cousin Stanley wrote:
>
>> The firefox browser keeps different sqlite database files for various
>> uses
>
> Yes, and I *really* wish they wouldn't.
>
> It's my number 1 cause of major problems with Firefox.
Problems with so
In article
,
Chris Angelico wrote:
> Actually, this is one place where I disagree with the current decision
> of the Python core devs: I think bindings for other popular databases
> (most notably PostgreSQL, and probably MySQL since it's so widely
> used) ought to be included in core, rather th
On Sun, Apr 14, 2013 at 9:17 PM, rusi wrote:
> On Apr 14, 12:56 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> I've given my view on
>> application developers -- specifically, Firefox -- using a not-quite ACID
>> database in a way that is fragile, can cause data loss,
>
> FUD
> Ar
On Apr 14, 12:56 pm, Steven D'Aprano wrote:
> On Sat, 13 Apr 2013 10:02:18 -0700, rusi wrote:
> > To the OP:
> > Steven is welcome to his views about use of databases.
>
> I haven't given any views about databases.
You are twisting "use of databases" to just "about databases"
And heres what you
On Sat, 13 Apr 2013 10:02:18 -0700, rusi wrote:
> To the OP:
> Steven is welcome to his views about use of databases.
I haven't given any views about databases. I've given my view on
application developers -- specifically, Firefox -- using a not-quite ACID
database in a way that is fragile, can
On 04/14/2013 12:34 AM, Chris Angelico wrote:
On Sun, Apr 14, 2013 at 5:34 AM, someone wrote:
I think maybe I'll experiment a bit with both mySql (small/medium sized
databases) and for critical/important stuff I should go with PostgreSQL
PostgreSQL isn't majorly slower than MySQL, and it's a
On 04/14/2013 12:54 AM, Chris Angelico wrote:
On Sun, Apr 14, 2013 at 8:31 AM, someone wrote:
Ok, thank you. I just came across a blog that said pytables is also a very
good option?
http://www.pytables.org/moin/PyTables?action=AttachFile&do=view&target=non-indexed.png
From what I gather, th
On Sun, Apr 14, 2013 at 8:31 AM, someone wrote:
> Ok, thank you. I just came across a blog that said pytables is also a very
> good option?
>
> http://www.pytables.org/moin/PyTables?action=AttachFile&do=view&target=non-indexed.png
>From what I gather, that's looking at performance of a non-indexa
On Sun, Apr 14, 2013 at 6:01 AM, Dennis Lee Bieber
wrote:
> On Sun, 14 Apr 2013 00:03:25 +1000, Chris Angelico
> declaimed the following in gmane.comp.python.general:
>
>> True ACID compliance demands support at every level:
>>
>> 1) The application has to operate in logical units of work, which
On 04/14/2013 12:22 AM, Walter Hurry wrote:
On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote:
On 04/13/2013 04:56 PM, Walter Hurry wrote:
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote:
I'm not so rich, so I prefer to go for a free database solution rather
than an expensive license
(
On Sun, Apr 14, 2013 at 5:34 AM, someone wrote:
> I think maybe I'll experiment a bit with both mySql (small/medium sized
> databases) and for critical/important stuff I should go with PostgreSQL
PostgreSQL isn't majorly slower than MySQL, and it's a lot more
trustworthy in terms of database cons
On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote:
> On 04/13/2013 04:56 PM, Walter Hurry wrote:
>> On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote:
>>
>>> I'm not so rich, so I prefer to go for a free database solution rather
>>> than an expensive license
>> ( but I do care about ACID complia
In article , someone
wrote:
> > Some of the early Unix file systems were very fragile. One of the
> > (often under-appreciated) major advances in BSD (it was certainly in
> > 4.2, not sure how much earlier) was a new filesystem which was much more
> > robust in the face of hardware failures and
On 04/13/2013 10:01 PM, Dennis Lee Bieber wrote:
On Sun, 14 Apr 2013 00:03:25 +1000, Chris Angelico
declaimed the following in gmane.comp.python.general:
[ ]
* Create a table with a number of rows with an ID and a counter,
initialized to 0
* Repeatedly, in parallel, perform a transaction
On 04/13/2013 07:02 PM, rusi wrote:
On Apr 13, 9:15 pm, Chris Angelico wrote:
On Sun, Apr 14, 2013 at 12:39 AM, someone wrote:
On 04/13/2013 04:03 PM, Chris Angelico wrote:
.
.
Failure at any level means the overall system is not ACID compliant.
Ok, it would be nice to hear/read th
On 04/13/2013 06:15 PM, Chris Angelico wrote:
On Sun, Apr 14, 2013 at 12:39 AM, someone wrote:
On 04/13/2013 04:03 PM, Chris Angelico wrote:
Failure at any level means the overall system is not ACID compliant.
Roger... But google says sqlite is supposed to be ACID compliant (although
maybe n
On 04/13/2013 04:56 PM, Walter Hurry wrote:
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote:
I'm not so rich, so I prefer to go for a free database solution rather
than an expensive license
( but I do care about ACID compliance)
Sounds to me that PostgreSQL is your man, then.
Oh, ok. Th
On 04/13/2013 04:36 PM, Roy Smith wrote:
In article ,
Chris Angelico wrote:
2) The database engine must employ some form of write-ahead log.
[...]
one way or another, there must be a way to detect half-done
transactions.
3) The operating system and filesystem must support a forced file
sync
On Apr 13, 9:15 pm, Chris Angelico wrote:
> On Sun, Apr 14, 2013 at 12:39 AM, someone wrote:
> > On 04/13/2013 04:03 PM, Chris Angelico wrote:
> >> Failure at any level means the overall system is not ACID compliant.
>
> > Roger... But google says sqlite is supposed to be ACID compliant (although
On Sun, Apr 14, 2013 at 12:39 AM, someone wrote:
> On 04/13/2013 04:03 PM, Chris Angelico wrote:
>> Failure at any level means the overall system is not ACID compliant.
>
> Roger... But google says sqlite is supposed to be ACID compliant (although
> maybe not "fully" as you indicate, I'm not sure
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote:
> I'm not so rich, so I prefer to go for a free database solution rather
> than an expensive license
( but I do care about ACID compliance)
Sounds to me that PostgreSQL is your man, then.
--
http://mail.python.org/mailman/listinfo/python-list
On 04/13/2013 04:03 PM, Chris Angelico wrote:
On Sat, Apr 13, 2013 at 11:30 PM, someone wrote:
On 04/13/2013 01:39 PM, Chris Angelico wrote:
Note that there's a caveat: You have to tell SQLite to be ACID
compliant, effectively.
So, you're saying to me that by default SQLite isn't ACID compl
In article ,
Chris Angelico wrote:
> 2) The database engine must employ some form of write-ahead log.
> [...]
> one way or another, there must be a way to detect half-done
> transactions.
>
> 3) The operating system and filesystem must support a forced file
> synchronization (fsync/fdatasync),
On Sat, Apr 13, 2013 at 11:30 PM, someone wrote:
> On 04/13/2013 01:39 PM, Chris Angelico wrote:
>> Note that there's a caveat: You have to tell SQLite to be ACID
>> compliant, effectively.
>
>
> So, you're saying to me that by default SQLite isn't ACID compliant, if I
> begin to use it in my own
On 04/13/2013 01:39 PM, Chris Angelico wrote:
On Sat, Apr 13, 2013 at 9:08 PM, someone wrote:
I just had to google what ACID compliance means and accordingly to this:
http://en.wikipedia.org/wiki/SQLite
"SQLite is ACID-compliant and implements most of the SQL standard, using a
dynamically and
On Sat, Apr 13, 2013 at 9:08 PM, someone wrote:
> I just had to google what ACID compliance means and accordingly to this:
>
> http://en.wikipedia.org/wiki/SQLite
>
> "SQLite is ACID-compliant and implements most of the SQL standard, using a
> dynamically and weakly typed SQL syntax that does not
On 04/13/2013 03:44 AM, Steven D'Aprano wrote:
On Fri, 12 Apr 2013 23:26:05 +, Cousin Stanley wrote:
The firefox browser keeps different sqlite database files for various
uses
Yes, and I *really* wish they wouldn't. It's my number 1 cause of major
problems with Firefox. E.g.
h
On Fri, 12 Apr 2013 23:26:05 +, Cousin Stanley wrote:
> The firefox browser keeps different sqlite database files for various
> uses
Yes, and I *really* wish they wouldn't. It's my number 1 cause of major
problems with Firefox. E.g.
http://kb.mozillazine.org/Bookmarks_history_and_t
On 04/13/2013 01:26 AM, Cousin Stanley wrote:
someone wrote:
So SQLite is very good for "practicing"
Yes it is but it is also very good
for much more than just practice
Check the wikipedia info
http://en.wikipedia.org/wiki/Sqlite
Very interesting...
someone wrote:
>
> So SQLite is very good for "practicing"
>
Yes it is but it is also very good
for much more than just practice
Check the wikipedia info
http://en.wikipedia.org/wiki/Sqlite
"It is arguably the most widely deployed database engine,
as
On 04/12/2013 06:58 PM, Cousin Stanley wrote:
someone wrote:
As you can see, on my system I
had to use:
print row[0] , row[1]
instead of:
print row[ 'xtime' ] , row[ 'col4' ]
I'm not sure exactly why
The magic there is setting up the row_factory
after the database connection .
someone wrote:
> As you can see, on my system I
> had to use:
>
> print row[0] , row[1]
>
> instead of:
>
> print row[ 'xtime' ] , row[ 'col4' ]
>
> I'm not sure exactly why
The magic there is setting up the row_factory
after the database connection
dbc = DBM.connect( 'some.s
On 2013-04-11 20:44, Cousin Stanley wrote:
Cousin Stanley wrote:
The stand-alone sqlite interpreter can first be used
to create an empty database named some.sql3
and create a table named xdata in that data base
sqlite3 some.sql3 '.read xdata_create.sql'
This step can
On 2013-04-11 19:58, Cousin Stanley wrote:
someone wrote:
I want to put this table into an appropriate container
such that afterwards I want to:
1) Put the data into a mySql-table
You might consider using sqlite3 as a database manager
since it is "batteries included" with p
On 04/11/2013 07:58 PM, Cousin Stanley wrote:
someone wrote:
You can be creative with the data selections
and pass them off to be plotted as needed
If mysql is used instead of sqlite3
you should only have to monkey with
the data type declarations in xdata_create.sql
and th
Cousin Stanley wrote:
> The stand-alone sqlite interpreter can first be used
> to create an empty database named some.sql3
> and create a table named xdata in that data base
>
> sqlite3 some.sql3 '.read xdata_create.sql'
This step can also be done in python
without using th
someone wrote:
>
> I want to put this table into an appropriate container
> such that afterwards I want to:
>
> 1) Put the data into a mySql-table
>
You might consider using sqlite3 as a database manager
since it is "batteries included" with python
The stand-alone sqlite
On 2013-04-11 10:49, someone wrote:
On 2013-04-11 03:39, Cousin Stanley wrote:
Is there any clever way of avoiding this for loop, for either this
container or another clever container type?
Ah, I see - I can also just add a numpy array, i.e:
--
import matplotlib.p
On 2013-04-11 03:39, Cousin Stanley wrote:
for row in list_tuples :
print ' ' , row.date , row.time , row.col1 , row.col3 , row.col4
file_source.close()
Oh, that's great - thank you - I didn't know this named-tuple container
before... I'm still wondering whether or not it's the optimal
someone wrote:
>
> I want to put this table into an appropriate container
> such that afterwards I want to:
>
> 1) Put the data into a mySql-table
> 2) Be able to easily plot column 1 vs. either of the other columns
> using matplotlib etc...
>
Consider editing your data file
into
Hi,
Here's my data:
---
20130315T071500 39000. 10 26 48000. 1 40
20130315T071501 39000. 10 26 48000. 2 42
20130315T071501 39000. 10 26 47520. 15 69
20130315T071501 39000. 10 26 47160. 1 70
20130315T071501 3
Am 05.12.2012 21:24, schrieb Owatch:
> Thanks a TON for your answer thought, this is exactly what I really hoped for.
> The problem for me is that I don't actually know anything about writing a
> function that opens a network socket, and "connects to that plugin und asks
> it for the
> informati
Re
On Monday, December 3, 2012 4:19:51 PM UTC+2, Alexander Blinne wrote:
> Hello,
>
>
>
> by having a quick look at their website i found a plugin for CoreTemp
>
> which acts as a server and can be asked for status information of the
>
> cpu. Now your task is really simple: write a little fun
Hello,
by having a quick look at their website i found a plugin for CoreTemp
which acts as a server and can be asked for status information of the
cpu. Now your task is really simple: write a little function or class
that opens a network socket, connects to that plugin und asks it for the
informat
On Sunday, December 2, 2012 11:44:05 PM UTC+2, Steven D'Aprano wrote:
> On Sun, 02 Dec 2012 12:33:58 -0800, Owatch wrote:
>
>
>
> > Sorry, but I was redirected here via a thread on another forum
>
> > concerning where to find help for Python. (Python-forums.org not working
>
> > for me)
>
> >
On Sun, 02 Dec 2012 12:33:58 -0800, Owatch wrote:
> Sorry, but I was redirected here via a thread on another forum
> concerning where to find help for Python. (Python-forums.org not working
> for me)
>
> I wanted to ask if there was any way I could write a simple Python
> Temperature program. Whe
Sorry, but I was redirected here via a thread on another forum concerning where
to find help for Python. (Python-forums.org not working for me)
I wanted to ask if there was any way I could write a simple Python Temperature
program. Where essentially it somehow (Now sure how, I'm a noob remember)
i am brand new to the python and programming world just finished
reading byte out of python which is an excellent book. As i am new to
the programming world im kind of at a lose as to where to go from
here? i am just learning so im not as experienced as most of you but i
would like to get my feet w
On Aug 29, 8:20 am, Pherdnut wrote:
> I want to write cross-platform stuff. Any opinions on the best GUI
> module for that?
The "big three" cross-platform ones are PyQt4, wxPython, and PyGtk.
I prefer PyQt4, but I'm biased as you'll see.
> I like a good juicy, but concise book for reading on my
On Aug 29, 3:20 am, Pherdnut wrote:
> I want to write cross-platform stuff. Any opinions on the best GUI
> module for that?
>
> I like a good juicy, but concise book for reading on my commute
> downtown. I was thinking of checking Python in a Nutshell. Good? Bad?
> Better?
>
> Is 3.0+ more object
I want to write cross-platform stuff. Any opinions on the best GUI
module for that?
I like a good juicy, but concise book for reading on my commute
downtown. I was thinking of checking Python in a Nutshell. Good? Bad?
Better?
Is 3.0+ more object based? I'm actually an FED and one of the things I
On Apr 28, 1:47 pm, "Kyle T. Jones"
wrote:
> Been programming for a long time, but just starting out with Python.
> Not a professional programmer, just that guy in one of those
> organizations that won't hire a pro, instead saying "Hey, Kyle knows
> computer stuff - let's have him do this (and tha
David Smith a écrit :
Kyle T. Jones wrote:
(snip question and answers recommending Django)
Thanks everyone! Wow, pretty much a consensus - a rarity with these
"types" of questions, at least in my experience.
>>
Ok, sounds like I need to be looking at Django. Thanks for the advice!
Cheers
On Wed, Apr 29, 2009 at 8:24 AM, David Smith wrote:
> Kyle T. Jones wrote:
> > Bruno Desthuilliers, my dear, dear friend, there was this time, oh,
> > 4/29/2009 3:02 AM or thereabouts, when you let the following craziness
> > loose on Usenet:
> >> Kyle T. Jones a écrit :
> >>> Been programming fo
Kyle T. Jones wrote:
> Bruno Desthuilliers, my dear, dear friend, there was this time, oh,
> 4/29/2009 3:02 AM or thereabouts, when you let the following craziness
> loose on Usenet:
>> Kyle T. Jones a écrit :
>>> Been programming for a long time, but just starting out with Python.
>>> Not a profes
Bruno Desthuilliers, my dear, dear friend, there was this time, oh,
4/29/2009 3:02 AM or thereabouts, when you let the following craziness
loose on Usenet:
Kyle T. Jones a écrit :
Been programming for a long time, but just starting out with Python.
Not a professional programmer, just that guy i
Kyle T. Jones a écrit :
Been programming for a long time, but just starting out with Python. Not
a professional programmer, just that guy in one of those organizations
that won't hire a pro, instead saying "Hey, Kyle knows computer stuff -
let's have him do this (and that, and the other, etc)".
Kyle T. Jones wrote:
So, the higher ups want a web app that'll let them enter (from an
intranet page) a rather simple, but quite lengthy, list - details to be
stored in a MySQL database... just normal stuff here, entering, editing,
and deleting entries, sorting, etc.
The last couple times I'
"Kyle T. Jones" writes:
> Been programming for a long time, but just starting out with
> Python. Not a professional programmer, just that guy in one of those
> organizations that won't hire a pro, instead saying "Hey, Kyle knows
> computer stuff - let's have him do this (and that, and the other,
Been programming for a long time, but just starting out with Python.
Not a professional programmer, just that guy in one of those
organizations that won't hire a pro, instead saying "Hey, Kyle knows
computer stuff - let's have him do this (and that, and the other, etc)".
So, the higher ups wan
"Chris Rebert" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Thu, Oct 9, 2008 at 11:22 PM, Tom Lake <[EMAIL PROTECTED]> wrote:
I have Python 2.6 installed on Vista Ultimate. When I try to calculate
sqrt (or any transcendental functions) I get the following error
sqrt(2)
Tra
On Oct 9, 11:22 pm, "Tom Lake" <[EMAIL PROTECTED]> wrote:
> I have Python 2.6 installed on Vista Ultimate. When I try to calculate
> sqrt (or any transcendental functions) I get the following error
>
> >>> sqrt(2)
>
> Traceback (most recent call last):
> File "", line 1, in
> NameError: name 's
On Thu, Oct 9, 2008 at 11:22 PM, Tom Lake <[EMAIL PROTECTED]> wrote:
> I have Python 2.6 installed on Vista Ultimate. When I try to calculate
> sqrt (or any transcendental functions) I get the following error
>
sqrt(2)
>
> Traceback (most recent call last):
> File "", line 1, in
> NameError
I have Python 2.6 installed on Vista Ultimate. When I try to calculate
sqrt (or any transcendental functions) I get the following error
sqrt(2)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'sqrt' is not defined
What am I doing wrong?
Tom Lake
--
http://mail.pyth
On 6 oct, 09:36, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Mon, 06 Oct 2008 00:08:58 -0700, toyko wrote:
> > So yeah, I have this assignment for my computer science class,
> >http://pages.cpsc.ucalgary.ca/~boyd/231/as1.pdfso far this is what I
> > have wrote, any suggestions cause I
On Mon, 06 Oct 2008 00:08:58 -0700, toyko wrote:
> So yeah, I have this assignment for my computer science class,
> http://pages.cpsc.ucalgary.ca/~boyd/231/as1.pdf so far this is what I
> have wrote, any suggestions cause I am stuck!
Learn Python and actually *think* about the problem and a solut
-
View this message in context:
http://www.nabble.com/python-noob-help-tp19832962p19832962.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
kj wrote:
> I'd written a Perl module to facilitate the writing of scripts.
> It contained all my boilerplate code for parsing and validating
> command-line options, generating of accessor functions for these
> options, printing of the help message and of the full documentation,
> testing, etc.
A
On Jan 31, 2:56 pm, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
> On 2008-01-30, grflanagan <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jan 29, 5:39 pm, kj <[EMAIL PROTECTED]> wrote:
> > For command line options I get a long way with this:
>
> > [code python]
> > def _getargs():
> > allargs = sys.argv
On 2008-01-30, grflanagan <[EMAIL PROTECTED]> wrote:
> On Jan 29, 5:39 pm, kj <[EMAIL PROTECTED]> wrote:
> For command line options I get a long way with this:
>
> [code python]
> def _getargs():
> allargs = sys.argv[1:]
> args = []
> kwargs = {}
> key = None
> while allargs:
>
On Jan 29, 5:39 pm, kj <[EMAIL PROTECTED]> wrote:
[...]
> It's not the Python syntax that I'm having problems with, but rather
> with larger scale issues such as the structuring of packages,
> techniques for code reuse, test suites, the structure of
> distributions,... Python and Perl seem to come
In <[EMAIL PROTECTED]> Wildemar Wildenburger <[EMAIL PROTECTED]> writes:
>kj wrote:
>> Is there any good reading (to ease the transition) for Perl
>> programmers trying to learn Python?
>>
>www.diveintopython.org
Thanks. Not for Perl programmers specifically, but it looks useful
all the same.
In <[EMAIL PROTECTED]> "Reedick, Andrew" <[EMAIL PROTECTED]> writes:
>> Be that as it may, the activation barrier to using Python for my
>> scripting remains too high.
>>=20
>> I'd written a Perl module to facilitate the writing of scripts.
>> It contained all my boilerplate code for parsing and v
kj wrote:
> Is there any good reading (to ease the transition) for Perl
> programmers trying to learn Python?
>
www.diveintopython.org
While it is a bit dated by now (Python 2.2), that thing worked wonders
for me. Shows you Python in action and presents a fair amount of its
philosophy along th
On Jan 29, 10:39 am, kj <[EMAIL PROTECTED]> wrote:
> I'd written a Perl module to facilitate the writing of scripts.
> It contained all my boilerplate code for parsing and validating
> command-line options, generating of accessor functions for these
> options, printing of the help message and of t
On Jan 29, 4:39 pm, kj <[EMAIL PROTECTED]> wrote:
> It's not the Python syntax that I'm having problems with, but rather
> with larger scale issues such as the structuring of packages,
> techniques for code reuse, test suites, the structure of
> distributions,... Python and Perl seem to come from
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of kj
> Sent: Tuesday, January 29, 2008 11:39 AM
> To: python-list@python.org
> Subject: Python noob SOS (any [former?] Perlheads out there?)
>
>
>
> For many
kj a écrit :
> For many months now I've been trying to learn Python, but I guess
> I'm too old a dog trying to learn new tricks... For better or
> worse, I'm so used to Perl when it comes to scripting, that I'm
> just having a very hard time getting a hang of "The Python Way."
>
(snip)
>
> I'd w
For many months now I've been trying to learn Python, but I guess
I'm too old a dog trying to learn new tricks... For better or
worse, I'm so used to Perl when it comes to scripting, that I'm
just having a very hard time getting a hang of "The Python Way."
It's not the Python syntax that I'm ha
1 - 100 of 116 matches
Mail list logo