About float/double type number in range.

2020-08-26 Thread ADITYA
hat we can increase the number with half or quarter any point value.   Your Sincerely Aditya Gautam Saharsa (Bihar) India Postal Code- 852201           Sent from [1]Mail for Windows 10   [2][IMG] Virus-free. [3]www.avg.com References Vis

Re: A simple single line, triple-quoted comment is giving syntax error. Why?

2015-03-18 Thread Aditya Raj Bhatt
u mean by line-return in string? Is it newline? Does it mean I can write - '''first part second part''' ? > If it is in an expression (like a = 5 '''a comment'''), then it must be a > valid expression (and here it is not). What is

A simple single line, triple-quoted comment is giving syntax error. Why?

2015-03-18 Thread Aditya Raj Bhatt
I always do single line comments with # but just for the sake of it I tried it with ''' ''' and it gives me a syntax error. In both the interpreter, and the source code text file, doing - a = 5 '''a comment''' results in a syntax error, with the very last quote at the end of the line highlighted

Writing Extensions for Python 3 in C

2013-06-19 Thread Aditya Avinash
ion. It is not good for beginners. It doesn't elaborate about calls and implementation. -- Aditya Avinash Atluri -- http://mail.python.org/mailman/listinfo/python-list

Immediate Interview // Direct Client // QNXT Configuration Expert // 6 Months // Nashville, TN

2012-12-03 Thread Aditya
Hi Friends, This is Aditya Kiran Technical Recruiter for XpertTech in Boston, MA. My client is looking to hire a QNXT Configuration Expert for 6+ Months Position. If you available for new opportunities, I would love to speak to you about below mentioned job. Thank you for your time in advance

Re: Binary Decimals in Python

2010-03-30 Thread aditya
On Mar 30, 10:49 am, Raymond Hettinger wrote: > On Mar 30, 8:13 am, aditya wrote: > > > To get the decimal representation of a binary number, I can just do > > this: > > > int('11',2) # returns 3 > > > But decimal binary numbers throw a ValueError:

Re: Binary Decimals in Python

2010-03-30 Thread aditya
On Mar 30, 10:37 am, Benjamin Kaplan wrote: > On Tue, Mar 30, 2010 at 11:13 AM, aditya wrote: > > To get the decimal representation of a binary number, I can just do > > this: > > > int('11',2) # returns 3 > > > But decimal binary numbers throw a Val

Binary Decimals in Python

2010-03-30 Thread aditya
To get the decimal representation of a binary number, I can just do this: int('11',2) # returns 3 But decimal binary numbers throw a ValueError: int('1.1',2) # should return 1.5, throws error instead. Is this by design? It seems to me that this is not the correct behavior

Extract half screen of a video

2010-01-27 Thread aditya shukla
Hello Guys, I have a video and what I want is to extract only half of the screen of it.By half screen i mean when i run the video i can say the left half(from the monitor's screen) of the video and dump the right half. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Mencoder not working from a python script

2010-01-08 Thread aditya shukla
Writing index... Writing header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. Video stream: nan kbit/s (-2147483648 B/s) size: 0 bytes 0.000 secs 0 frames Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Mencoder and creating videos

2010-01-06 Thread aditya shukla
*mencoder.exe * to create the videos? and how should i create the videos without interrupting the download. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Re: Do I have to use threads?

2010-01-05 Thread aditya shukla
Thanks.i will look into multiprocessing. Aditya -- http://mail.python.org/mailman/listinfo/python-list

Do I have to use threads?

2010-01-05 Thread aditya shukla
it simultaneously do I have to use threads? Please point me in the right direction. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Question-Answer based web App

2009-12-26 Thread aditya shukla
uld i generate the report using if-else ?.Please suggest a better approach. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Live Video Capture using Python

2009-12-20 Thread aditya shukla
.I am not sure if this would be help here.I would appreciate if someone points me in the right direction. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting into a database

2009-10-11 Thread aditya shukla
On Sun, Oct 11, 2009 at 5:06 PM, aditya shukla wrote: > Hello Stephen, > > > I have put the code and the traceback.Can you please help me now? .I am > scratching my head :) > > I am using python 2.6 on windows 7 and MySQLdb to make connections to the > database.The

Re: Inserting into a database

2009-10-11 Thread aditya shukla
ceback C:\Python26\lib\site-packages\MySQLdb\__init__.py:34: DeprecationWarning: the sets module is deprecated from sets import ImmutableSet cp1252 en_US Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Inserting into a database

2009-10-11 Thread aditya shukla
ll no help. Any help is appreciated. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Changing IP's and Connecting to a site

2009-09-16 Thread aditya shukla
Hello Guys' I have a script which i am using to do interaction with a website.Is there a way by which i can connect to the site through different ip's .Say use a proxy or something. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

KeyBoard interrupt and Redirection operator

2009-09-15 Thread aditya shukla
ile. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Site Scarpping with Beautiful Soup

