#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 12 13 
Top Prev 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 Next

#python

<qk> Hi, is there anybody interested in working in Poland (python programmer) please write me a message for details.
<nachos> hey there pythonists, Hss Hss, how can i generate a string that is the alphabet?
<ehird> 'abcdefghijklmnopqrstuvwxyz'
<nachos> ehird: ide rather generate it on the fly
<marienz> nachos: there's one in the string module
<ehird> tough
<ehird> well, maybe ther'es a way to do it
<pjd> nachos: you can say import string; string.lowercase
<ehird> don't see the point, personally
<vorsprung> nachos, perl -e '@a='a'..'z'; print @a;'
<marienz> nachos: read the documentation on the string module though, there's one that's always just the ascii characters and a locale-dependant one.
<vorsprung> nachos, oh sorry you said in python
<nachos> yeap
<ehird> sqlite3.Warning: You can only execute one statement at a time. <-- That's a bit odd, I was sure it was named executemany..
<nachos> marienz: isnt the string module depreciated?
<epifanio> i've tried but : http://rafb.net/p/W5Pikl79.html
<Habbie> ehird, perhaps you're passing it wrong
<ehird> oh, i see
<marienz> nachos: most of it, not all of it.
<ehird> Habbie: executemany doesn't do what i thought it did :P
<marienz> nachos: read the documentation.
<Habbie> ehird, ehe
<ehird> heh yay, i can't pass placeholders in with executescript
<Habbie> duh :)
<ehird> i don't see what's so silly about that ;P
<ikor> hi all. i have wrote a python extension in C. When I load my module.so in the same directory where i'm, all works fine, but when i load it from different directory i got the : " SystemError: dynamic module not initialized properly". whats the difference?
<pjd> ikor: we'll need more details
<pjd> does your library depend on anything?
<pjd> what does "load it from a different directory" mean?
<ikor> ok. module resides in the ./build/lib.linux-i686-2.4/. i load it from ./ -- error. when load it from ./build/lib.linux-i686-2.4/. i'll past the code in pastebin.
<ikor> oh
<AniHatzis> the manual explains the version_info tuple (major, minor, micro, releaselevel, serial). what is serial? some kind of license number?
<ikor> here is the code http://pastebin.com/885199
<pjd> AniHatzis: no, not at all
<pjd> it would be a number that increments for every build, or whatever
<AniHatzis> thanks, pjd, - such as svn:keyword $Id$ in SVN? well, it is not number, but a string including the build version.
<pjd> ikor: how exactly do you "load it from ./" ?
<pjd> AniHatzis: you can probably think of it as the next-smaller increment, after micro
<AniHatzis> ah, ok
<pjd> i'm not sure exactly how it's determined, but it's probably not that important
<AniHatzis> would it be a bad idea to use it for my own packages?
<RaverWild> hello! please could someone help me on this: http://deadbeefbabe.org/paste/3727
<pjd> use it for your own packages?
<AniHatzis> such as: mypackage.version_info
<AniHatzis> as alternative to __version__
<ikor> http://pastebin.com/885202
<pjd> AniHatzis: no idea
<pjd> probably better to look at what versioning metadata the online repositories and Python tools use
<pjd> RaverWild: that "except select.error: pass" actually swallows the error, instead of passing it up
<pjd> (for what it's worth)

Previous Page  Next Page

Search ircarchive.info