Talk Python to Me with GvR

2017-02-26 Thread Terry Reedy
https://player.backtracks.fm/talkpython/m/100-guido-van-rossum Both audio and transcript. There is more discussion of Guido's pre-Python work than I have read before. Discussion of Python 3 migration starts at 37:05. Guido says harder than expected because Python was more popular than he

Re: Python (and me) getting confused finding keys

2009-12-23 Thread John
The lesson of this? Do not make mutable classes hashable. That could be it! I'll try. Thanks a lot! The obvious follow-up is to ask how to make an immutable class. http://northernplanets.blogspot.com/2007/01/immutable-instances-in-python.h tml --

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Robin Becker
On 22/12/2009 16:33, John wrote: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) Oops!? Is there ANY way that something like this can

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Tim Golden
John wrote: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) Oops!? Is there ANY way that something like this can possibly happen? Three

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Christian Heimes
John schrieb: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) Oops!? Is there ANY way that something like this can possibly happen?

Re: Python (and me) getting confused finding keys

2009-12-22 Thread John
another thread can remove the key prior to the has_key call; or perhaps edges isn't a real dictionary? of course. But unless there is a way of using threading without being aware of it, this is not the case. Also, edges is definitely a dict (has been declared some lines before, and no

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Zac Burns
On Tue, Dec 22, 2009 at 8:56 AM, John j...@nurfuerspam.de wrote: another thread can remove the key prior to the has_key call; or perhaps edges isn't a real dictionary? of course. But unless there is a way of using threading without being aware of it, this is not the case. Also, edges

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Tim Golden
John wrote: another thread can remove the key prior to the has_key call; or perhaps edges isn't a real dictionary? of course. But unless there is a way of using threading without being aware of it, this is not the case. Also, edges is definitely a dict (has been declared some lines before,

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Gabriel Genellina
En Tue, 22 Dec 2009 13:56:36 -0300, John j...@nurfuerspam.de escribió: another thread can remove the key prior to the has_key call; or perhaps edges isn't a real dictionary? of course. But unless there is a way of using threading without being aware of it, this is not the case. Also,

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Lie Ryan
On 12/23/2009 3:33 AM, John wrote: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) Oops!? Is there ANY way that something like this can

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Terry Reedy
On 12/22/2009 11:33 AM, John wrote: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) If you are claiming that the above *did* raise

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Steven D'Aprano
On Tue, 22 Dec 2009 17:47:14 +0100, Christian Heimes wrote: John schrieb: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) Oops!? Is

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Steven D'Aprano
On Tue, 22 Dec 2009 17:33:04 +0100, John wrote: Hi there, I have a rather lengthy program that troubles me for quite some time. After some debugging, I arrived at the following assertion error: for e in edges.keys(): assert edges.has_key(e) Oops!? Is there ANY way that something

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Alf P. Steinbach
* Steven D'Aprano: [snip] The obvious follow-up is to ask how to make an immutable class. http://northernplanets.blogspot.com/2007/01/immutable-instances-in-python.html Thanks, I've been wondering about that. By the way, the link at the bottom in the article you linked to, referring to an

Re: Looking for a dream language: sounds like Python to me.

2009-07-30 Thread ray
Where can I find a Python functionality like simulink  ? Stef, I saw this at: http://showmedo.com/videotutorials/video?name=743fromSeriesID=743 Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a dream language: sounds like Python to me.

2009-07-28 Thread ray
On Jul 27, 10:39 am, David Cournapeau courn...@gmail.com wrote: On Tue, Jul 28, 2009 at 12:28 AM, Dotan Cohendotanco...@gmail.com wrote: It is neither efficient or inefficient: it is just a distribution tool, to deploy python software in a form familiar to most windows users. It does not

Re: Looking for a dream language: sounds like Python to me.

2009-07-28 Thread Stef Mientki
Matlab, from The Mathworks, has a companion product called Simulink. This allows the user to graphically build ‘algorithms’ in block form. There is a similar Python function. Where can I find a Python functionality like simulink ? thanks, Stef Mientki --

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Piet van Oostrum
Dotan Cohen dotanco...@gmail.com (DC) wrote: DC Referring to this article: DC http://math-blog.com/2009/07/20/complex-algorithm-research-and-development-harder-than-many-think/ DC The author, who is specifically looking for math-related functions, writes: DC DC The dream algorithm RD tool

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Mohammad Tayseer
: Monday, July 27, 2009 11:18:20 AM Subject: Re: Looking for a dream language: sounds like Python to me. Dotan Cohen dotanco...@gmail.com (DC) wrote: DC Referring to this article: DC http://math-blog.com/2009/07/20/complex-algorithm-research-and-development-harder-than-many-think/ DC The author

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Ethan Furman
[corrected top posting] Mohammad Tayseer wrote: *From:* Piet van Oostrum p...@cs.uu.nl *To:* python-list@python.org *Sent:* Monday, July 27, 2009 11:18:20 AM *Subject:* Re: Looking for a dream language: sounds like Python to me. Dotan Cohen dotanco...@gmail.com mailto:dotanco...@gmail.com

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Dotan Cohen
Creating binaries is not the same as creating /fast, efficient/ binaries.  Py2Exe bundles it all together, but does not make it any faster. How inefficient is py2exe. I was under the impression that it's really not that bad. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il --

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Jean-Paul Calderone
On Mon, 27 Jul 2009 18:12:09 +0300, Dotan Cohen dotanco...@gmail.com wrote: Creating binaries is not the same as creating /fast, efficient/ binaries.  Py2Exe bundles it all together, but does not make it any faster. How inefficient is py2exe. I was under the impression that it's really not

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread David Cournapeau
On Tue, Jul 28, 2009 at 12:12 AM, Dotan Cohendotanco...@gmail.com wrote: Creating binaries is not the same as creating /fast, efficient/ binaries.  Py2Exe bundles it all together, but does not make it any faster. How inefficient is py2exe. It is neither efficient or inefficient: it is just a

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Grant Edwards
On 2009-07-27, Dotan Cohen dotanco...@gmail.com wrote: Creating binaries is not the same as creating /fast, efficient/ binaries. ??Py2Exe bundles it all together, but does not make it any faster. How inefficient is py2exe. [Assuming that was a question.] py2exe just bundles up the files

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread Dotan Cohen
It is neither efficient or inefficient: it is just a distribution tool, to deploy python software in a form familiar to most windows users. It does not make it any faster than running the software under a python prompt. As much as I like python for scientific programming, I would say python

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread David Cournapeau
On Tue, Jul 28, 2009 at 12:28 AM, Dotan Cohendotanco...@gmail.com wrote: It is neither efficient or inefficient: it is just a distribution tool, to deploy python software in a form familiar to most windows users. It does not make it any faster than running the software under a python prompt.

Looking for a dream language: sounds like Python to me.

2009-07-26 Thread Dotan Cohen
Referring to this article: http://math-blog.com/2009/07/20/complex-algorithm-research-and-development-harder-than-many-think/ The author, who is specifically looking for math-related functions, writes: The dream algorithm RD tool would be similar to Matlab or Mathematica but could be compiled to

Re: Is Python for me?

2007-02-09 Thread [EMAIL PROTECTED]
On Feb 9, 5:08 am, jiddu [EMAIL PROTECTED] wrote: I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. Be sure to check out the Python411 podcast http://awaretek.com/python/index.html Take

Re: Is Python for me?

2007-02-09 Thread Neil Cerutti
On 2007-02-09, jiddu [EMAIL PROTECTED] wrote: Hi, I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. Python *is* a good language to start. What I wanted to do is to first write a program

Is Python for me?

2007-02-08 Thread jiddu
Hi, I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. What I wanted to do is to first write a program which will be able to run through all the possible combinations of cards dealt out and use

Re: Is Python for me?

2007-02-08 Thread James Stroud
jiddu wrote: Hi, I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. What I wanted to do is to first write a program which will be able to run through all the possible combinations of

