Re: Python with text editor

2020-06-04 Thread Mats Wichmann
On 5/30/20 1:42 AM, Preetha M wrote: > Hello. Thank you for responding to my previous mail. Can someone tell me > how to connect python to sublime text 3. Whenever I select python and type > the code, it does not work when I press ctrl+B. Please tell. > Try Corey Schaefer's video on setup: (sear

Re: Python with text editor

2020-05-30 Thread DL Neil via Python-list
On 30/05/20 7:42 PM, Preetha M wrote: Hello. Thank you for responding to my previous mail. Can someone tell me how to connect python to sublime text 3. Whenever I select python and type the code, it does not work when I press ctrl+B. Please tell. ST is an editor/IDE which is not Python-specifi

Re: Python with PyDev on Visual Studio Code

2018-02-19 Thread Fabio Zadrozny
Sorry, it was a glitch on the template when moved to another folder (just fixed). On Mon, Feb 19, 2018 at 10:08 AM, ElChino wrote: > Fabio Zadrozny wrote: > > See: http://www.pydev.org/vscode/ for more information! >> > > That page includes so many dead links that it looks > like a joke. > -- >

Re: Python with PyDev on Visual Studio Code

2018-02-19 Thread ElChino
Fabio Zadrozny wrote: See: http://www.pydev.org/vscode/ for more information! That page includes so many dead links that it looks like a joke. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python with 3d cartoon

2014-01-26 Thread Tim Chase
On 2014-01-26 02:46, ngangsia akumbo wrote: > Is it possible to write cartoon with 3D images using python? > > If yes , please locate me some resources. thank Check out Blender which can be scripted using Python. -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: Python with 3d cartoon

2014-01-26 Thread ngangsia akumbo
On Sunday, January 26, 2014 11:55:34 AM UTC+1, Mark Lawrence wrote: > On 26/01/2014 10:46, ngangsia akumbo wrote: > > > > What have you done to locate resources for yourself? I have searched but not found something very clear. That is why i asked. -- https://mail.python.org/mailman/listinfo/p

Re: Python with 3d cartoon

2014-01-26 Thread Mark Lawrence
On 26/01/2014 10:46, ngangsia akumbo wrote: Is it possible to write cartoon with 3D images using python? If yes , please locate me some resources. thank What have you done to locate resources for yourself? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can

Re: Python with Apache

2013-04-15 Thread MRAB
On 16/04/2013 03:02, Renato Barbosa Pim Pereira wrote: I am trying to execute cgi101.py: #!/usr/bin/python import cgi form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n')# hdr plus blank line print('Reply Page')# html reply page if not

Re: python with xl

