Re: [newbie] struggling wth tkinter

2013-12-08 Thread Jean Dubois
Op zondag 8 december 2013 09:10:28 UTC+1 schreef Christian Gollwitzer: > Am 07.12.13 17:52, schrieb Jean Dubois: > > > I'm trying to go through a tutorial on tkinter which has the code below as > > an example. The only thing I see when running it is a little popup with &

Re: [newbie] struggling wth tkinter

2013-12-08 Thread Jean Dubois
Op zondag 8 december 2013 08:49:22 UTC+1 schreef Chris Angelico: > On Sun, Dec 8, 2013 at 6:40 PM, Jean Dubois wrote: > > > coolens@antec2:~$ python3 feet2meters.py > > > ImportError: No module named Tkinter > > > > In Python 3, the module's named

Re: [newbie] struggling wth tkinter

2013-12-08 Thread Jean Dubois
Op zondag 8 december 2013 15:16:25 UTC+1 schreef Dave Angel: > On Sat, 7 Dec 2013 23:45:06 -0800 (PST), Jean Dubois > > wrote: > > > This is what I get: > > > Traceback (most recent call last): > > > File "./feet2meters.py", line 2, in > &

[newbie] trying socket as a replacement for nc

2013-12-11 Thread Jean Dubois
ocket.AF_INET, socket.SOCK_STREAM) s.connect((host,port)) s.send('*IDN?') data = s.recv(size) s.close() print 'Received:', data Can anyone here tell me how to do it properly? thanks in advance jean -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Jean Dubois
On Thursday, December 12, 2013 12:38:12 AM UTC+1, Conor Hughes wrote: > Jean Dubois writes: > > > > > I have an ethernet-rs232 adapter which allows me to connect to a > > > measurement instrument by means of netcat on a linux system. > > > e.g. entering n

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Jean Dubois
On Thursday, December 12, 2013 12:20:36 AM UTC+1, Dan Stromberg wrote: > On Wed, Dec 11, 2013 at 3:08 PM, Jean Dubois wrote: > > I have an ethernet-rs232 adapter which allows me to connect to a measurement > instrument by means of netcat on a linux system. > > > e.g. ent

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Jean Dubois
On Thursday, December 12, 2013 9:21:32 AM UTC+1, Chris Angelico wrote: > On Thu, Dec 12, 2013 at 7:08 PM, Jean Dubois wrote: > > > Thanks for the reply, I changed the line you mentioned to > > > s.send('*IDN?\n') > > > > See if there&#

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Jean Dubois
Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg: > On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois wrote: > > > On Thursday, December 12, 2013 12:20:36 AM UTC+1, Dan Stromberg wrote: > > >> On Wed, Dec 11, 2013 at 3:08 PM, Jean Dubois wrote: > >

Re: [newbie] trying socket as a replacement for nc

2013-12-13 Thread Jean Dubois
Op vrijdag 13 december 2013 04:32:30 UTC+1 schreef Dan Stromberg: > On Thu, Dec 12, 2013 at 7:23 PM, Jean Dubois wrote: > > > Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg: > > >> On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois > >> wro

Re: [newbie] trying socket as a replacement for nc

2013-12-13 Thread Jean Dubois
Op vrijdag 13 december 2013 04:32:30 UTC+1 schreef Dan Stromberg: > On Thu, Dec 12, 2013 at 7:23 PM, Jean Dubois wrote: > > > Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg: > > >> On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois > >> wro

Re: [newbie] trying socket as a replacement for nc

2013-12-13 Thread Jean Dubois
ewbie: it would perhaps be possible to make the script check itself whether pyhon2 or python3 should be used? thanks for having patience with me kind regards, jean -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] trying socket as a replacement for nc

2013-12-14 Thread Jean Dubois
Op vrijdag 13 december 2013 18:09:50 UTC+1 schreef rusi: > On Friday, December 13, 2013 5:50:03 PM UTC+5:30, Jean Dubois wrote: > > to make the script check itself whether pyhon2 or python3 should be used? > As far as I know both (2 and 3) worked > Do you have some reason to suspec

Re: [newbie] trying socket as a replacement for nc