Re: Is Python for me?

2007-02-08 Thread azrael
i hope you know that for this task, if you want it to be successfull, you need a really big database. it sounds very simple to this. it sounds like go through all possible permutations. before you start writing any code take a pencil and a big paper and do some maths. i sugesst you read and

Re: Is Python for me?

2007-02-08 Thread azrael
i forgot a query language. something like postgre or mysql On Feb 9, 7:37 am, azrael [EMAIL PROTECTED] wrote: i hope you know that for this task, if you want it to be successfull, you need a really big database. it sounds very simple to this. it sounds like go through all possible

Re: Is Python for me?

2007-02-08 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], jiddu wrote: I'm planning to create a poker calculator, I learned some basic in highschool years ago and I was told for beginners Python is a good language to start. There's a recipe in the Cookbook that might be interesting for you:

Re: Is python for me?

2006-11-22 Thread cyberco
One resource you should always keep at hand is this extremely useful Quick Reference: http://rgruet.free.fr/PQR24/PQR2.4.html Study it carefully, there is a lot in there that can teach you about how Python works. Fire up IPython as well and start hacking! 2B --

Re: Is python for me?

2006-11-17 Thread Magnus Lycka
I think Python is for you. lennart wrote: Can you define 'large'? Is that large in code, or large in database? I don't know which database is supported. If its a external db, like MySql, the query is performed through the software of MySql, am I right? If I'm correct, the 'slowness' comes

Re: Is python for me?

2006-11-16 Thread [EMAIL PROTECTED]
Yes of course python can handle of these things, but have you actually compared them to something written in C? Even if the app was converted into bytecode, it's still not as fast as an executable, that's all I am saying. Bruno Desthuilliers wrote: [EMAIL PROTECTED] wrote: By large I mean an

Re: Is python for me?

2006-11-15 Thread rodmc
[EMAIL PROTECTED] wrote: By large I mean an application with intensive operations, such as a fancy GUI maybe a couple of threads, accessing a database, etc. I am still fairly new to Python, I only started using it at the start of this year and then stopped for a while. However the project I

Re: Is python for me?

2006-11-15 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: By large I mean an application with intensive operations, such as a fancy GUI maybe a couple of threads, accessing a database, etc. Threads are handled by the OS. GUI are (usually) handled by a lower-level lib like GTK or such. DB access mostly rely on the particular

Re: Is python for me?

2006-11-14 Thread Mark Woodward
On Mon, 13 Nov 2006 09:11:13 -0800, lennart wrote: Hi, I'm planning to learn a language for 'client' software. Until now, i 'speak' only some web based languages, like php. As a kid i programmed in Basic (CP/M, good old days :'-) ) Now i want to start to learn a (for me) new computer

Re: Is python for me?

2006-11-14 Thread Steve Holden
Mark Woodward wrote: On Mon, 13 Nov 2006 09:11:13 -0800, lennart wrote: Hi, I'm planning to learn a language for 'client' software. Until now, i 'speak' only some web based languages, like php. As a kid i programmed in Basic (CP/M, good old days :'-) ) Now i want to start to learn a (for

Re: Is python for me?

2006-11-14 Thread [EMAIL PROTECTED]
By large I mean an application with intensive operations, such as a fancy GUI maybe a couple of threads, accessing a database, etc. lennart wrote: [EMAIL PROTECTED] schreef: As stated above python is capable of all those things, however on larger applications like that it can tend to slow

Re: Is python for me?

2006-11-14 Thread Tim Chase
By large I mean an application with intensive operations, such as a fancy GUI maybe a couple of threads, accessing a database, etc. I can't say I've had any python related problems on such matters. I've done some modestly large-sized apps, and the bottlenecks are almost always I/O

Is python for me?

2006-11-13 Thread lennart
Hi, I'm planning to learn a language for 'client' software. Until now, i 'speak' only some web based languages, like php. As a kid i programmed in Basic (CP/M, good old days :'-) ) Now i want to start to learn a (for me) new computer language. I like Python. Its free, easy to learn and some

