Re: Selection sort

2021-12-24 Thread Luca Anzilli
Hello try this code def selectionsort(arr): #le=len(arr) for b in range(0,len(arr)-1): # pos=b for a in range(b+1,len(arr)): if arr[b]>arr[a]: arr[b],arr[a]=arr[a],arr[b] return arr arr=[3,5,9,8,2,6] print(selectionsort(arr)) Il giorno ven 24 d

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-07 Thread Luca
On 4/6/2020 11:05 PM, Luca wrote: On 4/6/2020 8:51 PM, Reto wrote: out = df.to_csv(None) new = pd.read_csv(io.StringIO(out), index_col=0) Thank you, brother. It works BTW, a little gotcha (I write this in case someone gets here in the future through Google or something) "&quo

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-06 Thread Luca
On 4/6/2020 8:51 PM, Reto wrote: out = df.to_csv(None) new = pd.read_csv(io.StringIO(out), index_col=0) Thank you, brother. It works -- https://mail.python.org/mailman/listinfo/python-list

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-06 Thread Luca
On 4/6/2020 3:03 PM, Christian Gollwitzer wrote: CSV is the most sensible option here. It is widely supported by spreadsheets etc. and easily copy/pasteable. Thank you Christian. so, given a dataframe, how do I make it print itself out as CSV? And given CSV data in my clipboard, how do I

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-06 Thread Luca
On 4/6/2020 4:08 AM, Reto wrote: Does this help? Thank you, but not really. What I am trying to achieve is to have a way to copy and paste small yet complete dataframes (which may be the result of previous calculations) between a document (TXT, Word, GoogleDoc) and Jupiter/IPython. Did I m

print small DataFrame to STDOUT and read it back into dataframe

2020-04-04 Thread Luca
possibly a stupid question. Let's say I have a (small) dataframe: import pandas as pd dframe = pd.DataFrame({'A': ['a0','a1','a2','a3'], 'B': ['b0','b1','b2','b3'], 'C': ['c0','c1','c2','c3'], 'D': ['d0','d1','d2','d3']}, i

confused by matplotlib and subplots

2020-04-01 Thread Luca
Hello Covid fighters and dodgers, I'm sort of confused by what I am seeing in a Pandas book. This works: fig = plt.figure() ax1 = fig.add_subplot(2,2,1) ax2 = fig.add_subplot(2,2,2) ax3 = fig.add_subplot(2,2,3) ax3.plot(np.random.randn(50).cumsum(), 'k--'); but also this works! fig = plt.fi

What's the best forum to get help with Pandas?

2020-02-20 Thread Luca
subject has it all. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: variable exchange

2018-10-09 Thread Luca Bertolotti
Thanks Cameron but my problem is that i can't access to a line edit of the class Form from the class Form_cli i get this error: 'Form_cli' object has no attribute 'lineEdit_29' -- https://mail.python.org/mailman/listinfo/python-list

variable exchange

2018-10-09 Thread Luca Bertolotti
Hello i'm using python with pyqt but i have a problem on varable: I have two class: from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QWidget from PyQt5.QtSql import QSqlDatabase, QSqlTableModel from PyQt5 import QtWidgets from PyQt5.QtCore import Qt from Ui_form import Ui_Form from f

Re: variable scope of class objects

2015-10-22 Thread Luca Menegotto
is can be written as: class SensorA(): GYROXREG = 0x0010 GYROYREG = 0x0011 GYROZREG = 0x0001 _registers = [GYROXREG, GYROYREG, GYROZREG] And then you can invoke those constants as: SensorA.GYROXREG to emphasize that they are significant to this class, and to this class only

Re: variable scope of class objects

2015-10-21 Thread Luca Menegotto
Il 20/10/2015 23:33, JonRob ha scritto: Hello Luca, I very much appreciated your comments. And I understand the importance of "doing something right" (i.e. convention). This leads me to another question. Because I am interfacing with an I2C sensor I have many register defi

