On 09/02/13 07:01, neubyr wrote:
I am learning Python 2.7 classes and objects. It seems like attributes
(data attributes and methods) can be added to a class/object even after
it's first declaration. For example,
You can do that, but mostly you shouldn't.
Usually when classes/objects are use
- Original Message -
> From: Jim Byrnes
> To: tutor@python.org
> Cc:
> Sent: Saturday, February 9, 2013 3:02 AM
> Subject: [Tutor] Which pip for Ubuntu 12.04
>
> How important is it to have the latest pip installed?
>
> Initially I want to use it to install the latest pymongo driver fo
> How important is it to have the latest pip installed?
>
> Initially I want to use it to install the latest pymongo driver for mongoDB.
> The pip version in the Ubuntu 12.04 repositories is 1.0.1. I see on
> http://www.pip-installer.org/en/latest/ the version is 1.2.1.
>
> It certainly would
Hi guys can you tell me what is wrong with the second part of this code(elif
choice == '2'). When I type something other than 0-255, it correctly asks again
for an input but when I enter a number from 0-255 it does nothing :
def show_menu():
print("===")
print("1-binary to
Ghadir Ghasemi wrote:
> Hi guys can you tell me what is wrong with the second part of this
> code(elif choice == '2'). When I type something other than 0-255, it
> correctly asks again for an input but when I enter a number from 0-255 it
> does nothing :
It doesn't do nothing, it keeps running th
On Sat, Feb 9, 2013 at 3:24 AM, Alan Gauld wrote:
> On 09/02/13 07:01, neubyr wrote:
>
>>
>> I am learning Python 2.7 classes and objects. It seems like attributes
>> (data attributes and methods) can be added to a class/object even after
>> it's first declaration. For example,
>>
>
> You can do
Dear Jedi,
I wrote my first program but it doesn't open a website as I intended it to.
Please correct my mistake.
Sincerely,
Mann
def a():
import urllib.request
url = "http://www.google.com";
response = urllib.request.urlopen(url)
g = input("Please enter y or n to go to youtube :
On Sat, 9 Feb 2013, mann kann wrote:
Dear Jedi,
I wrote my first program but it doesn't open a website as I intended it to.
Please correct my mistake.
Sincerely,
Mann
You'll actually want the webbrowser module, which will open the links in
your web browser - at least if you want to load s
I used webbrowser and it worked via terminal, but the same code returns
AttrituteError: 'module' object has no attribute 'open' in komodo edit.
suggestions? here's the code:
import webbrowser
webbrowser.open("http://youtube.com";)
On Sat, Feb 9, 2013 at 8:17 PM, Wayne Werner wrote:
> On Sat,
On 10/02/13 01:00, mann kann wrote:
Dear Jedi,
I wrote my first program but it doesn't open a website as I intended it
to. Please correct my mistake.
Well, how did you intend it to?
It looks like it probably does open the web site, but it will be hard to
tell since you do nothing with the res
I have altered the program to run on Python 2.7.3
Perhaps it will run on Python 3 with small/or no alterations.
def show_menu():
print("===")
print("1-binary to denary")
print("2-denary to binary")
print("3-exit")
print("===")
while True:
show_men
Remove also 'continue' statement under the 'if denary2 not in
range(0,256)' clause.
On Sun, Feb 10, 2013 at 7:06 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ <
dvnsa...@gmail.com> wrote:
> I have altered the program to run on Python 2.7.3
> Perhaps it will run on Python 3 with small/or no alterations.
>
> def
On Sat, Feb 9, 2013 at 8:33 PM, Alan Gauld wrote:
>
> Where does exit() come from? Usually its from sys but you
> don't import from sys anywhere...
site.py adds the exit/quit Quitter instances to builtins (2.x
__builtin__). When called they raise SystemExit, like sys.exit does.
Since you can bypa
On Sat, Feb 9, 2013 at 6:25 PM, mann kann wrote:
> I used webbrowser and it worked via terminal, but the same code returns
> AttrituteError: 'module' object has no attribute 'open' in komodo edit.
> suggestions? here's the code:
>
> import webbrowser
> webbrowser.open("http://youtube.com";)
What
oh wow, I foolishly named it webbrowser.py earlier.
Thanks for the witty hint, Danny :)
On Sat, Feb 9, 2013 at 11:55 PM, Danny Yoo wrote:
> On Sat, Feb 9, 2013 at 6:25 PM, mann kann wrote:
> > I used webbrowser and it worked via terminal, but the same code returns
> > AttrituteError: 'module'
15 matches
Mail list logo