Re: PajamaScript

2004-12-05 Thread Eric Pederson
of processing might make it a little slow. Ought to be other uses too... I _do_ think the tags and the title "PajamaScript" is brilliant marketing. Highest kudos! ["PajamaScript" beats "PyTxtParse2ModuleExecEnviron.py" !] Any functioning examples of its u

Re: simple GUI question

2004-12-08 Thread Eric Brunel
e for the dialogs too...) So if you really want to do that, the simplest way is definetely to avoid using the tkMessageBox module and to design your own dialogs. HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: spawn or fork

2004-12-08 Thread Eric Brunel
on Unices. What are you trying to do exactly? If you provide more explanations, we may provide a better help than the simplistic one above. HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: spawn or fork

2004-12-08 Thread Eric Brunel
this instead of processes. See http://docs.python.org/lib/module-threading.html HTH -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-13 Thread Eric Brunel
works quite smoothly. Can you describe what happens to you exactly? -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mascot proposal

2004-12-13 Thread Eric Pederson
ts a level or two easier mental association than MP. Logo? Maybe a Norweigian Blue on is back, one fut in e air, wit a snake ead off to is ide, grinningly wit a char-grin? es not dead! Eric Pederson ::: domainNot="@something.com" domainIs=domainNot

Re: NO REALLY

2004-12-15 Thread Eric Pederson
> "Jive" <[EMAIL PROTECTED]> taunted: > > > Subject: NO REALLY > > > > Isn't there a comp.lang.flame or something? > Oh, my, don't you have BIG CAPS! Someone should wash them, thoroughly! Why don't you come up to my room, big boy. -DIRK [is that flaming enough?] -- http://mail.python.or

newbie: Datetime module for Python 2.2.x

2004-12-16 Thread Eric Azarcon
to compile just that module. And installing it, if I ever get that far. Any help would be much appreciated! Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Multithreading tkinter question

2004-12-17 Thread Eric Brunel
just goes out of the mainloop; it doesn't destroy the widgets. To do that, you have to add an explicit root.destroy() after root.mainloop() -- - Eric Brunel - PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com -- http://mail.python.org/mailman/listinfo/python-list

mx Oddity in FC3/RedHat ES

2004-12-20 Thread Eric Azarcon
listing and then ask for mx. This same behaviour is displayed on my Fedora Core 3 box running mx-2.0.5-3, and on 2 separate machines running RHEL-ES (most recent version with updates applied) and egenix-mx-base-2.0.6-py2.2_1. Any help would be very appreciated! Thanks, Eric p.s. the background is

Re: mx Oddity in FC3/RedHat ES

2004-12-20 Thread Eric Azarcon
compare the creation time of a file with a date, and determine if I need to delete it. I know how to use stat to get the file creation time. I can get the current time. If I subtract the file ctime from the current time, how do i turn that delta into days? Thanks for all your help! Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP vs. Python

2004-12-22 Thread Eric Pederson
en someone points out the folly of the code or table set-up. Not sure if the OP is considering Python v.s. PHP on the server or on the desktop (PHP isn't web only, except by common use); they are very different use cases. Eric Pederson http://www.songzilla.blogspot.com :::

Re: scrollbar dependencies

2005-03-24 Thread Eric Brunel
On 24 Mar 2005 03:24:34 -0800, Marion <[EMAIL PROTECTED]> wrote: Next mystery : a picture drawn in the canvas c1 is scrollable. a picture-containing canvas "grided" in the canvas c1 is not. so why ??? Marion --- [snip] #---

Crash in thread on program termination

2005-03-28 Thread Eric Ries
d. Where possible, I have attempted to have functions bind currentThread and other module globals into their own local namespace. I probably didn't catch every case where this happens, but it works well enough for me. Thanks, Eric """Thread module emulating a subset of Java&#

Re: How to ensure Maximize button shows in Linux/Unix (Tkinter)

2005-03-29 Thread Eric Brunel
On 26 Mar 2005 08:19:07 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote: Diez, Thanks for the quick reply. I am running this under KDE. I actually haven't tried doing so under any other wm for the moment. Any ideas how to get it to show in KDE? This is a tk bug; see: http://sourceforge.net/tracker/i

Re: tkinter destroy()

2005-03-29 Thread Eric Brunel
On Tue, 29 Mar 2005 10:37:10 GMT, max(01)* <[EMAIL PROTECTED]> wrote: hi people. when i create a widget, such as a toplevel window, and then i destroy it, how can i test that it has been destroyed? the problem is that even after it has been destroyed, the instance still exists and has a tkinter nam

Re: problem with tkinter

2005-03-30 Thread Eric Brunel
On Tue, 29 Mar 2005 22:32:59 +0200, Pierre Quentel <[EMAIL PROTECTED]> wrote: Instead of indexing self.lab by strings, you can index them by the attributes themselves : self.lab[self.i], and change line 23 into for var in (self.s, self,i) I really think this is asking for trouble: I suppose t

Re: Things you shouldn't do

2005-03-30 Thread Eric Brunel
On Wed, 30 Mar 2005 07:02:57 GMT, Andrew Dalke <[EMAIL PROTECTED]> wrote: Steve wrote: [an anecdote on distinguishing l1 and 11] What are some of other people's favourite tips for avoiding bugs in the first place, as opposed to finding them once you know they are there? There's a good book on this

Re: [DB-SIG] Looking for Stephen Turner, maintainer of informixdb

2005-03-30 Thread Eric Brunson
Read the license. If he's released it under GPL or BSD, then you could, in all good faith, release a fork of the code until he surfaces. Carsten Haese wrote: Hello everybody: I have discovered that the functionality for connecting Python to an Informix database is currently in a frustrating stat

Re: Simple Python + Tk text editor

2005-04-14 Thread Eric Brunel
On Thu, 14 Apr 2005 06:41:26 +0100, Jonathan Fine <[EMAIL PROTECTED]> wrote: [snip] And for my project (integration of Python and TeX) there is most unlikely to be a better one. Do you know the (apparently dead) project named e:doc? You can find it here: http://members.nextra.at/hfbuch/edoc/ It's a

Re: Tkinter Event Types

2005-04-19 Thread Eric Brunel
On 18 Apr 2005 13:48:50 -0700, codecraig <[EMAIL PROTECTED]> wrote: Hi, When I do something like. s = Scale(master) s.bind("", callback) def callback(self, event): print event.type I see "7" printed out. Where are these constants defined for various event types? Basically i want to do somet

Re: New to Tkinter...

2005-04-19 Thread Eric Brunel
On Tue, 19 Apr 2005 09:35:03 -0400, Peter G Carswell <[EMAIL PROTECTED]> wrote: Good Morning. I am new to Tkinter. I have been testing the installation of Tkinter through the python web site. The first two test steps give no errors, 'import _tkinter' and 'import Tkinter'. However, the third step, '

Re: Define Constants

2005-04-20 Thread Eric Nieuwland
rom abc.py I have from utils.CustomThing import CustomThing print CustomThing.TOP but i get an error: AttributeError: class 'CustomThing' has no attribute 'TOP' How can I access those?? You're only importing the class. Try importing the whole module: from utils import C

key binding with mac

2005-04-25 Thread Eric Texier
I am just starting to use python on the mac. How do I get backspace, the arrows up/down and all the control like ctrl-a to work nicely under the console. for now I am getting a bunch of ^? ^[[A when I use any tcsh type of control. thanks, -- http://mail.python.org/mailman/listinfo/python-list

python on mac keystroke

2005-04-25 Thread Eric Texier
I am testing python on a mac. In the python console, none of the control as the arrow to scroll back to a preview line are working. How can I fix this. Thanks eric Following is an example: python Python 2.4.1 (#1, Apr 22 2005, 21:15:26) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on

Re: Getting the sender widget's name in function (Tkinter)

2005-04-27 Thread Eric Brunel
On 26 Apr 2005 13:37:29 -0700, infidel <[EMAIL PROTECTED]> wrote: from Tkinter import Tk, Button def say_hello(event): print 'hello!' print event.widget['text'] root = Tk() button1 = Button(root, text='Button 1') button1.bind('', say_hello) button1.pack() button2 = Button(root, text='Button

Re: tkinter text width

2005-04-27 Thread Eric Brunel
On Tue, 26 Apr 2005 17:01:46 -0700, James Stroud <[EMAIL PROTECTED]> wrote: Hello All, I would like for a tkinter text widget to be aware of how big the frame that contains it is, then I would like for it to reset its width to the appropriate number of characters when this frame changes size. Errr.

Descriptor Transparency

2005-04-27 Thread Eric Huss
27;k', 'foo'], None, None, None) SO, my question is, is it possible to make a simple descriptor in Python that has the same behavior as one implemented in C? Or, at least a way that does not require a very large amount of emulation code. ;) -Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter text width

2005-04-28 Thread Eric Brunel
On Wed, 27 Apr 2005 12:52:21 -0700, James Stroud <[EMAIL PROTECTED]> wrote: [snip] How might I query the size of a fixed-width font in pixles? It appears that the width of the font in points does not correlate with its width in pixels based on some simple expriments I have done. This is the case on

Re: tkinter text width

2005-04-29 Thread Eric Brunel
On Thu, 28 Apr 2005 16:14:02 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: On Thu, 28 Apr 2005 10:36:18 +0200, "Eric Brunel" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: This is the case on all platforms, but far more sensible on Windows: Windows attem

Matplotlib. co-ordinates for scatter plot are off

2013-11-26 Thread eric . garlic
Hi, I have been following a very good online tutorial for matplotlib: http://www.loria.fr/~rougier/teaching/matplotlib/#introduction However, when I try to annotate the point where the cosine/sine graphs cross the scatter graph misses the point where it crosses the axes; green and pink colou

Python3, __slots__ and serialization

2014-02-08 Thread Eric Jacoboni
Hi, Say i want create a class with a __slots__ tuple in order to prevent creation of new attributes from outside the class. Say i want to serialize instances of this class... With pickle, all is ok : i can dump an object to a file, then reload it. With PyYAML, i can dump an object to a file, but

installing python 2.7.11 + win32 on win 10

2016-01-02 Thread eric johansson
the install of the basic 2.7 seems to go ok but when installing the win32 extensions, I get: close failed in file object destructor: sys.excepthook is missing lost sys.stderr I've tried installing as administrator but no joy. what should I try next? -- https://mail.python.org/mailman/listinfo/

Tuples and immutability

2014-02-27 Thread Eric Jacoboni
Hi, I'm using Python 3.3 and i have a problem for which i've still not found any reasonable explanation... >>> a_tuple = ("spam", [10, 30], "eggs") >>> a_tuple[1] += [20] Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment Ok... I

Re: Tuples and immutability

2014-02-27 Thread Eric Jacoboni
Le 27/02/2014 17:13, Zachary Ware a écrit : > > You're not the first person to have this question :) > > http://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works > Oh yes, i was aware of this explanation (thanks to Chris for his answer, too

Re: Tuples and immutability

2014-02-28 Thread Eric Jacoboni
Le 01/03/2014 01:22, Mark H. Harris a écrit : > I'll address the second first by asking a question... should an immutable > type (object) be able to hold (contain) mutable objects ... should tuples be > allowed to hold lists? > > lists within a tuple should be converted to tuples.If you w

Re: Tuples and immutability

2014-03-01 Thread Eric Jacoboni
Le 01/03/2014 22:21, Mark H. Harris a écrit : > The point I'm trying to make with this post is that s[2]+=[46] and > s[2]=s[2]+[46] are handled inconsistently. For my own, the fact that, in Python, a_liste += e_elt gives a different result than a_list = a_list + e_elt is a big source of trou

Re: Tuples and immutability

2014-03-02 Thread Eric Jacoboni
Le 02/03/2014 13:32, Ian Kelly a écrit : > On Sat, Mar 1, 2014 at 7:04 PM, Eric Jacoboni wrote: >> In fact, i think i'm gonna forget += on lists :) > > Well, do what you want, but I think you're taking the wrong lesson > from this. Don't forget about using += o

Re: Tuples and immutability

2014-03-02 Thread Eric Jacoboni
Le 02/03/2014 15:05, Mark Lawrence a écrit : > The behaviour is consistent except when you try to modify a tuple. > Not in my opinion... li = [10, 30] li = li + "spam" --> TypeError: can only concatenate list (not "str") li += "spam" --> Ok So, not, that's not what i call consistent.

Re: running python 2 vs 3

2014-03-20 Thread Eric Jacoboni
Le 20/03/2014 16:21, Marko Rauhamaa a écrit : > All tutorials will tell you to start it with > >#!/usr/bin/env python > > which will start python2 on all (?) existing linux distros, but is > expected to start python3 within the next decade. With Arch-Linux, python is python3... -- https:

Re: embedding interactive python interpreter

2013-09-11 Thread Eric Frederich
he boolean. The client, which happens to be Java/Eclipse based, then has something that resembles a Python console in the GUI and uses that single service to interact with the remote Python console. Lots of stuff going on but it works very well. On Wed, Sep 11, 2013 at 1:42 PM, Scott wrote: > Eri

Passing C pionters to Python for use with cffi

2013-10-10 Thread Eric Frederich
uot;(k)", &some_structure); PyObject_CallObject(pFunc, pArgs) ... and from the Python side... def my_function(struct_ptr): struct = ffi.cast("mystruct_t *", struct_ptr) Like I said, this works fine. I am able to manipulate the structure from within Python. I just want to know the corr

Re: Passing C pionters to Python for use with cffi

2013-10-18 Thread Eric Frederich
r to Python so that cffi can cast and use it. On Fri, Oct 11, 2013 at 2:09 AM, dieter wrote: > Eric Frederich writes: > > > I'm extending an application that supports customization using the C > > language. > > I am able to write standalone python applications that

Reference Counting Irregularity

2015-06-25 Thread Eric Edmond
ence count increases by 2. This could very well be by design of the DataFrame object doing some internal caching of the string, but does not appear in the documentation, so I thought I would bring up the issue. Thanks, Eric Edmond University of Michigan | Class of 2016 -- https://mail.python.o

problem with selecting remote procedure calls

2015-07-22 Thread eric johansson
it needs to be relatively light because execution time does have an influence on recognition accuracy and speed. thanks in advance --- eric -- https://mail.python.org/mailman/listinfo/python-list

Re: problem with selecting remote procedure calls

2015-07-24 Thread eric johansson
- Original Message - From: "Irmen de Jong" Eric, if you're concerned about performance, Pyro4 (the source distribution) comes with several examples that do simple performance related tests. You could run these and see what figures you get on your setup to see i

Re: DRY and class variables

2011-09-08 Thread Eric Snow
1. in Python 3, use the metaclass __prepare__() (see http://code.activestate.com/recipes/577813/); 2. in Python 2 or 3, use a descriptor to defer creating your Metadata objects until after the class object is available (see http://code.activestate.com/re

Re: How do I automate the removal of all non-ascii characters from my code?

2011-09-12 Thread Eric Snow
king on), but I'm sure you'll get the same result if you write up a > document in LibreOffice Writer and add some End Notes. > > How do I automate the removal of all non-ascii characters from my code? Perhaps try "The Unicode Hammer". http://code.activestate.com/re

Re: About MAKE_FUNCTION opcode in Python 3

2011-09-20 Thread Eric Snow
word only arguments is argc >> 8 > > Can anyone confirm this?  I can then open a ticket on bugs.python.org You're mostly right. http://hg.python.org/cpython/file/default/Python/ceval.c#l2684 2684 int posdefaults = oparg & 0xff; 2685 in

static statements and thread safety

2011-09-22 Thread Eric Snow
there be a problem with that end-of-call update? -eric p.s. It probably shows that I haven't done a lot of thread-related programming, so perhaps this is not a hard question. -- http://mail.python.org/mailman/listinfo/python-list

Re: static statements and thread safety

2011-09-22 Thread Eric Snow
On Thu, Sep 22, 2011 at 2:06 AM, Chris Angelico wrote: > On Thu, Sep 22, 2011 at 5:45 PM, Eric Snow > wrote: >> I would expect that static variables would work pretty much the same >> way as default arguments > > Could you just abuse default arguments to accomplish th

Re: syntactic sugar for def?

2011-09-28 Thread Eric Snow
gh there hasn't been a big clamor for it. :) Nick Coghlan proposed an interesting idea for this in March[6], with some later follow-up[7]. Nothing much came of it though. Definitely an interesting topic, which has led me to learn a lot about Python and CPython. -eric [1] http://www.pyt

Re: Unittest testing assert*() calls rather than methods?

2011-09-28 Thread Eric Snow
On Wed, Sep 28, 2011 at 6:50 PM, Devin Jeanpierre wrote: >> I used to ask the same question, but then I decided that if I wanted each >> data point to get its own tick, I should bite the bullet and write an >> individual test for each. > > Nearly the entire re module test suite is a list of tuples

lower-case names for builtin types

2011-10-01 Thread Eric Snow
ny merit to having lower-cased class names? -eric -- http://mail.python.org/mailman/listinfo/python-list

Re: lower-case names for builtin types

2011-10-01 Thread Eric Snow
Thanks, Steven. On Sat, Oct 1, 2011 at 10:11 PM, Steven D'Aprano wrote: > Eric Snow wrote: > >> Anyone know the story behind the lower-case names for the >> non-exception built-in types (like list and type)?  I am guessing that >> they were originally factory

"IX" as shorthand for "Interface"

2011-10-08 Thread Eric Snow
I'm writing a bunch of classes that have "Interface" in the name and find that the length of the subsequent names is starting to get in the way of readability (I don't really care about saving keystrokes). Is "IX" conventional enough to use in place of "Interfac

Re: "IX" as shorthand for "Interface"

2011-10-08 Thread Eric Snow
On Sat, Oct 8, 2011 at 10:31 PM, Chris Rebert wrote: > On Sat, Oct 8, 2011 at 9:21 PM, Eric Snow wrote: >> I'm writing a bunch of classes that have "Interface" in the name and >> find that the length of the subsequent names is starting to get in the >> way

Re: Python advanced course (preferably in NA)

2011-11-03 Thread Eric Snow
courses. Only David is listed on that page to which I linked, though I know Raymond does courses at least from time to time. I've also heard a talk from Wesley Chun and found him to be fantastic. -eric > > BTW, I'm not a computer engineer and have mechanical background. >

Re: resolving module name conflicts.

2011-11-11 Thread Eric Snow
eans that you don't have to hard-code the name of the packages in your imports, which helps with brevity and portability. The problem is that the empty string is still added to the from of sys.path. I'm going to have to find out more about that one. Hope that helps. -eric

Re: resolving module name conflicts.

2011-11-11 Thread Eric Snow
On Fri, Nov 11, 2011 at 2:34 PM, Eric Snow wrote: > The problem is that the empty string is still added to the from of > sys.path.  I'm going to have to find out more about that one. Okay, don't know how I missed it but the docs for sys.path[1] spell it out: "As ini

Re: AttributeError in "with" statement (3.2.2)

2011-12-13 Thread Eric Snow
ecial methods (start and end with __) in Python, the underlying mechanism in the interpreter is directly pulling the function from the class object. It does not look to the instance object for the function at any time. See http://docs.python.org/reference/datamodel.html#special-method-lookup-for-new-style-classes. -eric -- http://mail.python.org/mailman/listinfo/python-list

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Eric Snow
On Tue, Dec 13, 2011 at 11:05 PM, Eric Snow wrote: > On Tue, Dec 13, 2011 at 10:42 PM, Steve Howell wrote: >> I'm using Python 3.2.2, and the following program gives me an error >> that I don't understand: >> >> class Foo: >>  pass >&g

Re: AttributeError in "with" statement (3.2.2)

2011-12-14 Thread Eric Snow
On Wed, Dec 14, 2011 at 12:14 PM, Lie Ryan wrote: > On 12/15/2011 03:56 AM, Eric Snow wrote: >> >> On Tue, Dec 13, 2011 at 11:05 PM, Eric Snow >>  wrote: >> >> If you want to be more dynamic about it you can do it, but it involves >> black magic.  Chan

Re: Set initial size in TKinter

2011-12-20 Thread Eric Brunel
his is always written self.QUIT.pack(side="left"). And you should avoid creating only an instance of Frame. This actually creates a window, but it's a side-effect. Windows are created by instantiating Tk for the main one, and Toplevel for all others. Having only a Frame will cause problems later, for example if you want to add a menu to the window: You can do so on instances of Tk or Toplevel, but not on framesŠ HTH - Eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: Python powering giant screen in Times Square

2011-12-31 Thread Eric Snow
by > Python! Wow! That's awesome. Thanks for sharing this! -eric > > - Jason (founder of FeedMagnet) > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting involved

2012-01-07 Thread Eric Snow
On Sat, Jan 7, 2012 at 1:39 PM, Antoine Pitrou wrote: > > Hello, > > Sophie Sperner gmail.com> writes: >> >> Let me ask here please. I'm a first-year PhD student in Ireland. My >> background is in mathematics, though I'm going to stream my career >> into programming with Python, Java and C++ lang

simple GUI environment

2013-03-05 Thread Eric Johansson
I need a simple GUI toolkits like easygui pythoncard. The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Has there been some toolkit to replace them? And no, the existing wxpython/gtk/qt/... toolkits really aren't accept

Re: simple GUI environment

2013-03-05 Thread Eric Johansson
On 3/5/2013 10:06 AM, Tim Golden wrote: On 05/03/2013 14:55, Kevin Walzer wrote: On 3/5/13 9:20 AM, Eric Johansson wrote: The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Why not give EasyGUI a try? or PyGUI

collaborative editing environments

2013-03-05 Thread Eric Johansson
I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition (yet). The best technique with come up with so far is to use putty sessions with the same lay

Re: collaborative editing environments

2013-03-05 Thread Eric Johansson
On 3/5/2013 1:38 PM, Dave Angel wrote: On 03/05/2013 12:56 PM, Eric Johansson wrote: I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition

Re: simple GUI environment

2013-03-05 Thread Eric Johansson
On 3/5/2013 6:18 PM, Gregory Ewing wrote: Eric Johansson wrote: the only thing that would make it better is if either of these kits used standard Rich text edit controls under Windows so I can speech enable these applications. PyGUI's TextEditor is based on the rich edit control in Wi

Sudoku

2013-03-26 Thread Eric Parry
at random. Can anyone explain how it works in simple terms? Eric. def same_row(i,j): return (i/9 == j/9) def same_col(i,j): return (i-j) % 9 == 0 def same_block(i,j): return (i/27 == j/27 and i%9/3 == j%9/3) def r(a): i = a.find('0') if i == -1: print a exit(a) exclud

Re: Sudoku

2013-03-27 Thread Eric Parry
Thank you all for your help and suggestions. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Sudoku

2013-03-27 Thread Eric Parry
On Wednesday, March 27, 2013 6:28:01 PM UTC+10:30, Ulrich Eckhardt wrote: > Am 27.03.2013 06:44, schrieb Eric Parry: > > > I downloaded the following program from somewhere using a link from > > > Wikipedia and inserted the “most difficult Sudoku puzzle ever” string > &g

Re: Sudoku

2013-03-28 Thread Eric Parry
On Thursday, March 28, 2013 3:06:02 PM UTC+10:30, Dave Angel wrote: > On 03/27/2013 11:00 PM, Eric Parry wrote: > > > On Wednesday, March 27, 2013 6:28:01 PM UTC+10:30, Ulrich Eckhardt wrote: > > >> > > > http://wiki.python.org/moin/GoogleGroupsPython &

Re: Sudoku

2013-03-28 Thread Eric Parry
On Friday, March 29, 2013 9:58:27 AM UTC+10:30, Dave Angel wrote: > On 03/28/2013 06:11 PM, Eric Parry wrote: > > > On Thursday, March 28, 2013 3:06:02 PM UTC+10:30, Dave Angel wrote: > > > > > > > > >> > > >> > > >

Re: Sudoku

2013-03-29 Thread Eric Parry
On Friday, March 29, 2013 9:15:36 AM UTC+10:30, Chris Angelico wrote: > On Fri, Mar 29, 2013 at 9:11 AM, Eric Parry wrote: > > > Thank you for that explanation. > > > No, I do not understand recursion. It is missing from my Python manual. I > > would be pleased to

Re: Sudoku

2013-03-30 Thread Eric Parry
On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote: > On 03/29/2013 05:47 PM, Eric Parry wrote: > > > > > >> > > >> > > > That explains why the program keeps running after a solution is found. > > > > A recursive

Re: Sudoku

2013-03-31 Thread Eric Parry
On Sunday, March 31, 2013 9:45:36 AM UTC+10:30, Dave Angel wrote: > On 03/30/2013 06:06 PM, Eric Parry wrote: > > > On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote: > > >> On 03/29/2013 05:47 PM, Eric Parry wrote: > > >> > > >&

Re: Sudoku

2013-03-31 Thread Eric Parry
On Monday, April 1, 2013 8:33:47 AM UTC+10:30, Eric Parry wrote: > On Sunday, March 31, 2013 9:45:36 AM UTC+10:30, Dave Angel wrote: > > > On 03/30/2013 06:06 PM, Eric Parry wrote: > > > > > > > On Saturday, March 30, 2013 8:41:08 AM UTC+10:30, Dave Angel wrote

Re: Sudoku

2013-03-31 Thread Eric Parry
Sorry. Won't happen again. signing off this topic. Eric. -- http://mail.python.org/mailman/listinfo/python-list

Python platform/framework for new RESTful web app

2013-04-25 Thread Eric Frederich
there is a Django REST framework. Is this a good framework? Are there good Google and Facebook authentication extensions? Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] learning python

2013-05-05 Thread Eric Brunson
On 05/05/2013 10:08 AM, leonardo selmi wrote: hi guys i need to find a good book to learn python with exercises and solutions, any suggestions? thanks! Leonardo, There are several good online tutorials available, many listed here: http://wiki.python.org/moin/BeginnersGuide There is al

expect-like package

2005-12-20 Thread Eric McCoy
I'm looking for a way to create simple scripts which should be accessible to a technical, though non-programmer, person. These scripts are basically network service checks so I don't need much power: "send this line," "if this line matches, keep going," and "if this line matches, quit immediately.

Re: type error on porting outfile.write

2005-12-20 Thread Eric McCoy
[EMAIL PROTECTED] wrote: > I ported my code from the development to > application platform, I found a "type error" > on a fileout statement: > outfile.write(object.id +",") What is the type of object.id? I'm guessing an integer. The exception should tell you, e.g.: TypeError: unsupported ope

Re: type error on porting outfile.write

2005-12-21 Thread Eric McCoy
Dave Hansen wrote: > or even (closer to the original code) > >outfile.write(str(object.id)+", ") That was going to be my suggestion too, but that can mask the underlying bug since a lot of types have __str__ methods. Not only could those types theoretically return a valid stringified integer

Re: Python function with **kwargs Question

2006-01-06 Thread Eric McGraw
You could call it like this: >>> foo(**{"a-special-keyword":5}) but that might defeat the purpose of keyword arguments. -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing fill in tkinter

2006-01-13 Thread Eric Brunel
On 13 Jan 2006 01:43:42 -0800, venk <[EMAIL PROTECTED]> wrote: > Hi, > I would like to know how to change the fill of things we put in a > tkinter's canvas. for example, if i create a rectangle and i would want > to change the fill of the rectangle once it is clicked... can we do > that? Not

Prevent Tkinter Canvas from resizing

2006-01-19 Thread Eric Wong
Using Tkinter, I have a Canvas with vertical Scrollbar attached. At runtime, I dynamically create Checkboxes on the Canvas, each one on a different row. When I add a lot of Checkboxes, instead of the scrollbar kicking in, the Canvas resizes and subsequently, my Application window resizes such tha

Using MapPoint with Python

2006-07-15 Thread Eric Frost
--python.winwaed.automation.mappoint.html Eric Frost http://www.mp2kmag.com - The Magazine for MapPoint -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with Tkinter and threads

2006-07-17 Thread Eric Brunel
On Mon, 17 Jul 2006 12:58:08 +0200, Claus Tondering <[EMAIL PROTECTED]> wrote: > My Tkinter application has to receive events from a TCP connection. I > have chosen to do this in the following manner: > > The TCP communication takes place in a separate thread. When I receive > data, I generate a

Re: Problems with Tkinter and threads

2006-07-17 Thread Eric Brunel
On Mon, 17 Jul 2006 15:20:46 +0200, Claus Tondering <[EMAIL PROTECTED]> wrote: > Eric Brunel wrote: >> This is where the problem is: if you do just a event_generate without >> specifying the 'when' option, the binding is fired immediately in the >> curren

Re: tkinter wm_delete_window

2006-07-18 Thread Eric Brunel
On Tue, 18 Jul 2006 11:16:04 +0200, yvesd <[EMAIL PROTECTED]> wrote: > hello i want to intercept tkinter python system events like > wm_delete_window > and if possible for any window, but the newest code I've produced give > me > an error : > Traceback (most recent call last): > File "C:\Document

print function question

2006-07-24 Thread Eric Bishop
ral. Is the comma some sort of concatenation operator or is the comma necessary in some form of a requirement in the print function, i.e is the variable a an argument to print as well as 'is th number' another argument to print? -- Thanks,Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter pack Problem

2006-07-26 Thread Eric Brunel
On Wed, 26 Jul 2006 12:46:39 +0200, H J van Rooyen <[EMAIL PROTECTED]> wrote: > Hi, > > I am struggling to get the pack method to do what I intend. > I am trying to display user input in a seperate window, along with > a little description of the field, something like this: > > Curr

Re: Strange Tkinter Grid behaviour Problem

2006-08-01 Thread Eric Brunel
On Tue, 01 Aug 2006 14:14:51 +0200, H J van Rooyen <[EMAIL PROTECTED]> wrote: > Hi, > > Still struggling with my GUI exercise - > > I have the following lines of code in a routine that is bound at > to > an instance of Entry : > > self.disp.Amount_des = Label(self.disp, text = self.di

Re: why the method get() of python Queue is hang on there?

2006-08-14 Thread Eric Brunel
On Mon, 14 Aug 2006 17:10:13 +0200, zxo102 <[EMAIL PROTECTED]> wrote: > Hi, >I am using Queue from python2.4. Here is what happen to me: > > import Queue > b = Queue.Queue(0) > b.put() > b.get() # this is ok, it pops out > b.get() # this one does not return anything and is hang on

Re: tkinter prob

2006-08-21 Thread Eric Brunel
On Mon, 21 Aug 2006 08:50:29 +0200, JyotiC <[EMAIL PROTECTED]> wrote: > i have tried it out but it's not working. > this is the code > > from Tkinter import * > > class abc: > def __init__(self,parent): > #make container myparent > self.myparent=parent > self.myparent.g

Re: Python/Tkinter crash.

2006-10-04 Thread Eric Brunel
On Wed, 04 Oct 2006 10:33:55 +0200, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > Hi, > > I get the following: > > [EMAIL PROTECTED]:~/Controller/lib> python display.py > UpdateStringProc should not be invoked for type font > Aborted > > and I am back at the bash prompt - this is most frustrat

Re: Python/Tkinter crash.

2006-10-05 Thread Eric Brunel
On Wed, 04 Oct 2006 20:02:56 +0200, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > "Eric Brunel" <[EMAIL PROTECTED]> wrote: >> I know the problem happens sometimes on one of my Tkinter applications, >> but I never succeeded in reproducing it systematical

<    1   2   3   4   5   6   7   8   9   10   >