Re: variable scope of class objects

2015-10-20 Thread Luca Menegotto
Il 20/10/2015 08:38, Nagy László Zsolt ha scritto: When you say "they have nothing to do", it is almost true but not 100%. I know it, but when it comes to eradicate an idea that comes directly from C++-like languages, you must be drastic. Nuances come after... -- Ciao! Luc

Re: variable scope of class objects

2015-10-19 Thread Luca Menegotto
object of a class wherever you want in your code (even if it is very dangerous and discouraged). -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Check if a given value is out of certain range

2015-09-29 Thread Luca Menegotto
Il 29/09/2015 23:04, Random832 ha scritto: How about x not in range(11)? Remember: simpler is better. -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Luca Menegotto
5.04 comes with Python 2.7. I don't remember if Python 3 was preinstalled or if I had to install it manually. -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Luca Menegotto
efers to the nearest loop; so, if you have two nested loops, it refers to the inner one; another stupid example: for i in range(10): for j in range(10): if j < 5: continue do_something(i, j) # called only if j >= 5 -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Luca Menegotto
installed it or not. -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Luca Menegotto
e are distros with Python3.x as default (Fedora?) -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Why Python is not both an interpreter and a compiler?

2015-08-31 Thread Luca Menegotto
ode from one OS to another with no pain. So, why should I loose this wonderful freedom? -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Flan definition collision

2015-08-11 Thread Luca Menegotto
e 'import', and not 'from xyz import', you avoid any conflict. Ah: 'from ... import' has caused me a lot of terrible headaches. I don't use this statement if not strictly necessary. -- Bye. Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Is it a newsgroup or a list?

2015-06-07 Thread Luca Menegotto
Il 07/06/2015 13:45, Steven D'Aprano ha scritto: As far as I know, python-list a.k.a. comp.lang.python is the only one of the Python mailing lists with an official newsgroup mirror. OK. So let me rephrase: Thank God the list is mirrired to a newsgroup... -- Ciao! Luca --

Re: Function to show time to execute another function

2015-06-07 Thread Luca Menegotto
hat's a good point. IMHO test the time execution of a function makes sense only if all these assetions are true: - the function takes a long time to be executed; - the execution is iterated a certain (large) number of times. -- Ciao! Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Function to show time to execute another function

2015-06-07 Thread Luca Menegotto
a dictionary? it takes 20 seconds, if you are slow. Else if you want a function that prints time and result, why don't you print result more or less in the same manner you do with the time elapsed? it takes 20 seconds, if you are slow. Else, can you explain exactly what do you

python paho mqtt thread

2015-05-21 Thread Luca Sanna
hi , I try to run this code MQTT but I can not read the messages in the topic , can you help me ? thanks class MyMQTTClass(Thread): #def __init__(self, clientid=None): clientid=None _mqttc = mqtt.Client(clientid) #_mqttc.on_message = mqtt_on_message #_mqttc.on_connect = mqtt_o

Let me introduce myself.

2015-04-30 Thread Luca Menegotto
Hello everybody. One of the common rules i like most is: when you enter in a community, introduce yourself! So here I am! Luca, old developer (50 and still running!), Python (and not only) developer, from Marostica, a lovely small town in the north-eastern part of Italy. It's a ple

Re: Using sh library with grep command

2013-11-23 Thread Luca Fabbri
On Sat, Nov 23, 2013 at 5:29 PM, Peter Otten <__pete...@web.de> wrote: > Luca wrote: > >> I'm trying to use sh (https://pypi.python.org/pypi/sh) for calling >> system grep command but it's now working as expected. >> >> An example: >> >

Using sh library with grep command

2013-11-23 Thread Luca
code for grep command when it not found any match. The error instance object reported that the command run is: *** ErrorReturnCode_1: RAN: '/usr/bin/grep abc /Users/keul/test_sh' Obviously manually running the command I get some output and exit code 0. Where I'm wrong?

Re: What's the best way to extract 2 values from a CSV file from each row systematically?

