@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14



Comments:

<0> lol, kiddies.
<1> first time i see that on freenode
<2> really? heh
<1> yeah i thought most people around here were sane
<3> heh.
<2> some prick is here getting their thrills.
<4> hallo kann mir jemand helfen
<4> schreibt hier niemand
<4> hallo
<3> Gast: this channel uses English, sorry.
<5> how come that there are no longer artist names than 30 characters in a life radio stream?
<5> doesn't id3 support longer ones?
<5> or is it just some particular strange thing radio stations like to do?
<6> is there a python module that allows writing to a URL? urllib and urllib2 appear to be read-only
<3> luh: id3 limits artist/title/etc to 30 characters, yes.
<3> chmeee: how does one 'write to a URL?'



<7> luh: correction, id3v1
<3> chmeee: there is WebDAV, but it's not just 'writable URLs', and may not be what you want.
<7> id3v2 doesn't have this limit
<6> Yhg1s: like an ftp put, but abstracted to allow other protocols
<3> chmeee: you can't do 'like FTP' over HTTP.
<8> technically you can upload over HTTP
<3> chmeee: and no, I don't know of any abstraction over different transfer protocols. Well, except the filesystem, with user-space filesystems.
<8> only most browsers and webservers don't support it (not normally anyway)
<3> Greatred: yeah, and urllib supports that ;)
<8> good good...
<3> WebDAV is more complete, and there's a separate (non-stdlib) module for that.
<8> the PUT request, right?
<3> of course.
<8> excellent
<3> I don't think it's been tested in a while, though.
<8> i don't think i've ever used it tho :|
<3> and I've never seen anyone use it.
<6> according to the reference: it can only open URLs for reading, and no seek operations are available.
<6> for urllib
<3> chmeee: correct. there is no 'writable HTTP'. You can only PUT or POST data.
<3> chmeee: neither is very useful for 'sending files'.
<3> (although POST with data is used for file-upload webpages.)
<8> (although they can)
<8> and PUT i guess it more for uploading parts of a webpage
<3> mostly, it's not a matter of client-side libs, but of server-side support.
<8> s/it/is/
<9> i'm bored
<3> once you figure out what your server supports for uploading, you can choose a client lib.
<6> Yhg1s: I'm not so interested in writing to http, but to be able to read and write to several remote protocols: ftp, ssh/sftp, webdav, and others that have filesystem-style access
<3> chmeee: Twisted may offer you the most abstract interface, and I doubt it's very abstract.
<6> okay, thanks
<6> I'll look into it
<3> the problem is that there's not much those protocols hvae in common
<6> I know
<3> so a proper abstraction will be nigh useless.
<9> i'm bored! really bored. :P
<2> kbrooks: wikipedia, and read some random articles. Thats what I do.
<6> well, I just need something like open, read, write, close, stat. I've thought of abstracting each protocol to provide those services, but if something is already written to do that, it'd be preferred
<3> WebDAV (and NFS, for instance) don't really have open/close. FTP doesn't really have stat. :P
<6> true, but for those I can fake it
<6> basic goal is to have some master interface to any 'name', which follows the RFC for URLs. Ask it to retrieve an object of a given name, and it will load the file, parse it, build a python object from it, and return it to you. Tell the manager to sync, and it flushes the modified objects to their storage location
<5> thanks for the information luks
<5> !
<10> Is there a Python equivalent of Perl's HTML::Entties decode_entities function? I.e. some function with takes a string like "Foo &amp; Bar" and returns "Foo & Bar"?
<11> I don't know (although this question was raised many times in this channel), but it's easy to parse the entity tables ( http://www.htmlhelp.com/reference/html40/entities/ ) once and use that.
<10> hmm. I found htmlentitdefs.entitydefs, which appears to be such a table, but I was wonderinf if I was being redundant w/ other stdlib code by writing to code to make use of it
<12> how does the += operator work on lists? why does my second statement here add an indice with the number three to each field of the array?
<12> a = [[9]]*10;a[5] += [3];print a
<11> += is the .extend method.
<11> but, [[9]] * 10 will create a list with 10 references to the same sublist ( [9] )
<9> __iadd__ = extend ...
<13> aib: when you do [[9]] * 10, youe repeating the same reference, it's the same list
<9> TFK, right?
<14> Hello, I ask you all do not treat my question as trolling :)
<13> aib: use something like [[9] for i in xrange(10)]
<14> It is related to both php and python
<14> Are there any refactoring browsers for PHP? I'm looking for something similar with bicyclerepairman for Python.
<12> thanks
<14> I asked in #php and some people there don't even know what refactoring is :(
<11> moconnor, ah, true, sorry for leading you astray.
<2> exalted> l = [[9]]*10; l2 = map(list,a); l2[0] is l2[1]