2009-09-10 Thread aditya shukla
lease guide me in the right direction. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Temporary file

2009-04-09 Thread aditya shukla
w+b' at 0xb7e84800> temp.name: /home/swamp2/cacsgrad/axs9347/Desktop/prefix_zOfoX__suffix Please help me to fix it. Aditya -- http://mail.python.org/mailman/listinfo/python-list

pyparse

2009-03-14 Thread aditya shukla
Hello guys i am trying to make a simple sql parser and i found pyparse , my question here is does it return a data structure like an abstract syntax tree of the sql query.Any help is appreciated Aditya -- http://mail.python.org/mailman/listinfo/python-list

Lambda function

2009-02-25 Thread aditya saurabh
I defined two functions - lets say fa = lambda x: 2*x fb = lambda x: 3*x Now I would like to use fa*fb in terms of x is there a way? Thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

String manipulation using RE

2008-10-26 Thread aditya shukla
for match in iterator: x = match.group() l = x.split('):') value = int(l[1])-int(l[0]) z= repr(value) rm = l[1] x= x.rstrip(rm) y = x + repr(value) print y I am able to get the desired output further, any help is appreciated Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Selecting random elements from a list.

2008-10-13 Thread aditya shukla
Hello folks, i have a list say list1=[a,b,c,...z] ie 26 elements i have to take 5 elements from it randomly and save in another list.Please explain how to do this? Aditya -- http://mail.python.org/mailman/listinfo/python-list

RE module question

2008-10-03 Thread aditya shukla
n is how can i delete this substring from the original string? ie -bin-ulockmgr_server:0.99 should be my output. thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Regular expressions question

2008-10-02 Thread aditya shukla
gt; --- thus i am able to find the match but when i use the string m = p.match("-bin-ulockmgr_server:0.99[&&NHX:") >>> print m None -i am not able to find the match . Can someone help me here. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Parser Module

2008-09-28 Thread aditya shukla
arse tree be constructed?And what parser module should i use? Aditya -- http://mail.python.org/mailman/listinfo/python-list

File modifications

2008-09-27 Thread aditya shukla
amp;NHX:C=200.0.0] and so on , how should i handle this after reading the file? Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Classes and functions.

2008-09-26 Thread aditya shukla
stance_from_root = src.distance_from_root - l tree.dfs_traverse(V()) >From here it is clear that the function does not return anything but i wanna get the value of the distance from root.How can i get this? Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Newick parser

2008-09-21 Thread aditya shukla
wanna parse the trees in that file. Please help me if someone has experience on how to use this module. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Adding environment variables to bash.

2008-09-11 Thread aditya shukla
Hello folks Can i add any environment variable to bash from my python script? so that when i use env command then i can see that environment variable. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Working with environment variables.

2008-09-10 Thread aditya shukla
type ="string") options, remainder = p.parse_args() when i run the script python prog.h -H value now this dosen't change the value of the variable which was set earlier .Please help me in fixing this issue. Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo/python-list

tempfile module

2008-09-10 Thread aditya shukla
s user ie any other user than root then i get this error sh: prefix_u92XQJ_suffix: Permission denied also , i cannot find the find in either the current working directory nor in the dir='directory'.so i cant check the permission by using ls -l prefix_u92XQJ_suffix Please help m

File operations

2008-09-10 Thread aditya shukla
s user ie any other user than root then i get this error sh: prefix_u92XQJ_suffix: Permission denied also , i cannot find the find in either the current working directory nor in the dir='directory'.so i cant check the permission by using ls -l prefix_u92XQJ_suffix Please help m

I/O error 13 Permission denied -Cannot access file as it is used by another process.

2008-08-28 Thread aditya shukla
i am using os.system() in my program to communicate with prog2 Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo/python-list

Extracting path of a program from a list.

2008-08-26 Thread aditya shukla
t and then return its path Please help me on this. Thanks in advance. Aditya -- http://mail.python.org/mailman/listinfo/python-list

Environment variables

2008-08-26 Thread aditya shukla
Hello folks, How can i create environment variables using python? Aditya -- http://mail.python.org/mailman/listinfo/python-list

Creating environment variables.

2008-08-26 Thread aditya shukla
cannot hard codes its path.And i am not supposed to take the path of prog2 as an input to prog1.So is there anyway to solve this problem , by the creation of environment variable (whose value is set as the path of prog 2)?Also how do i create environment variable for prog1? Thanks in advance Aditya

File operations

2008-08-21 Thread aditya shukla
Hello guys I am trying to search a file say xyz.txt after searching i get the location of the file in search_file (containing abspath) ,eg search_file="c:\\abc\\xyz.txt" now how should i open this file i can use file=open("c:\\abc\\xyz.txt","rb") but i have to use search_ file How can this be

Find file in a given search path

2008-08-20 Thread aditya shukla
the code ie python findpath.py , nothing happens , i mean command prompt reappears . I am using ubuntu and the file is stored at the location -/home/Desktop/Python-2.5.2/Lib. Can someone explain what's happening? Thanks in advance. Aditya. -- http://mail.python.org/mailman/listinfo/python-list

