| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Comments:
<0> there's already a Python wrapper, I'm just not sure how to use it <1> Your codes essentially needs to take Python types (PyObject*), convert them to C, do your C dirty work, and convert that back to Python objects again. <1> Its API could be implemented in any sort of way then. <1> Maybe Crypt_Context is a object now and create is a cl*** method <0> If I look at the locals after importing the module, it looks like this: <0> cryptCreateContext <0> Type: <type 'builtin_function_or_method'> <0> Value: <built-in function cryptCreateContext> <1> Find an example using it. You won't guess it that way. <1> Either that, or read the source or even documentation. <2> doesn't it have a doc string ? try help(name) <1> first hit shows some stuff -- http://trevp.net/cryptlibConverter/readme.txt <1> And describes in detail how the PY API works <3> can someone advise what to use if i want to write small wiki-like thing, i.e. a cgi script which would allow online editing with wiki-like markup, and putting that into templates? <4> Hello everyone, I've using java and i'm a hobbyst programmer. I've alreade read something about using python as a non obj-oriented language. Do you have any language that particularly speaks about using python as OBJ-ORIENTES language? <4> i want to go into python converting some of my java ideas
<4> any doc about object oriented python? <3> docs at python.org? <0> try dive into python online <5> dpt: everything in python is an object <4> not very interesting the docs at python <0> google for "dive into python" <0> it's a good starting point <4> but i want to define cl***es, read about method, properties... <4> ok, i'll google that <4> thanks <5> BlueAidan: uh, by chance are you using pyopenssl? <6> When using the os.system() command how can I specify a path to run in? <4> diveintopython.org/ <2> dpt: like jmob said, in python everything is an object, it's more oo oriented than java :) <7> is there a place to post useful python scripts? <3> http://aspn.activestate.com/ASPN/Python/Cookbook/ <4> i understand that python is oo but u can not run a java program without creating a cl***! u can do that in python, u can just write print 'hello' that a program in pytjon, not any similar thing exists in java <3> dpt: "OO" does not necessarily mean that a program entry point is some cl*** method <8> Anyone know of a Python module that has functions for manipulating data on the bit level? <3> dpt: python executes your code line by line <7> what do you think about this script? http://deadbeefbabe.org/paste/2931 <3> dpt: http://www.cetus-links.org/oo_python.html sounds well <9> danderson: depending on what you have in mind, python already supports bit-bashing without any special modules <4> thanks for the links, i'll check them <8> Pryon: I need things like extracting a sequence of bits from a sequence of bytes (a 5-bit sequence at a given offset in a 2-byte sequence) <8> and the inverse, setting a subsequence of bits to a given value. <9> foo & 0x0000001F <8> hmmm. Right. <8> Does python do logical-shift-left/right natively as well? <9> sure <9> << >> <8> nice <8> here I was thinking python wasn't up to bit pushing <8> How could I ever doubt it :) <10> dpt: http://dirtsimple.org/2004/12/python-is-not-java.html <11> hi. i'm calling some programs via 'popen4', but unfortunately several particular programs insist writing to a file and not to stdout. is there a trick to 'transform' a file into 'stdout' so the output could be read with the popen handle? <12> so let's say I have an xml feed of information and I want to graph it, what would be the best graphing python lib out there? <12> something simple... <13> howdy <13> can anyone tell me if there is an implicit loop counter in python? <13> like $_ in perl <1> for index, item in enumerate(someList) <13> ahh ok <13> thanks <1> $_ is not an "implicit loop counter" in Perl. It's a variable that gets ***igned things to randomly and from which things that don't know better pick up a value when they feel like it <13> yeah <13> but it "can" be used as a counter :P <6> How do I run an external command so that it doesn't stop execution of the script while runnig? <13> something like exec probably <13> start a subprocess <1> PiranhaP: See the os.spawn* functions. <6> Erwin: thank you <14> anyone here going to PyConn? <4> what is the difference between flat and nested? <15> one is an English word for apartment, the other is what birds are when they're at home <16> lol <15> alternatively, in the context of some sort of threaded conversation, flat tends to mean all posts in order, while nested means threads kept together and indented to show what is a reply to what <8> the difference being that pythons eat nested birds, whereas birds in your flat are in a cage, and therefore are safe. <16> how would i make python print a (str)word backwards, ex. "hello" --> "olleh" <8> whitefeather160: print word[::-1]
<8> or, in python 2.4, print reversed(word) <17> damn, he beat me to it <16> thanx <10> danderson: actually, that's not a string <10> the latter, I mean <8> deltab: that's a generator, right? <10> right <8> so yeah, the latter is wrong. <12> anyone here know of a ascii graph generator in python? <8> overture: I have an advantage: I just googled for the answer to that same question <17> ah <18> is there a native python image library ? <19> You mean the Python Image Library? <19> :P <19> http://www.pythonware.com/products/pil/ <15> :-) <19> s/Image/Imaging/ <18> Poopsmith: I was just looking at it, but its a commercial product by pythonware <18> is there native library? <15> agilman: nah it's free <16> so ive been learning to program for 2 days now, i chose python because all my resources said it would be easiest to start out with, but can python really lead anywhere or will i eventually want to learn other languages. <13> can i return pairs like? return x,y ? <13> er <13> -one of those ? <13> :| <19> agilman: It's free. And native. <15> triplah: sure - use (x,y) to be explicit that you're returning a tuple <18> whitefeather160: python is really awesome to learn with, I use it for 100% of the stuff I do for myself <19> So I'm not sure what you're asking for. <13> LeedsHK: ok, thanks <19> whitefeather160: Python is powerful AND easy. The two are not inherently contradictory. <19> It is both easy to learn and very useful to know. :P <16> any good resources to help me learn better, i mean keep me intersted <15> whitefeather160: official tutorial, dive into python, thinkCSPy, byte of python... <20> whitefeather160: I know plenty of other languages, and prefer python for most work <20> whitefeather160: I second Dive into Python, its a solid book <18> Poopsmith: whats better PIL or ImageMagick? <21> I third dive into python <19> ThinkCSPy might be better for a beginner, however. <19> agilman: PIL. <20> agilman: PIL <21> yeah, thinkCspy <21> for a beginner <19> agilman: I haven't used ImageMagick, but for one, it's not native, which almost invariably means not Pythonic. <19> gzl: Stop copying me. <19> That's better. <18> Poopsmith: yeah, its not pythonic... I just need to resize some images according to a formula... I did os.popen(imagemagick....) <19> agilman: Oh, bleh. PIL is quite easy to use. <19> I know **** about graphics, but it worked fine for my uses. <19> (I was resizing images and placing them on a larger image in a timeline. Sounds similar to what you might want.) <8> the PIL inspires jealousy among programmers in other languages. That's how cool it is :) <16> whats PIL <19> Python should inspire jealousy among programmers in other languages, if they know what's good. <8> the Python Imaging Library <20> whitefeather160: Python Imaging Library <22> the only problem I had with PIL was working out what happened in-place and what returned a new object... <19> Yeah, it took me a few tries to get stuff working, and sometimes it wasn't at all apparent what had gone wrong, but I take that more as a token of my ignorance than anything else. <19> The docs could also use more review than what I gave them. <20> Using procedures improperly and then cursing tends to be more fun than reading generally out of date documentation. <22> Poopsmith: they almost always could :-) <20> YMMV <19> enodran: I agree. :P <16> can anyone one provide me with the source code of some small programs theyve written in python so i can look at it and study the syntax and things. <23> http://www.koders.com/ <23> or just install it and read several of the thousand .py files <12> how do I print "\" without it being an EOL? <24> sys.stdout.write() <12> so sys.stdout.write("\")? <23> no <23> \\ <24> Or r'\'. <12> sweet! <12> that worked
Return to
#python or Go to some related
logs:
gentoo 452 insufficient system storage postfix #lgp #linux #bash #perl powersave-hotkey_handler WARNING: EV_ID: apt-get keepassx shhd ubuntu math perabala #linux
|
|