Re: Is python for me?

2006-11-13 Thread Cameron Laird
In article [EMAIL PROTECTED], lennart [EMAIL PROTECTED] wrote: Hi, I'm planning to learn a language for 'client' software. Until now, i 'speak' only some web based languages, like php. As a kid i programmed in Basic (CP/M, good old days :'-) ) Now i want to start to learn a (for me) new computer

Re: Is python for me?

2006-11-13 Thread [EMAIL PROTECTED]
As stated above python is capable of all those things, however on larger applications like that it can tend to slow down a bit. And the executables do need a little bit of work, because it's bassicly a dll and a library of all your .pyc files. However python is still a great language and I would

Re: Is python for me?

2006-11-13 Thread Dan Lenski
lennart wrote: But I'm not a full-time programmer. I know, that I've only time possibility to learn one (= 1) language good. So i ask myself is python the language I'm looking for? Yep! Python is very much a jack-of-all-trades language. I've used it for similar tasks, including as a

Re: Is python for me?

2006-11-13 Thread Carsten Haese
On Mon, 2006-11-13 at 10:14 -0800, Dan Lenski wrote: lennart wrote: So i ask myself is python the language I'm looking for? Yep! Python is very much a jack-of-all-trades language. I'll run the risk of being nitpicky, but the full phrase is Jack of all trades, master of none, which doesn't

Re: Is python for me?

2006-11-13 Thread lennart
of the difficulty, but because of the time and so. Later, i remembered that Gimp can also work with python (scripts). So, even for my second wish, there will be somewhere, somehow a way to do it. At least: i use the dutch portal http://python.startpagina.nl/ to start with. Can you advice me a good Python

Re: Is python for me?

2006-11-13 Thread lennart
[EMAIL PROTECTED] schreef: As stated above python is capable of all those things, however on larger applications like that it can tend to slow down a bit. And the executables do need a little bit of work, because it's bassicly a dll and a library of all your .pyc files. However python is

Re: Is python for me?

2006-11-13 Thread Stephen Eilert
the heavy-lifting. The easy integration between Python and C (compared to a couple other popular platforms) is what drove me to Python. Make it work first. Then optimize. And Python helps both. Stephen lennart escreveu: [EMAIL PROTECTED] schreef: As stated above python is capable of all those

Re: Is python for me?

2006-11-13 Thread Cameron Laird
In article [EMAIL PROTECTED], lennart [EMAIL PROTECTED] wrote: . . . At least: i use the dutch portal http://python.startpagina.nl/ to start with. Can you advice me a good Python interpreter, or a good startpage (as in Python

Re: Is python for me?

2006-11-13 Thread jkn
Hi Carsten I'll run the risk of being nitpicky, but the full phrase is Jack of all trades, master of none, which doesn't do Python justice. Python is a master of all trades! FYI that's only *one* version of 'the full phrase'. I, for instance, am a 'Jack of all trades, master of many'. I

Re: Is python for me?

2006-11-13 Thread TiNo
At least: i use the dutch portal http://python.startpagina.nl/ to start with. Can you advice me a good Python interpreter, or a good startpage (as in Python for dummys)? Lennart -- http://mail.python.org/mailman/listinfo/python-list check http://www.diveintopython.org/ pretty good book

Re: Is python for me?

2006-11-13 Thread Dan Lenski
, master of none, which doesn't do Python justice. Python is a master of all trades! Indeed! That's why I left out the master of none prt :-) For me, Python is jack of all trades, master of everything I've thrown at it so far. Dan -- http://mail.python.org/mailman/listinfo/python-list

Re: Is python for me?

2006-11-13 Thread SPE - Stani's Python Editor
lennart schreef: [*] As a photographer i like to build a picture management system Cornice, a cross-platform image viewer, might be a good start. Features Here is a list of the main features of Cornice: * Fully cross-platform: it should run wherever wxPython does; * Detail and