Fw: Context

2017-02-03 Thread Antonio
From: Antonio Sent: Friday, February 3, 2017 1:02 PM To: python-list@python.org Subject: Context I have python version 3.6.0 installed into my desktop)windows 7) but the menu/context (file,edit..etc) is missing. How to fix this problem? Thanks Antonio

Passing every element of a list as argument to a function

2011-08-09 Thread Antonio Vera
p(l)) will give the sequence of elements of l as arguments to f? Thanks for your time. Best, Antonio -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access elemenst in a list of lists?

2011-05-09 Thread Antonio CHESSA
Just learning python. I can see that I can address an individual element of a list of lists by doing something like: row = list[5] element = row[3] But is there a way to directly address an entry in a single statement? Thanks for any help. Regards Chris Roy-Smith suppose you have a list like th

[Poll] Frameworks for Web Development

2004-12-29 Thread Antonio Cangiano
Dear all, I want to propose a small "poll" about frameworks & tools that you use to develop web applications in Python. I think it would be interesting if you could list your favourite tools as well as explain the reasons for your choice.   Thanks in advance, Antonio--My pr

Hello. I'm new here...

2014-07-11 Thread Antonio Dalvit
Hello! Im Antonio, from Italy. I'm new here and i'd like to introduce myself: i'm learning python language after years working in ICT sector. I decided to study python after fortran basic, c++, java and php for fun and because i'm tired to spend lines and lines of co

Re: non-blocking PIPE read on Windows

2006-07-29 Thread Antonio Valentino
p://sourceforge.net/projects/bestgui - the subprocess2.py module realizes the non blocking I/O - the outputparser.py module processes the output from the controlled process and updates the progress-bar, the status-bar and the log messages in the GUI. Incomplete lines are stored in a buffer and proce

Re: How to Machine A python script execute Machine B python script?

2007-07-11 Thread Antonio Cuni
johnny wrote: > Anyone know how I can make Machine A python script execute a python > script on Machine B ? have a look to py.execnet; in the simplest case, it does not need any special setup on machine B, just a working ssh server and a python interpreter installed: http://codespeak.net/py/dis

webbrowser

