Re: Problems with Python for Windows extensions

2005-09-07 Thread KK
it in real app. Thanks KK -- http://mail.python.org/mailman/listinfo/python-list

Problems with Python for Windows extensions

2005-09-03 Thread KK
the code below is taken from M$ technet as an example on using vb script to do a replace all in word: Const wdReplaceAll = 2 Set objWord = CreateObject(Word.Application) objWord.Visible = True Set objDoc = objWord.Documents.Open(K:\Development\Fabricbase\prod\Test.doc) Set objSelection =

Re: Problems with Python for Windows extensions

2005-09-04 Thread KK
thx for ur reply u r rite that i should use a raw string, but that doesn't solve the problem i am q annoyed by this strange behaviour. i tried to run the script on my friend's pc, which is python2.4 + pywin 204 + office 2000, but same thing happened now i am thinking to generate a vbs from python

Creating alot of class instances?

2009-07-05 Thread kk
Hi I am new to Python classes and trying to figure out this particular issue here. I will need to create instances of a class. But at the moment I do not know how many instances I will end up having, in every case it might be different. Most of the documents I read makes this simpl class-student

Re: Creating alot of class instances?

2009-07-05 Thread kk
Hi Thank you soo much for speedy and in detailed help. Your replies really cleared out most of the cloud for me. I have one last issue to resolve which is something I did not articulate properly, I realize now. The last issue is actually automatically naming the instances. The reason I was using

Re: Creating alot of class instances?

2009-07-05 Thread kk
Hi Thank you so much for wonderful tips and suggestions. I also found a solution to dynamic naming of the instances(I think). It does not sound like a very secure method but since my application will be just processing data one way I think it might be alright. I will compare to the list and

Re: Creating alot of class instances?

2009-07-05 Thread kk
Steven, Before your post I was contemplating about the merits of using the globals(). After reading your post I am totally convinced that your suggestion that was also suggested by previous posters is the way to go. At first I thought it would be limiting to not to have the instance names

How can I get the line number ?

2009-07-24 Thread kk
Hello I am writing some Python code that runs in another application(has wrapper functions). Due to lack of debugging I am printing out alot of outputs and manual messages. I want to be able to create a function that would let me print the current line number that is called from. This is not for

Re: How can I get the line number ?

2009-07-27 Thread kk
Maxim, Thank you so much. I will try right now. -- http://mail.python.org/mailman/listinfo/python-list

Re: pylucene installation problem on Ubuntu 9.04

2009-08-06 Thread KK
On Aug 7, 12:38 am, Jon Clements jon...@googlemail.com wrote: On 6 Aug, 19:49, KK dioxide.softw...@gmail.com wrote: hi all, I've trying to install pylucene on my linux box from last 2 days but not able to do so. first i tried to install it using apt-get like this, kk-laptop$ sudo apt

Re: pylucene installation problem on Ubuntu 9.04

2009-08-07 Thread KK
tried to import that module, [un]fortunately it din't give that error message but something else, you can see below: kk-laptop:/usr/local/lib/python2.6/site-packages$ python Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more

Why does my ftp script quit after couple of hours?

2009-08-14 Thread kk
Hi This way the first time I did something with ftp stuff. I think that generally it works but it stops working(quits or disappears) after couple of hours of running. This was a personal test-trial script for my own needs which was to get my dynamic ip and broadcast to a client(I have a client

Re: Why does my ftp script quit after couple of hours?

2009-08-14 Thread kk
Hi Diez Thanks for your insight. The reason I chose the awkward method to parse the ip digits is that I was not familiar with the regex module and the Dyndns Ip page is pretty simple page. I guess it is time to learn more about the Re module. As far as robustness, I agree with your assestment. I

Re: Why does my ftp script quit after couple of hours?

2009-08-15 Thread kk
Awesome stuff, thank you so much for all the help. The Pcomp.lang.python is the most helpful list I have encountered so far :) -- http://mail.python.org/mailman/listinfo/python-list

How to import modules from specific Python installation?

2009-04-26 Thread kk
Hi I know there is a way to import from different Python installation but I could not find the answer. I have Python 2.6 and 2.5 thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: How to import modules from specific Python installation?

2009-04-26 Thread kk
Hi Thank you for the suggestions, I will see what I can from here. -- http://mail.python.org/mailman/listinfo/python-list

Returning dictionary from a function

2009-05-14 Thread kk
Hi I am working on something here and I cannot get the full dictionary out of a function. I am sure I am missing something here. Anyways here is a simple code that repeats my problem. Basically I am just trying to get that values function to return the diky as a dictionary so that I can query

Re: Returning dictionary from a function

2009-05-14 Thread kk
Btw my main problem is that when I assign the function to 'b' variable I only get the last key from the dictionary. Sorry about that I forgot to mention the main issue. -- http://mail.python.org/mailman/listinfo/python-list

Re: Returning dictionary from a function

2009-05-14 Thread kk
Hi Thank you so much. It makes perfect sense. I actually tried the second suggested syntax before posting here but it was inside of my actual code which probably had another problem. The suggested solution works perfectly. thanks again -- http://mail.python.org/mailman/listinfo/python-list

Re: Returning dictionary from a function

