Allowing only one instance of a script?

2005-06-22 Thread Ali
Hi, I have a script which I double-click to run. If i double-click it again, it will launch another instance of the script. Is there a way to allow only one instance of a script, so that if another instance of the script is launched, it will just return with an error. Thanks Regards, Ali

Re: more newbie list questions

2005-07-14 Thread Ali
It's not really clear what you mean? -- http://mail.python.org/mailman/listinfo/python-list

Re: more newbie list questions

2005-07-14 Thread Ali
sTemplate.replace() returns a string with that substitution. so you need to reassign it such as: sTemplate = sTemplate.replace('author1', author1) Anyway, Sion Arrowsmith above showed you a much better technique of filling all those values at once. Hope this helps, Ali

PYGTK, Google Suggest-like GUI

2005-03-02 Thread Ali
Hi there, I am using pygtk, and i am implementing a "find as you type" in a text entry. I intend for it to behave like the 'google suggest' box. So, that as you type, a list of values appear below the text box as in a list and you can use arrow keys to select a value. I can't think of a straight-

Re: PYGTK, Google Suggest-like GUI

2005-03-03 Thread Ali
I guess what i am looking for is auto-completion but with a drop-down list... -- http://mail.python.org/mailman/listinfo/python-list

Re: PYGTK, Google Suggest-like GUI

2005-03-03 Thread Ali
Oh well, the cool guys of GTK have just the thing i wanted called EntryCompletion. Here's the link in case someone else stumbles over here: http://www.pygtk.org/pygtk2tutorial/sec-EntryCompletion.html -- http://mail.python.org/mailman/listinfo/python-list

Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
Hello all, I have got a very simple python code: ___ #!/usr/bin/python import cgi def main(): print "Content-type: text/html\n" form = cgi.FieldStorage() if form.has_key("firstname") and form["firstname"].value != "": print "Hello", form["firstname"].value, "" else: print

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
Okay, i don't know what the problem is... I ran python in interactive mode and tried "import cgi.py" and i got the same error... Any ideas? -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
You are right, I had first named my file cgi.py... but then i realized that it was causing conflicts so i renamed it to mycgi.py as you can see in the trace, but the problem persisted... After reading your reply i took a look at the directory i was in and there was a pyc file in it... cgi.pyc, i r

Re: Newbie: A very basic problem related to cgi.py

2004-12-20 Thread Ali
>1. When you tried "import cgi.py" from the interactive prompt, >was that really what you typed? Because that's not a valid >import statement for the cgi module. You should have done >"import cgi" instead. import cgi was giving me the same error, because it was importing from the cgi.pyc? >3. The

MessageBox ONOK?

2005-04-19 Thread Ali
Hi, How do i connect the onOK of a win32ui MessageBox with the Ok button so that I get to know when the user clicks the Ok button? Regards, Ali -- http://mail.python.org/mailman/listinfo/python-list

Problem with wxPython

2007-06-26 Thread Ali
Hi I'm not sure if this is the right place to post, pardon me if it's not. I'm having a problem with an application written with wxpython. The frame seems only to refresh when moving my mouse of it, though i frequently call: frame.Refresh(True). In fact, that line is called by another thread, righ

Re: How to create a single executable of a Python program

2007-07-25 Thread Ali
ngle exe which Windows users seem happy to click-and-install. I blogged the process I use here: http://unpythonic.blogspot.com/2007/07/pygtk-py2exe-and-inno-setup-for-single.html (though this has some PyGTK specifics) Ali -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing Dictionaries

2007-07-27 Thread Ali
test for some code that reads a Windows > style INI file and stores the section, key, and values in a dictionary So, in the standard library: http://docs.python.org/lib/module-ConfigParser.html And if you want a more involved approach: http://www.voidspace.org.uk/python/configobj.html Ali -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 question in Python

2007-07-31 Thread Ali
el, but it may fulfill your needs for importing: http://sourceforge.net/projects/pyexcelerator/ Ali -- http://mail.python.org/mailman/listinfo/python-list

