Re: [OT] Python like lanugages

2011-01-16 Thread Paul Rubin
geremy condra writes: > I agree. That does not make Go that language, and many of the choices > made during Go's development indicate that they don't think it's that > language either. I'm speaking specifically of its non-object model, > lack of exceptions, etc > You might be right, but I dou

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Octavian Rasnita
From: "Steven D'Aprano" Sent: Monday, January 17, 2011 1:04 AM Subject: Re: Tkinter: The good, the bad, and the ugly! Well, true, but people tend to *use* the parts of the GUIs that are simple and basic. Not only do the big complicated apps get all the press even when they are actually a ni

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread TomF
On 2011-01-16 20:57:41 -0800, Adam Skutt said: On Jan 16, 11:39 pm, TomF wrote: One difficulty is that there is a queue of work to be done and a queue of results to be incorporated back into the parent; there is no one-to-one correspondence between the two.  It's not obvious to me how to coord

Re: Not clear about the dot notation

2011-01-16 Thread Tim Roberts
Zeynel wrote: >On Jan 16, 3:24 pm, TomF wrote: > >> vote refers to the Vote instance. > >So he must have instatiated previously like > >vote = Vote() No, it's the line immediately above the one you asked about: if vote is None: vote = Vote(key_name = user.email(), parent =

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Adam Skutt
On Jan 16, 11:39 pm, TomF wrote: > One difficulty is that there is a queue of work to be done and a queue > of results to be incorporated back into the parent; there is no > one-to-one correspondence between the two.  It's not obvious to me how > to coordinate the queues in a natural way to avoid

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread TomF
On 2011-01-16 19:16:15 -0800, Dan Stromberg said: On Sun, Jan 16, 2011 at 11:05 AM, TomF wrote: I'm trying to multiprocess my python code to take advantage of multiple cores.  I've read the module docs for threading and multiprocessing, and I've done some web searches.  All the examples I've f

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 9:45 pm, Terry Reedy wrote: > You called them 'awesome'. I did not expect 'awesomely ugly'. > Screenshots are the first thing for someone to look at, to see WHAT THE > APP LOOKS LIKE, and to decide whether one wants to bother to download, > switch to admin, install, run, and uninstall

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Terry Reedy
On 1/16/2011 6:58 PM, rantingrick wrote: On Jan 16, 5:14 pm, Terry Reedy wrote: On 1/16/2011 1:27 PM, rantingrick wrote: least look at the awesome screen shots here... http://www.wxpython.org/screenshots.php I did. Well, they say, "Beauty is in the eye of the beholder!". To me, the

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Dan Stromberg
On Sun, Jan 16, 2011 at 11:05 AM, TomF wrote: > I'm trying to multiprocess my python code to take advantage of multiple > cores.  I've read the module docs for threading and multiprocessing, and > I've done some web searches.  All the examples I've found are too simple: > the processes take simple

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Adam Skutt
On Jan 16, 2:05 pm, TomF wrote: > Instead of explaining my problem and asking for design suggestions, > I'll ask: is there a compendium of realistic Python multiprocessing > examples somewhere?  Or an open source project to look at? There are tons, but without even a knowledge domain, it's diffic

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 5:50 PM, rantingrick wrote: > On Jan 16, 6:59 pm, geremy condra wrote: >> Hahahahahahahaha. Troll. > > > Coming from someone who actually gives advice on how to troll more > efficiently... now that is ironic! > > ### > # Gere

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 6:59 pm, geremy condra wrote: > Hahahahahahahaha. Troll. Coming from someone who actually gives advice on how to troll more efficiently... now that is ironic! ### # Geremy Condra From: I strongly dislike Python 3 # #

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 4:12 PM, rantingrick wrote: > > I don't have the energy to chase my tail like you do. Hahahahahahahaha. Troll. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 5:16 pm, Adam Skutt wrote: [...snip: emotionally nonsensical hyperbole...] Adam. Arguing with you is like masturbating with a cheese-grater... slightly amusing, but mostly painful. I don't have the energy to chase my tail like you do. -- http://mail.python.org/mailman/listinfo/python

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 5:14 pm, Terry Reedy wrote: > On 1/16/2011 1:27 PM, rantingrick wrote: > > > least look at the awesome screen shots here... > > >      http://www.wxpython.org/screenshots.php > > I did. Well, they say, "Beauty is in the eye of the beholder!". To me, > these are mostly awesomely ugly, ug

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 16, 2:17 pm, rantingrick wrote: > The IDLE library has had a NoteBook widget for ages. They just choose > to call it TabPages instead. And what is a NoteBook exactly? Well a > Notebook is a compound widget consisting of a "main frame that holds > two sub frames -- which are a "tab" frame an

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 16, 6:04 pm, Steven D'Aprano wrote: > > If the situation isn't > > the same on your computer then your application usage is highly unusual > > or you don't understand what widgets are used to construct your > > applications.  You've just told me that Python would no longer be > > suitable f

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Kevin Walzer
On 1/16/11 2:44 PM, rantingrick wrote: Ok so you're complaining about a "Mac specific" missing functionality? Um, yes. Ok, even if it looks "out of place" this is another "Mac Specific" problem. Yes, it sure does. "Mac-specific"=="important." 3. wxPython applications do not make use of

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig wrote: > On 2011-01-16, Steven D'Aprano wrote: >> If the author thinks that Go is a "tried and true" (his words, not mine) >> language "where programmers can go to look for work", I think he's >> fooling himself. > > No I wouldn't say that it has reached

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 16, 11:30 am, rantingrick wrote: > Adam your post is so incoherent that i cannot decide if you are FOR or > AGAINST changing the current Tkinter GUI module into a wxPython GUI > module. And this widget set that you keep referring to is a bit vague > also. If you found my post incoherent t

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Terry Reedy
On 1/16/2011 1:27 PM, rantingrick wrote: least look at the awesome screen shots here... http://www.wxpython.org/screenshots.php I did. Well, they say, "Beauty is in the eye of the beholder!". To me, these are mostly awesomely ugly, ugly, ugly. Shot 1: Ugly gray field followed by shot2:

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Steven D'Aprano
On Sun, 16 Jan 2011 07:18:16 -0800, Adam Skutt wrote: [...] I'm afraid I found most of your post hard to interpret, because you didn't give sufficient context for me to understand it. You refer to "his proposed widget set", but with no clue as to who he is, or what the widget set is, or what e

