Re: Get IP address of WIFI interface

2011-05-13 Thread Ishwor Gurung
commands. 1/ posix - (Linux in your case) will use ifconfig 2/ nt - (windows in your ase) will use ipconfig. HTH. -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8  35FE 5A9B F3BB 4E5E 17B5 -- http://mail.python.org/mailman/listinfo/python-list

Re: When will Python go mainstream like Java?

2010-02-23 Thread Ishwor Gurung
core implementation. Perhaps I see a light, perhaps I see nothing.. but I feel the day is coming nearer when Python would run as fast as Java/C. Only time can tell - I hope the time is right about this. -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A

Re: Prepend to logging message

2010-01-09 Thread Ishwor Gurung
apter(logging.getLogger('foo'), ExtraLog()) > -- Yep. Just subclass LoggerAdapter and override process(..) Read this: http://docs.python.org/library/logging.html#adding-contextual-information-to-your-logging-output -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF

Re: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
/lib, how can I do this? As root, tell linker to look for libraries in /usr/lib64: $ echo /usr/lib64 >> /etc/ld.so.conf $ ldconfig $ ./configure Please send email to the mailing list. I am subscribed to it :> [...] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
ubject: Re: Multiple python installations on opensuse? To: Ishwor Gurung Thanks guys, I installed it as root without the --prefix option using "make altinstall" instead of "make install". It worked and I can now execute python2.4.6 with "python2.4 while python2.6 is still executed

Re: Multiple python installations on opensuse?

2009-12-17 Thread Ishwor Gurung
lease). $ mkdir $HOME/my2.4build/ $ ./configure --prefix=$HOME/my2.4build && make && make install; To run- $ cd $HOME/my2.4build/bin $ ./python I am assuming you've got the C/C++ libraries installed. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: problem in installing wxwidgets for python..

2009-11-04 Thread Ishwor Gurung
t showed the same > error. What should i do to install wxwidgets? Plz. reply as soon as > possible.. Coz. i've to finish my proj. quickly.. Thanks and regards... See above. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Migrating from R to Python

2009-11-02 Thread Ishwor Gurung
), I can still have it in Python via the Rpy/Rpy2 bridge. On the other hand with pytseries Python library, I'd be limited to only run time-series analysis wouldn't I? In the end though, it all depends on your project requirements, resources and so forth.. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: transpose array

2009-10-27 Thread Ishwor Gurung
replace(']', ' ') >> >> which dumps them like >> >>  a1,a2,a3,a4,a5 >>  b1.b2.b3.b4.b5 >>  c1,c2,c3,c4,c5 > >>>> xVec=[a1,a2,a3,a4,a5] >>>> yVec=[b1,b2,b3,b4,b5] >>>> zVec=[c1,c2,c3,c4,c5] >>>> import sys, csv >>>> from itertools import izip >>>> csv.writer(sys.stdout).writerows(izip(xVec, yVec, zVec)) > a1,b1,c1 > a2,b2,c2 > a3,b3,c3 > a4,b4,c4 > a5,b5,c5 Or, http://docs.scipy.org/doc/numpy/reference/generated/numpy.transpose.html :-) -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing deadlock