Re: Assignments and Variable Substitution

2007-08-14 Thread Ali
On Aug 14, 12:45 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Evan Klitzke wrote: > > On 8/13/07, brad <[EMAIL PROTECTED]> wrote: > >> I'd like to do something like this: > > >> var = '123' > >> %s = [], %var > And why would you want a variable whose name is '123'? ... and thus continues the sea

Re: IDE for Python

2007-08-30 Thread Ali
r choice. In short, it integrates your development tools into a single environment. Hence the tag: "One True IDE". Ali * Emacs is pretty good at this, but since PIDA can embed Emacs anyway, and adds features to it... -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with TreeView + ListStore

2007-09-04 Thread Ali
mouse click event, and we can discuss them further if you require. I should of course mention kiwi.ui.objectlist.ObjectList. It is an easier to use abstraction over TreeView, and has helped me in every situation where I would use a TreeView. Ali > Study the tutorial [1] I began to see the

Re: Python editor/IDE on Linux?

2007-04-14 Thread Ali
On 14 Apr, 05:48, "Jack" <[EMAIL PROTECTED]> wrote: > That's a good one. I got to find out what's special with Emacs :) The users. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bizarre behavior with mutable default arguments

2008-01-02 Thread Ali
On Dec 30 2007, 12:27 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > In the absence of a better solution, I'm very comfortable with keeping > the behaviour as is. Unfortunately, there's no good solution in Python to > providing functions with local storage that persists across

pymat and Matlab6.5

2008-01-05 Thread ali
i want matlab6.5-- http://mail.python.org/mailman/listinfo/python-list

Re: Test if list contains another list

2008-11-16 Thread Ali
Its funny, I just visited this problem last week. <http://dulceetutile.blogspot.com/2008/11/strange-looking-python- statement_17.html> ./Ali -- http://mail.python.org/mailman/listinfo/python-list

Re: Help need with subprocess communicate

2008-06-04 Thread Ali
') > > Please suggest a way to perform it interactively with killing the > process each time I want to communicate with it. > > Thanks in advance, > -Rahul. It sounds like this may help: http://www.noah.org/wiki/Pexpect (pure python expect-like functionality) Ali -- http://mail.python.org/mailman/listinfo/python-list

Detect file is locked - windows

2012-11-13 Thread Ali Akhavan
I am trying to open a file in 'w' mode open('file', 'wb'). open() will throw with IOError with errno 13 if the file is locked by another application or if user does not have permission to open/write to the file. How can I distinguish these two cases ? Namely, if some application has the file o

How to make PyDev pep8 friendly?

2012-02-08 Thread Ali Zandi
Hi, I was trying to find a way to configure PyDev e.g. in Eclipse to be pep8 friendly. There are a few configurations like right trim lines, use space after commas, use space before and after operators, add new line at the end of file which can be configured via Eclipse -> Window -> Preferences -

Re: solutions books

2012-04-28 Thread ali deli
Hi, I'am a college physics student. If you have the following document " SOLUTIONS MANUAL TO FUNDAMENTALS OF ENGINEERING ELECTROMAGNETICS, by DAVID CHENG ", Could you please send me the document? -- http://mail.python.org/mailman/listinfo/python-list

Inexplicable behavior in simple example of a set in a class

2011-07-02 Thread Saqib Ali
I have written two EXTREMELY simple python classes. One class (myClass1) contains a data attribute (myNum) that contains an integer. The other class (myClass2) contains a data attribute (mySet) that contains a set. I instantiate 2 instances of myClass1 (a & b). I then change the value of a.myNum

Re: Inexplicable behavior in simple example of a set in a class

2011-07-02 Thread Saqib Ali
> Instance variables are properly created in the __init__() > initializer method, *not* directly in the class body. > > Your class would be correctly rewritten as: > > class MyClass2(object): >     def __init__(self): >         self.mySet = sets.Set(range(1,10)) > >     def clearSet(self): > # ...r

Hello Sweet Friends.