Re: Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread rantingrick
On Jan 16, 5:03 am, Tim Harig wrote: > Personally, I think the time is ripe for a language that bridges the > gap between ease of use dynamic languages with the performance and > distribution capabilities of a full systems level language.   Bravo! > This is after > all the promise the VM based

Re: Not clear about the dot notation

2011-01-16 Thread TomF
On 2011-01-16 12:44:35 -0800, Zeynel said: On Jan 16, 3:24 pm, TomF wrote: vote refers to the Vote instance. So he must have instatiated previously like vote = Vote() is this correct? Yes. So I have a model class Item(db.Model): title = db.StringProperty() url = db.StringPro

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Philip Semanchuk
On Jan 16, 2011, at 2:05 PM, TomF wrote: > I'm trying to multiprocess my python code to take advantage of multiple > cores. I've read the module docs for threading and multiprocessing, and I've > done some web searches. All the examples I've found are too simple: the > processes take simple

Re: Not clear about the dot notation

2011-01-16 Thread Zeynel
On Jan 16, 3:24 pm, TomF wrote: > vote refers to the Vote instance. So he must have instatiated previously like vote = Vote() is this correct? So I have a model class Item(db.Model): title = db.StringProperty() url = db.StringProperty() date = db.DateTimeProperty(auto_now_add=Tru

Re: Not clear about the dot notation

2011-01-16 Thread Ian Kelly
On 1/16/2011 12:59 PM, Zeynel wrote: What does vote.vote refer to in this snippet? "vote" is an instance of the Vote class, and "vote.vote" is the value of the "vote" attribute on that instance. In this case, that will be an int. More precisely, "vote.vote" is a value managed by the "vote"

Re: Not clear about the dot notation

2011-01-16 Thread TomF
On 2011-01-16 11:59:11 -0800, Zeynel said: What does vote.vote refer to in this snippet? def txn(): quote = Quote.get_by_id(quote_id) vote = Vote.get_by_key_name(key_names = user.email(), parent = quote) if vote is None: vote = Vote(key_name = user.email(

RE: Functions Not Fun (yet)-please help!

2011-01-16 Thread Joe Goldthwaite
Hi Kathy, The defaults only get assigned when you leave them out of the list. This will work the way you want by setting b & c to the defaults. print my_func(a) When you try this; a = "testing" b = "defaults" print my_func(a, b, c)

Not clear about the dot notation

2011-01-16 Thread Zeynel
What does vote.vote refer to in this snippet? def txn(): quote = Quote.get_by_id(quote_id) vote = Vote.get_by_key_name(key_names = user.email(), parent = quote) if vote is None: vote = Vote(key_name = user.email(), parent = quote) if vote.vote == new

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 12:59 pm, Kevin Walzer wrote: > I'm quite familiar with the wxPython demo. I've got the latest > incarnation, from 2.9.x, installed on my machine. The latest version is > quite nice, especially with the AUI widgets, and the underlying > wxWidgets libraries are finally up-to-date on my

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Adam Tauno Williams
> Instead of explaining my problem and asking for design suggestions, > I'll ask: is there a compendium of realistic Python multiprocessing > examples somewhere? Not that I've ever seen. > Or an open source project to look at? OpenGroupware Coils uses multiprocessing [in conjunction with AMQ]

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 12:49 pm, Terry Reedy wrote: > Once IDLE is revised to use some of the widgets in ttk that are not in > tk (such as Notebook) the set would need expansion. The IDLE library has had a NoteBook widget for ages. They just choose to call it TabPages instead. And what is a NoteBook exactly

examples of realistic multiprocessing usage?

2011-01-16 Thread TomF
I'm trying to multiprocess my python code to take advantage of multiple cores. I've read the module docs for threading and multiprocessing, and I've done some web searches. All the examples I've found are too simple: the processes take simple inputs and compute a simple value. My problem inv

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Kevin Walzer
On 1/16/11 1:27 PM, rantingrick wrote: On Jan 16, 11:39 am, Kevin Walzer wrote: First of all welcome back to the discussion Kevin. You and i both appreciate and use Tkinter extensively and your input is most welcome here. You are a smart and level headed fella which makes for good discussion. T

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Terry Reedy
On 1/16/2011 11:30 AM, rantingrick wrote: Toplevel Label Entry Button Radiobutton Checkbutton Canvas Textbox Listbox Menu Scale Scrollbar ...thats all you need in the std library "widget wise". Once IDLE is revised to use some of the widgets in ttk that are not in tk (such as Notebook) the se

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 11:39 am, Kevin Walzer wrote: First of all welcome back to the discussion Kevin. You and i both appreciate and use Tkinter extensively and your input is most welcome here. You are a smart and level headed fella which makes for good discussion. Thanks for that! Ok, let the battle begin!

Re: Issue 1602, cp65001, powershell and python3 crash

2011-01-16 Thread Terry Reedy
On 1/16/2011 4:22 AM, jmfauth wrote: After having read the discussion about the issue 1602, http://bugs.python.org/issue1602, I came to the idea to test Python with the PowerShell. I thought, it could help and manage "unicode" better than the std "dosbox" does My experience with PowerShell is cl

Re: [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-16 Thread Terry Reedy
On 1/16/2011 4:10 AM, Mark Summerfield wrote: Regarding http://docs.python.org/dev/whatsnew/3.2.html - in the first argparse example the comment says "one of four allowed values", but the choices list has only three items so I wonder if this is correct? - in the coverage of PEP code

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Kevin Walzer
On 1/16/11 11:30 AM, rantingrick wrote: ### # Start Quote by Rick # ### Exactly! All we need to do is replace the existing Tkinter with a small sub-set of wxPython widgets that mirrors exactly what we have now... Toplevel Label Entry Button Radiobutton Ch

Re: Developing a program to make a family tree.

2011-01-16 Thread rantingrick
On Jan 15, 3:43 pm, Michael Hunter wrote: > I think you are probably coming at this from the wrong direction. > Either you want to solve your family tree problem in the easiest way > possible in which case there are already packages available or you > want to develop this because you want to do t

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 9:18 am, Adam Skutt wrote: > You need a tremendous set to write /the majority of the applications > on your computer/. [...snip incessant rambling...] Adam your post is so incoherent that i cannot decide if you are FOR or AGAINST changing the current Tkinter GUI module into a wxPytho

Re: After C++, what with Python?

2011-01-16 Thread David Boddie
On Sunday 16 January 2011 08:35, geremy condra wrote: > On Sat, Jan 15, 2011 at 9:30 PM, Aman wrote: >> It would be great if you people could guide me as to what to proceed with >> and how. > > Here's what I would do: [Snip advice] Maybe it would be good to expand the Getting Started material

[PYTHON] threading: Parallel processing

2011-01-16 Thread Moses
Hi All, Is there is a way to print or use the value of new in the main function of the script below? from thread import start_new_thread, allocate_lock num_threads = 0 thread_started = False lock = allocate_lock() def heron(a): global num_threads, thread_started lock.acquire() num_

Re: Functions Not Fun (yet)-please help!

2011-01-16 Thread Emile van Sebille
On 1/16/2011 6:49 AM Cathy James said... Dear all, I can't thank you enough for taking time from your busy schedules to assist me (and others) in my baby steps with Python. Learning about functions now and wondering about some things commented in my code below. Maybe someone can break it down fo

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 14, 5:17 pm, Albert van der Horst wrote: > > I really don't follow that. You need a tremendous set to write gimp. > Obviously you won't write gimp in Python. > You need a tremendous set to write /the majority of the applications on your computer/. On my desktop right now, I have running:

Functions Not Fun (yet)-please help!

2011-01-16 Thread Cathy James
Dear all, I can't thank you enough for taking time from your busy schedules to assist me (and others) in my baby steps with Python. Learning about functions now and wondering about some things commented in my code below. Maybe someone can break it down for me and show me why i cant print the funct

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread Tim Harig
On 2011-01-16, Steven D'Aprano wrote: > On Sun, 16 Jan 2011 09:47:35 +, Tim Harig wrote: > >> One of the things that gives me hope >> for Go is that it is backed by Google so I expect that it may gain some >> rather rapid adoption. It has made enough of a wake to grab one of >> Eweek's 18 top

Re: Does Python 3.1 accept \r\n in compile()?

2011-01-16 Thread jmfauth
Just an info, addendum. >>> sys.version '3.2rc1 (r32rc1:88035, Jan 15 2011, 21:05:51) [MSC v.1500 32 bit (Intel)]' >>> compile('if True:\r\nprint(999)\r\n', '', 'exec') at 0x023CA610, file "", line 2> >>> exec(compile('if True:\r\nprint(999)\r\n', '', 'exec')) 999 >>> -- http://mail.p

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread Steven D'Aprano
On Sun, 16 Jan 2011 09:47:35 +, Tim Harig wrote: > One of the things that gives me hope > for Go is that it is backed by Google so I expect that it may gain some > rather rapid adoption. It has made enough of a wake to grab one of > Eweek's 18 top languages for 2011. If the author thinks tha

[OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread Tim Harig
On 2011-01-16, Paul Rubin wrote: > Tim Harig writes: >> Those who are concerned about performance should check out Go. >> Garbage collection, duck typing, and compiles to a native binary. >> It creates a great middle ground between C++ and Python. Any C and/or >> Python programmer will feel righ

Re: After C++, what with Python?

2011-01-16 Thread Stefan Behnel
John Nagle, 16.01.2011 07:03: Threading is supported but thread concurrency is marginal. The most common implementation is a naive interpreter with reference counting backed up by a mark and sweep garbage collector. Performance is about 1/60 of optimized C code. That's Python. Since the OP is

Issue 1602, cp65001, powershell and python3 crash

2011-01-16 Thread jmfauth
After having read the discussion about the issue 1602, http://bugs.python.org/issue1602, I came to the idea to test Python with the PowerShell. I thought, it could help and manage "unicode" better than the std "dosbox" does My experience with PowerShell is closed to zero, so take the following as

Re: [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-16 Thread Mark Summerfield
On Sun, 16 Jan 2011 08:33:41 +0100 Georg Brandl wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On behalf of the Python development team, I'm very happy to announce > the first release candidate of Python 3.2. [snip] Regarding http://docs.python.org/dev/whatsnew/3.2.html - in the f

Re: After C++, what with Python?

2011-01-16 Thread Paul Rubin
Tim Harig writes: > Those who are concerned about performance should check out Go. > Garbage collection, duck typing, and compiles to a native binary. > It creates a great middle ground between C++ and Python. Any C and/or > Python programmer will feel right at home with the language. It is > st

Re: After C++, what with Python?

2011-01-16 Thread Tim Harig
On 2011-01-16, John Nagle wrote: > On 1/15/2011 10:48 PM, Aman wrote: >> @nagle Means you are suggesting me not to proceed with Python because I've >> had experience with C++? > >No, Python is quite useful, but on the slow side. If you're I/O > bound, not time critical, or otherwise not perf