2013-12-14 Thread Jean Dubois
Op vrijdag 13 december 2013 09:35:18 UTC+1 schreef Mark Lawrence: > On 13/12/2013 03:23, Jean Dubois wrote: > > > > kind regards, > > jean > > p.s. I'm using Linux/Kubuntu 11.04 > > > Would you please read and action this > https://wiki.python.org/moin

Re: [newbie] trying socket as a replacement for nc

2013-12-14 Thread Jean Dubois
Op vrijdag 13 december 2013 16:35:31 UTC+1 schreef Jean-Michel Pichavant: > - Original Message - > > I have an ethernet-rs232 adapter which allows me to connect to a > > measurement instrument by means of netcat on a linux system. > > e.g. entering nc 10.128.59.63

Re: [newbie] trying socket as a replacement for nc

2013-12-15 Thread Jean Dubois
Op zondag 15 december 2013 02:03:14 UTC+1 schreef Dan Stromberg: > On Sat, Dec 14, 2013 at 5:33 AM, Jean Dubois wrote: > > Op vrijdag 13 december 2013 16:35:31 UTC+1 schreef Jean-Michel Pichavant: > >> - Original Message - > >> > I have an ethernet-rs232 adap

Re: [newbie] trying socket as a replacement for nc

2013-12-16 Thread Jean Dubois
Op donderdag 12 december 2013 22:23:22 UTC+1 schreef Dan Stromberg: > On Thu, Dec 12, 2013 at 12:28 AM, Jean Dubois wrote: > > On Thursday, December 12, 2013 12:20:36 AM UTC+1, Dan Stromberg wrote: > >> On Wed, Dec 11, 2013 at 3:08 PM, Jean Dubois wrote: > >> &g

Re: [newbie] trying socket as a replacement for nc

2013-12-16 Thread Jean Dubois
Op maandag 16 december 2013 11:29:12 UTC+1 schreef Jean-Michel Pichavant: > > > Such equipment often implements a telnet protocol. Have use try > > > using the telnetlib module ? > > > http://docs.python.org/2/library/telnetlib.html > > > > > &g

Re: [newbie] trying socket as a replacement for nc

2013-12-16 Thread Jean Dubois
Op maandag 16 december 2013 13:05:41 UTC+1 schreef Jean-Michel Pichavant: > > Here is the code: > > #!/usr/bin/env python > > import telnetlib > > host = '10.128.59.63' > > port = 7000 > > t = Telnet(host, port) > > t.write('*IDN?\n

Re: [newbie] trying socket as a replacement for nc

2013-12-16 Thread Jean Dubois
Op maandag 16 december 2013 15:16:17 UTC+1 schreef Jean-Michel Pichavant: > - Original Message - > > Op maandag 16 december 2013 13:05:41 UTC+1 schreef Jean-Michel > > Pichavant: > > > > Here is the code: > > > > #!/usr/bin/env python > > >

Re: [newbie] trying socket as a replacement for nc

2013-12-16 Thread Jean Dubois
Op maandag 16 december 2013 17:44:31 UTC+1 schreef Jean-Michel Pichavant: > > This is what I got using telnet: > > [jean:~] $ telnet 10.128.59.63 7000 > > Trying 10.128.59.63... > > Connected to 10.128.59.63. > > Escape character is '^]'. > > *IDN? &g

Re: [newbie] trying socket as a replacement for nc

2013-12-16 Thread Jean Dubois
Op maandag 16 december 2013 20:21:15 UTC+1 schreef Jean-Michel Pichavant: > - Original Message - > > On Tue, Dec 17, 2013 at 5:26 AM, Jean Dubois > > wrote: > > >> Try something simple first: > > >> import telnetlib > > >> host = '

Re: [newbie] trying socket as a replacement for nc

2013-12-18 Thread Jean Dubois
Op dinsdag 17 december 2013 10:37:37 UTC+1 schreef Jean-Michel Pichavant: > > I'm a newbie in Python programming that is very much true, and > > contrary to what you seem to suggest I did my homework > At no point that was my intention, my apologies. OK, no problem > If you

Re: [newbie] trying socket as a replacement for nc

2013-12-18 Thread Jean Dubois
Op woensdag 18 december 2013 14:04:08 UTC+1 schreef Jean Dubois: > Op dinsdag 17 december 2013 10:37:37 UTC+1 schreef Jean-Michel Pichavant: > > > I'm a newbie in Python programming that is very much true, and > > > contrary to what you seem to suggest I did my homework &

how to develop code using a mix of an existing python-program and console-commands

2013-12-18 Thread Jean Dubois
and then manually copy-paste line per line from the program in the console, then try out possible continuation commands, if however something goes wrong I have to redo the whole process. any suggestions? thanks in advance jean -- https://mail.python.org/mailman/listinfo/python-list

Re: how to develop code using a mix of an existing python-program and console-commands

2013-12-18 Thread Jean Dubois
Op woensdag 18 december 2013 21:28:05 UTC+1 schreef Jerry Hill: > On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois wrote: > > I have a python-program which I want to perform its task first, then > > switch to > > the python console to experiment with further commands, using

Re: [newbie] trying socket as a replacement for nc

2013-12-18 Thread Jean Dubois
Op woensdag 18 december 2013 15:48:43 UTC+1 schreef Jean Dubois: > Op woensdag 18 december 2013 14:04:08 UTC+1 schreef Jean Dubois: > > Op dinsdag 17 december 2013 10:37:37 UTC+1 schreef Jean-Michel Pichavant: > > > > I'm a newbie in Python programming that is very much

vnc-problem with idle running as sudo on raspberry pi

2013-12-22 Thread Jean Dubois
ot;) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display ":1.0" Does someone here have a solution for this problem? thanks in advance jean -- https://mail.python.org/mailman/listinfo/python-list

Re: vnc-problem with idle running as sudo on raspberry pi

2013-12-22 Thread Jean Dubois
Op zondag 22 december 2013 14:02:47 UTC+1 schreef Jean Dubois: > I found the following solution to use idle on the raspberry pi > as sudoer (which is necessary or at least comfortable when programming the > GPIO) > 1. Open a terminal > 2. type cd ~/Desktop > 3. type touch idle

Re: [OT] vnc-problem with idle running as sudo on raspberry pi

2013-12-23 Thread Jean Dubois
Op zondag 22 december 2013 18:06:39 UTC+1 schreef Michael Torrie: > On 12/22/2013 06:27 AM, Jean Dubois wrote: > > I was wrong writing idle_as_root worked this way. As a matter of fact, > > this method also does not work as expected, as can be seen from this > > message: &g

Re: [OT] vnc-problem with idle running as sudo on raspberry pi

2013-12-23 Thread Jean Dubois
Op maandag 23 december 2013 16:29:09 UTC+1 schreef Michael Torrie: > On 12/23/2013 07:06 AM, Jean Dubois wrote: > > I thought this would be something python-people are familiar with, after > > all idle is a Python IDE and running it as a root sometimes is necessary. > > On

[newbie] starting geany from within idle does not work

2014-01-12 Thread Jean Dupont
;lxpanelctl restart However if I then click on IDLE followed by File-->New Window a Leafpad-session is opened and not a Geany-session Is there a workaround for it? thanks in advance jean p.s. I posted this question before in the Raspberry Pi forum but nobody seems to know the answer -- https://m

[newbie] advice and comment wanted on first tkinter program