2013-09-28 Thread Luca Cerone
al newlines cr = csv.reader(fo) values_list = [(r[2],r[4]) for r in cr] #you have a list of tuples containing the values you need Cheers, Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-23 Thread Luca Cerone
> > The docstring for doctest.DocTestRunner contains the example code > > I was looking for. > > Thanks, I will give it a try! > > -- > > Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-23 Thread Luca Cerone
I don't know why but it seems that google groups stripped the indentation from the code. I just wanted to ensure you that in the examples that I have run the definition of myfunc contained correctly indented code! On Monday, 23 September 2013 15:45:43 UTC+1, Luca Cerone wrote: > ..

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-23 Thread Luca Cerone
> It won't be very good documenation any more but nothing stops you > > from examining the result in the next doctest and making yourself > > happy about it. > > > > >>> x = input("indeterminate:") > > >>> result = "'{}'".format(x)) > > >>> result.startswith("'") and result.endswith("'

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Luca Cerone
On Sunday, 22 September 2013 14:39:07 UTC+1, Ned Batchelder wrote: > On 9/22/13 12:09 AM, Luca Cerone wrote: > > > Hi Chris, > > > actually my priority is to check that the code is correct. I changed the > > syntax > > > during the development, and I want

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Luca Cerone
> This makes no sense. If you ignore the output, the code could do ANYTHING > > and the test would still pass. Raise an exception? Pass. SyntaxError? > > Pass. Print "99 bottles of beer"? Pass. > if you try the commands, you can see that the tests fail.. for example .. doctest:: >>> rais

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-21 Thread Luca Cerone
a bad choice, but in my case is what I want/need. Thanks for the help, Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-21 Thread Luca Cerone
> but if you're using this for a > > tutorial, you risk creating a breed of novice programmers who believe > > their first priority is to stop the program crashing. Smoke testing is Hi Chris, actually my priority is to check that the code is correct. I changed the syntax during the development,

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-21 Thread Luca Cerone
> And if you ignore the output, the error won't be caught either. What's > > the difference? > > >>> 1 + 1 #doctest:+IGNORE_OUTPUT (not a real directive) > > 1000 > > The difference is that in that case you want to check whether the result is correct or not, because you expect a certain r

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-21 Thread Luca Cerone
ing them.) > You are right, I modified an example that uses x in one of my functions that requires a string in input, and didn't change that. Thanks again for the help anyway, Cheers, Luca -- https://mail.python.org/mailman/listinfo/python-list

Sphinx Doctest: test the code without comparing the output.

2013-09-21 Thread Luca Cerone
uence, but I don't know how to do that. I know that I could skip the execution of print(str(x)) but this is not what I want; I really would like the command to be executed the output ignored. Can you point me to any solution for this issue? Thanks a lot in advance for your help, Cheers, Luca -- https://mail.python.org/mailman/listinfo/python-list

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-30 Thread Luca Cerone
Thanks Dieter, > With respect to cookie handling, you do everything right. > > > > There may be other problems with the (wider) process. > > Analysing the responses of your requests (reading the status codes, > > the response headers and the response bodies) may provide hints > > towards th

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-27 Thread Luca Cerone
ng wrong? Do I misunderstand something in the process? Thanks again in advance for the help, Cheers, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-27 Thread Luca Cerone
), I preferred to ask for the specific case. I am sorry if I gave you the impression I didn't appreciate your answer, it was absolutely not my intention. Cheers, Luca > Let me make an additional remark however: you should > > not expect to get complete details in a list like t

Re: How to keep cookies when making http requests (Python 2.7)

2013-08-21 Thread Luca Cerone
;t understand how you use the ones that the site sends to you when you perform the initial request. Have you tried this code to check if this work? If it works as intended can you explain a bit better what it does exactly? Thanks again! Luca -- http://mail.python.org/mailman/listinfo/python-list

How to keep cookies when making http requests (Python 2.7)