2012-06-11 Thread Karim
Le 11/06/2012 16:12, chebrian a écrit : Hi, How to append the list of data in individual column of XL file, every time from python script . In standard lib => module csv (ascii comma separated values) In non standard => binary xl => module xlrd for reading and module xlwt for writing (http:/

Re: python with echo

2009-11-12 Thread MRAB
Steven D'Aprano wrote: On Thu, 12 Nov 2009 19:30:01 +, MRAB wrote: I don't understand that. Exit status codes on all systems I'm familiar with are limited to 0 through 255. What operating system are you using? Assuming your system allows two-byte exit statuses, you should check the documen

Re: python with echo

2009-11-12 Thread Steven D'Aprano
On Thu, 12 Nov 2009 19:30:01 +, MRAB wrote: >> I don't understand that. Exit status codes on all systems I'm familiar >> with are limited to 0 through 255. What operating system are you using? >> >> Assuming your system allows two-byte exit statuses, you should check >> the documentation for

Re: python with echo

2009-11-12 Thread Christian Heimes
Diez B. Roggisch wrote: > with open("/sys/class/net/wlan1/device/tx_power", "w") as f: > f.write("%i" % POWER) IIRC the sys and proc virtual file system requires new line at the end of a modifier. At least echo appends \n unless it's told otherwise. Christian -- http://mail.python.org/mail

Re: python with echo

2009-11-12 Thread Hans Mulder
Steven D'Aprano wrote: On Wed, 11 Nov 2009 17:24:37 -0800, hong zhang wrote: List, I have a question of python using echo. POWER = 14 return_value = os.system('echo 14 > /sys/class/net/wlan1/device/tx_power') can assign 14 to tx_power But return_value = os.system('echo $POWER > /sys/class/n

Re: python with echo

2009-11-12 Thread MRAB
Steven D'Aprano wrote: On Wed, 11 Nov 2009 17:24:37 -0800, hong zhang wrote: List, I have a question of python using echo. POWER = 14 return_value = os.system('echo 14 > /sys/class/net/wlan1/device/tx_power') can assign 14 to tx_power But return_value = os.system('echo $POWER > /sys/class/n

Re: python with echo

2009-11-12 Thread Diez B. Roggisch
hong zhang schrieb: List, I have a question of python using echo. POWER = 14 return_value = os.system('echo 14 > /sys/class/net/wlan1/device/tx_power') can assign 14 to tx_power But return_value = os.system('echo $POWER > /sys/class/net/wlan1/device/tx_power') return_value is 256 not 0. It

Re: python with echo

2009-11-11 Thread Steven D'Aprano
On Wed, 11 Nov 2009 17:24:37 -0800, hong zhang wrote: > List, > > I have a question of python using echo. > > POWER = 14 > return_value = os.system('echo 14 > > /sys/class/net/wlan1/device/tx_power') > > can assign 14 to tx_power > > But > return_value = os.system('echo $POWER > > /sys/class/n

Re: python with echo

2009-11-11 Thread MRAB
hong zhang wrote: List, I have a question of python using echo. POWER = 14 return_value = os.system('echo 14 > /sys/class/net/wlan1/device/tx_power') can assign 14 to tx_power But return_value = os.system('echo $POWER > /sys/class/net/wlan1/device/tx_power') return_value is 256 not 0. It c

Re: python with echo

2009-11-11 Thread Himanshu
2009/11/12 hong zhang : > List, > > I have a question of python using echo. > > POWER = 14 > return_value = os.system('echo 14 > /sys/class/net/wlan1/device/tx_power') > > can assign 14 to tx_power > > But > return_value = os.system('echo $POWER > /sys/class/net/wlan1/device/tx_power') > > return_v

Re: Python with PyGIL_Ensure?

2008-12-25 Thread googler . 1 . webmaster
and merry christmas :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python with Ecmascript

2008-07-11 Thread Daniel Fetchinson
>>>NJSModule? >>>http://en.wikipedia.org/wiki/NJS > >> This seems to be very good indeed. Just downloaded njs but the only >> njsmodule version I could find was for python 2.1. Does anyone have a >> recent copy? > > 1. You might ask here: > http://lists.njs-javascript.org/cgi-bin/mailman/listinfo/u

Re: Python with Ecmascript

2008-07-11 Thread Alan Isaac
NJSModule? http://en.wikipedia.org/wiki/NJS Daniel Fetchinson wrote: This seems to be very good indeed. Just downloaded njs but the only njsmodule version I could find was for python 2.1. Does anyone have a recent copy? 1. You might ask here: http://lists.njs-javascript.org/cgi-bin/mailman/

Re: Python with Ecmascript

2008-07-10 Thread Daniel Fetchinson
>> Is there a way to do similar things on linux? > > NJSModule? > http://en.wikipedia.org/wiki/NJS This seems to be very good indeed. Just downloaded njs but the only njsmodule version I could find was for python 2.1. Does anyone have a recent copy? Cheers, Daniel -- Psss, psss, put it down! - h

Re: Python with Ecmascript

2008-07-10 Thread Alan Isaac
Daniel Fetchinson wrote: Is there a way to do similar things on linux? NJSModule? http://en.wikipedia.org/wiki/NJS Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Python with Ecmascript

2008-07-07 Thread sysprv
On Jul 7, 9:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 7 Èec, 08:21, alex23 <[EMAIL PROTECTED]> wrote: > > > On Jul 7, 12:31 am, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > I personally does not like COM solution. I prefer some simple library > > > but may be it is

Re: Python with Ecmascript

2008-07-07 Thread [EMAIL PROTECTED]
On 7 Čec, 08:21, alex23 <[EMAIL PROTECTED]> wrote: > On Jul 7, 12:31 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > I personally does not like COM solution. I prefer some simple library > > but may be it is just a hope. > > Have you looked at the module 'python-spidermonkey'? It appare

Re: Python with Ecmascript

2008-07-06 Thread alex23
On Jul 7, 12:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I personally does not like COM solution. I prefer some simple library > but may be it is just a hope. Have you looked at the module 'python-spidermonkey'? It apparently "allows for the implementation of Javascript classes, objec

Re: Python with Ecmascript

2008-07-06 Thread [EMAIL PROTECTED]
On 6 Čec, 07:02, Tim Roberts <[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >for my Python application (Windows platform) to be standards > >compliant, I need to embbed Ecmascript(Javascript) interpreter - I > >need to execute plugins written in this language. > >

Re: Python with Ecmascript

2008-07-06 Thread Daniel Fetchinson
>> Is there a way to do similar things on linux? > > I think no. Because these tech use COM. And COM don't exist under xxnux. > But: > - look if XPCOM, or dBus) can help you > - search with the word "MOZLAB", who work a solution (plugin) for > drive Firefox, from an external software. Wow, moz

Re: Python with Ecmascript

2008-07-05 Thread M�ta-MCI (MVP)
Hi! Is there a way to do similar things on linux? I think no. Because these tech use COM. And COM don't exist under xxnux. But: - look if XPCOM, or dBus) can help you - search with the word "MOZLAB", who work a solution (plugin) for drive Firefox, from an external software. Good luck! --

Re: Python with Ecmascript

2008-07-05 Thread Tim Roberts
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >for my Python application (Windows platform) to be standards >compliant, I need to embbed Ecmascript(Javascript) interpreter - I >need to execute plugins written in this language. What standard are you hoping to comply with? I mean, what kind of a

Re: Python with Ecmascript

2008-07-05 Thread Daniel Fetchinson
> Ecmascript (Jscript) is Active-Scripting compliant. > With PyWin32, you can : > - call JScript functions (with parameters) > - define pieces of code (& run it) > > Another way, is to drive Internet-Explorer (via COM). You can set the > IE-Windows as invisible, and connect the motor of exe

Re: Python with Ecmascript

2008-07-05 Thread M�ta-MCI (MVP)
Hi! Ecmascript (Jscript) is Active-Scripting compliant. With PyWin32, you can : - call JScript functions (with parameters) - define pieces of code (& run it) Another way, is to drive Internet-Explorer (via COM). You can set the IE-Windows as invisible, and connect the motor of execution (

Re: Python with Ecmascript

2008-07-05 Thread Phil Thompson
On Sat, 5 Jul 2008 06:28:42 -0700 (PDT), "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > for my Python application (Windows platform) to be standards > compliant, I need to embbed Ecmascript(Javascript) interpreter - I > need to execute plugins written in this language. Which engine is

Re: python with braces pre-processor

2007-10-22 Thread Paul Brauner
Le Mon, 22 Oct 2007 05:00:02 -0700, Ant a écrit : > On Oct 22, 10:58 am, Paul Brauner <[EMAIL PROTECTED]> wrote: >> I'll look at that. Thanks a lot ! > > I've just had a look, it's the pindent.py script in Tools/Scripts (at > least it is on Windows). It takes code of the following form: > > def

Re: python with braces pre-processor

2007-10-22 Thread Jean-Paul Calderone
On Mon, 22 Oct 2007 09:44:27 + (UTC), Paul Brauner <[EMAIL PROTECTED]> wrote: > [snip] > I thought that it must exists because everyone generating python code will >encounter more or less the same problem, but I didn't find any 'official' >thing on the subject. I expect many projects which em

Re: python with braces pre-processor

2007-10-22 Thread Ant
On Oct 22, 10:58 am, Paul Brauner <[EMAIL PROTECTED]> wrote: > I'll look at that. Thanks a lot ! I've just had a look, it's the pindent.py script in Tools/Scripts (at least it is on Windows). It takes code of the following form: def foobar(a, b): if a == b: a = a+1 elif a < b:

Re: python with braces pre-processor

2007-10-22 Thread Marc 'BlackJack' Rintsch
On Mon, 22 Oct 2007 09:44:27 +, Paul Brauner wrote: > Hi, I'm working on a project that outputs several languages including > (hopefully) python. My problem is that the generic backend architecture > has not been designed to output correctly indented code, and that would > be helpful if the

Re: python with braces pre-processor

2007-10-22 Thread Paul Brauner
I'll look at that. Thanks a lot ! -- http://mail.python.org/mailman/listinfo/python-list

Re: python with braces pre-processor

2007-10-22 Thread Ant
On Oct 22, 10:44 am, Paul Brauner <[EMAIL PROTECTED]> wrote: > Hi, I'm working on a project that outputs several languages including > (hopefully) python. My problem is that the generic backend architecture > has not been designed to output correctly indented code, and that would > be helpful if th

Re: Python "with"

2007-09-17 Thread Nigel Rowe
On Tue, 18 Sep 2007 00:26, Grant Edwards wrote in comp.lang.python <<[EMAIL PROTECTED]>>: > On 2007-09-17, Laurent Pointal <[EMAIL PROTECTED]> wrote: > >> Note3: Its funny to see how Python users tries to change the language, >> does this occure with C, C++, Java, C# ? > > Yes. I remember some

Re: Python "with"

2007-09-17 Thread Colin J. Williams
Ivan Voras wrote: > Hi, > > I'm looking for a construct that's similar to (Turbo) Pascal's "with" > statement. I read about the Python's new "with" statement, but I was > dissapointed to learn that it does something different (I still don't > see how it's better than try..except..finally, but that

Re: Python "with"

2007-09-17 Thread Bruno Desthuilliers
Laurent Pointal a écrit : (snip) > Note3: Its funny to see how Python users tries to change the language, s/Python users/some new Python users/, IMHO. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "with"

2007-09-17 Thread Bruno Desthuilliers
Grant Edwards a écrit : > On 2007-09-17, Laurent Pointal <[EMAIL PROTECTED]> wrote: > >> Note3: Its funny to see how Python users tries to change the language, >> does this occure with C, C++, Java, C# ? > > Yes. I remember somebody I worked with once who write a C > program using a whole pile

Re: Python "with"

2007-09-17 Thread Grant Edwards
On 2007-09-17, Laurent Pointal <[EMAIL PROTECTED]> wrote: > Note3: Its funny to see how Python users tries to change the language, > does this occure with C, C++, Java, C# ? Yes. I remember somebody I worked with once who write a C program using a whole pile of macros to make it look like BASIC

Re: Python "with"

2007-09-17 Thread Laurent Pointal
Ivan Voras a écrit : > Laurent Pointal wrote: > >> The ugly part is the 'tmp' name, try to choose a name with a proper >> meaning about what it is really, and it become clean and readable: >> >> filerefs = some.big.structure.or.nested.object.with.file.references >> filerefs.encoding = "utf-8" >>

Re: Python "with"

2007-09-17 Thread Peter Otten
Ivan Voras wrote: > Well, no, but this might be due to personal tastes. At least, I don't > think it's better then some other alternatives. For example, in C99 you > can do: > > static struct option_s foo_option = { > .name = "foo", > .type = O_STRING, > .def_value = "default" > };

Re: Python "with"

2007-09-17 Thread J. Cliff Dyer
Ivan Voras wrote: > Laurent Pointal wrote: > >> The ugly part is the 'tmp' name, try to choose a name with a proper >> meaning about what it is really, and it become clean and readable: >> >> filerefs = some.big.structure.or.nested.object.with.file.references >> filerefs.encoding = "utf-8" >> filer

Re: Python "with"

2007-09-17 Thread Ivan Voras
Laurent Pointal wrote: The ugly part is the 'tmp' name, try to choose a name with a proper meaning about what it is really, and it become clean and readable: filerefs = some.big.structure.or.nested.object.with.file.references filerefs.encoding = "utf-8" filerefs.name = "MyFileName.txt" fileref

Re: Python "with"

2007-09-17 Thread Laurent Pointal
Ivan Voras a écrit : > I know it can be almost always done by using a temporary variable: > > tmp = some.big.structure.or.nested.objects.element > tmp.member1 = something > tmp.member2 = something > > but this looks ugly to me.) The ugly part is the 'tmp' name, try to choose a name with a prope

Re: Python "with"

2007-09-16 Thread Dustan
On Sep 16, 3:07 pm, Ivan Voras <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for a construct that's similar to (Turbo) Pascal's "with" > statement. I read about the Python's new "with" statement, but I was > dissapointed to learn that it does something different (I still don't > see how it's bet

Re: Python "with"

2007-09-16 Thread Ben Finney
Ivan Voras <[EMAIL PROTECTED]> writes: > I know it can be almost always done by using a temporary variable: > > tmp = some.big.structure.or.nested.objects.element > tmp.member1 = something > tmp.member2 = something > > but this looks ugly to me.) To me, it looks explicit. Python programmers val

Re: Python "with"

2007-09-16 Thread Bjoern Schliessmann
Ivan Voras wrote: > I'm looking for a construct that's similar to (Turbo) Pascal's > "with" statement. Please have a look at the archives -- this is discussed here from time to time. I think last time it was a Visual BASIC fan that asked a similar question. > I know it can be almost always done

Re: Python "with"

2007-09-16 Thread J. Cliff Dyer
Ivan Voras wrote: > Hi, > > I'm looking for a construct that's similar to (Turbo) Pascal's "with" > statement. I read about the Python's new "with" statement, but I was > dissapointed to learn that it does something different (I still don't > see how it's better than try..except..finally, but that'

Re: Python with MPI enable C-module

2006-10-21 Thread [EMAIL PROTECTED]
Mitko, Thank you for your response. You understand the problem correctly. The Python module uses MPI calls in its implementation. The idea of the project is to create an abstraction for a distributed memory computer. In doing so, the user is mostly isolated from a need to understand and use MPI c

Re: Python with MPI enable C-module

2006-10-20 Thread Mitko Haralanov
On 19 Oct 2006 06:51:00 -0700 "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 1) Would setting up an environment like this require modifying the > Python interpreter or the C++ module that is being wrapped? What I'm > hoping is that the C++ module can go on happily doing MPI operations > despite

Re: Python with DyBase

2006-07-27 Thread John Machin
Asem Eltaher wrote: > Dear users, > I use Python version 2.4.3 and DyBase Object Oriented Database. These > are the first three lines in my program: > > import os > import sys > import dybase > > I usually get the error message: ImportError: DLL load failed. Kindly > be informed that I have in t

Re: Python with Eclipse

2006-06-20 Thread Philippe Martin
Dennis Benzinger wrote: > Philippe Martin wrote: >> Dennis Benzinger wrote: >> >>> Stan Cook wrote: I've been trying to use Eclipse with Python on Linux for a while and have noticed something odd. After running the code or debugging a few times, its responsiveness gets really bad.

Re: Python with Eclipse

2006-06-20 Thread Stan Cook
Jason wrote: > PyDev Eclipse keeps around the python interpreter unless it gets > removed. I think part of the point is to keep around failed runs so > the user can investigate the stack. Eclipse doesn't keep this around > if you Run you script, but it will keep the interpreter alive if you > Deb

Re: Python with Eclipse

2006-06-20 Thread Jason
PyDev Eclipse keeps around the python interpreter unless it gets removed. I think part of the point is to keep around failed runs so the user can investigate the stack. Eclipse doesn't keep this around if you Run you script, but it will keep the interpreter alive if you Debug your script, regardl

Re: Python with Eclipse

2006-06-20 Thread Dennis Benzinger
Philippe Martin wrote: > Dennis Benzinger wrote: > >> Stan Cook wrote: >>> I've been trying to use Eclipse with Python on Linux for a while and >>> have noticed something odd. After running the code or debugging a few >>> times, its responsiveness gets really bad. Upon checking the equivalent >>

Re: Python with Eclipse

2006-06-19 Thread Fabio Zadrozny
On 6/19/06, Philippe Martin <[EMAIL PROTECTED]> wrote: Dennis Benzinger wrote:> Stan Cook wrote:>> I've been trying to use Eclipse with Python on Linux for a while and>> have noticed something odd.  After running the code or debugging a few>> times, its responsiveness gets really bad.  Upon checkin

Re: Python with Eclipse

2006-06-19 Thread Philippe Martin
Dennis Benzinger wrote: > Stan Cook wrote: >> I've been trying to use Eclipse with Python on Linux for a while and >> have noticed something odd. After running the code or debugging a few >> times, its responsiveness gets really bad. Upon checking the equivalent >> of the task manager, I find se

Re: Python with Eclipse

2006-06-19 Thread Fabio Zadrozny
On 6/18/06, Stan Cook <[EMAIL PROTECTED]> wrote: I've been trying to use Eclipse with Python on Linux for awhile and have noticed something odd.  After running thecode or debugging a few times, its responsiveness getsreally bad.  Upon checking the equivalent of the task manager, I find several inst

Re: Python with Eclipse

2006-06-19 Thread Dennis Benzinger
Stan Cook wrote: > I've been trying to use Eclipse with Python on Linux for a while and > have noticed something odd. After running the code or debugging a few > times, its responsiveness gets really bad. Upon checking the equivalent > of the task manager, I find several instances of Python ru

Re: Python with no significant whitespace

2005-01-26 Thread Jeremy Sanders
On Wed, 26 Jan 2005 11:31:18 +0800, mep wrote: > Hi,all > Is there anybody trying to release a modification version to current > python source code with no significant whitespace, say replacing whitespace > by {} > like C or java. I do *NOT* mean whitespace is good or bad, just > want to know.

Re: Python with no significant whitespace

2005-01-25 Thread Tom
Just though I'd point out that Logix *does* use whitespace for delimiting blocks. Or rather, it can use whitespace, and the languages that come as standard do. With Logix you could quite easily make a version of Python with, e.g., braces instead of whitespace for delimiting blocks. That's probably

Re: Python with no significant whitespace

2005-01-25 Thread Stephen Thorne
On Wed, 26 Jan 2005 11:31:18 +0800, mep <[EMAIL PROTECTED]> wrote: > Hi,all > Is there anybody trying to release a modification version to current > python source code with no significant whitespace, say replacing whitespace > by {} > like C or java. I do *NOT* mean whitespace is good or bad, j