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
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
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
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
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
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:
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
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
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
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.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
Thanks.i will look into multiprocessing.
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
uld i generate the report using
if-else ?.Please suggest a better approach.
Thanks
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
.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
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
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
ll no help. Any help is
appreciated.
Thanks
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
ile.
Thanks
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
lease guide me in the right
direction.
Thanks
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
arse tree be constructed?And what
parser module should i use?
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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 am using os.system() in my program
to communicate with prog2
Thanks in advance
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
t
and then return its path
Please help me on this.
Thanks in advance.
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
Hello folks,
How can i create environment variables using python?
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
=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
://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
Guys i just understood the problem.Thanks for all your help
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
Thanks a lot guys , i got it now.
Aditya
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Using perl
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
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
59 matches
Mail list logo