Re: Tkinter deadlock on graceful exit

2012-06-03 Thread Matteo Landi
On Jun/02, Dennis Lee Bieber wrote: On Sat, 2 Jun 2012 14:57:17 +0200, Matteo Landi mat...@matteolandi.net declaimed the following in gmane.comp.python.general: Lesson learned: never invoke Tkinter functions / methods outside the mainloop thread.. NEVER! Typically

Re: Tkinter deadlock on graceful exit

2012-06-02 Thread Matteo Landi
On Jun/01, Matteo Landi wrote: On Thu, May 31, 2012 at 3:02 PM, Matteo Landi mat...@matteolandi.net wrote: On Thu, May 31, 2012 at 3:42 AM, Terry Reedy tjre...@udel.edu wrote: On 5/30/2012 6:19 PM, Matteo Landi wrote: On May/28, Matteo Landi wrote: Hi list, recently I started

Re: Tkinter deadlock on graceful exit

2012-06-01 Thread Matteo Landi
On Thu, May 31, 2012 at 3:02 PM, Matteo Landi mat...@matteolandi.net wrote: On Thu, May 31, 2012 at 3:42 AM, Terry Reedy tjre...@udel.edu wrote: On 5/30/2012 6:19 PM, Matteo Landi wrote: On May/28, Matteo Landi wrote: Hi list, recently I started to work on an application [1] which makes use

Re: Tkinter deadlock on graceful exit

2012-05-31 Thread Matteo Landi
On Thu, May 31, 2012 at 3:42 AM, Terry Reedy tjre...@udel.edu wrote: On 5/30/2012 6:19 PM, Matteo Landi wrote: On May/28, Matteo Landi wrote: Hi list, recently I started to work on an application [1] which makes use of the Tkinter module to handle interaction with the user.  Simply put

Re: Tkinter deadlock on graceful exit

2012-05-30 Thread Matteo Landi
On May/28, Matteo Landi wrote: Hi list, recently I started to work on an application [1] which makes use of the Tkinter module to handle interaction with the user. Simply put, the app is a text widget displaying a file filtered by given criteria, with a handy feature that the window

Tkinter deadlock on graceful exit

2012-05-27 Thread Matteo Landi
Hi list, recently I started to work on an application [1] which makes use of the Tkinter module to handle interaction with the user. Simply put, the app is a text widget displaying a file filtered by given criteria, with a handy feature that the window is raised each time a new line is added to

Re: while True or while 1

2012-01-21 Thread Matteo Landi
Probably because of the fact it is possible to set True equal to False and consequently then invalidate loop logic as presented below: True = False while True: ... On the other hand `1' will always be evaluated as a constant. Don't know, just guessing. Matteo On Jan/21,

osaic - create photo mosaics w/ Python

2011-06-20 Thread Matteo Landi
Hi list, yesterday I released a new version of osaic, a Python library which enables users to create photo mosaics in a very simple way. Once installed, a bare ``python -mosaic IMG1 IMG2 IMG3 ..`` is enough to create and show on screen a mosaic where IMG2, IMG3 and others are combined

Re: Playing WAV file with Python

2011-03-03 Thread Matteo Landi
I imagine he is looking for a cross-platform solution: n this case, I guess the most suitable solution is pygame. Regards, Matteo -- http://mail.python.org/mailman/listinfo/python-list

Re: An easier way to do this? (spoiler if you're using pyschools for fun)

2010-11-10 Thread Matteo Landi
, 456]) ) # 9 9 10 -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary of lists strange behaviour

2010-11-09 Thread Matteo Landi
I meant was appending 'x' to the list pointed by the key 'a' in the dictionary 'rg'. Why rg['b'] is written too? Thanks. -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: pylint -- should I just ignore it sometimes?

2010-10-20 Thread Matteo Landi
/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to implement retrying a lock tidily in Python?

2010-10-17 Thread Matteo Landi
-- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Does everyone keep getting recruiting emails from google?

2010-10-14 Thread Matteo Landi
              grant.b.edwards        Yow! Oh my GOD -- the                                  at               SUN just fell into YANKEE                              gmail.com            STADIUM!! -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net

Re: Control webbrowser from Python script

2010-10-09 Thread Matteo Landi
: Is it possible to control any webbrowser from Python ? For example to issue http POST and GET  command Thanks Johny -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to convert a string into a list

2010-10-05 Thread Matteo Landi
/python-list -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: That interesting notation used to describe how long a loop will take.

2010-10-04 Thread Matteo Landi
that it has a concise name. Thanks, Tobiah -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: palindrome iteration

2010-08-29 Thread Matteo Landi
is_palindrome_reversed 5.99355296513 The slice method is uglier, I have to admit, but it's the fastest of these four on my machine. Josh -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python

Re: palindrome iteration

2010-08-29 Thread Matteo Landi
: while True: if str[i] != str[j]: return False i, j = i + 1, j - 1 return True except IndexError: return True On Sun, Aug 29, 2010 at 12:36 PM, Arnaud Delobelle arno...@googlemail.com wrote: Matteo Landi landima

Re: Fibonacci: How to think recursively

2010-08-28 Thread Matteo Landi
. --  \         “Science is a way of trying not to fool yourself. The first |  `\     principle is that you must not fool yourself, and you are the | _o__)               easiest person to fool.” —Richard P. Feynman, 1964 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi

