Σχετικά με ελληνικό εννοιολογικό λεξικό

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Mar 9 14:12:00 EET 2006


On 2006-03-09 08:43, Panagiotis Atmatzidis <p.atmatzidis at gmail.com> wrote:
>d.a.glynos wrote:
>> On Wed, 8 Mar 2006, Panagiotis Atmatzidis wrote:
>>> Άδοξο μα γιατί το λες αυτό? Άντεξε σχεδόν 4 posts on topic!!! :P
>>>
>>> ps. Το python script δεν παίζει σε osx.
>>>
>>> OSX atma ~ $ python lexicon.py
>>> Traceback (most recent call last):
>>>    File "lexicon.py", line 35, in ?
>>>      my_encoding = pseudo_detect_encoding(sys.argv[1])
>>> IndexError: list index out of range
>>
>> Olokliro argv de to vlepeis? 3exases na dwseis kapoia parametro sto
>> programma sou :-)
>
> Τσου δεν το είδα το arg*.

Εγώ πάλι, θα προτιμούσα κάτι σαν ανθρώπινο error message:

     1  import sys
     2
     3  def usage():
     4          print "usage: lexicon.py STRING"
     5          sys.exit(1)
     6
     7  if len(sys.argv) <> 2:
     8          usage()
     9
    10  # We're sure we only have a single argument here, so it's safe
    11  # to access argv[1] blindly.
    12  print "Looking up: " + sys.argv[1]




More information about the Linux-greek-users mailing list