2014-01-17 Thread Jean Dupont
ar1,length = 300,resolution = 1,command = Set_PWM) slider1.place(x=500,y=5) slider1.set(50) slider2 = Scale(top,variable = var2,length = 300,from_= 0.1, to = 50,resolution = 0.1,command = Set_FREQ) slider2.place(x=400,y=5) slider2.set(2) timer0() top.mainloop() GPIO.cleanup() thanks in advance jean -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-18 Thread Jean Dupont
Op vrijdag 17 januari 2014 22:40:42 UTC+1 schreef Terry Reedy: > On 1/17/2014 8:20 AM, Jean Dupont wrote: > > > Dear all, > > > I made a simple gui with tkinter. I can imagine there are things which I > > > did which are "not optimal". So what I ask is

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-19 Thread Jean Dupont
Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin: > On 18 January 2014 14:52, Jean Dupont wrote: > > > > Thanks Peter and Terry Jan for the useful suggestions. One thing which I > >find a bit weird: when asking for Python-help concerning raspberry pi code &

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-21 Thread Jean Dupont
Op maandag 20 januari 2014 07:24:31 UTC+1 schreef Chris Angelico: > On Mon, Jan 20, 2014 at 3:04 PM, Jean Dupont wrote: > > I started a thread "[newbie] starting geany from within idle does not > > work" both here and in the raspberry pi forum. I just wondered why

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-22 Thread Jean Dupont
Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister: > On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: > > > Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin: > >> On 18 January 2014 14:52, Jean Dupont wrote: > >> > > >> &

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-27 Thread Jean Dupont
Op woensdag 22 januari 2014 16:43:21 UTC+1 schreef Alister: > On Wed, 22 Jan 2014 06:45:53 -0800, Jean Dupont wrote: > > > Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister: > >> On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: > >> > >> >

Re: [newbie] advice and comment wanted on first tkinter program

2014-01-27 Thread Jean Dupont
Op woensdag 22 januari 2014 15:45:53 UTC+1 schreef Jean Dupont: > Op maandag 20 januari 2014 10:17:15 UTC+1 schreef Alister: > > On Sun, 19 Jan 2014 20:04:05 -0800, Jean Dupont wrote: > > > > > Op zaterdag 18 januari 2014 16:12:41 UTC+1 schreef Oscar Benjamin: > > >

[newbie] making rows of table with discrete values for different number systems

2014-02-02 Thread Jean Dupont
st practices to perform this kind of operations,I'd really appreciate it very much kind regards and thanks in advance jean -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-02 Thread Jean Dupont
Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten: > Jean Dupont wrote: > > > I'm looking for an efficient method to produce rows of tables like this: > > > > for base 2 > > 0 0 0 0 > > 0 0 0 1 > > 0 0 1 0 > > 0 0 1 1 > > 0 1

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Jean Dupont
Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las: > On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: > > Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten: > > > > I'm looking for an efficient method to produce rows of tables like

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Jean Dupont
Op zondag 2 februari 2014 19:07:38 UTC+1 schreef Roy Smith: > In article <515e582f-ed17-4d4e-9872-f07f1fda6...@googlegroups.com>, > Jean Dupont wrote: > > > I'm looking for an efficient method to produce rows of tables like this: > > > > for base 2 > &g

[newbie] troubles with tuples

2014-02-03 Thread Jean Dupont
2[0:1] does not give me the expected (1,2) but (2,) what is the reason for this and how then should one get the first and the second element of a tuple? Or the 3rd until the 5th? thanks in advance and kind regards, jean -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] troubles with tuples

2014-02-03 Thread Jean Dupont
Op maandag 3 februari 2014 18:06:46 UTC+1 schreef Rustom Mody: > On Monday, February 3, 2014 10:20:31 PM UTC+5:30, Jean Dupont wrote: > > I'm looking at the way to address tuples > > e.g. > > tup2 = (1, 2, 3, 4, 5, 6, 7 ); > > As I found out indices start with 0 in

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Jean Dupont
Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las: > On Monday, February 3, 2014 5:05:40 PM UTC+2, Jean Dupont wrote: > > Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las: > > > > > On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: >

[newbie] copying identical list for a function argument

2014-02-03 Thread Jean Dupont
I have a list like this: [1,2,3] The argument of my function should be a repeated version e.g. [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated also) what is the prefered method to realize this in Python? any help would be really appreciated kind regards, jean

Re: [newbie] copying identical list for a function argument

2014-02-04 Thread Jean Dupont
Op maandag 3 februari 2014 23:19:39 UTC+1 schreef Steven D'Aprano: > On Mon, 03 Feb 2014 13:36:24 -0800, Jean Dupont wrote: > > I have a list like this: > > [1,2,3] > > > > The argument of my function should be a repeated version e.g. > > [1,2,3],[1,2,3]

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-04 Thread Jean Dupont
Op maandag 3 februari 2014 20:50:04 UTC+1 schreef Asaf Las: > On Monday, February 3, 2014 9:37:36 PM UTC+2, Jean Dupont wrote: > > Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las: > > > > Of course you don't have to, but I'm curious and learn well