2011-07-07 Thread Ashraf Ali
I bring you a source of entertaintment.Just visit the following link and know about Bollywood actresses www.bollywoodactresseshotpictures.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 94, Issue 52

2011-07-08 Thread Mapere Ali
Hi, I need help with a python script to monitor my wireless router internet usage using a Mac address and then backup the report files on the server. i would also like to create login access on the website to have users checkout their bandwidth usage...Please help anyone I'm a newbie in Python..

Hello My Sweet Friends.

2011-07-31 Thread Ashraf Ali
Hello Friends. How are you all? Please Visit the following link if you know about Pakistan and what happening in the world. http://bollywoodactresseshotpictures.blogspot.com/ http://jobopportunitiesinpakistan.blogspot.com/ http://hotfemaletennisplayershotphotos.blogspot.com/ http://watchonlineindi

Hot Bollwood Actresses and Hot Football Players of Spain Soccer Team

2011-08-26 Thread Ashraf Ali
Hot Bollywood Actresses and Hot Football Players of Spain Nation Soccer Team. http://bollywoodactresseshotdresses.blogspot.com/ http://spainnationalfootballteamwallpapers.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Today's Hottest actresses

2011-02-24 Thread Ashraf Ali
Hello friends. Would you like to know about bollywood hot and beautiful actresses?You can fine a lot of information about bollywood actresses.Just visit www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Today's Hottest actresses

2011-02-25 Thread Ashraf Ali
Hello friends, what's going on? Would you like to watch hollywood, bollywood. tollywood, hot actresses pictures,biography, filmography. Just visit www.hotpics00.blogspot.com www.hollywood-99.blogspot.com www.hollywoodactors-99.blogspot.com www.bollywoodactors00.blogspot.com -- http://mail.python.o

Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit to know www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-01 Thread Ashraf Ali
It's a suprise.Do you know what the following blog is about.Just visit to know www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-02 Thread Ashraf Ali
It’s good to be informed of the world.For lattest news just visit www.newsbeam.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-13 Thread Ashraf Ali
If someone want to know about Bollywood Hot actress and the biography, Just www.hotpics00.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-26 Thread Ashraf Ali
For Biography of Bollywood actresses just visit www.hothitsbollywood.blogspot.com Here Just for You Aiswarya Rai Aishwarya Rai Biography Ash Ash Baby Aishwarya Krishnaraj Rai was born on 1 November 1973 in Mangalore. Her father Krishnaraj Rai was a marine engineer and her mother Vrinda Rai is a w

Hello Friends

2011-03-30 Thread Ashraf Ali
You can fine Bollywood Actresses Biography, WAllpapers & Pictures on the following website. www.bollywoodhotactresses.weebly.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-03-30 Thread Ashraf Ali
you can fine bollywood actresses biography,wallpapers & pictures on this website www.bollywoodhotactresses.weebly.com -- http://mail.python.org/mailman/listinfo/python-list

Have a nice day.

2011-04-04 Thread Ashraf Ali
Hello friends. What are you looking for. You can find everything what you want. just visit: www.hothitsbollywood.blogspot.com www.aishwaryaraismile.blogspot.com www.bollywoodhotpik.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Have a nice day.

2011-04-10 Thread Ashraf Ali
Sale Sale Sale. Just visit the following link to buy computer accessories. You can buy computer accessories on reasonable prices. just visit http://www.onlineshoppingpk.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-04-12 Thread Ashraf Ali
The most sexiest collection of bollywood. just visit www.hottesthitsbollywood.blogspot.com www.bollywoodhotactresspicz.blogspot.com www.bollywoodhotphotoz.blogspot.com www.bollywoodhotactresswallpapers.blogspot.com www.bollywoodhotwallpaperz.blogspot.com www.onlineshoppingpk.blogspot.com www.bollyw

Have a nice day.

2011-04-16 Thread Ashraf Ali
Just visit and know the basic information about Bollywood actresses. You can here Biographies of all bollywood Actresses. www.bollystarsbiographies.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Sweet Friends

