User Name Password Register
DaniWeb IT Discussion Community
All
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: 657 | Replies: 2 | Solved
Reply
Join Date: Oct 2007
Posts: 7
Reputation: jai.mahadeokar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jai.mahadeokar jai.mahadeokar is offline Offline
Newbie Poster

_curses... Faulty library module???

  #1  
Oct 23rd, 2007
To get an ascii value of a char we have the ascii(c) function in curses.ascii module...
but in the curses module _curses module is imported... which is not there in the library hence
exception is being generated...

can anyone kindly help.. or suggest any other method for conversion...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,878
Reputation: Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold 
Rep Power: 13
Solved Threads: 193
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: _curses... Faulty library module???

  #2  
Oct 24th, 2007
Use the ord function.

print ord('A')

Prints the number 65 to the console.

Hope this helps.
Reply With Quote  
Join Date: Oct 2007
Posts: 7
Reputation: jai.mahadeokar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jai.mahadeokar jai.mahadeokar is offline Offline
Newbie Poster

Re: _curses... Faulty library module???

  #3  
Oct 24th, 2007
thanks a lot...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Python Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Python Forum

All times are GMT -4. The time now is 5:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC