I tried re-downloading python and it gave me an option to repair, so I tried
that. But it still throws the same error.
I downloaded Python 3.5.0 for Windows.
Lisa Twede
Staff Software Developer
Products
ltw...@ep.com<mailto:ltw...@ep.com>
PHONE (818) 955-4311
FAX
[Entertainment Partne
Hi there,
How can I do this in a one liner:
maxCountPerPhraseWordLength = {}
for i in range(1,MAX_PHRASES_LENGTH+1):
maxCountPerPhraseWordLength[i] = 0
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I see there is an initial directory option in askopenfilename. However, I want
the initial directory to be the last directory used in a prior execution of my
script. Is there a way to force the askopenfilename to the previous initial
directory easily using information somewhere (I know Window
The New Way To Enjoy Satellite TV on your PC!
• Watch all your favorite shows on your Computer from anywhere in the
World!
• Save 1000's of $$$ over many years on cable and satellite bills
• Plus Get FREE Unlimited Downloads Movies, MP3s Music, etc !!!
• INSTANT DOWNLOAD
For More Details: http://
The New Way To Enjoy Satellite TV on your PC!
• Watch all your favorite shows on your Computer from anywhere in the
World!
• Save 1000's of $$$ over many years on cable and satellite bills
• Plus Get FREE Unlimited Downloads Movies, MP3s Music, etc !!!
• INSTANT DOWNLOAD
For More Details: http://
Great. Thanks for your help.
--
http://mail.python.org/mailman/listinfo/python-list
I am reading in data from a text file. I want to enter each value on
the line into a list and retain the order of the elements. The number
of elements and spacing between them varies, but a typical line looks
like:
' SRCPARAM 1 6.35e-07 15.00 340.00 1.10 3.0 '
Why does the followi
sible=False)
axhspan(P99, P99, lw=3, ec='r', fc='r')
ax = gca()
#P99 = str(P99)
P99 = '%0.1f' % P99
text(0.01, 0.95, '99th Percentile: '+P99+' lb/hr',
transform=ax.transAxes)
figpath = ConstructFigPath(state, facility, unit
#x27;)
ax = gca()
#P99 = str(P99)
P99 = '%0.1f' % P99
text(0.01, 0.95, '99th Percentile: '+P99+' lb/hr',
transform=ax.transAxes)
figpath = ConstructFigPath(state, facility, unit, increment, year)
savefig(figpath)
close()
Can you see the problem?
thanks,
-Lisa
--
http://mail.python.org/mailman/listinfo/python-list
ting over range(len(a)) is an anti-pattern in Python. You should
> do it like this:
>
> for item in a:
> output.writerow([item])
I can try that. Is using range(len(a)) a bad solution in the sense
that its likely to create an unexpected error? Or because there is a
more efficient way to accomplish the same thing?
thanks!
Lisa
--
http://mail.python.org/mailman/listinfo/python-list
ry", "tart" ?
Second, there is a significant delay (5-10 minutes) between when the
program finishes running and when the text actually appears in the
file. Any ideas for why this happens? It is the same for writing with
the csv module or the standard way.
thanks!
Lisa
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, everyone for replying so promptly. I got it to work the way I
intended, and have some ideas for how to make it much cleaner.
- Lisa
--
http://mail.python.org/mailman/listinfo/python-list
thats easy enough to solve
"""test text.py
for playing around with my text editing task
"""
UnitList = open('/Python25/working/FacList.txt', 'r')
RawData = open('/Python25/working/data.txt', 'r')
Output = open('/Python25/working/output.txt', 'a')
def PullHourlyData(filename, facility, unit):
Hi,
I've just started programming in python, and have run into an
unexpected problem. I am using python to pull text data from some csv
files. I have one file that has the important identifiers (name, etc)
and other files with lots of other data. I wrote a function that takes
the file name and
I hear that Python is one of the easiest languages to learn. It is
easier than PHP or Pearl? Is it as useful as those two? I am attracted
to Python as a first language, but I just want to be sure I will be
able to use it.
Opinions, thoughts, thanks!
--
http://mail.python.org/mailman/listinfo/pyt
15 matches
Mail list logo