| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> probably, I think <1> calamer: file.rfind(".") <2> calmar: fname,ext=os.path.splitext("/x/y/a.py"); fname+"_suff"+ext <0> I see. I check. thx a lot <3> q. is there a way to ask ipython to execute a .py when ipython exit ? <4> what is the best GUI TK to run in windows AND linux ? <3> kristalino: wxpython is well supported for both <2> kristalino: gtk or wxpython <4> ok, i'll go with wxpython then <4> and boa ide :) <5> kristalino: I use xrced instead of boa for constructing guis, as a datapoint. <4> i don't know it. What do you like in xrced ? <5> kristalino: it's the closest thing to editing xrc files directly. <5> and it's not drag+drop on the UI like wxGlade, which I find hard <4> is it hard then to connect this xrc file to python language ? (i only know tkinter for now) <4> in other words, what do you dislike in boa-constructor ?
<5> kristalino: I don't dislike it, I never got it to run properly. <5> kristalino: oh, and for 'how to use xrc', it's just a way of defining the interface. <5> kristalino: you use a wx cl*** to construct windows based on the xrc definition. <5> kristalino: the alternative is a spaghetti of hundreds of lines of code in order to lay out GUI elements. <4> Jerub, can you show me an example ? i find it hard to understand what could be "a wx cl*** to construct windows based on the xrc definition" <6> hey i am trying to install python 2.4.2 on my system but when i am runing it it stuck in "checking for getaddrinfo bug" without do anything... <5> kristalino: uhh, <6> if i do strace on it i see it do "waitpid ( -1 " <6> (when i am runing it -> runing ./configure --enable-ipv6) <5> http://wiki.wxpython.org/index.cgi/UsingXmlResources <5> essentially, the major bits are: <5> self.res = wxXmlResource("calc.xrc") <6> and if i dont use the --enable-ipv6 it stuck in "checkinf for --enable-ipv6" <5> that's loading the resource. <5> self.frame = self.res.LoadFrame(None, "MainFrame") <6> anyone have idea what can i do about it? <5> that's grabbing a whole buncha gui elements out of the resource and turning them into objects you can display on the screen. <5> self.panel = XRCCTRL(self.frame, "MainPanel") <5> that's grabbing out a gui element from the window <5> EVT_MENU(self.frame, XRCID("AddMenuItem"), self.Add) <5> that's attaching an event to a gui element. <5> :) <6> hey i am trying to install python 2.4.2 on my system but when i am runing it it stuck in "checking for getaddrinfo bug" without do anything... if i do strace on it i see it do "waitpid ( -1 " (when i am runing it -> runing ./configure --enable-ipv6) and if i dont use the --enable-ipv6 it stuck in "checkinf for --enable-ipv6" <4> Jerub, a little more difficult than Tkinter, but it sounds rather easy too :) is it ? <5> kristalino: once you get the hang of it, yes. <4> i heard the wxpython had problems on windows, is it true ? <7> is there a wxperl? <5> kristalino: not really. <5> kristalino: but there's differences in the ways that gui events are propagated under gtk and windows, so sometimes things work on one platform and fails on the other. <5> kristalino: but that only happens when you do stuff that's wrong. <8> Hello all! Why telnetlib write() doubling any IAC characters? How to send telnet commands? <3> q. what is the 'standard' library to perform sha1/md5/sha512 ? this kind of stuff <9> anyone can access to sourceforge web site ? <9> i can't <5> jme___: there's the sha module and the md5 module <3> LePoulpe303: i cant either. to 'http://sf.net" <3> Jerub: yep trying this one. but apparently it has no support for sha512 <9> jme___ oh thanks a lot <8> Why telnetlib write() doubling any IAC characters? How to send telnet commands? i look in telnetlib, but find only one write method: write(). But i don't need double IAC, because in this i can't send telnet commands <3> fyi, hashlib performs sha512 too <3> now the point is to find how to get hashlib from the internet and install it :) <3> ok i get the issue, hashlib is python 2.5 <3> and i got only 2.4.1 <10> how can i unpickle obj_b when i have "str = '%s%s' % (pickle.dumps(obj_a), pickle.dumps(obj_b))" ? <3> hmm pyopenssl export only the ssl part of openssl :( <3> aka not the hash and encryption <2> tom: strstream=StringIO.StringIO(str); loads from strstream twice. Maybe there are other ways too. <3> mouarf to get sha512 in python is not trivial :) <3> the basic pyopenssl doesnt do digest at all <3> there is a pyopenssl-extended which does digest <3> but not sha512 :) <3> there is hashlib from python 2.5, but it doesnt seems backported to 2.4 <3> ok openssl doesnt seems to export sha512, from 'openssl help' or the man page. but the source contains a sha512.c <3> it is a real travel :) <11> hi! <11> my python binary seg faults immediatly <11> Program received signal SIGSEGV, Segmentation fault. <11> [Switching to Thread -1211013456 (LWP 5184)] <11> 0xb7f22bf7 in PyErr_NormalizeException () from /usr/lib/libpython2.4.so.1.0 <11> 2.4.2 <12> OS?
<11> linux 2.6 <13> Hetfield: did you compile it yourself? <11> yes <11> gentoo ebuild <13> then I suggest talking to #gentoo. <13> you probably optimized too agressively. <11> no <11> i'm using just -02 flags now <13> #python won't be able to help you, in any case. <11> BUT! <11> only a thing... <11> i've used aggressive linking flags for all but python <11> probably related to this <14> Hetfield, did you already look on bugs.gentoo.org ? <13> entirely likely, and yet entirely your own fault. agressive optimization is not reliable. <11> izaac ye <11> Yhg1s just tell me a thing... <11> what are the libs python links with <3> fyi, there is a sha512 in a lib called shax-py which works on python 2.4 <13> Hetfield: depends entirely on how you build it. Check the compilation phase to see what it links with in your situation. <11> no warning or errors on compilation <11> strange strange strange <13> not at all. As I said, agressive optimization is not reliable. Only use it if you don't mind random crashes. <13> this is not Python-specific at all. <11> yes i think you're right <15> if i create a module with a line key="" when i import the module, can i say modname.key to set the value of it? then are all functions that use key in the module going to use the value i set? (basically does it act like an instance variable in an object) ? <11> ok thanks <11> i'll search a bit <11> bye! <13> triplah: yes. <15> Yhg1s: so if thats possible, whats the point of objects? __init__() i suppose ? <15> thanks for the answer btw <15> http://james.bond.edu.au/courses/inft12235/material/python/lib/module-rotor.html <-- anyone know if this module has been deprecated or something? i can't import it here <16> triplah: the object oriented paradigm is not primarely for organizing attributes and operators, that can be done with any type of namespace support. <15> Coke: true <17> existential quantification! <15> woop, yeah rotor IS deprecated <1> triplah: won't "foo".encode('rot13') do? <13> triplah: the point of cl***es (whch is what you meant to ask, I think) is that you can have more than one instance of a cl***. <13> rotor wasn't rot13 encoding. <13> rotor is the ENIGMA WWII encoding mechanism. <17> triplah, here you go: _On Understanding Types, Data Abstraction, and Polymorphism_, Cardelli '85. http://research.microsoft.com/Users/luca/Papers/OnUnderstanding.A4.pdf <15> tic: yeah i understand OO, i wasnt thinking about all the other stuff when i said that :| <17> triplah, well, that paper is still very good:-) <15> tic: yeah i dont feel like reading it after a couple of beers thanks :P <18> 4 0.076 0.019 0.076 0.019 <string>:1(connect) <18> what is this in profiling output? <17> triplah, hehe. <15> anyway, i could use rotor since i have py2.3 installed, it still gives a deprecation warning though :) <16> I wish I've had a couple of beers. <15> i tried something new tonight. solitos, turns out it was beer for women :\ <15> so sweet <15> the "tequila flavour" made it taste like the offspring of a corona and a cruiser <16> people are making stuff taste tequila even though many try to disguise the taste of tequila with lemon and salt? <15> Coke: such a gimmik it wasnt even funny. it was a premixer beer :P <15> it was almost like beer with some kind of citrus cordial in it. <16> triplah: bleh <15> should have stuck with the dos equis i had before it <15> gnite <19> I love python <19> I want to have it's baby <20> ok <21> where can I read about how to define the exported interface of a module in Python? <22> rotty`: ? <21> Erwin: a module has an interface (the set of exported functions) <4> does anyone know a chat (server+client) made with python ? <22> rotty`: Yes, when you import foo, then everything define inside foo is accessble as foo.attribute <21> Erwin: I know *that*, but the information about a module's interface is *important* <21> (to keep an overview) <22> I have no idea what you are asking. Maybe you want to read about docstrings and how to use e.g. epydoc or pydoc or happydoc to generate HTML files from docstrings? <21> ah, I see: __all__, it's explained in the tutorial <22> __all__ applies only if you do from module import *
Return to
#python or Go to some related
logs:
#perl #debian #web frb dahn enable swat webinterface certum est quia ineptum arpwatch how to #math #ubuntu 'gksudo' executable
|
|