#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11
Top Prev 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 Next
#python
<pjd> what's it supposed to do?
<kosh> greetings all
<OrgulloKmoore> pjd> it defines some things like throttle, the user's preferred language, how many pages to save per minute...stuff like that
<pjd> what does it use the relative path for?
<OrgulloKmoore> pjd> it's a bit complicated...but it opens the different files for the different familes and languages
<OrgulloKmoore> for example, the file for the Enlgish Wikipedia might be in the subfolder family, file en
<fluxdude> when I do p=subprocess.Popen("somecommand",stdout=PIPE) I get the error "global name 'PIPE' is not defined"
<OrgulloKmoore> subfoler families/wikipedia/ is more like it
<fluxdude> can anyone explain why the docs say to do stdout=PIPE but PIPE doesn't do anything
<fluxdude> must I declare a file handle or something and then feed that in place of PIPE?
<fluxdude> of some other handle
<TFKyle> fluxdude: you want subprocess.PIPE, unless you did a from subprocess import PIPE
<fluxdude> oh
<fluxdude> see, the examples didn't do a from subprocess import * but I guess it's implied, thanks!"
<jcs> is xml.sax.handler part of standard python? I'm using it, need to know whether to explicitly tell users it's a requirement.
<ehird> import *? nuuu
<ehird> jcs: type xml.sax.handler in python
<ehird> if it shows something not in site-packages, yep
<pjd> OrgulloKmoore: ugh, it really should be fixed to take a directory prefix
<pjd> that's horrible
<OrgulloKmoore> perhaps...
<pjd> your script can chdir to its directory as a workaround, in the mean time
<fluxdude> does ehird: yes I know you're not supposed to do that, I never do
<jcs> ehird: "import xml.sax.handler; type xml.sax.handler" gives a syntax error at "xml"
<fluxdude> it pollutes the namespace
<ehird> ... LOL jcs
<ehird> oops.
<ehird> but, uh
<ehird> did you forget the meaning of 'type' in relation to a keyboard?
<jcs> never knew it to begin with mate :-)
<jcs> oh.
<jcs> aaaah
<ehird> *sigh*
<jcs> ehird: okay, it's in site-packages, but looking in that dir I see lots of extra stuff installs there too.
<ehird> yes, lots of extra stuff does.
<ehird> nothing from stdlib!
<ehird> so, it's not standard
<ehird> and you will have to specify it as a dep
<jcs> right, okay, have now remembered how to parse human languages...
<jcs> cheers.
<glen_quagmire> i have .pfa file. how do I use that font?
<insanekane> glen_quagmire: i think, you can use it directly by "installing" it ..
<insanekane> glen_quagmire: if you use KDE, then right click in Konqueror should give you an Install Font item
<glen_quagmire> i want to use that font in python program
<insanekane> glen_quagmire: else, copy it to your ~/.fonts/ directly
<insanekane> glen_quagmire: what kind of python program ?
<ehird> I don't think I'll bother with exit codes.
<glen_quagmire> music notation
<ehird> Too much hassle. Print an error and exit with one, else 0. Perfect.
<insanekane> glen_quagmire: what kind of GUI ?
Previous Page Next Page