2009-10-24 Thread Ishwor Gurung
for j in range(3): q.put(i*30+j); while not q.empty(): p = Process(target=_process_worker, args=(q,)); p.start(); p.join(); if __name__ == "__main__": _make_some_processes(); ''' Removed 0 from the queue Remo

Re: how to knock a page out of file cache

2009-10-21 Thread Ishwor Gurung
of dirty pages and their frequency of writebacks. So if you want the shortest path, you can choose to go the /proc path. [...] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: how to knock a page out of file cache

2009-10-21 Thread Ishwor Gurung
l that will 'knock' the file out of > file cache?  Can madvise or fadvise do this? Does this help http://www.westnet.com/~gsmith/content/linux-pdflush.htm ? (Getting hold of procfs and doing it in Python?) Also, are you looking for sync(2) http://linux.die.net/man/2/sync? [...]

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
I think I am getting old :-( Should have Googled already. > My what who where?  You are confusing me with someone else. Andy Rubin- http://en.wikipedia.org/wiki/Andy_Rubin Sorry to bother you. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
2009/10/16 Ishwor Gurung : > 2009/10/16 Paul Rubin <http://phr...@nospam.invalid>: > [...] >> You might also like: >> >>    from itertools import groupby >>    c = '001110' >>    print list(list(xs) for k,xs in groupby(c)) > Too bad groupb

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
y chance of getting your NDK team to look into getting some small subset of STL, Boost into Android? :-P That'd be awesome thing you know. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: a splitting headache

2009-10-15 Thread Ishwor Gurung
coding-in-Python/0,264084,339280649,00.htm [...] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
cessing module(all the relevant bits are explained in the > module doc). My bad, I assumed Win32. Make sure _your_ platform also supports sem_open syscall before you used the core feature of multiprocessing module. >.< -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
>> How can I use Python to schedule these commands? > If I were as lucky as you, I would have used multiprocessing module[1] > (my platform does not have sem_open() syscall). Others suggestions are s/have/implement/g -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/lis

Re: How to schedule system calls with Python

2009-10-15 Thread Ishwor Gurung
multiprocessing module[1] (my platform does not have sem_open() syscall). Others suggestions are as good as it can be but yeah you could get a lot of work done using multiprocessing module(all the relevant bits are explained in the module doc). [1] http://docs.python.org/library/multiprocessing.h

Re: Pipelining tar create and tar extract the "Python" way...

2009-09-25 Thread Ishwor Gurung
27;d want to do purely in Python. Aren't you curious? :-) It's late and TGIF! Need sleep. Goodluck. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: New books: Learning Python, Python Pocket Reference 4th Eds

2009-09-25 Thread Ishwor Gurung
when I hurriedly used to look up materials through it finding novel and cool ways of doing things (I still do find it very helpful) :-) Thanks for such a wonderful resource. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: importing with .m instead of .py

2009-09-25 Thread Ishwor Gurung
#x27;i', 'matlab_files', 'os', 'root', 'x', 'y', 'z'] >>> x 'b.m' >>> y [1, 2, 3] >>> z [3, 2, 1] $ cat foo.m y=[1,2,3] $ cat bar.m z=[3,2,1] These sort of task are pretty trivial to do. You should take some time to read through the documentation.. and oh don't be such a wanderer loosing sight of such good resource such as http://docs.python.org :-) -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Read header and data from a binary file [LONG]

2009-09-23 Thread Ishwor
> char is 1 bytes long on Python (as per struct modules' definition) Also, this is also another option for you to use instead of built-in struct. http://www.sis.nl/python/xstruct/xstruct.shtml -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Read header and data from a binary file [LONG]

2009-09-23 Thread Ishwor
I understand, to get all the values from the offset 8(called `Data' as per your protocol spec), you can do: reading_after_136_file_pos_to_eof = f.read(); #continue from 136L above. clen_fs = '<%ds' % clength; # I assume here that is a character x = struct.unpack(clen_fs, reading_after_136_file_pos_to_eof [8:]); #start at index 8 onwards Now, `x' will have stored unpacked value of the reading_after_136_file_pos_to_eof starting from 8'th byte and wil only store 300126 bytes of characters (1 byte each so 300136 bytes long) i.e., starting from 8'th byte file descriptor position assuming each char is 1 bytes long on Python (as per struct modules' definition) [ ... ] -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: delete items from list by indices

2009-09-23 Thread Ishwor
tuitive afaik and useful as its more reflective of effect on the type list. It's a trivial choice here but later it might help. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Not this one the other one, from a dictionary

2009-09-18 Thread Ishwor
y as such: >>>for k in aDict: print k, aDict[k]; >>> [[i,a[i]] for i in aDict] [['a', 'bob'], ['b', 'stu']] >>> [[i,a[i]] for i in aDict][0] ['a', 'stu'] >>> [[i,a[i]] for i in aDict][0][0] 'a' >>> [[i,a[i]] for i in aDict][0][1] 'bob' -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: detmining name during an assignment

2009-09-18 Thread Ishwor
xecute? I am starting to suspect that you are very much asking for a debugger ;-) Look up pdb;a Python debugger. -- Regards, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: How to test that an exception is raised ?

2005-01-28 Thread Ishwor
[snipped alot of codes that doesn't mean much ] if you want to check for exception then it goes like this try: catch IOError: sorry i won't bother to read your code because i can't read, i think i am tired and need to go to bed. ;-) -- cheers, Ishwor Gurung -- http://

Re: list addition methods compared.

2004-12-28 Thread Ishwor
On Mon, 27 Dec 2004 18:49:14 +0100, François Granger <[EMAIL PROTECTED]> wrote: > Le 27/12/04 1:03, « Ishwor » <[EMAIL PROTECTED]> a écrit : > > > so indeed method 2 (l2.extend() ) is the fastest ?? In 2/3 times, > > method 3 (l3 += [x] seems faster than method 1/2

Re: Tricks to install/run Python on Windows ?

2004-12-26 Thread Ishwor
g komodo seems to "block" pythonwinIDE completly... > > What's wrong ? Python seems terific, but the tools... > I have no clue what the *tools* are doing for you and i feel sorry for that but as i said if you try IDLE its pretty good. the link http://www.python.org/idle/ should be able to provide you with info. > So... maybe i've to try BlackAdder ? > -- > http://mail.python.org/mailman/listinfo/python-list > -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: list addition methods compared.

2004-12-26 Thread Ishwor
On Sun, 26 Dec 2004 18:37:35 -0500, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Ishwor" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Sun, 26 Dec 2004 04:57:17 -0500, Terry Reedy <[EMAIL PROTECTED]> wrote: > >> > >

Re: IDLE question

2004-12-26 Thread Ishwor
;> # this is the Python shell. >>> >>> l = ['spam','eggs'] # you assign and create a list variable called l >>> l # prints the content of l. ['spam', 'eggs'] [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: list addition methods compared.

2004-12-26 Thread Ishwor
On Sun, 26 Dec 2004 04:57:17 -0500, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Ishwor" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi all > > I have just wrote a small script to compare the speed of list addition > > metho

methods of addition in Python

2004-12-25 Thread Ishwor
t of 3)) - 1.1563334465 Method 2 done in (average finish time(out of 3)) - 1.1716668606 Method 3 done in (average finish time(out of 3)) - 0.0106668472 @@@ >>> So i can assume that type 3 ( l3 += [x] ) addition is the fastest . Is there anything i am doing wrong?? Also could this cod

Re: gridbaglayout

2004-12-25 Thread Ishwor
On 26 Dec 2004 04:05:54 GMT, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2004-12-24, Ishwor <[EMAIL PROTECTED]> wrote: > > > heh? whats this gridbaglayout in Python-list?? Is this what my grandpa > > calls "christmas fever"?? ;-) > > he

list addition methods compared.

2004-12-25 Thread Ishwor
t; So i can assume that type 3 ( l3 += [x] ) addition is the fastest . Is there anything i am doing wrong?? Also could this code be beautified && shortened?? Thanks. -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the screen

2004-12-25 Thread Ishwor
On Sun, 26 Dec 2004 13:07:56 +1030, Ishwor <[EMAIL PROTECTED]> wrote: > On 25 Dec 2004 18:20:39 -0800, John Machin <[EMAIL PROTECTED]> wrote: > > > > Ishwor wrote: > > > > > i was just tinkering with it actually. ;-) > > > In your command prompt

Re: Clearing the screen

2004-12-25 Thread Ishwor
On 25 Dec 2004 18:20:39 -0800, John Machin <[EMAIL PROTECTED]> wrote: > > Ishwor wrote: > > > i was just tinkering with it actually. ;-) > > In your command prompt just do > > Pythonwin.exe /run "C:\Python24\file\PyFiles\clear.py" > > It's

Re: Clearing the screen

2004-12-25 Thread Ishwor
ot;\n"] >>> -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the screen

2004-12-25 Thread Ishwor
uldn't find one... i was just tinkering with it actually. ;-) In your command prompt just do Pythonwin.exe /run "C:\Python24\file\PyFiles\clear.py" or if you hate doing that then just create a batch script (.bat) as such- @echo off start "C:\Python24\Lib\site-packages\pythonwin\Pythonwin.exe /run "C:\Python24\file\PyFiles\clear.py" " see the pythonwin reference manual for more option ;) > > Steve > -- > http://mail.python.org/mailman/listinfo/python-list > -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Clearing the screen

2004-12-25 Thread Ishwor
art idle.pyw -s -r "C:\Python24\file\Pyfiles\clear.py" %1 %2 %3 %4 %5 %6 %7 %8 %9 and it works fine but i have to do >>>clear.cls(); instead of just plain >>> cls(); but i'll walk with that. ;-) I hope this will be clear as i gradually read the text. It has to do som

Re: Tinkering with py2exe

2004-12-25 Thread Ishwor
On 25 Dec 2004 16:26:01 -0800, John Machin <[EMAIL PROTECTED]> wrote: > > Ishwor wrote: > > Having coded 1.72kb python test file, i decided to convert it to .exe > > file using py2exe. > > Having succeded doing it, i found the need to distribute the whole >

Tinkering with py2exe

2004-12-25 Thread Ishwor
Python VM i guess. what does the library.zip do?? Currently to convert such a small script to exe why the nuances of 1.98mb?? Thanks -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE problem :-(

2004-12-25 Thread Ishwor
Sorry IDLE's source ...;P [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE problem :-(

2004-12-25 Thread Ishwor
On Sat, 25 Dec 2004 17:45:02 GMT, Steven Bethard <[EMAIL PROTECTED]> wrote: > Ishwor wrote: > > I don't know if this has been a problem with other people using IDLE > > but when i press the home key then the cursor jumps to the beginning > > of the line and not af

Re: Clearing the screen

2004-12-24 Thread Ishwor
i want is to be able to do just >>>cls() and nothing more or even less!! ;-) > > os.system("cls") #for windows > or > os.system("clear") #for unix yeah i have used the 'os' module's system() method but that wasn't what i meant. &g

Re: gridbaglayout

2004-12-24 Thread Ishwor
hon. Ist straight forward. > -- > Regards, > > Diez B. Roggisch > -- > http://mail.python.org/mailman/listinfo/python-list > > -- > http://mail.python.org/mailman/listinfo/python-list > -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

IDLE problem :-(

2004-12-24 Thread Ishwor
(r,b,g).__class__ ^ ^ ^ ^-> want cursor here instead. cursor goes here Any work around?? Thank you. -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Clearing the screen

2004-12-24 Thread Ishwor
a bit with in-builts?? Thank you. -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: list Integer indexing dies??

2004-12-24 Thread Ishwor
On Fri, 24 Dec 2004 05:44:50 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: > Ishwor <[EMAIL PROTECTED]> writes: > > > On 23 Dec 2004 14:28:37 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > > My experience as a learner here is that there should be some > &g

Re: list IndexError

2004-12-23 Thread Ishwor
r if it's > shallow or deep. IMHO its preferable to use shallow one as the built-in because deep is expensive op. for CPU. ~;-) > > . Facundo > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: list Integer indexing dies??

2004-12-23 Thread Ishwor
On Thu, 23 Dec 2004 13:33:16 -0300, Batista, Facundo <[EMAIL PROTECTED]> wrote: > > > [Ishwor] > > #- > What should 035[0] cough up? Be carefull it should > #- > #- >>>035[0] > #- 3 # my own opinion. why 3? The reason we get 3 and not 0 here i

Re: list Integer indexing dies??

2004-12-23 Thread Ishwor
On Thu, 23 Dec 2004 13:33:16 -0300, Batista, Facundo <[EMAIL PROTECTED]> wrote: > > > [Ishwor] > > #- > What should 035[0] cough up? Be carefull it should > #- > #- >>>035[0] > #- 3 # my own opinion. > #- > #- > cough up the same a

Re: list Integer indexing dies??

2004-12-23 Thread Ishwor
On 23 Dec 2004 15:05:20 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > Op 2004-12-23, Ishwor schreef <[EMAIL PROTECTED]>: > > On 23 Dec 2004 14:28:37 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > >> Op 2004-12-23, Ishwor schreef <[EMAIL PROTECTED]>: &

Re: urllib and sites that require passwds

2004-12-23 Thread Ishwor
one step). > Fuzzy Its nice that urllib2 returns errcode to process further. doesn't urllib do that? Anyway i wanted to know if any website which is similar to CPAN library website? I mean i want to be able find modules n stuff for Python.. It would be really great to know. Tha

Re: list Integer indexing dies??

2004-12-23 Thread Ishwor
On Thu, 23 Dec 2004 11:40:12 -0300, Batista, Facundo <[EMAIL PROTECTED]> wrote: > > > [Ishwor] > > #- >>> 'invalid'[0] > #- 'i' > #- >>> 123232[-1] > #- # Python should automagically infer here that user > #- # means i

Re: list Integer indexing dies??

2004-12-23 Thread Ishwor
On 23 Dec 2004 14:28:37 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > Op 2004-12-23, Ishwor schreef <[EMAIL PROTECTED]>: > > Hi all. Look at this snippet of code. > > > >>>> l = ['a','b','c','d'] > >>>&

Re: list Integer indexing dies??

2004-12-23 Thread Ishwor
1[0] Traceback (most recent call last): File "", line 1, in -toplevel- 1[0] TypeError: unsubscriptable object >>> > .Facundo > > Bitácora De Vuelo: http://www.taniquetil.com.ar/plog > PyAr - Python Argentina: http://pyar.decode.com.ar/ > [snip] Thanks Batista. -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

list Integer indexing dies??

2004-12-23 Thread Ishwor
recent call last): File "", line 1, in -toplevel- l[0][0] TypeError: unsubscriptable object >>> l[0] 1 >>> 1[0] Traceback (most recent call last): File "", line 1, in -toplevel- 1[0] TypeError: unsubscriptable object >>> The compil

Re: list IndexError

2004-12-22 Thread Ishwor
ight want to check it again before you hand it in ;) ... > > > > >>> def ishwor( source ): > > ---for item in source: > >+++ for item in source[:]: if item == 'd': > > ...source.remove( item ) > > that&

Re: list IndexError

2004-12-22 Thread Ishwor
On Wed, 22 Dec 2004 21:42:16 GMT, Steven Bethard <[EMAIL PROTECTED]> wrote: > Ishwor wrote: > > i am trying to remove an item 'e' from the list l > > I thought it might be helpful to code some of the alternatives you've > been given and look at the timin

Re: list IndexError

2004-12-22 Thread Ishwor
On Thu, 23 Dec 2004 07:27:52 +1000, Egor Bolonev <[EMAIL PROTECTED]> wrote: > On Thu, 23 Dec 2004 06:56:02 +1030, Ishwor <[EMAIL PROTECTED]> wrote: > > >>>> l > > ['a', 'b', 'c', 'd', 'e'] > >>>

Re: list IndexError

2004-12-22 Thread Ishwor
On Wed, 22 Dec 2004 14:59:32 -0500, Mike C. Fletcher <[EMAIL PROTECTED]> wrote: [snip] > > Probably the most pythonic approach to this problem when dealing with > small lists is this: > >result = [ item for item in source if item != 'e' ] > > or, if you're using an older version of Python wit

list IndexError

2004-12-22 Thread Ishwor
> l ['a', 'b', 'c', 'm'] ==Using suppressing technique( a bad one though :-) )== >>> l ['a', 'b', 'c', 'm', 'd'] >> for i in range(0,len(l)): try: if l[i] == 

Re: Threading Problem

2004-12-22 Thread Ishwor
, > > -- > alan kennedy > -- > email alan: http://xhaus.com/contact/alan nice chum ;) liked the way you explained. Clear and easy to understand.. why doesn't the keyboardInterrupt seem to work? I am working in IDLE and it doesn't seem to stop the thread ???!!?? output of above code in IDLE shell: threadfunction x=75 KeyboardInterrupt >>> threadfunction x=80 -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

TwistedMatrix everywhere!!

2004-12-07 Thread Ishwor
any other dependent modules on the fly at client side?? Any ideas are greatly welcomed ~:-) -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: win32 extensions for Python 2.4

2004-12-07 Thread Ishwor
On Tue, 07 Dec 2004 21:00:22 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Ishwor wrote: > > > > Hello all, > > I was looking through Mark Hammond's website for win32 extensions > > for Python 2.4 but couldn't find it. If i am not wrong has anyon

win32 extensions for Python 2.4

2004-12-07 Thread Ishwor
bothered to download it. :) -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: string slicing

2004-12-05 Thread Ishwor
lse > >>> CanBeReplacedBy(a, b) > True > >>> > > (of course you need a proper implementation of CanBeReplacedBy, of which > a few are offered in the previously mentioned 'replacing is' threads). > > Now, whether or not knowing what 'is' does, or whether knowing the > internals in regards to how object identity works, is necessary for > learning the language, I don't know. It's been a few years since I was > a newb, but considering all of the questions regarding 'is' usually > resulting with python-list saying "you want '=='", I'd offer, 'it is not > necessary'. > > > - Josiah Thanx. Appreciate it. :) -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: Please help here: python <==> COM

2004-12-05 Thread Ishwor
heheh... this was funny in your posting. :) >The following *pythong* ( so this is what a Python wearing a thong is called .. > hmmm...) code NOT work.. On Sun, 5 Dec 2004 16:18:33 +0800, mep <[EMAIL PROTECTED]> wrote: > Resolved. Thanks anyway [snip] -- cheers, Ishwor

Re: string slicing

2004-12-05 Thread Ishwor
ist. You should consider having your own *nice* nifty things to say about newbs (like me) rather than try to point at someone else's intellectual property. If you are running out of ideas consider reading one of those "Complete Idiot's guide to " :) > - Josiah [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: string slicing

2004-12-05 Thread Ishwor
l', 'o'] > >>> m is s > False > > Kent Thanx Kent. so for lists Python doesn't keep the same object in the cache??? So in that case it is not interned & hence any objects created will **point** to seperate area in memory as seen by your >>> m is s #( for lists) >>> False Thanx again :) [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

string slicing

2004-12-05 Thread Ishwor
iece of memory." but when i test them with *is* operator then the result is True. Why is this happening?? Any help is appreciated.. Thanx -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: os.listdir("\\\\delta\\public")

2004-12-04 Thread Ishwor
edDocs Disk > The command completed successfully. > > No doubt you can also do this much more easily with the pywin32 > package, or via COM (using pywin32 or ctypes), but I'll leave > that response to someone else. Or you could figure it out yourself > if you are motivated

Opening a file in Python using windows.

2004-12-04 Thread Ishwor
es, switching to a > > different language will not help you. You need to determine the cause > > of your access errors first. Agreed but the OP does have permission so this assumption doesn't hold! [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

os.listdir("\\\\delta\\public")

2004-12-04 Thread Ishwor
: '\\c/*.*' In Linux this would be somewhat like this >>> os.listdir("/dev"); In general use the most platform independent variable names (e.g os.sep) unless you intend the program to be used only by yourself. :) [snip] -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

distinction between float & int

2004-12-03 Thread Ishwor
hi all, can anyone tell me why this distinction? i mean why it returns False on floats?? >>> a = 1 >>> b = 1 >>> a is b True >>> a = 1.1 >>> b = 1.1 >>> a is b False >>> thanx . -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: window size in IDLE

2004-12-03 Thread Ishwor Gurung
extension to test) * print "Hello"; Then at the prompt i did python test hello It seems that it works for me both at the prompt (using Python interpreter as well as in IDLE's Run > Run Module (F5) :) > I have IDLE 1.0.2. IDLE 1.1 is pretty good. If you have chance

hello all

2004-12-03 Thread Ishwor Gurung
with Java which is a bit like C++ where values and object has to be "created" before assigning, Python seems very typical of "on the edge" language, "ready to go" language :) cheers, Ishwor -- http://mail.python.org/mailman/listinfo/python-list