2011-04-20 Thread Ashraf Ali
Friends . What are you looking for? Just visit the folowing link and find what you want www.spicybollywoodpix.blogspot.com hothitsbollywood.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Hello Friends

2011-05-02 Thread Ashraf Ali
What are you lookink for. Just visit to see what you want www.bollywoodhotactresswallpapers.blogspot.com www.bollywoodhotwallpaperz.blogspot.com www.bollywoodhotactresspicz.blogspot.com www.hottesthitsbollywood.blogspot.com www.bollywoodhotphotoz.blogspot.com -- http://mail.python.org/mailman/

Re: Converting hex data to image

2021-01-31 Thread Ali Sajadian
dimplem...@gmail.com در تاریخ سه‌شنبه ۱۲ مارس ۲۰۱۹ ساعت ۱۳:۰۱:۴۵ (UTC+3:30) نوشت: > On Tuesday, March 12, 2019 at 2:53:49 PM UTC+5:30, Peter Otten wrote: > > dimplem...@gmail.com wrote: > > > > >> Save the image to a file (in binary mode!) and then try to open it with > > >> an image viewer. T

Convert MBOX thunderbird to PST outlook

2021-02-07 Thread Kr4ck ALI
Hello, I have to migrate multiple mailbox (emails, contacts, calendar, tasks) from thunderbird to outlook Office 365. I plan to export all items from thunderbird files (.mbox for email, .sqlite or .sdb for calendar, .mab to contact) to PST files and import each PST files to Office 365. I know it's

Re: Convert MBOX thunderbird to PST outlook

2021-02-07 Thread Kr4ck ALI
févr. 2021 à 00:45, Cameron Simpson a écrit : > On 07Feb2021 15:06, Kr4ck ALI wrote: > >I have to migrate multiple mailbox (emails, contacts, calendar, tasks) > >from thunderbird to outlook Office 365. > > I am also sorry to hear that. > > Had you considered getting them

PyQt4

2016-04-03 Thread Muhammad Ali
Hi, How can we confirm that either PyQt4 is already installed on LInux machine or not? Please suggest commands to confirm the already existence of PyQt4 in the machine. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Plot/Graph

2016-04-03 Thread Muhammad Ali
Hi, Could anybody tell me that how can I plot graphs by matplotlib and get expertise in a short time? I have to plot 2D plots just like origin software. Secondly, how could we draw some horizontal reference line at zero when the vertical scale is from -3 to 3? Looking for your posts, please

Re: PyQt4

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 12:15:06 PM UTC-7, Michael Torrie wrote: > On 04/03/2016 12:57 PM, Muhammad Ali wrote: > > > > Hi, > > > > How can we confirm that either PyQt4 is already installed on LInux machine > > or not? > > > > Please suggest

Re: Plot/Graph

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:04:45 PM UTC-7, Michael Selik wrote: > Indeed there is. Every example in the gallery shows the code to produce it. > > http://matplotlib.org/gallery.html > > On Sun, Apr 3, 2016, 8:05 PM Muhammad Ali > wrote: > > > > > Hi, >

Re: Plot/Graph

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: > On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > > > How do I convert/change/modify python script so that my data could be > extracted according to python script and at the end it generates another

Re: Plot/Graph

2016-04-04 Thread Muhammad Ali
On Sunday, April 3, 2016 at 5:19:15 PM UTC-7, MRAB wrote: > On 2016-04-04 01:04, Muhammad Ali wrote: > > On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: > >> On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > >> > > >> > How do I

Re: Plot/Graph

2016-04-04 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: > On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > > > How do I convert/change/modify python script so that my data could be > extracted according to python script and at the end it generates another

Re: Plot/Graph

2016-04-04 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 8:16:22 AM UTC+8, Muhammad Ali wrote: > On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: > > On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > > > > > How do I convert/change/modify python script so that my dat

python script for .dat file