bgpic doesn't show background image for turtle

2016-01-19 Thread Jean Richelle
e', tagOrId), cnf, kw) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/ python3.5/tkinter/__init__.py", line 1321, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: image "pyimage64" doesn't exist Regards, Je

[newbie] confusion concerning fetching an element in a 2d-array

2014-03-25 Thread Jean Dubois
o numpy-array array_lines=np.array(lines) #fetch element at 2nd row, 2nd column: print array_lines[1, 1] When running the script I always get the following error: IndexError: invalid index Can anyone here explain me what I am doing wrong and how to fix it? thanks in advance jean -- https:

Re: [newbie] confusion concerning fetching an element in a 2d-array

2014-03-25 Thread Jean Dubois
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano: > On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote: > > > I'm confused by the behaviour of the following python-script I wrote: > > > > #!/usr/bin/env python > > #I first made a data fi

Re: [newbie] confusion concerning fetching an element in a 2d-array

2014-03-25 Thread Jean Dubois
Op dinsdag 25 maart 2014 17:12:12 UTC+1 schreef Peter Otten: > Jean Dubois wrote: > > Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano: > >> On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote: > >> > >> > I'm confused by the

Re: [newbie] confusion concerning fetching an element in a 2d-array

2014-03-25 Thread Jean Dubois
Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel: > Jean Dubois Wrote in message: > > Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano: > >> > >> py> values = [float(s) for s in data.split()] > >> py> print values > >&g

Re: [newbie] confusion concerning fetching an element in a 2d-array

2014-03-26 Thread Jean Dubois
Op dinsdag 25 maart 2014 20:58:10 UTC+1 schreef Dave Angel: > Jean Dubois Wrote in message: > > Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel: > > >> If your instructor wanted you to copy examples, he would have > >> given you one. > > please Da

Re: [newbie] confusion concerning fetching an element in a 2d-array

2014-03-26 Thread Jean Dubois
Op dinsdag 25 maart 2014 20:15:27 UTC+1 schreef Joel Goldstick: > Jean, be aware there is also python tutor list you might like.  This is > sometimes a tough crowd here. Don't be discouraged. It can be a badge of > honor sometimes thanks for the suggestions, I already subscribed

ASA Conference on Statistical Practice

2015-05-20 Thread Adams, Jean
Software, Programming, and Graphics Abstracts may be submitted at http://www.amstat.org/meetings/csp/2016/abstracts.cfm Thank you. Jean V. Adams on behalf of the ASA-CSP 2016 Steering Committee `·.,, ><(((º> `·.,, ><(((º> `·.,, ><(((º> Jean V. Adams Statisti

ASA Conference on Statistical Practice - deadline Thursday

2015-06-23 Thread Adams, Jean
Software, Programming, and Graphics Abstracts may be submitted at http://www.amstat.org/meetings/csp/2016/abstracts.cfm Thank you. Jean V. Adams on behalf of the ASA-CSP 2016 Steering Committee `·.,, ><(((º> `·.,, ><(((º> `·.,, ><(((º> Jean V. Adams Statisti

Read a file with open command

2006-08-11 Thread jean-jeanot
I can access to a file with the command: file_obj = open ( " D:\My documents\Textfile.txt",'r') When I now try to read a file with the following command: file_obj = open ("D:\My documents\File.ods",'r') it doesn't function. The extension ods is

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
file_obj= open ("D:/Mes documents/ADB Anna.ods",'r') >>> s = file_obj >>> s.readlines() Jean-Jeanot Jan Svec a écrit : > Hi, > simply use file_obj = open ("D:\My documents\File.ods",'rb') for > opening file in binary access mode,

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
06, Python in a nutshell by Martelli, etc,etc) Anyway thank you for your answer. jean-Jeanot Sybren Stuvel a écrit : > jean-jeanot enlightened us with: > > I can access to a file with the command: > > file_obj = open ( " D:\My documents\Textfile.txt",'r') &g

