•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 456,557 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,433 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 677 | Replies: 1 | Solved
![]() |
•
•
Join Date: Oct 2007
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
I am trying to use the function cmpfile of the cmp module which returns true or false if filepaths passed are same or not...
But the interpreter flashes an error "undefined global name false"...
Also it doesnt accept true or false in other functions also..
what might be the problem???
please help...
also can somebody tell me a way to find askii value of a character...
the ascii function in curses module is not working...
In the curses module there is a call to _curses module which the interpreter cant find and neither can i....
I am using recently released python25....
Can someone help...
Please....
But the interpreter flashes an error "undefined global name false"...
Also it doesnt accept true or false in other functions also..
what might be the problem???
please help...
also can somebody tell me a way to find askii value of a character...
the ascii function in curses module is not working...
In the curses module there is a call to _curses module which the interpreter cant find and neither can i....
I am using recently released python25....
Can someone help...
Please....
Last edited by jai.mahadeokar : Oct 24th, 2007 at 3:04 am.
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hello,
The keywords are True and False
I dont remember why, but I use comparisons on begginnings of strings got with os.path.normpath, something like in:
The keywords are True and False
I dont remember why, but I use comparisons on begginnings of strings got with os.path.normpath, something like in:
def select_project(self):
LOG.debug(self.__class__.__name__)
ldpath = self.iniframe.entries['localdir'].get()
path = tkFileDialog.askdirectory(initialdir=ldpath, title='Choisir le dossier du projet...')
if os.path.normpath(path[:len(ldpath)]) == os.path.normpath(ldpath):
self.iniframe.set_entry_text('projdir', '/' + path[len(ldpath):].strip('/'))![]() |
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Send data on a serial port (C++)
- Need help with Javascript (JavaScript / DHTML / AJAX)
- SQL trigger based on a true/false field value (MS SQL)
- vBulletin mod_rewrite (PHP)
- Boolean variable True/false (ASP)
- can't proceed from here. (C++)
- help getting !true bool to break out of program (C++)
Other Threads in the Python Forum
- Previous Thread: a class containg a set of data members
- Next Thread: Hide Window


Linear Mode