2016-04-05 Thread Muhammad Ali
modify some python code. Looking for your valuable posts. Thank you. Ali -- https://mail.python.org/mailman/listinfo/python-list

Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote: > On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali > wrote: > > > > Hello, > > > > Could any body tell me a general python script to generate .dat file after > > the extraction of data from more

Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 9:07:54 AM UTC-7, Oscar Benjamin wrote: > On 5 April 2016 at 16:44, Muhammad Ali wrote: > > On Tuesday, April 5, 2016 at 8:30:27 AM UTC-7, Joel Goldstick wrote: > >> On Tue, Apr 5, 2016 at 11:23 AM, Muhammad Ali > >> wrote: > >&g

Re: python script for .dat file

2016-04-05 Thread Muhammad Ali
On Tuesday, April 5, 2016 at 2:24:02 PM UTC-7, Joel Goldstick wrote: > On Tue, Apr 5, 2016 at 4:47 PM, Mark Lawrence via Python-list > wrote: > > On 05/04/2016 21:35, Michael Selik wrote: > >> > >> What code have you written so far? > >> > > > > Would you please not top post on this list, it drive

Self Learning Fortran Programming

2016-05-31 Thread Muhammad Ali
Hello, I am interested in Python programming, however, it will be my first serious attempt towards coding/simulation/programming. My back ground is Physics, no practical experience with programming languages. So, this post is for the valuable suggestions from the experts that how can I star

Re: Self Learning Fortran Programming

2016-06-01 Thread Muhammad Ali
I don't know how to change the title now, but I am looking for python. -- https://mail.python.org/mailman/listinfo/python-list

Python on Windows with linux environment

2016-06-02 Thread Muhammad Ali
Hi, I use windows regularly, however, I use linux for only my research work at supercomputer. In my research field (materials science) most of the scripts are being written in python with linux based system. Could I installed such linux based python on my window 7? So that I can use those linu

Re: Python on Windows with linux environment

2016-06-02 Thread Muhammad Ali
On Friday, June 3, 2016 at 6:27:50 AM UTC+8, Eric S. Johansson wrote: > On 6/2/2016 2:03 PM, Joel Goldstick wrote: > > Although the OP is using Windows 7, according to recent articles, > > Ubuntu is teaming with MS for Windows 10 to include a bash shell, > > presumably with the package management o

DbfilenameShelf instance has no attribute 'writeback'