<2> False
<15> while running an interactive python 2.4 shell, how do I check version again?
<13> RadSurfer: sys.version
<15> thanks
<15> 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
<15> WOW! from inside Xchat... it works now
<5> bye
<16> I'm trying to port an extension to Windows, and upon "setup.py build", I get this: "error: The .NET Framework SDK needs to be installed before building extensions for Python"
<16> is this true? does distutils require .NET?
<11> News to me, but you probably have a component that does require it.
<16> since this was written in windows, i somehow doubt that..
<16> er, linux
<11> Mono?
<16> no, just a simple pyrex wrapper
<16> around a C-only library
<17> where can I find python code snipplets besides aspn?
<18> davix: effbot.org
<1> aspn is python's cookbook?
<17> danke
<18> davix: this site has a whole section for python
<19> the books I'm reading say that there isn't a specifically mature python SOAP implementation. Has this changed? which implementation would you recommend? I'm using SOAPpy..
<20> nictuku, What date were they published?
<19> 2001
<19> O'reilly's "Python XML"
<21> simple exceptions question - how to catch specific exception numbers? http://deadbeefbabe.org/paste/2863
<22> Is there a module that contains a "mount" function when running on Unix systems?
<23> hi, why does locale.setlocale(locale.LC_ALL,'en_US') give me an error, though 'en_US' *is* in /usr/share/i18n/locales ?
<21> TimU, http://www.cs.princeton.edu/~smuir/planetlab/docs/proper.html#AEN30
<21> ?
<18> Timu: how abt writing a python extension for that?
<21> __hAyNEs, It looks like the "Proper.py" extension might do it already.
<14> TimU: what kind of mount ? the mount filesystems one ?
<18> i din see the link ... thnks
<22> Igareok22: Yes
<21> os.path will tell you if a dir is a mount point but that's about it.
<14> TimU: os.system("mount blablabla") is not good ?
<22> Igareok22: It's on a Live CD that uses BusyBox, and it doesn't support --bind
<22> s/Live/Install/
<14> TimU: maybe you can call the mount function from the c library directly?
<22> Igareok22: How would I do that? Do I have to write an extension?
<18> Timu: i guess u'll have to write one
<14> TimU: yes i was meaning that one
<22> Awesome, it works. Thanks
<21> simple exceptions question - how to catch specific exception numbers? http://deadbeefbabe.org/paste/2863
<20> Exceptions aren't numbers.
<13> mischko: e.args[0] is the errno number, e.args[1] the message
<24> mischko, if e.errno not in [2, 5, 13]: raise
<21> I wan to do this in a OS-neutral fashion i.e. import errno; if e.errno == errno.EACCES: p***. I don't see a errno attribute for "WindowsError, [Errno 5] Access is denied"
<21> s/wan/want/
<25> I'm trying to make a timer in python (I'm a newbie), and I'm copy-pasting the code from http://docs.python.org/lib/timer-objects.html , but I get an error that says "NameError: name 'Timer' is not defined". Why? It doesn't work if I import time either..
<18> ErikHK: maybe you need to import some module?
<13> ErikHK: have you gone through the tutorial ?
<25> werneck: most of it, yes, am I missing something obvious?
<13> ErikHK: yes... if you "import timer", you have to use timer.Timer
<25> werneck: oh, ok, sorry :D
<18> ok
<13> ErikHK: btw, it's not timer module, but the threading module
<25> ok
<26> newbie question: i'm hashing a string and expecting 'fea95957b2b16cd8f1e9afa67faf9c49' but hash() returns -828415927
<11> why are you expecting that?
<26> del.icio.us says so
<13> ?
<26> i'm using a python library to access my del.icio.us bookmarks and del.icio.us hashs urls to 'fea95...'
<26> i was just trying to figure out how to hash urls in python to get the same value
<16> hm, not even a simple distutils test script works without that message. did anyone build a python extension with mingw?
<26> md5.md5('some text').hexdigest() works, thx
<27> hmm
<28> hi
<23> hi Bader
<26> hi bader
<26> how can i load a iso datetime such as '2006-02-11T16:45:31Z'?
<21> mamat, what do you mean "load"?
<26> parse?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

spamassassin Extra_Flags
#linux
#gentoo
linux mounting failed invalid argument
#sql
ubuntu install cpkg
multitasking with tss
#suse
perl strreplace
config_hwmon gentoo



Home  |  disclaimer  |  contact  |  submit quotes