FINAL SOLUTION:
### LOOP OVER DIRECTORY
location = '/Users/spyros/Desktop/3NY8MODELSHUMAN/HomologyModels'
zdata = []
for filename in os.listdir(location):
filename = os.path.join(location, filename)
try:
zdata.extend(extract_zcoord(filename))
except NameError:
print "No such file!"
except SyntaxEr
On 05/29/2012 08:46 PM, Joseph Rishe wrote:
> #Operating System - Mac OS X 10.6.8
> #Python Version - Python 2.6.6
>
>
>
> ##Goal: I am creating a program to calculate credit card payments.
> ## The user should be able to put in a credit card balance and
> interest
> ## rate, and the p
On Tue, 29 May 2012 17:50:37 -0700 (PDT)
PhantomsCore
wrote:
>
> if gameIsDone:
> if playAgain():
> missedLetters = ''
> correctLetters = ''
> gameIsDone = False
> secretWord = getRandomWord(words)
> else:
> break
if gameIsDone:
if playAgain():
missedLetters = ''
correctLetters = ''
gameIsDone = False
secretWord = getRandomWord(words)
else:
break
That is my coding. When I try to run it I get "Break outside loop"
--
View th
#Operating System - Mac OS X 10.6.8
#Python Version - Python 2.6.6
##Goal: I am creating a program to calculate credit card payments.
## The user should be able to put in a credit card balance and
interest
## rate, and the program will tell them what monthly payment will
allow
##
Steven D'Aprano wrote:
location = '/Users/spyros/Desktop/3NY8MODELSHUMAN/HomologyModels/'
zdata = []
for filename in os.listdir(location):
zdata.extend(get_zcoords(filename))
Hah, that can't work. listdir returns the name of the file, but not the file's
path, which means that Python will
On Tue, May 29, 2012 at 6:26 PM, Walter Prins wrote:
> Hi,
>
> On 29 May 2012 14:40, Opher Lubzens wrote:
>
> I presume you can't develop on a VM which is less restrictive by any
> chance? How about setting up something similar to Movable Python or
> Portable Python on a disk (or disk file, or U
Hi,
On 29 May 2012 14:40, Opher Lubzens wrote:
> This is supposed to be a QA tool to be run on virtual machines to make
> sure several of our features work correctly and do not degrade during
> development and version changes.
OK...
> Our machines are susually running a secure variant of the Li
On Tue, May 29, 2012 at 4:18 PM, Walter Prins wrote:
> What does this work machine run exactly? Why won't you be able to
> (for example) keep some libraries in your own home lib folder and
> update the library load path so that your own libraries can be used by
> your programs? Does this machine
On 29 May 2012 12:20, Opher Lubzens wrote:
>> Unfortunately I'm using this in my work, and cannot rely on the psycopg2
> extension being available in the server that the script will run on unless I
> can enter it into the python-static bundle as an in-built module: I'm aware
> of the extension and
On Tue, May 29, 2012 at 7:20 AM, Opher Lubzens wrote:
>
>
> On Tue, May 29, 2012 at 1:25 PM, Joel Goldstick
> wrote:
>>
>> On Tue, May 29, 2012 at 2:42 AM, Opher Lubzens
>> wrote:
>> > Hello to the list, I'm working on a python script that has to interact
>> > with
>> > a Postgresql database, an
On Tue, May 29, 2012 at 1:25 PM, Joel Goldstick wrote:
> On Tue, May 29, 2012 at 2:42 AM, Opher Lubzens
> wrote:
> > Hello to the list, I'm working on a python script that has to interact
> with
> > a Postgresql database, and the only python version I can use is python
> > 2.7-static. I have two
On Tue, May 29, 2012 at 2:42 AM, Opher Lubzens wrote:
> Hello to the list, I'm working on a python script that has to interact with
> a Postgresql database, and the only python version I can use is python
> 2.7-static. I have two questions:
>
> 1) Is there any way to add libraries to this version?
13 matches
Mail list logo