2013-08-20 Thread Luca Cerone
base_h.cookies == job_h.cookies #returns True So, why does this script fail to access the job page? How can I change it so that I it works as intended and job_page prints the content of the page that displays the email address to use for the job applications? Thanks a lot in advance for the help! Best Wishes, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: "Nested" virtual environments

2013-08-16 Thread Luca Cerone
gt; > > > > > [1] https://wheel.readthedocs.org > [2] > http://www.pip-installer.org/en/latest/cookbook.html#building-and-installing-wheels > > > > > > > 2013/8/9 Luca Cerone > > Dear all, is there a way to "nest" virtual environments? > >

"Nested" virtual environments

2013-08-09 Thread Luca Cerone
ackages a virtual environment should be able to access the packages of an other one. Thanks a lot in advance for the help, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Pool map with a method of a class and a list

2013-08-07 Thread Luca Cerone
Thanks for the help Peter! > > > > >> def make_instancemethod(inst, methodname): > > >> return getattr(inst, methodname) > > > > > > This is just getattr -- you can replace the two uses of > > > make_instancemethod with getattr and delete this ;). > > > > D'oh ;) -- http://mail.py

Re: Using Pool map with a method of a class and a list

2013-08-07 Thread Luca Cerone
Thanks for the post. I actually don't know exactly what can and can't be pickles.. not what partialing a function means.. Maybe can you link me to some resources? I still can't understand all the details in your code :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Pool map with a method of a class and a list