2009-05-14 Thread kk
John, Thanks for pointing out the loop issue. I just typed these sloppy lines the demonstrate the issue, they were not part of any code by any means. I will make sure that I will post cleaner lines next time. -- http://mail.python.org/mailman/listinfo/python-list

PyQt

2011-06-10 Thread KK
I have python 3.2 installed m not able to install PyQt. i have downloaded and configured sip but how to build it??? whats the make and make install given on the installation Plzzz help m a newbie to python -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt

2011-06-10 Thread KK
Thanks for the reply!! i ve installed the binary but when i import anything of PyQt in my prog it says error?? i think there is some problem with folders -- http://mail.python.org/mailman/listinfo/python-list

Fast Python in Programming Contests

2011-06-16 Thread KK
How can the execution time of python program be increased in programming contest so that we dont get TLE for gud algos.. -- http://mail.python.org/mailman/listinfo/python-list

python script for monitoring input/output parameters of online gaming client

2007-07-02 Thread jj kk
Hi, I'd like to be able to capture parameters of online gaming client applications (the kind of client software you install to play poker, backgammon... online) with the aim of writing python software that analyzes this data. I'm clueless, as I know next to nothing about python networking.

python script for monitoring input/output parameters of online gaming client

2007-07-02 Thread jj kk
Hi, I'd like to be able to capture parameters of online gaming client applications (the kind of client software you install to play poker, backgammon... online) with the aim of writing python software that analyzes this data. I'm clueless, as I know next to nothing about python networking.

list comprehension return a list and sum over in loop

2014-12-11 Thread KK Sasa
Hi there, The list comprehension is results = [d2(t[k]) for k in xrange(1000)], where d2 is a function returning a list, say [x1,x2,x3,x4] for one example. So results is a list consisting of 1000 lists, each of length four. Here, what I want to get is the sum of 1000 lists, and then the result

Re: list comprehension return a list and sum over in loop

2014-12-12 Thread KK Sasa
Mark Lawrence於 2014年12月12日星期五UTC+8下午3時17分43秒寫道: On 12/12/2014 06:22, KK Sasa wrote: Hi there, The list comprehension is results = [d2(t[k]) for k in xrange(1000)], where d2 is a function returning a list, say [x1,x2,x3,x4] for one example. So results is a list consisting of 1000 lists

Re: list comprehension return a list and sum over in loop

2014-12-12 Thread KK Sasa
Peter Otten於 2014年12月12日星期五UTC+8下午5時13分58秒寫道: KK Sasa wrote: Mark Lawrence於 2014年12月12日星期五UTC+8下午3時17分43秒寫道: On 12/12/2014 06:22, KK Sasa wrote: Hi there, The list comprehension is results = [d2(t[k]) for k in xrange(1000)], where d2 is a function returning a list, say [x1,x2,x3

Re: list comprehension return a list and sum over in loop

2014-12-12 Thread KK Sasa
Jussi Piitulainen於 2014年12月12日星期五UTC+8下午7時12分39秒寫道: KK Sasa writes: def p(x,t,point,z,obs): d = x[0] tau = [0]+[x[1:point]] a = x[point:len(x)] at = sum(i*j for i, j in zip(a, t)) nu = [exp(z[k]*(at-d)-sum(tau[k])) for k in xrange(point)] de = sum(nu

Re: list comprehension return a list and sum over in loop

2014-12-12 Thread KK Sasa
Peter Otten於 2014年12月12日星期五UTC+8下午8時32分55秒寫道: Jussi Piitulainen wrote: KK Sasa writes: def p(x,t,point,z,obs): d = x[0] tau = [0]+[x[1:point]] a = x[point:len(x)] at = sum(i*j for i, j in zip(a, t)) nu = [exp(z[k]*(at-d)-sum(tau[k])) for k in xrange(point

Re: list comprehension return a list and sum over in loop

2014-12-12 Thread KK Sasa
Sorry, i should say I'm using pythonxy, maybe it imports other things. -- https://mail.python.org/mailman/listinfo/python-list

[issue41868] SMTPLIB integrate or provide option to use "logging"

2020-09-26 Thread KK Hiraskar
New submission from KK Hiraskar : Currently "smtplib" is directly printing data to stdout/stderr, and not getting any good way to get this data in to the logs written by "logging" please provide an option to achieve this. -- components: email messages: 377537 nosy

Python code: brief

2022-07-26 Thread KK CHN
List , I have come across a difficulty to understand the code in this file. I am unable to understand exactly what the code snippet is doing here. https://raw.githubusercontent.com/CODARcode/MDTrAnal/master/lib/codar/oas/MDTrSampler.py I am new to this type of scientific computing code

NEO6 GPS with Py PICO with micropython

2022-11-29 Thread KK CHN
List , I am following this tutorial to get latitude and longitude data using NEO6 GPS module and Py PICO to read the GPS data from the device. I followed the code specified in this tutorial. https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/ I have installed

Re: NEO6 GPS with Py PICO with micropython

2022-11-30 Thread KK CHN
mment made it vanish the "GPS data not found" error output. Krishane On Wed, Nov 30, 2022 at 3:58 AM rbowman wrote: > On Tue, 29 Nov 2022 17:23:31 +0530, KK CHN wrote: > > > > When I ran the program I am able to see the output of latitude and > > longitude in the co