Re: Read a file with open command

2006-08-11 Thread jean-jeanot
Sorry, I regret my reaction. Jean-jeanot AlbaClause a écrit : > jean-jeanot wrote: > > > Dear Sybrel, > > > > I am delighted to know that you have been enlighted through my > > question. > > I am aware of my stupidity and I would say of my ignorance.If all

sum fonction in gadfly

2006-06-24 Thread jean-jeanot
try to use a select command: cur.execute ("select sum(amount) from transactions").I get Sum.amout.transaction = 100-10.5... instead of 110.5 It means that the select command does not add but concatenates the different amounts. Why ? Many thanks if you can

Re: sum fonction in gadfly

2006-06-25 Thread jean-jeanot
ly well. It could be useful for me to change of DB ? Which one ? Postgresql or another ? Jean Moser Scott David Daniels a écrit : > jean-jeanot wrote: > > After creating the table I create the variables with > > varAmount = StringVar() > Maybe you want to use DoubleVar or IntV

Importing and namespace visibility

2005-05-15 Thread jean-marc
As an application programmer, I'm not well versed in the material aspects of computing (memory, cpu, bus and all). My understanding of imports in Python is such: the __main__ program is the center piece which holds the programs reference: globals, functions, classes, modules etc. The objects of thi

PythonWin + Tkinter = broken relation with WindowsXP !?!?!

2005-05-15 Thread jean-marc
I read that Tkinter and Python IDEs (PythonWin and Idle at least) makes for a bad mix in execution mode because they're fighting for the event loop, but this mode is usefull to use the debugger. But to the point of breaking something elsewhere than in memory ??? (Shutting down and rebooting the co

Re: Importing and namespace visibility

2005-05-16 Thread jean-marc
Merci Bruno, ( and also to Fredrik ) So I think I understand correctly, if I say that: each modulkes requires its own set of reference to whatever objects it needs to speak. The interpreter wil see not to create extra copies of the compiled code if many modules import the same modules but will mak

God damn error 666 (Tkinter in PythonWin)

2005-05-18 Thread jean-marc
Hoping this is not CHTULHU telling to do something else with my life ;-) Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: write to the same file from multiple processes at the same time?

2005-05-27 Thread jean-marc
Sorry, why is the temp file solution 'stupid'?, (not aesthetic-pythonistic???) - it looks OK: simple and direct, and certainly less 'heavy' than any db stuff (even embedded) And collating in a 'official log file' can be done periodically by another process, on a time-scale that is 'useful' if no

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread jean-marc
.. Yes there is a difference! I had this problem last year (developing on Win XP Pro and delivering on IIS Server), I'll try to lookup the solution, but it might be difficult (it's kind of a thing you do once and forget about later.) Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread jean-marc
hanged the way I was dealing with file adresses. Maybe there is a hint of direction for your own investigation... Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: searching for IDE

2005-06-12 Thread jean-marc
if you are familiar with eclipse, you could use the PyDev python plugin. jm -- http://mail.python.org/mailman/listinfo/python-list

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-14 Thread jean-marc
[EMAIL PROTECTED] wrote: > jean-marc schrieb: > > Some bits are coming back to me: the problems stemmed from adresses - > > getting the root of IIS was different so accessing files didn't work > > the same way. > > thanks for that. > you are right, IIS ver

Problem with Tkinter on Mac OS X

2006-05-14 Thread Jean Richelle
program in an editing window, save it, and then run it. The window with two buttons is displayed in the back of the IDLE window (and I cannot bring it to the front), and there nothing happening when I click either button. Did anybody do a fresh install recently and can run program using

dl module

2008-01-31 Thread Nicola Jean
Hi everyone, I'm having a problem compiling Python2.4.4 on a 64 bits machine. It looks like I cannot compile the dl module. When I run test_dl.py I get the following error message: SystemError: module dl requires sizeof(int) == sizeof(long) == sizeof(char*) Do I need to put any special flag when I

Crash on msvcrt mismatch?