Re: palindrome iteration

2010-08-27 Thread Matteo Landi
to be a little bit more verbose there. Richard -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-18 Thread Matteo Landi
immediately with a resume! Send resumes to: Rich Moss r...@mossltd.com -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: pylint scores

2010-08-06 Thread Matteo Landi
On Sun, Aug 1, 2010 at 12:27 PM, News123 news1...@free.fr wrote: Hi, On 07/31/2010 11:04 AM, Matteo Landi wrote: What are the messages one should really care about while evaluating its code using pylint? It's easy to get 5 scored with a lot of public methods or bad named variables

Re: Global variables problem

2010-08-04 Thread Matteo Landi
) -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Script Cannot Write to Directory

2010-08-04 Thread Matteo Landi
aren't callable. Typo? I suppose he/she would have written: shutil.copyfile(YOUR_SOURCE_FILE_NAME,DESTINATION_DIRECTORY/DSTNTN_FILE_NAME) Cheers. Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http

Re: PIL

2010-08-03 Thread Matteo Landi
://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Get name of file from directory into variable

2010-08-03 Thread Matteo Landi
/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Get name of file from directory into variable

2010-08-03 Thread Matteo Landi
://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Normalizing A Vector

2010-08-01 Thread Matteo Landi
for x in seq)) -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: pylint scores

2010-07-31 Thread Matteo Landi
a little sad that pylint doesn't seem to be moving to python 3 in any big hurry. -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: measuring a function time

2010-07-29 Thread Matteo Landi
= get_current_time; print (end_time - start_time) the output should be 7600 (s) for example. What is the best and easiest way to do that? Thanks, // Naderan *Mahmood; -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman

Re: how to delete \n

2010-07-12 Thread Matteo Landi
-- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: List of lists surprising behaviour

2010-06-17 Thread Matteo Landi
for _ in range(2)] for _ in range(3)] It seems there is no more trouble now : t [[0, 0], [0, 0], [0, 0]] t[0][0]=1 t [[1, 0], [0, 0], [0, 0]] Correct ? -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman

Serializing functions

2010-06-17 Thread Matteo Landi
this? Thanks in advance. [1] http://www.picloud.com/ -- Matteo Landi http://www.matteolandi.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Serializing functions

2010-06-17 Thread Matteo Landi
On Thu, 2010-06-17 at 07:37 -0700, Paul Rubin wrote: Matteo Landi landima...@gmail.com writes: If you try and pickle a function, it is not pickled as a whole, indeed, once you unpickle it, it will raise an exception telling you that the target function was not found in the current module

Re: Serializing functions

2010-06-17 Thread Matteo Landi
On Thu, 2010-06-17 at 07:37 -0700, Paul Rubin wrote: Matteo Landi landima...@gmail.com writes: If you try and pickle a function, it is not pickled as a whole, indeed, once you unpickle it, it will raise an exception telling you that the target function was not found in the current module

Re: Serializing functions

2010-06-17 Thread Matteo Landi
On Thu, 2010-06-17 at 08:31 -0700, Stephen Hansen wrote: On 6/17/10 6:23 AM, Matteo Landi wrote: itself. If you try and pickle a function, it is not pickled as a whole, indeed, once you unpickle it, it will raise an exception telling you that the target function was not found in the current

Re: super() woes (n00b)

2010-06-17 Thread Matteo Landi
- as if the savages weren't dangerous enough already. -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax question

2010-06-02 Thread Matteo Landi
/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax question

2010-06-02 Thread Matteo Landi
-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: function that counts...

2010-05-24 Thread Matteo Landi
)) Raymond -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQL, Python, NumPy and formatted read

2010-05-23 Thread Matteo Landi
numerical processing. Any advice/help? -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: stopping execution window on error - newbie

2010-05-13 Thread Matteo Landi
results to a window. when the code finishes, the window closes, i do a time.sleep(10) to see what has happened. unfortunately when there is an error it just closes the window. anyway of seeing the error messages? thanks a -- http://mail.python.org/mailman/listinfo/python-list -- Matteo

Re: plot debugging problem

2010-05-12 Thread Matteo Landi
://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ Hotmail: Powerful Free email with security by Microsoft. Get it now. -- Matteo Landi http://www.matteolandi.net/ From: landima...@gmail.com Date: Tue, 11

Re: plot debugging problem

2010-05-11 Thread Matteo Landi
graphs interactively. Best Regards Sandy Hotmail: Free, trusted and rich email service. Get it now. -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: plot debugging problem

2010-05-11 Thread Matteo Landi
. Best Regards Sandy Hotmail: Free, trusted and rich email service. Get it now. -- http://mail.python.org/mailman/listinfo/python-list -- Matteo Landi http://www.matteolandi.net/ Hotmail: Powerful Free email