XMPP pub sub setup and working

2015-12-12 Thread satish
I am using xmpppy python library to connect with XMPP server(ejabberd2) but unable to connect and actually don't have clarity on how to connect, authenticate and send a message to the server. Please help me to make it working If possible please provide some code snippet using XMPPPY. This

Adding Bottle framework in existing python script

2015-10-15 Thread gunjal . satish
In my python script I am doing bluetooth and RF communication on individual threads respectively. I want to add Rest Web Method in same script using Bottle web framework. If I add below code, in existing python script, it wont work. How to make it work in existing script. from bottle import Bo

AttributeError: 'module' object has no attribute 'fork'

2014-08-06 Thread Satish ML
Hi, Code: import os, time def child(pipeout): zzz = 0 while True: time.sleep(zzz) msg = ('Spam %03d' % zzz).encode() os.write(pipeout, msg) zzz = (zzz+1) % 5 def parent(): pipein, pipeout = os.pipe() if os.fork() == 0: child(pipeout) else

TypeError: 'bytes' object is not callable error while trying to converting to bytes.

2014-08-04 Thread Satish ML
Hi, >>>import struct >>>file = open('data.bin', 'rb') >>>bytes = file.read() >>> records = [bytes([char] * 8) for char in b'spam'] Traceback (most recent call last): File "", line 1, in records = [bytes([char] * 8) for char in b'spam'] File "", line 1, in records = [bytes([char] * 8

TypeError: 'NoneType' object is not callable

2014-07-28 Thread Satish ML
27;__main__', '__qualname__': 'Spam', 'data': 1} In SubMeta.new: ...Spam ...(,) ...{'meth': , '__module__': '__main__', '__qualname__': 'Spam', 'data': 1} In SubMeta init: ...Spam ...(,) ...{'meth':

Re: Return class.

2014-07-26 Thread Satish ML
Hi, Which lines of code prints [4] and [4, 5, 6, 7] in the output? Output: CARST Trace: display 1 Spam!Spam!Spam!Spam!Spam!Spam!Spam!Spam! [1] Trace: name 1 Bob Trace: pay 2 2000 Trace: name 1 Sue Trace: pay 2 6000 Trace: name 3 Bob Trace: pay 4 2000 [4, 2] INSIDE MyList [1, 2, 3] Trace: appen

Re: Return class.

2014-07-26 Thread Satish ML
Actual program: def Tracer(aClass): class Wrapper: def __init__(self, *args, **kargs): self.fetches = 0 self.wrapped = aClass(*args, **kargs) def __getattr__(self, attrname): print('Trace: ' + attrname) self.fetches += 1

Re: Return class.

2014-07-26 Thread Satish ML
Which line of code is printing [4] and [4, 5, 6, 7] in the output? from tracer import Tracer @Tracer class MyList(list): def __init__(self, *args): print("INSIDE MyList") print(*args) x = MyList([1, 2, 3]) x.append(4) print(x.wrapped) WrapList = Tracer(list) x = WrapLis

Re: Return class.

2014-07-26 Thread Satish ML
Which line of code is printing [4] and [4, 5, 6, 7] in the output? from tracer import Tracer @Tracer class MyList(list): def __init__(self, *args): print("INSIDE MyList") print(*args) x = MyList([1, 2, 3]) x.append(4) print(x.wrapped) WrapList = Tracer(list) x = WrapList([4, 5,

Re: Return class.

2014-07-26 Thread Satish ML
Which line of code is printing [4] and [4, 5, 6, 7] in the output? from tracer import Tracer @Tracer class MyList(list): def __init__(self, *args): print("INSIDE MyList") print(*args) x = MyList([1, 2, 3]) x.append(4) print(x.wrapped) WrapList = Tracer(list) x = WrapLis

Return class.

2014-07-26 Thread Satish ML
Hi, What does "return Wrapper" do in the following piece of code? Which method does it invoke? I mean "return Wrapper" invokes __init__ method? def Tracer(aClass): class Wrapper: def __init__(self, *args, **kargs): self.fetches = 0 self.wrapped = aClass(*args,

Re: passing Python assignment value to shell

2014-05-28 Thread Satish Muthali
is is the optimal method to achieve in order to pass the assignment value to shell. I am open to suggestions or a better way of implementation/logic. Thanks again Satish On May 28, 2014, at 1:16 PM, Satish Muthali wrote: > Hello Experts, > > I am trying to extract the available user

passing Python assignment value to shell

2014-05-28 Thread Satish Muthali
ptest”, “”, “20”],stdout=devnull,stderr=subprocess.STDOUT) devnull.close() How do I go about doing this? Many thanks in advance -Satish-- https://mail.python.org/mailman/listinfo/python-list

Re: Copying non-existing files, was Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without over

2014-05-21 Thread Satish ML
On Wednesday, May 21, 2014 2:42:49 PM UTC+5:30, Peter Otten wrote: > Satish ML wrote: [Regarding subject: let's see if we can trigger a buffer > overflow somewhere ;)] > On Wednesday, May 21, 2014 6:59:40 AM UTC+5:30, > Rustom Mody wrote: >> On Tuesday, May 20, 2

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-21 Thread Satish ML
On Wednesday, May 21, 2014 6:59:40 AM UTC+5:30, Rustom Mody wrote: > On Tuesday, May 20, 2014 9:35:10 PM UTC+5:30, Jagadeesh N. Malakannavar > wrote: > Hi Satish, > > Can you please send python part in plain text format? > Python code here is > > difficult to read. It

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote: > On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday, > May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On Monday, May 19, > 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday,

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On > Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May > 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > >

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, > May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19, > 2014 at 4:53 PM, wrote: > Could you kindly hel

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-20 Thread Satish ML
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On > Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May > 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > >

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Satish ML
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 19, 2014 at 4:53 PM, wrote: > Could > you kindly help? Sure. Either start writing code and then post when you have > problems, or investigate some shell commands (xcopy in Windows, cp in Linux, > maybe scp) that c

Re: Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of sa

2014-05-19 Thread Satish ML
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 19, 2014 at 4:53 PM, wrote: > Could > you kindly help? Sure. Either start writing code and then post when you have > problems, or investigate some shell commands (xcopy in Windows, cp in Linux, > maybe scp) that c

Pass variable by reference

2014-05-05 Thread Satish Muthali
e /var/lib/postgresql/9.3.4/main/data , however programatically I want it to be as: /var/lib/postgresql//main/data Any help is appreciated. Thanks Satish-- https://mail.python.org/mailman/listinfo/python-list

Re: "isinstance" question

2010-06-22 Thread Satish Eerpini
; ... self.val = val >> ... >> >>> b = bar(100) >> >>> b >> <__main__.bar object at 0x01FF50D0> >> >>> isinstance(b, types.InstanceType) >> False >> >>> isinstance(b, types.ClassType) >> False >> >>>>>> bar >> >> >> well the same code on my side returns true when you run isinstance(b, types.InstanceType) even when the class has a constructor. Why is there a difference in the output when we are both using Cython 2.6 ?? (2.6.4 to be exact) Cheers Satish -- http://satisheerpini.net -- http://mail.python.org/mailman/listinfo/python-list

Evaluating Income Property

2010-03-07 Thread satish groups
Income property is becoming more attractive to investors looking for a better return on their money. With today's low interest rates, income- producing properties such as apartments and duplexes can produce exciting returns. As with any type of property, the value of income property is what someone

Re: Class Methods help

2009-05-31 Thread bd satish
Thanks to Tim Chase & Lie Ryan !! That was exactly what I was looking for !! It's time for me to now read the documentation of "decorators" and @classmethod and also @staticmethod. I'm quite new to decorators... -- Satish BD On Sun, May 31, 2009 at 4:44 PM, Lie Ryan

how do i configure Python2.3.6 on Solaris 10

2007-04-09 Thread Satish S Nandihalli
following errors were found on executing configure file: 1) configure: WARNING: thread.h: present but cannot be compiled configure: WARNING: thread.h: check for missing prerequisite headers? configure: WARNING: thread.h: see the Autoconf documentation configure: WARNING: thread.h: section

Can any body help me

2006-05-25 Thread satish
t to the script it sends and email saying that it is shutting down and then exits thanx satish -- http://mail.python.org/mailman/listinfo/python-list

how to handle jpg images with Tkinter

2006-01-16 Thread K Satish
Hi,   I am not able to load jpg images in photoimage widget. That is showing different different errors. can I find any examples on internet.   Thanks, SatishSend instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

What is the method for class destroy

2006-01-15 Thread K Satish
Hi All,   Like __init__ which is called when object instatiated, what is the method when object destroys.   Thanks, Satish.Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

XML RFC Server

2006-01-08 Thread K Satish
Hi All,   Is there any example code to develop XML RFC Web Service in Python.   Thanks, Satish.Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

What is the UI Element to work with HTML Content

2006-01-08 Thread K Satish
Hi All,   I am a newbie to Python. I want to know that there is any UI Control to browse HTML pages. Please let me know. If that is available, I am planing to develop a Chat application. Waiting for help.   Thanks, Satish. [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]  Send

Which is the best GTK

2006-01-06 Thread K Satish
Hi all,   I am a new one to python. I want which is the best gtk. Tkinter or Tix or etc., . Please suggest me some documentation.   Thanks, Satish. Team Spiderace, www.spiderace.com.  Send instant messages to your online friends http://in.messenger.yahoo.com -- http://mail.python.org