2013-08-07 Thread Luca Cerone
calls will work on the proxy. > > """ > > return partial(_getattr_proxy_partialable, instance, name) > > > > l = range(100) > > p = Pool(4) > > op = p.map(getattr_proxy(A(3), "fun"), l) > > print(op) I can't try it now, I'll let you know later if it works! (Though just by reading I can't really understand what the code does). Thanks for the help, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Pool map with a method of a class and a list

2013-08-07 Thread Luca Cerone
ading it and relaying further questions back to us. Or use Python 3 :) Thanks, but of course I googled and found this link before posting. I don't understand much of the details as well, that's why I posted here. Anyway, thanks for the attempt :) Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Pool map with a method of a class and a list

2013-08-06 Thread Luca Cerone
thon 3.2 neither (I am mostly interested in a solution for Python 2.7, sorry I forgot to mention that). Thanks in any case for the help, hopefully there will be some other advice in the ML :) Cheers, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Pool map with a method of a class and a list

2013-08-06 Thread Luca Cerone
On Tuesday, 6 August 2013 18:12:26 UTC+1, Luca Cerone wrote: > Hi guys, > > I would like to apply the Pool.map method to a member of a class. > > > > Here is a small example that shows what I would like to do: > > > > from multiprocessing import Pool >

Using Pool map with a method of a class and a list

2013-08-06 Thread Luca Cerone
ain__ module be importable by the children.", which is obscure to me). I would like to understand two things: why my code fails and when I can expect it to fail? what is a possible workaround? Thanks a lot in advance to everybody for the help! Cheers, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-06 Thread Luca Cerone
> my_thread.join() Thanks! I managed to make it work using the threading library :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
> You're back to using separate threads for the reader and the writer. > And how do I create separate threads in Python? I was trying to use the threading library without not too success.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
Thanks this works (if you add shell=True in Popen). If I don't want to use shell = True, how can I redirect the stdout to named_pipe? Popen accepts an open file handle for stdout, which I can't open for writing because that blocks the process... > > > os.mkfifo("named_pipe", 0777) > > ls_proc

Re: Piping processes works with 'shell = True' but not otherwise.

2013-08-05 Thread Luca Cerone
thanks and what about python 2.7? > > > In Python 3.3 and above: > > > > p = subprocess.Popen(..., stderr=subprocess.DEVNULL) P.s. sorry for the late reply, I discovered I don't receive notifications from google groups.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
; in background and writes into a named pipe? And how do I open a thread that reads from the named pipe? Can you please post a small example, so that I have something to work on? Thanks a lot in advance for your help! Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
learn how to handle named pipes in Python, which I find it easier to do by using a simple example that I am comfortable to use :) Thanks in any case for your answer, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
how do I overcome the block? As you said in bash I run the ls process in background. How do I do that in Python? Thanks again for the help, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
k it is because there is not process that reads the content of the pipe, so the system waits for the pipe to be emptied. Thanks a lot in advance for the help in any case. Luca -- http://mail.python.org/mailman/listinfo/python-list

Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Luca Cerone
Popen and redirect stdout to fw... next open named_pipe for reading and giving it as input to cat (still using Popen). I know it is a simple (and rather stupid) example, but I can't manage to make it work.. How would you implement such simple scenario? Thanks a lot in advance for the help!!! Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Piping processes works with 'shell = True' but not otherwise.

2013-05-31 Thread Luca Cerone
> > That's because stdin/stdout/stderr take file descriptors or file > > objects, not path strings. > Thanks Chris, how do I set the file descriptor to /dev/null then? -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a file in /etc/ as a non-root user

2013-05-31 Thread Luca Cerone
> fd = open('/etc/file','w') > > fd.write('jpdas') > > fd.close() > > Hi Bibhu, that is not a Python problem, but a permission one. You should configure the permissions so that you have write access to the folder. However unless you know what you are doing it is discouraged to save your file i

Re: Piping processes works with 'shell = True' but not otherwise.

2013-05-27 Thread Luca Cerone
> > > Will it violate privacy / NDA to post the command line? Even if we > > can't actually replicate your system, we may be able to see something > > from the commands given. > > Unfortunately yes.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Piping processes works with 'shell = True' but not otherwise.

2013-05-26 Thread Luca Cerone
//plumbum.readthedocs.org/en/latest/ , which makes it easier to do > pipelining and other such "fancy" things with subprocesses, while still > avoiding the many perils of the shell. > > Thanks, I didn't know this library, I'll give it a try. Though I forgot to mention t

Re: Piping processes works with 'shell = True' but not otherwise.

2013-05-26 Thread Luca Cerone
> > Can you please help me understanding what's the difference between the two > cases? > Hi guys has some of you ideas on what is causing my issue? -- http://mail.python.org/mailman/listinfo/python-list

Piping processes works with 'shell = True' but not otherwise.

2013-05-24 Thread Luca Cerone
Can you please help me understanding what's the difference between the two cases? Thanks a lot in advance for the help, Cheers, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Transparent Proxy and Redirecting Sockets

2013-02-21 Thread Luca Bongiorni
2013/2/21 Rodrick Brown > On Thu, Feb 21, 2013 at 10:24 AM, Luca Bongiorni wrote: > >> Hi all, >> Around I have found plenty useful sources about TCP transparent proxies. >> However I am still missing how to make socket redirection. >> >> What I would li

Transparent Proxy and Redirecting Sockets

2013-02-21 Thread Luca Bongiorni
mply forwarding the data between A and B. Subsequently, when a parser catches the right pattern, the proxy quit the communication between A and B and redirect all the traffic to the host_C. I would be pleased if someone would suggest me some resources or hints. Thank you :) Cheers,

ping in bluetooth

2012-11-02 Thread Luca Sanna
hi, how do I send a ping in bluetooth? because android phones are not always visible. I can not find the ping command thanks -- http://mail.python.org/mailman/listinfo/python-list

calendar from python to html

2012-10-05 Thread Luca Sanna
hi, I enter a calendar in an html page in each calendar day, I enter a time that is used by the program to perform actions with python What can I use to do this? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: error bluetooth

2012-10-05 Thread Luca Sanna
Il giorno venerdì 5 ottobre 2012 13:33:14 UTC+2, Hans Mulder ha scritto: > On 5/10/12 10:51:42, Luca Sanna wrote: > > > > > from bluetooth import * > > > > [..] > > > > > luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetoo

error bluetooth

2012-10-05 Thread Luca Sanna
et_address is not None: print "found target bluetooth device with address", target_address else: print "could not find target bluetooth device nearby" the error luca@luca-XPS-M1330:~/py-temperature/py-temperature$ python bluetooth.py Traceback (most recent call last):

Re: DateTime object

2010-10-29 Thread Luca Bel
Take a look here: http://pypi.python.org/pypi/DateTime/ I always use this package only with Zope (it's an application server) If you are simply working in python maybe it's better to use datetime object. Hi. On Fri, Oct 29, 2010 at 1:15 PM, jf wrote: > Hi, > > I've a bug in my code and I'm tr

Re: Control webbrowser from Python script

2010-10-10 Thread luca
On Oct 9, 11:39 am, Johny wrote: > Is it possible to control any webbrowser from Python ? For example to > issue http POST and GET  command > Thanks > Johny I'm using funkload and it is awesome! http://funkload.nuxeo.org/ FunkLoad is a functional and load web tester, written in Python, whose ma

Re: Renaming identifiers & debugging

2010-02-26 Thread Luca
e the language in his own language but the computer will actually work with the standard-python file. Once i have this "ready" i can proceed to other steps and try to implement other ideas that i have (remember c-robots and p-robots?). Bye, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Renaming identifiers & debugging

2010-02-25 Thread Luca
is also a matter of users-target. If i am talking to a young kid i should use words and concepts that are easy for him/her to understand... so, for my target, it would be very important not only a correct translation in my language, but also the use of words and concepts that are familiar to a kid. Thanx, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Renaming identifiers & debugging

2010-02-25 Thread Luca
ecial-purpose application that only incorporates python as a library. Thanx, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Renaming identifiers & debugging

2010-02-25 Thread Luca
some tests with turtle-graphics and it seems to work. My next problem was to translate the language. http://img192.imageshack.us/img192/3093/zzz5.png [Btw... i took too much time to write this post so the ladybug fell asleep...] Thanx, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Renaming identifiers & debugging

2010-02-25 Thread Luca
Chris Rebert wrote: On Thu, Feb 25, 2010 at 7:26 AM, Luca wrote: Hello, i am trying to develop an application to teach programming to young kids in a similar way as Logo did in the past. I would like to use an embedded Python as underlying language but this raises a problem. The target of my

Renaming identifiers & debugging

2010-02-25 Thread Luca
ded python? Thank you, Luca -- http://mail.python.org/mailman/listinfo/python-list

Clustering technique

2009-12-22 Thread Luca
Dear all, excuse me if i post a simple question.. I am trying to find a software/algorythm that can "cluster" simple data on an excel sheet Example: Variable a Variable b Variable c Case 11 0 0 Case 20 1

Re: How to know if a file is a text file

2009-11-15 Thread Luca
On Sat, Nov 14, 2009 at 6:51 PM, Philip Semanchuk wrote: > Hi Luca, > You have to define what you mean by "text" file. It might seem obvious, but > it's not. > > Do you mean just ASCII text? Or will you accept Unicode too? Unicode text > can be more difficult to

How to know if a file is a text file

2009-11-14 Thread Luca Fabbri
Hi all. I'm looking for a way to be able to load a generic file from the system and understand if he is plain text. The mimetype module has some nice methods, but for example it's not working for file without extension. Any suggestion? -- -- luca -- http://mail.python.org/mailma

Re: Need help for my system python

2009-11-08 Thread Luca Fabbri
SOLVED. For some reason a "zope" directory were inside my site-packages folder, so the zope.interface egg was not visible... On Sun, Nov 8, 2009 at 4:57 PM, Luca Fabbri wrote: > Hi all. > > I've recently updated my system to the last Kubuntu 9.10. > > On my syst

Need help for my system python

2009-11-08 Thread Luca Fabbri
problem. Where I can look at for solving this? -- -- luca -- http://mail.python.org/mailman/listinfo/python-list

Cannot upload a good egg on pypi

2009-10-13 Thread Luca Fabbri
xed (related to the SVN version used). But I continue to have problems. I'm using setuptools 0.6c9 and SVN 1.6.2 on my MacOS. -- -- luca -- http://mail.python.org/mailman/listinfo/python-list

Pool module -- does map pre-assign tasks to processes?

2009-09-28 Thread Luca
l pre-assign which task gets done by each process, or is this done at runtime, on a get-first- task-to-be-done basis? Many thanks, Luca -- http://mail.python.org/mailman/listinfo/python-list

Re: python and openSSL

2009-09-10 Thread Luca Bel
te is used. I can simply extract the contents of p7m and save it on fs. And the extracted file is perfect. following this how to, seems that a certificate is always needed, and I don't have it. can someone help me? On Thu, Sep 10, 2009 at 3:56 AM, wrote: > On 9 Sep, 01:30 pm, luca...@gm

python and openSSL

2009-09-09 Thread Luca Bel
Hi all. I need a trick to do something like this: openssl smime -decrypt -verify -inform DER -in ReadmeDiKe.pdf.p7m -noverify -out ReadmeDike.pdf To unwrap a p7m file and read his content. I know that I could use somthing like: >>> import os >>> os.system('openssl ') but i would use a pyth

Re: Read a content file from a P7M

2009-08-28 Thread Luca
On Fri, Mar 20, 2009 at 4:12 PM, Emanuele Rocca wrote: > On 11/03/09 - 05:05, Luca wrote: >> There is standard or sugested way in python to read the content of a P7M >> file? >> >> I don't need no feature like verify sign, or sign using a certificate. >> I on

Re: raw_input with a pre-compiled data

2009-06-22 Thread Luca
hn") > Thanks! It works! This is working on Linux and MacOS too. > The readline module is specific to Unix implementations. > I don't know what OS the OP was using. Any one knows is this working also on Windows? I've no Win system right no to test this... -- -- luca -- http://mail.python.org/mailman/listinfo/python-list

Re: raw_input with a pre-compiled data

2009-06-21 Thread Luca
On Sat, Jun 20, 2009 at 6:38 PM, Chris Rebert wrote: > On Sat, Jun 20, 2009 at 7:17 AM, Luca wrote: >> Hi all. >> >> I need to use a function like the raw_input to read data from user >> command line, but I really like to pre-compile the choice and I'm not >>

raw_input with a pre-compiled data

2009-06-20 Thread Luca
path. -- -- luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Wiki syntax available when publishing on pypi

2009-03-25 Thread Luca
cribed there (i know i had a small problem with > some detail being inconsistent with that convention used in sphinx). It works! Thanks you! -- -- luca -- http://mail.python.org/mailman/listinfo/python-list

Wiki syntax available when publishing on pypi

2009-03-24 Thread Luca
text, but I don't remember how. There is a official refence about this? -- -- luca -- http://mail.python.org/mailman/listinfo/python-list

Re: Read a content file from a P7M

2009-03-12 Thread Luca
On Wed, Mar 11, 2009 at 5:05 PM, Luca wrote: > There is standard or sugested way in python to read the content of a P7M file? > > I don't need no feature like verify sign, or sign using a certificate. > I only need to extract the content file of the p7m (a doc, a pdf, ...) I&

Read a content file from a P7M

2009-03-11 Thread Luca
Hi all. There is standard or sugested way in python to read the content of a P7M file? I don't need no feature like verify sign, or sign using a certificate. I only need to extract the content file of the p7m (a doc, a pdf, ...) Thanks! -- -- luca -- http://mail.python.org/mailman/lis

web services ssl client

2008-11-28 Thread Luca Tebaldi
Hi, should I build a client for web services that require authentication based on a ca (pem and crt), I'm trying to use soappy but not work... someone have any idea or can tell me where to find a tutorial? tnx a lot! Luca -- skype:luca.tebaldi bookmark: http://del.icio.us/lucatebaldi

  1   2   >