2009-04-10 Thread Lagarde, Jean
to what to try next. I'd like to avoid having to build PyQt from source, but if that's the recommendation I'll give it a go. Cheers, Jean -- http://mail.python.org/mailman/listinfo/python-list

RE: Crash on msvcrt mismatch?

2009-04-10 Thread Lagarde, Jean
I'm curious to understand why that matters, but I found out that if I load the modules in the inverse order, everything works fine. -- Jean From: Lagarde, Jean Sent: Friday, April 10, 2009 10:08 AM To: python-list@python.org Subject: Crash on msvcrt mismatc

Regex url

2011-01-15 Thread Jean-Francois
Hi, I try to match the following url with one regex /hello /hello/ /hello/world /hello/world/ world is a variable, I can put toto instead Thanks ! -- http://mail.python.org/mailman/listinfo/python-list

New instance of a class : not reset?

2011-01-20 Thread Jean-Francois
Hi, In the following example, I don't understand why attribute 'data' is not reset when I get the new instance of Bag It works if I make a copy (data[:]) but I want to understand why Thanks class Bag(object): def __init__(self, data = []): self.data = data

Re: New instance of a class : not reset?

2011-01-24 Thread Jean-Francois
Great thank you -- http://mail.python.org/mailman/listinfo/python-list

executing a function with feeding its global variables

2011-02-12 Thread Jean-Daniel
Hello, I am writing a small framework where the user which writes a function can expect some global variable to be set in the function namespace. The user has to write a function like this: """ # function.py from framework import, command, run @command def myfunc(): print HOST if __name__==

Re: executing a function with feeding its global variables

2011-02-12 Thread Jean-Daniel
On Sat, Feb 12, 2011 at 7:25 PM, Peter Otten <__pete...@web.de> wrote: > Jean-Daniel wrote: > >> Hello, >> >> I am writing a small framework where the user which writes a function >> can expect some global variable to be set in the function namespace. >>

extra room in Paris in your are stuck at the airport

2010-04-19 Thread Jean Daniel
Hello, I live in Paris, my roommate and I would gladly host a poor soul blocked at the airport due to the ash cloud. See me for details, Cheers, PS: disambiguation: talking about real physical cloud here... :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Not this one the other one, from a dictionary

2009-09-22 Thread Jean Daniel
Building on the answers of the others, a simple one liner, no side effect, not the fastest I guess: >>> d={'a': 'bob', 'b': 'stu'} >>> set( d.keys() ).difference( [ 'a' ] ).pop() 'b' Note the square brackets for the parameter of difference(). 'The string 'a' and the list [ 'a' ] are both iterable

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Jean Daniel
Maybe the distutils list is more adapted for this question: The Zope community uses zc.sourcerelease to build rpm http://www.mail-archive.com/distutils-...@python.org/msg06599.html Buildout is said to have undocumented features to build packages. Tarek Ziade is working debian package with 'distr

Re: Python's sad, unimaginative Enum

2013-05-13 Thread Jean-Michel Pichavant
- Original Message - > That's the title of this little beast > http://www.acooke.org/cute/Pythonssad0.html if anybody's interested. > > -- > If you're using GoogleCrap™ please read this > http://wiki.python.org/moin/GoogleGroupsPython. > > Mark Lawrence > > -- > http://mail.python.org/ma

Re: global variable not working inside function. Increment

2013-05-13 Thread Jean-Michel Pichavant
> Thank You for setting that straight. I'm just learning Python and > NONE of the tutorials I read said anything about that . In fact they > all say a global can be called from inside a Function. If possible > please contact the ppl that write these things.I've heard of > Ocam's razor but not H

Re: Python's sad, unimaginative Enum

2013-05-14 Thread Jean-Michel Pichavant
- Original Message - > On Mon, 13 May 2013 13:00:36 +0200, Jean-Michel Pichavant wrote: > > > - Original Message - > >> That's the title of this little beast > >> http://www.acooke.org/cute/Pythonssad0.html if anybody's > >&g

Re: Unicode humor

2013-05-15 Thread Jean-Michel Pichavant
> >> >> This reflects a lack of understanding of Unicode. > >> > >> >> jmf > >> > >> > And this reflects a lack of a sense of humor. :) > >> > >> Isn't that a crime in the UK? > >> > >> ChrisA > > > > The problem with English humour (as against standard humor) is that > > its not unicode compliant

Re: Unicode humor

2013-05-15 Thread Jean-Michel Pichavant
- Original Message - > On 15/05/2013 14:19, Jean-Michel Pichavant wrote: > >> >> >> This reflects a lack of understanding of Unicode. > >> >> > >> >> >> jmf > >> >> > >> >> > A

Re: Unicode humor

2013-05-15 Thread Jean-Michel Pichavant
- Original Message - > On Wed, 15 May 2013 15:19:00 +0200 (CEST) > Jean-Michel Pichavant wrote: > > > British humour includes "double entendre", which is not > > > French-compliant. > > > > I didn't get that one. Which possibly confirm

Re: python 2.7 vs 2.5

2013-05-16 Thread Jean-Michel Pichavant
- Original Message - >I am using python 2.7 to write > the cgi file and my web server is using python 2.5. The answer lies in your question. JM -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the inten

Re: Debugging parallel nose tests?

2013-06-12 Thread Jean-Michel Pichavant
- Original Message - > In article , > Dave Angel wrote: > > > On 05/23/2013 09:09 AM, Roy Smith wrote: > > > > > > > > > > > > nosetests --process-timeout=60 --processes=40 test_api.py > > > > > > > Do you have a 40-processor system? > > No, but many of the tests are I/O bound.

Python - remote object protocols and security

2013-07-15 Thread Jean-Michel Pichavant
Hello everyone, I'd like to exchange some simple python objects over the internet. I initially planned to use Pyro, after reading http://pythonhosted.org/Pyro4/security.html I'm still puzzled. I don't mind encrypting data, if someone wants to sniff what I'm sending, he's welcome. What I

Re: Python - remote object protocols and security

2013-07-15 Thread Jean-Michel Pichavant
In text format... sorry for my previous html post Hello everyone, I'd like to exchange some simple python objects over the internet. I initially planned to use Pyro, after reading http://pythonhosted.org/Pyro4/security.html I'm still puzzled. I don't mind encrypting data, if someone wants to

Re: Python - remote object protocols and security

2013-07-15 Thread Jean-Michel Pichavant
ly it's vulnerable. So > authors of such libraries have two conflicting goals. If I understand correctly any available remote protocols are pretty much of the chart. Since I'm planning to send only int and strings I think I'll follow your advice of serializing/deserializing mys

Re: Python - remote object protocols and security

2013-07-15 Thread Jean-Michel Pichavant
- Original Message - > > What I think I need to care about, is malicious code injections. > > Because > > both client/server will be in python, would someone capable of > > executing > > code by changing one side python source ? > > > > How do I prevent this and still provide the source to

Re: Python - remote object protocols and security

2013-07-15 Thread Jean-Michel Pichavant
- Original Message - > On 15-7-2013 13:17, Dave Angel wrote: > > On 07/15/2013 06:20 AM, Jean-Michel Pichavant wrote: > >> In text format... sorry for my previous html post > >> > >> Hello everyone, > >> > >> I'd like to ex

Re: Understanding other people's code

2013-07-16 Thread Jean-Michel Pichavant
- Original Message - > Thanks for all the suggestions, I'm afraid I didn't get a chance to > view them over the weekend but I will get started with them this > morning. I'm currently using sublime 2 for my text editor and tried > to create a UML diagram using Pylint to try and get a map ove

Re: Conditional decoration

2012-06-19 Thread Jean-Michel Pichavant
Roy Smith wrote: Is there any way to conditionally apply a decorator to a function? For example, in django, I want to be able to control, via a run-time config flag, if a view gets decorated with @login_required(). @login_required() def my_view(request): pass Hi, def my_view(request):

Re: fastest method

2012-06-21 Thread Jean-Michel Pichavant
david.gar...@gmail.com wrote: I am looking for the fastest way to parse a log file. currently I have this... Can I speed this up any? The script is written to be a generic log file parser so I can't rely on some predictable pattern. def check_data(data,keywords): #get rid of duplicates

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