2007-11-13 Thread Antonio Ceballos
displayed on the browser. The (simplified) piece of code is as follows: import webbrowser webbrowser.open_new(http://www.google.com) The server runs python 2.3. I am using python 2.5 in my localhost. Can anybody figure out why this may be happening? Cheers, Antonio -- http://mail.python.org

Re: webbrowser

2007-11-14 Thread Antonio Ceballos
Dennis, Cameron, You are absolutely right. I was not aware that the cgi was trying to open the new browser on the server -I am a beginner with cgi, python and javascript. This simple javascript does the job perfectly: window.open("http://www.google.com";); Thanks a lot, Antonio

char string 2 hex string

2008-01-31 Thread Antonio Chay
Hello! I need to transform a string from a file into a hexadecimal representation, for example: "AAA" should be "414141" With perl I do this with: unpack("H*","AAA") And with python I got this: "".join([str(hex(ord(x)))[2:] for x in "AAA"]) But seems a little "weird" for me. Is there anothe

Re: char string 2 hex string

2008-02-01 Thread Antonio Chay
On Jan 31, 7:09 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > Antonio Chay <[EMAIL PROTECTED]> writes: > > "AAA" should be "414141" > > 'AAA'.encode('hex') 8-O Cool stuff! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

[PyQt4] QTableWidget non editable

2008-06-22 Thread Antonio Valentino
Ciao a tutti, ho un QTableWidget che ho reso non editabile settando editTriggers a NoEditTriggers. Il problema è che adesso non posso selezionare una cela e copiarne il contenuto nella clipboard. Come posso risolvere il problema? Grazie in anticipo antonio -- http://mail.python.org/mailman

Re: QTableWidget non editable

2008-06-22 Thread Antonio Valentino
On 22 Giu, 17:11, Antonio Valentino <[EMAIL PROTECTED]> wrote: > Ciao a tutti, > ho un QTableWidget che ho reso non editabile settando editTriggers a > NoEditTriggers. > > Il problema è che adesso non posso selezionare una cela e copiarne il > contenuto nella clipboard. >

Are you happy with the current web deployment options?

2009-11-21 Thread Antonio Cangiano
read their Ruby-oriented blog, so I thought I'd share the link here: http://izumi.plan99.net/blog/index.php/2009/11/21/phusion-passenger-for-python/ Cheers, Antonio -- http://ThinkCode.TV - High-quality programming screencasts http://antoniocangiano.com - Zen and the Art of Programming Follow

Fitness data program

2011-01-15 Thread Antonio Cardenes
n the right path (modules and such), thanks. Antonio Cardenes -- http://mail.python.org/mailman/listinfo/python-list

Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
Hello, I am having a hard time deciding what IDE or IDE-like code editor should I use. This can be overwhelming. So far, I have used Vim, Sublime, Atom, Eclipse with PyDev, Pycharm, IntelliJ with Python plugin. The thing with the from-the-scratch full featured IDEs (Eclipse, IntelliJ, Pycharm

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
On Monday, January 2, 2017 at 8:24:29 AM UTC-8, Michael Torrie wrote: > On 01/02/2017 04:38 AM, Antonio Caminero Garcia wrote: > > The problem with Vim is the learning curve, so I know the very basic > > stuff, but obviously not enough for coding and I do not have time to > &

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
On Monday, January 2, 2017 at 5:57:51 PM UTC-8, Steve D'Aprano wrote: > On Mon, 2 Jan 2017 10:38 pm, Antonio Caminero Garcia wrote: > > > Hello, I am having a hard time deciding what IDE or IDE-like code editor > > should I use. This can be overwhelming. > >

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Antonio Caminero Garcia
Guys really thank you for your answers. Basically now I am more emphasizing in learning in depth a tool and get stick to it so I can get a fast workflow. Eventually I will learn Vim and its python developing setup, I know people who have been programming using Vim for almost 20 years and they di

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-03 Thread Antonio Caminero Garcia
On Tuesday, January 3, 2017 at 4:12:34 PM UTC-8, Dietmar Schwertberger wrote: > On 02.01.2017 12:38, Antonio Caminero Garcia wrote: > You did not try Wing IDE? It looks less like a spacecraft. Maybe you > like it. > Maybe the difference is that Wing is from Python people while the

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Tuesday, January 3, 2017 at 4:12:34 PM UTC-8, Dietmar Schwertberger wrote: > On 02.01.2017 12:38, Antonio Caminero Garcia wrote: > You did not try Wing IDE? It looks less like a spacecraft. Maybe you > like it. > Maybe the difference is that Wing is from Python people while th

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-06 Thread Antonio Caminero Garcia
On Thursday, January 5, 2017 at 12:32:19 PM UTC-8, fpp wrote: > > On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark > > wrote: > >> I want an IDE that I can use at work and home, linux and dare I say > >> windows. > >> Sublime, had to remove it from my work PC as it is not licensed. > >> Atom, loved i

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-06 Thread Antonio Caminero Garcia
On Thursday, January 5, 2017 at 9:51:17 AM UTC-8, ArnoB wrote: > On 02-01-17 12:38, Antonio Caminero Garcia wrote: > > Hello, I am having a hard time deciding what IDE or IDE-like code editor > > should I use. This can be overwhelming. > > > > So far, I have used Vim,

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-06 Thread Antonio Caminero Garcia
On Wednesday, January 4, 2017 at 1:10:04 PM UTC-8, Dietmar Schwertberger wrote: > On 04.01.2017 07:54, Antonio Caminero Garcia wrote: > > Unfortunately most of the time I am still using print and input functions. > > I know that sucks, I did not use the pdb module, I guess tha

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Thursday, January 5, 2017 at 9:51:17 AM UTC-8, ArnoB wrote: > On 02-01-17 12:38, Antonio Caminero Garcia wrote: > > Hello, I am having a hard time deciding what IDE or IDE-like code editor should I use. This can be overwhelming. > > > > So far, I have used Vim, Sublime, Ato

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Thursday, January 5, 2017 at 12:32:19 PM UTC-8, fpp wrote: > > On Thu, Jan 5, 2017 at 12:12 PM, Chris Clark > > wrote: > >> I want an IDE that I can use at work and home, linux and dare I say > >> windows. > >> Sublime, had to remove it from my work PC as it is not licensed. > >> Atom, loved it

Re: Choosing a Python IDE. what is your Pythonish recommendation? I

2017-01-06 Thread Antonio Caminero Garcia
On Wednesday, January 4, 2017 at 1:10:04 PM UTC-8, Dietmar Schwertberger wrote: > On 04.01.2017 07:54, Antonio Caminero Garcia wrote: > > Unfortunately most of the time I am still using print and input functions. I know that sucks, I did not use the pdb module, I guess that IDE debuggers

Re: Search a sequence for its minimum and stop as soon as the lowest possible value is found

2017-01-08 Thread Antonio Caminero Garcia
On Friday, January 6, 2017 at 6:04:33 AM UTC-8, Peter Otten wrote: > Example: you are looking for the minimum absolute value in a series of > integers. As soon as you encounter the first 0 it's unnecessary extra work > to check the remaining values, but the builtin min() will continue. > > The s

Re: Temporary variables in list comprehensions

2017-01-09 Thread Antonio Caminero Garcia
On Sunday, January 8, 2017 at 7:53:37 PM UTC-8, Steven D'Aprano wrote: > Suppose you have an expensive calculation that gets used two or more times in > a > loop. The obvious way to avoid calculating it twice in an ordinary loop is > with > a temporary variable: > > result = [] > for x in data

Re: repeat items in a list

2016-03-29 Thread Antonio Caminero Garcia
On Monday, March 28, 2016 at 11:26:08 PM UTC+2, Chris Angelico wrote: > On Tue, Mar 29, 2016 at 4:30 AM, Rob Gaddi > wrote: > > beliav...@aol.com wrote: > > > >> On Saturday, March 26, 2016 at 7:24:10 PM UTC-4, Erik wrote: > >>> > >>> Or, if you want to "import operator" first, you can use 'operat

Re: repeat items in a list

2016-03-27 Thread Antonio Caminero Garcia
On Saturday, March 26, 2016 at 11:12:58 PM UTC+1, beli...@aol.com wrote: > I can create a list that has repeated elements of another list as follows: > > xx = ["a","b"] > nrep = 3 > print xx > yy = [] > for aa in xx: > for i in range(nrep): > yy.append(aa) > print yy > > output: > ['a

Re: repeat items in a list

2016-03-27 Thread Antonio Caminero Garcia
On Sunday, March 27, 2016 at 10:02:44 AM UTC+2, Antonio Caminero Garcia wrote: > On Saturday, March 26, 2016 at 11:12:58 PM UTC+1, beli...@aol.com wrote: > > I can create a list that has repeated elements of another list as follows: > > > > xx = ["a","

Re: repeat items in a list

2016-03-27 Thread Antonio Caminero Garcia
On Sunday, March 27, 2016 at 11:52:22 AM UTC+2, larudwer wrote: > how about > > sorted(["a", "b"]*3) > ['a', 'a', 'a', 'b', 'b', 'b'] that's cooler, less efficient though and do not maintain the original order. In case such order was important, you should proceed as follows: If the elemen

Unimporting modules, memory leak?

2006-06-13 Thread Antonio Arauzo Azofra
ith each module imported/unimported Is this a Python bug? A Linux bug? Am i missing some way of freeing that memory used by C module? [1] http://mail.python.org/pipermail/python-list/1999-May/002669.html [2] http://ax5.com/antonio/orangesnns -- Saludos, Antonio Arauzo Azofra def funcion_de_prueb

Unimporting modules, memory leak?

2006-06-14 Thread Antonio Arauzo Azofra
grows with each module imported/unimported Is this a Python bug? A Linux bug? Am i missing some way of freeing that memory used by C module? [1] http://mail.python.org/pipermail/python-list/1999-May/002669.html [2] http://ax5.com/antonio/orangesnns PD. If I attach the files the message does n

Unimporting modules, memory leak?

2006-06-16 Thread Antonio Arauzo Azofra
ith each module imported/unimported Is this a Python bug? A Linux bug? Am i missing some way of freeing that memory used by C module? [1] http://mail.python.org/pipermail/python-list/1999-May/002669.html [2] http://ax5.com/antonio/orangesnns -- All the best, Antonio Arauzo Azofra def funcio

Re: finding monitor or screen resolution in Linux with standard python module

2007-03-07 Thread José Antonio Salazar Montenegro
I'm using Beryl too, and xwininfo -root gives te correct resolution. akbar wrote: > I googled and searched in archive. All I can find is finding > resolution with Tkinter and pygame. Any idea to find monitor > resolution with standard python module? > I can check from output of: xprop -root > _NET

Re: Auto execute python in USB flash disk

2007-03-27 Thread José Antonio Salazar Montenegro
I suspect he wants to do this just for the kicks. Just for completion, Truecrypt does precisely what you need. It has to be installed, but you could carry the installer unencrypted in the same USB drive. Larry Bates wrote: Brian Erhard wrote: I am still fairly new to python and

Re: Microsoft's challenger to Python

2008-02-07 Thread José Antonio Salazar Montenegro
All the touted features and the integration with .Net and the friendly Visual Studio IDE will make it a fearsome adversary. And the name clearly suggests where it intends to harvest converts. Interesting times ahead. On 02/07/2008 06:07 PM, Peter Dilley wrote: Looks like Microsoft has a langu

Python 2.7

2010-11-08 Thread Antonio de Haro Millan
I can not install "*Python Imaging Library 1.1.7 for Python 2.6* (Windows only)" because I have the *Python 2.7. *A solution please... _______ Antonio de Haro Millan www.de-haro.es Tf.34.639.972.872 -- http://mail.python.org/mailman/listinfo/python-list

subprocess: TTYs and preexec_fn

2023-09-17 Thread Antonio Russo via Python-list
? I do plan to use threads and locks. 3. Does this seem widely useful enough to be worth trying to get into Python itself? It would be nice if this specific behavior, which probably has even more nuances than I already am aware of, were safely achievable out of the box. Best, Antonio -- https://mail.python.org/mailman/listinfo/python-list