[Tutor] networking

2004-12-27 Thread Marco
Hi python tutors, Im interested on learning python but i would like to focus in a specific topic, networking, where can i find documention networking in python? sockets and all that stuff? i looked for some information but all of them were just vague. thanks in advance, Marco -- "If know

[Tutor] documentation tut.html Error 404

2008-10-17 Thread Marco
hi list, the link provided in one of the initiation mails from the tutor-mailinglist: ... http://www.python.org/doc/current/tut/tut.html ... responds with a 404 error. Best regards, marco ___ Tutor maillist - Tutor@python.org http

[Tutor] Using Python with a Mac

2010-02-21 Thread Marco Rompré
Hi everyone, I would like to know how to use python with a mac. For now, I go to spotlight, open terminal then type IDLE and a window pops up but its like the window that opens when you run your programs already saved and I'm not able to open another window to write a script from scratch. Could s

[Tutor] Macbook Pro+python programming

2010-03-09 Thread Marco Rompré
Does anybody know any good python emulator that would work perfectly with Mac OSX Leopard? Because I just got a brand new Mac (the one on apple store) and it seems that the build in Python 2.6.1 from darwin is garbage I'm running a 2,88 ghz dual core and each time I open terminal, then type idle a

[Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
Hi! I am relatively new to python and turtle and I really need your help. Here what I wanted turtle to do: I created a function named carré which would draw a square with 3 different parameters (color, size, angle). I did the same for a function named

Re: [Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
over it and the last problem was that it was never stopping and i had to rstart the shell to make it stop. I hope I am more precis with my explanations. Thanks for helping me learn On Thu, Mar 11, 2010 at 1:26 PM, Alan Gauld wrote: > > "Marco Rompré" wrote > > > Hi! I am

Re: [Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
is wrong - it will be outside >> of the while loop and so n will never increment and the loop will never end. >> >> Instead of a while loop I would suggest a for loop: >> >> for n in range(10: >> >> >> HTH, >> >> Vern >> &g

Re: [Tutor] Problem with turtle

2010-03-12 Thread Marco Rompré
The thing is that the teacher wanted us to use a while loop like in the notes but even in the notes I copied the code and it was not working either. Now, I'm more on the right track, I am able to draw the forms and the counter is almost working, the reason I say that is because turtle is doin what

[Tutor] Problem with little program

2010-03-13 Thread Marco Rompré
Hello I have a little problem, I am trying to define a function ligneCar(n, ca) that would print n times the caracters ca. For now I have the user entering a short sentence corresponding to ca. Here is my code: def ligneCar(n,ca): c=0 while c___

[Tutor] Hi there!

2010-03-16 Thread Marco Rompré
Hi! Does anyone of you know where to find all the solutions of Gerard Swinnen Python tutorial exercises In the tutorial we just have the solutions to half of the exercises. Thank you -- Marc-O. Rompré ___ Tutor maillist - Tutor@python.org To un

[Tutor] Simple bank account oriented object

2010-03-30 Thread Marco Rompré
Hi im doin a programmin course at university and in one on my exercise i have to do that I had to define a class CompteBancaire(CompteBancaire is bankaccount in french), that would allow me to create objects Compte1, Compte2,etc. The following methods need to be defined - depot(somme)

Re: [Tutor] Simple bank account oriented object

2010-04-05 Thread Marco Rompré
ot(0) compte1.retrait(1200) compte1.calculInteret(10) compte1.affiche_solde() compte2 = CompteEtudiant('Étudiant',800,1000) compte2.retrait(1100) compte2.affiche_solde() On Wed, Mar 31, 2010 at 4:39 PM, Lie Ryan wrote: On 04/01/2010 12:35 AM, Marco R

[Tutor] Need some info

2010-04-20 Thread Marco Rompré
Hi! in my programming course at university, I need to create a python model with 2 concepts in a one towards many relation each of them having 2-3 properties. Also, I need to create an application with screens to add, modify, and delete the data of the model. Can someone know where I can find t

[Tutor] Would you please help me understand my error

2010-04-23 Thread Marco Rompré
Its supposed to be a object magasin (shop in french) with some golf items in it class Magasin: """ Le concept magasin pour la gestion d'inventaire des items de golf. """ def __init__(self, nom ="", items =[] ): self.nom = nom self.items = items def set_nom(se

Re: [Tutor] Would you please help me understand my error

2010-04-23 Thread Marco Rompré
Bien, >for starters please get rid of all those set_ methods. They are > doing nothing, it's not pythonic. Just assign the value straight away. > e.g.: from """ item01.set_prix("999.99") """ to """ item01.prix = "999.99" """ > Our teacher showed us this method and in our exercise we had

[Tutor] Hi everybody stuck on some error need help please thank you!!

2010-04-23 Thread Marco Rompré
Hi everybody, I would appreciate your help on this one In this program I want to create 2 concepts each with 2 or 3 properties My first concept is magasin(shop in french) and my shop has 3 attributes: nom(name in french), items and ville (city in french) the second one is items and its 2 attributes

Re: [Tutor] Hi everybody stuck on some error need help please thank you!!

2010-04-23 Thread Marco Rompré
rano wrote: > On Sat, 24 Apr 2010 01:07:11 pm Marco Rompré wrote: > > > Here's my code: > [...] > > class Modele: > > """ > > La definition d'un modele avec les magasins. > > """ > > def __init__(self, n

[Tutor] How can I display my float as a string???

2010-04-27 Thread Marco Rompré
Here is my code, I need to display my float value as a string. item.set_prix str(float(prix)) Thank You -- Marc-O. Rompré ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tut

Re: [Tutor] (no subject)

2010-04-27 Thread Marco Rompré
Oups my posting was too big!!! On Tue, Apr 27, 2010 at 11:04 PM, Marco Rompré wrote: > Why is none of my items button works In this, I have two files and in > my second file I imported all the function of the first one > > Here is my codes and my error code for the two files pl

Re: [Tutor] Looking for HOWTO's

2005-06-02 Thread Marco Scheidhuber
uot; python gives e.g. http://sourceforge.net/projects/pdsimagereader/ hth marco -- marco scheidhuber- internetmanufaktur jo- Berlin, Germany |||meder---fon: ++49-30-417 17 63 3

[Tutor] SMTP Module Help

2009-01-07 Thread Marco Petersen
line 310, in connect raise socket.error, msg error: (10061, 'Connection refused') Can anyone help me with this? Thanks. -Marco ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] 2to3 Help?

2009-01-11 Thread Marco Petersen
appreciated. Thanks - Marco ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Is there a better way?

2012-01-11 Thread Marco Casazza
quot;@leh", line): newline = re.sub("@leh.*", "@lehman.cuny.edu", line)+'\n' outlist.append(newline.lower()) with file('c:\python27\mvc\output.txt','w') as outfile: outfile.writelines(outlist) Thanks, Marco ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is there a better way?

2012-01-11 Thread Marco Casazza
On 2012-01-11 07:57, Joel Goldstick wrote: On Wed, Jan 11, 2012 at 7:34 AM, Marco Casazza wrote: Hello, I've been slowly teaching myself python, using it for small projects when it seems appropriate. In this case, I was handed a list of email addresses for a mailing but some of them had

[Tutor] VirutalEnv not working on Ubuntu server 9.10

2012-04-29 Thread Marco Mistroni
hen i type pytyon and start to import googlemaps all i receive is an error that the package does not exist what am i missing? w/kindest regards marco ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pytho

Re: [Tutor] VirutalEnv not working on Ubuntu server 9.10 / sorted

2012-04-29 Thread Marco Mistroni
Hello sorry to bother , found out hte problem. the imported packages work if i run python from the /bin directory of the virtualenv environment i have created w/kindest regards marco On Sun, Apr 29, 2012 at 3:04 PM, Marco Mistroni wrote: > HI all > i have a VPS which is running

[Tutor] NTLM authentication

2012-08-23 Thread Marco Mistroni
npack requires a string argument of length 4 could anyone assist pls? w/kindest regards marco ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] NTLM authentication, python 2.6 and windows

2012-08-23 Thread Marco Mistroni
npack requires a string argument of length 4 I am running the client code on python 2.6, on a windows 7 machine, and i am connecting to an apache tomcat server running on a windows xp machine could anyone assist pls? > > w/kindest regards > marco > > > __

[Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-19 Thread Marco Mistroni
Hi all i have written a wx GUI which downloads json data from a server, and populate a listbox. Every time i populate a listbox, i am receiving Segmentation Faults. I have tried to retrieve data from the URL via separate thread, and to use events, but i am still getting a segmentation fault could

Re: [Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-19 Thread Marco Mistroni
Hello i found the problem. It's calling self.list.ClearAll that causes the segmentation fault. removing the call to ClearAll fixed my problem , but i still want to clear the list before i load new data.. could anyone assist? wkr marco On Fri, Oct 19, 2012 at 11:05 PM, Marco Mis

Re: [Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-22 Thread Marco Mistroni
Hello Ramit yes solution worked... thanks and regards marco On Mon, Oct 22, 2012 at 5:58 PM, Prasad, Ramit wrote: > Marco Mistroni wrote: > > > Hello > > i found the problem. It's calling self.list.ClearAll that causes the > segmentation fault. > > removin

[Tutor] Hello! Questions

2016-02-17 Thread Marco Soldavini
I hit the send button too early. anyway Basically something like while (stop condition false) read data write data into local array or something wait sample time Thanks marco ___ Tutor maillist - Tutor@python.org To unsubscribe or

[Tutor] Hello! Questions

2016-02-17 Thread Marco Soldavini
Hi, I am almost new to python and I am trying to build a not so easy app (but very neat and useful) related to industrial automation. Is this the right place to knock down problems one by one? Basically my app has several interactions but the most important is reading values from an embedded machi

Re: [Tutor] Hello! Questions

2016-02-18 Thread Marco Soldavini
files. Let's say in this configuration file I can say I have to read 10 arrays or 20 arrays and then my program adjust the while cycle consequently. Maybe an array of array where the second dimension is coming from the config file. Is this clear? Version of python is 2.7.9 running on Wi

Re: [Tutor] Hello! Questions

2016-02-19 Thread Marco Soldavini
Maybe an array of array where the second dimension is coming from the  > config file.  I'd use the dictionary approach rather than arrays of arrays.  (Which are probably lists of lists in Python.)  Thanks! Marco ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hello! Questions

2016-02-19 Thread Marco Soldavini
t; WANTED = [".watchdog", ".analog1", ".analog2] > data = [] > > # in the loop: > data.append({r[0]:r[1:] for r in opc.read(WANTED)}) > > > Thanks for the helpful hints. I have a ton of questions yet to come! Marco

[Tutor] ImportError: No module named...

2016-04-17 Thread Marco Soldavini
was working last time and now it doesn't anymore. It could be an install problem? Thanks Marco ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] ImportError: No module named...

2016-04-18 Thread Marco Soldavini
Yeah, I spotted the mistake. There was a file left in the folder named reportlab.pyc which I could not see from the pycharm interface. Thanks! On Mon, Apr 18, 2016 at 1:47 AM, Danny Yoo wrote: > >> But I get the following error code on line 1 >> >> ImportError: No module named pdfgen >> > > Is r

[Tutor] XML and ElementTree

2016-04-25 Thread Marco Soldavini
iable value I want to do it with the xml tag name and not with an index like Settings[10] for example but something like Settings['tag'] But what if I have more than one structure like station which has the same keys? Following is part of my code for now. Thanks! marco

[Tutor] Tkinter and threading

2016-06-02 Thread Marco Soldavini
quot;)) button1.pack() button2 = Button(myContainer1) button2["text"]= "STOP" button2.pack() root.mainloop() Thanks marco ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tkinter and threading

2016-06-02 Thread Marco Soldavini
Thanks for you answers! On Thu, Jun 2, 2016 at 6:39 PM, Peter Otten <__pete...@web.de> wrote: >> For example a state machine with a var state which can have some >> discrete string values (like RUNNING, STOPPED, PAUSED, ABORTED, IDLE) >> and a text element on the gui that reports that state. >> >

Re: [Tutor] Web scraping using selenium and navigating nested dictionaries / lists.

2019-01-27 Thread Marco Mistroni
Hi my 2 cents. Have a look at scrapy for scraping.selenium is v good tool to learn but is mainly to automate uat of guis Scrapy will scrape for you and u can automate it via cron. It's same stuff I am doing ATM Hth On Sun, Jan 27, 2019, 8:34 AM All, > > > > Goal of new project. > > I want to scr

Re: [Tutor] How to get Selenium to wait for page load

2019-01-31 Thread Marco Mistroni
Hi You won't find much help here as this is a python moist Have a look at WebDriverWait from selenium.webdriver.support.ui It allows you to wait for certain conditions Hth On Thu, Jan 31, 2019, 11:09 AM Hi all, > > > > I have found an excellent article on identifying stale elements. The issue >