Go Back   Velocity Reviews > Newsgroups > Python
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Python - Enumerate registered codecs

 
Thread Tools Search this Thread
Old 07-31-2005, 04:38 PM   #1
Default Enumerate registered codecs


I see the list of standard encodings in Python 2.4.1 documentation
section 4.9.2.

Is there a method to enumerate the registered codecs at runtime?


Paul Watson
  Reply With Quote
Old 07-31-2005, 10:06 PM   #2
John Machin
 
Posts: n/a
Default Re: Enumerate registered codecs
Paul Watson wrote:
> I see the list of standard encodings in Python 2.4.1 documentation
> section 4.9.2.
>
> Is there a method to enumerate the registered codecs at runtime?


This has been asked before, within the last couple of months AFAIR. Use
Google to search for codec(s) in this newsgroup in Google groups.

Basically the answer was no. What's your use case?



John Machin
  Reply With Quote
Old 08-01-2005, 03:43 AM   #3
Paul Watson
 
Posts: n/a
Default Re: Enumerate registered codecs
John Machin wrote:
> Paul Watson wrote:
>
>> I see the list of standard encodings in Python 2.4.1 documentation
>> section 4.9.2.
>>
>> Is there a method to enumerate the registered codecs at runtime?

>
> This has been asked before, within the last couple of months AFAIR. Use
> Google to search for codec(s) in this newsgroup in Google groups.
>
> Basically the answer was no. What's your use case?


I need to report the encodings supported. When the user does not enter
a required encoding or enters an invalid encoding, we need to tell them
which encodings are valid and how they are specified. In an embedded
environment I would be concerned that some or most might have been left
out to save space/size/time.

The primary identifier and a descriptive string (localized) need to be
available at a minimum. Having aliases would be a plus.


Paul Watson
  Reply With Quote
Old 08-01-2005, 06:43 AM   #4
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
 
Posts: n/a
Default Re: Enumerate registered codecs
Paul Watson wrote:
> The primary identifier and a descriptive string (localized) need to be
> available at a minimum. Having aliases would be a plus.


You will have to implement your own list. Getting the well-known aliases
is possible through encodings.aliases, but a localized descriptive
string was never part of the design - this is something the application
will have to provide.

Regards,
Martin


=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
It is an error to use a section registered as allowDefinition='MachineToApplication' garyong_14300 Software 0 04-26-2007 02:13 AM
Conflicting codecs?? paulg7083 DVD Video 5 11-26-2006 08:41 PM
Codecs Updates Bob DVD Video 7 08-15-2006 08:52 AM
Troubleshooting video codecs Phisherman DVD Video 1 04-01-2006 06:02 AM
Playing DVD's on a PC. What free software / codecs reccomended? Mike Barnard DVD Video 19 05-02-2004 04:28 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46