IDLE issue

2008-08-20 Thread aditya shukla
dle while if it put it up in a script and run it as python script.py then it works Its strange? Aditya -- http://mail.python.org/mailman/listinfo/python-list

os.system()- cannot add parameter

2008-08-20 Thread aditya shukla
new\\xyz\\win32\\xyz' + " " + b) -- now this runs the xyz.exe but does not accept the parameter, where as if i directly give xyz c:\progs through the client(from cmd.exe) then this works. Please help me solve this problem Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Subprocess module question.

2008-08-19 Thread aditya shukla
wsError: [Error 2] The system cannot find the file specified However "netscan.exe" is present on my system. Some please explain why does this happens? Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo/python-list

Newbie question about sending and receiving data to the command prompt.

2008-08-19 Thread aditya shukla
epr(stdout_value) -command prompt blinks and disappears.Please explain what's happening. Thanks in advance. Aditya -- http://mail.python.org/mailman/listinfo/python-list

command line tool for process communication

2008-08-17 Thread aditya shukla
could this be done in python? Optparse can be used to make the new tool but what should be done to control the existing tool from the new tool? Thanks in advance. Aditya -- http://mail.python.org/mailman/listinfo/python-list

Command line arguements

2008-07-27 Thread aditya shukla
hard code the name of the file in my code every time i need to read it. I was reading about the sys module and i guess sys.argv would take the input from the command line whenever i run the python script . Please guide me in the right direction on how to tackle the problem. Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo/python-list

Taking command line arguments from another program

2008-07-27 Thread aditya shukla
hard code the name of the file in my code every time i need to read it. I was reading about the sys module and i guess sys.argv would take the input from the command line whenever i run the python script . Please guide me in the right direction on how to tackle the problem. Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo/python-list

Histogram of floating point values.

2008-07-25 Thread aditya shukla
=array(data) pylab.hist(input_hist,bins=0.1) and this is the error that i am getting *(array([], dtype=int32), array([ 0.5]), )* does this mean that i cannot plot a histogram of floating point values ? or is there a way around Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo

Histogram and \lambda parameter of the laplacian curve.

2008-07-25 Thread aditya shukla
://matplotlib.sourceforge.net/and are there any other libraries which can be used. Thanks in advance. Aditya -- http://mail.python.org/mailman/listinfo/python-list

File operations.

2008-07-24 Thread aditya shukla
Guys i just understood the problem.Thanks for all your help Aditya -- http://mail.python.org/mailman/listinfo/python-list

file operations.

2008-07-24 Thread aditya shukla
bsbs|nscsjsj|0.93|hsbcjsnc x=open("a.txt","r") data=[] for line in x: line=line.split("|") data.append(float(line[-2])) print data 0.332,0.936 Please help me fix this problem Thanks in advance Aditya -- http://mail.python.org/mailman/listinfo/python-list

Reading a file

2008-07-24 Thread aditya shukla
Thanks a lot guys , i got it now. Aditya -- http://mail.python.org/mailman/listinfo/python-list

Reading a file

2008-07-24 Thread aditya shukla
I have a text file whose contents are like this:- jd|fj|dnv|jd|0.33|c:\\windows\\win32 shcbsbs|nscsjsj|0.93|hsbcjsnc I am trying to read the file like this:- >>> x = open("c:\\a.txt","r") >>> x.read() the result that i get is ike this:- 'jd|fj|dnv|jd|0.33|c:windowswin32\nshcbsbs|nscsjsj

Re:Taking the floating point distances and plotting histogram

2008-07-23 Thread aditya shukla
Hello folks:- I have a program whose output is stored in a text file , say test.txt eg. 0\9\10\11|0.50|c:\windows\apppatch/AcLayers.dll 0\9\10\11|0.50|c:\windows\apppatch/AcRedir.dll 0\9\10|0.66|c:\windows\apppatch/AcSpecfc.dll 0\9|0.83|c:\windows\apppatch/iebrshim.dll After reading this text fil

python script terminating

2006-12-19 Thread Aditya Vaish
Using perl

python script terminating

2006-12-18 Thread Aditya Vaish
cript is running and thus the program called by the perl script is hung. ps aux|grep T root 1123 0.0 0.0 4116 20 pts/0TDec18 0:00 python root 1124 0.0 0.0 4112 20 pts/0TDec18 0:00 python Regards, Aditya -- http://mail.python.org/mailman/listinfo/python-list

Leo Outliner Python/Tkinter Tcl/Tk Issues

2006-03-27 Thread aditya . siram
Hi all, I recently found the Leo Outliner Tool (http://webpages.charter.net/edreamleo/front.html)written in Python and installed it on my Windows PC at work and my Debian and Ubuntu PC's at home. On my Linux installs, however, the application is jumpy. When scrolling down a long document in Leo, th