Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread David Rock
on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import netifaces >>> gws = netifaces.gateways() >>> gws {'default': {2: ('192.168.69.1', 'en0')}, 2: [('192.168.6

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Rock Neurotiko
ication of the SSL certificate, all certificates have an start and end date, if you are not in that range, your browser don't verify it (that's to prevent malicious SSL certs). -- Miguel García Lafuente - Rock Neurotiko Do it, the devil is in the details. The quieter you are, the mor

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Rock Neurotiko
em. > Alternatively, use the command found in the help menu to report this broken > site. > > Shiva > > -- > https://mail.python.org/mailman/listinfo/python-list > Check your local date, usually that happens when you don't have it right. -- Miguel García Lafuente - Ro

Re: https://www.python.org/ seems to be down

2014-09-25 Thread Rock Neurotiko
2014-09-26 8:46 GMT+02:00 Gmane : > https://www.python.org/ http://www.downforeveryoneorjustme.com/python.org -- Miguel García Lafuente - Rock Neurotiko Do it, the devil is in the details. The quieter you are, the more you are able to hear. Happy Coding. Code with Passion, Decode w

Re: Best way to deal with different data types in a list comprehension

2014-09-23 Thread Rock Neurotiko
ut rewriting this without the list comprehension, how can I write > this to deal with both strings and non-strings? > -- > https://mail.python.org/mailman/listinfo/python-list > -- Miguel García Lafuente - Rock Neurotiko Do it, the devil is in the details. The quieter you are, the more you

Re: Python is going to be hard

2014-09-03 Thread Rock Neurotiko
\blank.py", line 7, in > print (steve[x]) > IndexError: list index out of range > -- > https://mail.python.org/mailman/listinfo/python-list > -- Miguel García Lafuente - Rock Neurotiko Do it, the devil is in the details. The quieter you are, the more you are able to hear

Re: Collaps arrays/ list of intergers

2014-08-19 Thread Rock Neurotiko
> > Is your question about (a) identifying overlapping subsets of ranges, > or (b) collapsing such subsets once you have identified them? > > What output would you want if the inputs were . . . > > a = [1,50] > b = [2,10] > c = [40,60] > > ? > > -- > To email m

Re: error with files

2014-08-18 Thread Rock Neurotiko
7;/home/yems/newfile/' > file_name = raw_input("Enter file name: ") > filesname = os.path.join(save_here, file_name+".txt") > > file1 = open(filesname, 'w') > > file_data = raw_input('write in data: ') > > file.write(file1) > > file1.cl

Re: Inheritance and name clashes

2010-10-03 Thread Rock
> Object-oriented designs are difficult to design in any programming > language, and it helps to have some sort of concrete problem to drive > the discussion.  Are you working on a particular design where you > think Python's philosophy will inhibit good design?  My take on Python > is that it focu

Inheritance and name clashes

2010-10-03 Thread Rock
me special member in the docs for instance, or even worse, it's a third-party library, perhaps with no source! So how can you be sure??? The way I see it ... you can't! Am I wrong? Please give me a hand on this one :) Rock -- http://mail.python.org/mailman/listinfo/python-list

Re: No complex rationals in Python 3.0

2008-11-24 Thread Rock
On 24 Nov, 20:31, Christian Heimes <[EMAIL PROTECTED]> wrote: > Rock wrote: > > I appreciate the inclusion of the fractions module in Python 2.6 and > > therefore in Python 3.0. But I feel there's something missing: no > > possibility for complex rationals (or

No complex rationals in Python 3.0

2008-11-24 Thread Rock
I appreciate the inclusion of the fractions module in Python 2.6 and therefore in Python 3.0. But I feel there's something missing: no possibility for complex rationals (or arbitrary precision) integers. I was just checking the complex number support in Python, compared, for instance, to Common Lis

Re: Python assignment loop

2007-05-20 Thread Silver Rock
On 20 May 2007 20:21:52 -0700, George Sakkis <[EMAIL PROTECTED]> wrote: > On May 20, 10:33 pm, "Silver Rock" <[EMAIL PROTECTED]> wrote: > > i need to do something like this: > > > > ### > > import wx > > x=number > > for i in range(500):

Python assignment loop

2007-05-20 Thread Silver Rock
i need to do something like this: ### import wx x=number for i in range(500): "var"+str(i)=ClassXYZ(...,x+i,...) # code y=number for i in range(y): Class(object_called_by_the_string("var"+str(i)),...) ### i can't figure out how to do this, and could not find it on the web. c. -- h

classes and functions

2007-03-02 Thread Silver Rock
Friends, I don´t see why using classes.. functions does everything already. I read the Rossum tutotial and two other already. Maybe this is because I am only writing small scripts, or some more serious misunderstandings of the language. Please give me a light. thanks guys, Claire -- http://mai

wave

2007-02-03 Thread Silver Rock
hallo, supose i´ve opened a sound with the wave module: import wave sound=wave.open(filename,'rb') now this is strange: sound.getnframes() != len(sound.readframes(sound.getnframes()) True Why so? thanks in advance, Claire -- http://mail.python.org/mailman/listinfo/python-list

SndObj-Pysonic-omde-MusicKit-Jack-Alsa

2007-02-03 Thread Silver Rock
Greetings, I've been studiyng python and some things are not that clear: 1- Is python too slow to efectivelly communicate with Jack? PyJack did not seem to work right, so i tried PySndObj's JackIO object. It did not behave as good as with connection with ALSA. (btw, I could not acess lots of ob

OSS and ALSA

2007-02-02 Thread Silver Rock
Hi all, I've seen that python comes by default with a module for communication with OSS. I've looked for a ALSA module too (pyalsa) but it seems to handle only limited operations. Is it recommended that one programm using oss becouse of Alsa's OSS compatibility? thanks, claire -- http://ma

OSS and ALSA

2007-02-01 Thread Silver Rock
Hi all, I've seen that python comes by default with a module for communication with OSS. I've looked for a ALSA module too (pyalsa) but it seems to handle only limited operations. Can anyone confirm or point wrong the impression that a newbie should use the ossaudiodev module? thanks, cl -- h

Python Guru Needed Fast!!!!

2005-11-30 Thread j-rock
Talking Panda LLC is looking for a programmer to take over building applications for the iPod. Required skills below. Please email me personally. [EMAIL PROTECTED] - Expertise in text parsing and formatting. Specifically, developing parsers to extract meaningful information from freeform text, XM