2005-01-20 Thread warren ali
Anyone have any idea why this is failing with the following error class _IndexFile: """An _IndexFile is an implementation class that presents a Sequence and Dictionary interface to a sorted index file.""" def __init__(self, pos, filenameroot): self.pos = pos self.file = open(_indexFilePathname(fi

Python Scripting

2005-01-22 Thread Ali Polatel
  Hi Dear Python programmers,   I want to ask you a question about python scripting.I want to know if I can design web-pages with python or at least write html files with python. and if I write html files with python and some CGI scripts and upload them to the web-page .. does the people who view t

on the way to find pi!

2005-01-23 Thread Ali Polatel
dear friends , I found a code which calculates pi with an interesting algorithm the programme code is below: from sys import stdout def f((q,r,t,k)):    n = (3*q+r) / t    if (4*q+r) / t == n:    return (10*q,10*(r-n*t),t,k,n)    else:    return (q*k, q*(4*k+2)+r*(2*k+1),t*(2*k+1),k+1) # C

Re: on the way to find pi!

2005-01-23 Thread Ali Polatel
that's just little near to pi... pi is so far away ;)__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

Re: on the way to find pi!

2005-01-23 Thread Ali Polatel
write the code type str(pi(5)) and see what I mean__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

Re: on the way to find pi!

2005-01-24 Thread Ali Polatel
when we change the code that way the programme gets awful slow when I want to calculate say 100 digits or more .Can't we just get the numbers out of there without changing the code radically thus not making the programme sloww? Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'-- h

Proxy

2005-01-29 Thread Ali Polatel
is it possible to connect to somewhere through a proxy while using sockets module of Python to connect? If yes can you show me some basic examples? regards Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'-- http://mail.python.org/mailman/listinfo/python-list

Programming challenge (C++ and Python)

2005-02-01 Thread Ali Polatel
e site ftp://ftp.chessclub.com/pub/icc/interface/blitzin2/plugins/ under the name PluginDevkit.zip Any kind of help is appreciated. Regards, Ali Polatel  Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'-- http://mail.python.org/mailman/listinfo/python-list

ADO, Python and MS Exchange

2004-12-23 Thread warren ali
Hi all! I'm new to python and I seem to have a hit a of a brick wall. I hope you guys can help. I'm trying to rewrite some of my vbscripts in python. This particular script connects to a mailbox in MS Exchange via ADO and calculates the mailbox size. I seem to have run into a couple of issues get

Actor pattern in GUI

2005-03-29 Thread M Ali
Hi, I am trying to grok using actor patterns in a gui as explained here by Andrew Eland: http://www.andreweland.org/code/gui-actor.html The short article explains it using java with which i am not used to at all. But he does provide a python example using pygtk: http://www.andreweland.org/code/g

Re: Actor pattern in GUI

2005-03-30 Thread M Ali
Hmm... no takers? Too bad, the pattern and it's implementation in python is pretty interesting... [EMAIL PROTECTED] (M Ali) wrote in message news:<[EMAIL PROTECTED]>... > Hi, > > I am trying to grok using actor patterns in a gui as explained here by > Andrew Eland: >

Problem in pip

2015-12-04 Thread Ali Zarkesh
My pip can't download or upgrade anything I use python 3.5 (win 32) and my pip version is 7.1.2. The error message is this: Exception: Traceback (most recent call last): File "c:\program files\python 3.5\lib\site-packages\pip\basecommand.py", line 211, in main status = self.run(options, args) File

problem fixed

2015-12-04 Thread Ali Zarkesh
My problem fixed That was only about User Account Control -- https://mail.python.org/mailman/listinfo/python-list

Re: Twisted and txJSON-RPC

2014-11-14 Thread ali . hallaji1
Hi, I want to write authentication with txjson-rpc. please guide me in this method! best Regards, Ali Hallaji -- https://mail.python.org/mailman/listinfo/python-list

Authentication method with txjson-rpc.

2014-11-14 Thread ali . hallaji1
Hi, I want to write authentication by txjson, Please help me in this way. -- https://mail.python.org/mailman/listinfo/python-list

Attribute error while executing python script

2014-04-16 Thread ali hanif
main__': parser = OptionParser(option_class=eng_option,usage="%prog: [options]") (options, args) = parser.parse_args() tb = top_block() tb.Run(True) ALI -- https://mail.python.org/mailman/listinfo/python-list

Qestion

2015-08-22 Thread ali ranjbar
hi dear friend I have python version 2.4.3 Which version of PIL is appropriate for me and how can I add it to my systems? Regards -- https://mail.python.org/mailman/listinfo/python-list

Need help with really elementary pexpect fragment

2011-12-19 Thread Saqib Ali
I want to write a pexpect script that simply cd's into a directory ("~/ install") and then runs a command from there. It should be so easy. But even my cd command is failing. Can't figure out what the problem is. The command line prompt is "[my machine name here] % " Here is the code fragment:

Re: Need help with really elementary pexpect fragment

2011-12-20 Thread Saqib Ali
Oops! Good call. Thank you. You pointed out my mistake. - Saqib On Tue, Dec 20, 2011 at 12:31 AM, Nick Dokos wrote: > Saqib Ali wrote: > > > > > I want to write a pexpect script that simply cd's into a directory ("~/ > > install") and then runs a c

Can I get use pexpect to control this process?

2011-12-21 Thread Saqib Ali
I have a program X that constantly spews output, hundreds of lines per minute. X is not an interactive program. IE: it doesn't take any user input. It just produces a lot of textual output to STDOUT. I would like to save the output produced by X into a different file every 5 seconds regardless of

Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
I'm using this decorator to implement singleton class in python: http://stackoverflow.com/posts/7346105/revisions The strategy described above works if and only if the Singleton is declared and defined in the same file. If it is defined in a different file and I import that file, it doesn't wor

Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
MYCLASS.PY: #!/usr/bin/env python import os, sys, string, time, re, subprocess import Singleton @Singleton class myClass: def __init__(self): print 'Constructing myClass' def __del__(self): print 'Destructing myClass' SINGLETON.PY: #!/usr/bin/env python import os, s

Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
BTW Here is the traceback: >>> import myClass Traceback (most recent call last): File "", line 1, in File "myClass.py", line 6, in @Singleton TypeError: 'module' object is not callable Here is Singleton.py: class Singleton: def __init__(self, decorated): self._decorate

Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Saqib Ali
Thanks for pointing out the mistake! Works. - Saqib On Thu, Dec 22, 2011 at 4:31 PM, Ethan Furman wrote: > Saqib Ali wrote: > >> MYCLASS.PY: >> >> #!/usr/bin/env python >> import os, sys, string, time, re, subprocess >> import Singleton >> > >

Changing the system clock with pexpect confuses pexpect!

2011-12-26 Thread Saqib Ali
See my code below. I'm controlling a shell logged in as root with pexpect. The class below has a method (startProc) which spawns a shell and keeps it alive until told to destroy it (stopProc). The other 2 methods in this class allow me to change the system clock and to get the IP Address of thi

Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Saqib Ali
I am using Solaris 10, python 2.6.2, pexpect 2.4 I create a file called me.txt which contains the letters "A", "B", "C" on the same line separated by tabs. My shell prompt is "% " I then do the following in the python shell: >>> import pexpect >>> x = pexpect.spawn("/bin/tcsh") >>> x.sendline

Re: Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Saqib Ali
;). Since I'm operating on a remote system, I can't simply open the file in my own python context. On Jan 15, 2:24 pm, Dennis Lee Bieber wrote: > On Sun, 15 Jan 2012 09:51:44 -0800 (PST), Saqib Ali > > wrote: > >Now, clearly the file contains tabs. But when I cat it throu

Re: Problem while doing a cat on a tabbed file with pexpect

2012-01-15 Thread Saqib Ali
n 15 12:42 me.txt On Jan 15, 6:40 pm, Cameron Simpson wrote: > On 15Jan2012 23:04, Steven D'Aprano > wrote: > | On Sun, 15 Jan 2012 09:51:44 -0800, Saqib Ali wrote: > | > I am using Solaris 10, python 2.6.2, pexpect 2.4 > | > > | > I create a file called me.txt w

urllib and urllib2, with proxies

2006-08-08 Thread Ali . Sabil
rn self._call_chain(*args) File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 501: Not Implemented this is with python-2.4.3 thank you for your help -- Ali Sabil -- http://mail.python.org/mailman/listinfo/python-list

implicit variable declaration and access

2005-06-13 Thread Ali Razavi
Is there any reflective facility in python that I can use to define a variable with a name stored in another variable ? like I have : x = "myVarName" what can I do to declare a new variable with the name of the string stored in x. And how can I access that implicitly later ? -- http://mail.python

Re: implicit variable declaration and access

2005-06-13 Thread Ali Razavi
Ali Razavi wrote: > Is there any reflective facility in python > that I can use to define a variable with a > name stored in another variable ? > like I have : > x = "myVarName" > > what can I do to declare a new variable with the name of the string > stor

Re: implicit variable declaration and access

2005-06-13 Thread Ali Razavi
Tom Anderson wrote: > On Mon, 13 Jun 2005, Ali Razavi wrote: > >> Is there any reflective facility in python that I can use to define a >> variable with a name stored in another variable ? >> >> like I have : >> x = "myVarName" >> >> wh

Re: implicit variable declaration and access

2005-06-14 Thread Ali Razavi
Steven D'Aprano wrote: > On Mon, 13 Jun 2005 12:18:31 -0400, Ali Razavi wrote: > > >>Is there any reflective facility in python >>that I can use to define a variable with a >>name stored in another variable ? >>like I have : >>x = "myVarName"

header intact

2007-06-22 Thread datulaida ali
hai.. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >