Vancouver Python Day (Nov 16)

2013-09-30 Thread Andy McKay
The Vancouver Python User Group and the Vancouver Django Meetup Group are pleased to announce: Vancouver Python Day Saturday, November 16, 2013 SFU Harbour Centre Part of Vancouver Developer Week 2013, Vancouver Python Day is a one-day mini conference celebrating the Python Developer Community

Released: Python 2.6.9 release candidate 1

2013-09-30 Thread Barry Warsaw
Hello Pythoneers and Pythonistas, I'm happy to announce the availability of Python 2.6.9 release candidate 1. Python 2.6.9rc1 is a security-fix source-only release for Python 2.6. This means that general bug maintenance has ended, and only critical security issues are being fixed. It also

Re: Python Unit Tests

2013-09-30 Thread Terry Reedy
On 9/30/2013 12:19 AM, melw...@gmail.com wrote: Hi Dave, Yeah I found the silly mistake lol thanks for that. making progress. Guess a number: 5 That's too high. Guess a number: 4 That's too high. Guess a number: 3 Traceback (most recent call last): File guess.py, line 34, in module

How to read a particular cell by using wb = load_workbook('path', True) in openpyxl

2013-09-30 Thread somesh g
Hi..there I have written code for reading the large excel files but my requirement is to read a particular cell in a excel file when i kept True in wb = load_workbook('Path', True) any body please help me... CODE: from openpyxl import load_workbook wb = load_workbook('Path', True)

Re: [ANN] ftputil 3.0a1 released

2013-09-30 Thread Giampaolo Rodola'
Glad to hear there's someone else other than me who still cares about the almost forgotten FTP protocol! =) --- Giampaolo https://code.google.com/p/pyftpdlib/ https://code.google.com/p/psutil/ https://code.google.com/p/pysendfile/ On Sun, Sep 29, 2013 at 8:00 PM, Stefan Schwarzer

class implementation

2013-09-30 Thread markotaht
Is there a way to give a class extra functions whidout editing the .py file where the class is located? -- https://mail.python.org/mailman/listinfo/python-list

Re: Tab completion in Python3.4

2013-09-30 Thread Antoine Pitrou
Steven D'Aprano steve at pearwood.info writes: I don't consider either of these solutions to be satisfactory. If you agree, I urge you to try it out for yourself, and then leave a comment on the bug tracker asking for tab completion to still insert tabs at the beginning of the line: Such

Re: class implementation

2013-09-30 Thread Peter Otten
markot...@gmail.com wrote: Is there a way to give a class extra functions whidout editing the .py file where the class is located? A clean way is subclassing: import vehicles class FlyingCar(vehicles.Car): def lift_off(self): pass flying_car = FlyingCar() flying_car.lift_off()

Re: class implementation

2013-09-30 Thread markotaht
esmaspäev, 30. september 2013 11:43.19 UTC+3 kirjutas mark...@gmail.com: Is there a way to give a class extra functions whidout editing the .py file where the class is located? But does it have all the variables that the main class have? -- https://mail.python.org/mailman/listinfo/python-list

Re: class implementation

2013-09-30 Thread Peter Otten
markot...@gmail.com wrote: esmaspäev, 30. september 2013 11:43.19 UTC+3 kirjutas mark...@gmail.com: Is there a way to give a class extra functions whidout editing the .py file where the class is located? But does it have all the variables that the main class have? Yes. You can invoke all

CRUD library

2013-09-30 Thread AdamKal
Hi, Do you know any library or framework that unifies CRUD somehow. Maybe I'll describe my problem: I have a application that uses many external services and processes them together. This are things like web services and DB and so on. In the REST era we usually operate on object and

Re: Handling 3 operands in an expression without raising an exception

2013-09-30 Thread Neil Cerutti
On 2013-09-28, Zero Piraeus z...@etiol.net wrote: : On Sat, Sep 28, 2013 at 1:53 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: You actually need the tool that was used on King Edward II. To be clear, Mark, you are calling for ?? to be tortured to death with a red hot poker, yes?

DNS query against a specific server.

2013-09-30 Thread Michel Albert
Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different* server? I see that twisted.names allows you to do this, but, having all of twisted as dependency to my project when all I need to do is a

Re: Handling 3 operands in an expression without raising an exception

2013-09-30 Thread Chris Angelico
On Mon, Sep 30, 2013 at 9:32 PM, Neil Cerutti ne...@norwich.edu wrote: On 2013-09-28, Zero Piraeus z...@etiol.net wrote: : On Sat, Sep 28, 2013 at 1:53 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: You actually need the tool that was used on King Edward II. To be clear, Mark, you are

Re: CRUD library

2013-09-30 Thread memilanuk
On 09/30/2013 03:14 AM, AdamKal wrote: Hi, Do you know any library or framework that unifies CRUD somehow. Sounds kind of like the DAL (Data Abstaction Layer/Language) from web2py, perhaps? I think I've heard of it being able to be used outside a regular web2py install... not sure,

Re: DNS query against a specific server.

2013-09-30 Thread William Ray Wing
On Sep 30, 2013, at 7:42 AM, Michel Albert exh...@gmail.com wrote: Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different* server? I see that twisted.names allows you to do this, but,

Re: class implementation

2013-09-30 Thread markotaht
under variables, i mean, the int's and lists and strings and floats that the parent class uses. IF in parent class there is variable called location, then can i use the same variable in my sub class. -- https://mail.python.org/mailman/listinfo/python-list

Re: DNS query against a specific server.

2013-09-30 Thread Michel Albert
On Monday, 30 September 2013 14:36:34 UTC+2, William Ray Wing wrote: On Sep 30, 2013, at 7:42 AM, Michel Albert *** wrote: Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different*

Re: DNS query against a specific server.

2013-09-30 Thread Ervin Hegedüs
Hello, On Mon, Sep 30, 2013 at 04:42:29AM -0700, Michel Albert wrote: Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different* server? I see that twisted.names allows you to do this, but,

Re: DNS query against a specific server.

2013-09-30 Thread Chris Angelico
On Mon, Sep 30, 2013 at 10:45 PM, Michel Albert exh...@gmail.com wrote: I know I may be splitting hairs. Any of the mentioned solutions are fine. But I am curious to see if something like this is not yet implemented in a more standard way. I was surprised to see that ``gethostbyname`` does

Re: Handling 3 operands in an expression without raising an exception

2013-09-30 Thread Neil Cerutti
On 2013-09-30, Chris Angelico ros...@gmail.com wrote: You actually need the tool that was used on King Edward II. To be clear, Mark, you are calling for ?? to be tortured to death with a red hot poker, yes? I'm going to go out on a limb and suggest that such a suggestion is

Re: class implementation

2013-09-30 Thread Peter Otten
markot...@gmail.com wrote: under variables, i mean, the int's and lists and strings and floats that the parent class uses. IF in parent class there is variable called location, then can i use the same variable in my sub class. Please show us some code. Thankyou. --

Re: DNS query against a specific server.

2013-09-30 Thread Michel Albert
On Monday, 30 September 2013 14:54:41 UTC+2, Ervin Hegedüs wrote: Hello, On Mon, Sep 30, 2013 at 04:42:29AM -0700, Michel Albert wrote: Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query

Re: class implementation

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 9:02 AM, Peter Otten __pete...@web.de wrote: markot...@gmail.com wrote: under variables, i mean, the int's and lists and strings and floats that the parent class uses. IF in parent class there is variable called location, then can i use the same variable in my sub

Re: DNS query against a specific server.

2013-09-30 Thread Gisle Vanem
Chris Angelico ros...@gmail.com wrote: There are a few Python DNS modules. It means adding another dependency, but perhaps not as large as twisted. And of course, you could always manually send UDP packets and listen for responses, but that seems a little unnecessary :) Then there is pycares;

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Grant Edwards
On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use was written with the help of regulars here and yes its correct. If you're code is correct, then use it and be happy.

Re: what is wrong in my code?? (python 3.3)

2013-09-30 Thread dream4soul
On Friday, September 27, 2013 7:19:45 PM UTC+3, Denis McMahon wrote: On Fri, 27 Sep 2013 06:54:48 -0700, dream4soul wrote: #!c:/Python33/python.exe -u import os, sys print(Content-type: text/html; charset=utf-8\n\n) print ('Hello, world!hr') print('ранее предусматривалась

Using GNU libc mtrace/muntrace via ctypes?

2013-09-30 Thread Skip Montanaro
I'm getting an error in certain situations which leads to this message: *** glibc detected *** /opt/TWWfsw/bin/python: corrupted double-linked list: 0x07952420 *** Valgrind hasn't been any help. I'd really like to avoid recompiling Python, as that might just move or obscure the error.

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web work and Python and get a job writing scripts for comedians, you'd make a large

RE: Barcode printing

2013-09-30 Thread Joseph L. Casale
If that's a bit heavyweight (and confusing; it's not all free software, since some of it is under non-free license terms), there are other options. pyBarcode URL:http://pythonhosted.org/pyBarcode/ says it's a pure-Python library that takes a barcode type and the value, and generates an SVG of the

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 14:51, Grant Edwards wrote: On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use was written with the help of regulars here and yes its correct. If you're code

fetchall to python lists

2013-09-30 Thread christensen . jerome
Hi - I have some basic programming experience and new to Python. I have connected to SQL Server as follows: import pyodbc conn = pyodbc.connect('DSN=DBC') cursor = conn.cursor() cursor.execute(select measure,fin_year_no,fin_week_no,location_no,value from actual) result=cursor.fetchall() result

Re: Handling 3 operands in an expression without raising an exception

2013-09-30 Thread Mark Lawrence
On 29/09/2013 18:44, MRAB wrote: On 29/09/2013 18:24, Piet van Oostrum wrote: Antoon Pardon antoon.par...@rece.vub.ac.be writes: Why? What is so important about this particular way, that you are willing to spend/waste so much time on it? You act like someone who want to get from Brussels to

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 12:51 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/09/2013 14:51, Grant Edwards wrote: On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use

Re: Handling 3 operands in an expression without raising an exception

2013-09-30 Thread Mark Lawrence
On 29/09/2013 22:15, Denis McMahon wrote: Nick, you have now spent 4 days arguing over a minor coding problem that you were given solutions to on the first day, primarily because you feel that the solutions you are being offend some programming aesthetic you have. I suggest that it's time for

Re: fetchall to python lists

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 10:58 AM, christensen.jer...@gmail.com wrote: Hi - I have some basic programming experience and new to Python. I have connected to SQL Server as follows: import pyodbc conn = pyodbc.connect('DSN=DBC') cursor = conn.cursor() cursor.execute(select

Re: fetchall to python lists

2013-09-30 Thread christensen . jerome
On Monday, September 30, 2013 4:58:25 PM UTC+2, christens...@gmail.com wrote: Hi - I have some basic programming experience and new to Python. I have connected to SQL Server as follows: import pyodbc conn = pyodbc.connect('DSN=DBC') cursor = conn.cursor() cursor.execute(select

Re: Restart the interactive python shell like in IDLE

2013-09-30 Thread Ricardo Abreu
On Thursday, June 11, 2009 1:48:42 AM UTC+2, Chris Rebert wrote: On Wed, Jun 10, 2009 at 12:01 PM, Matt Bursonmsbur...@gmail.com wrote: Is there a way to reproduce the behavior of IDLE's restart shell ability by using a function? I thought there would be since you can exit python by

VERY BASIC HELP

2013-09-30 Thread vignesh . harikrishna
c=int(raw_input(How many numbers do you want to work? (Min. 2 Max. 3))) if c==2: x=int(raw_input(Enter the first number to be worked)) y=int(raw_input(Enter the second number to be worked)) elif c==3: x=int(raw_input(Enter the first number to be worked)) y=int(raw_input(Enter the

Re: Functional Programming and python

2013-09-30 Thread Franck Ditter
In article ba94102b-18b6-4850-ac85-032b0fe2f...@googlegroups.com, rusi rustompm...@gmail.com wrote: Combining your two questions -- Recently: What minimum should a person know before saying I know Python And earlier this On Sunday, August 4, 2013 10:00:35 PM UTC+5:30, Aseem Bansal wrote:

Re: VERY BASIC HELP

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 2:55 AM, vignesh.harikris...@gmail.com wrote: print Invalid input.;raw_input(Press enter to close this window);exit 1. Even if c is not 2 or 3, the program continues, as if it received a valid input, it does not exit as I have tried to code it to. In Python,

Re: Functional Programming and python

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 3:04 AM, Franck Ditter nob...@nowhere.org wrote: 1. Tail recursion is not optimized. We are in 2013, why ? This is known technology (since 1960). And don't answer with good programmers don't use recursion, this is bullshit. I've yet to see any value in having the

Re: VERY BASIC HELP

2013-09-30 Thread John Gordon
In 380132bc-bc9c-4d57-95d8-dc01f26f4...@googlegroups.com vignesh.harikris...@gmail.com writes: c=int(raw_input(How many numbers do you want to work? (Min. 2 Max. 3))) if c==2: x=int(raw_input(Enter the first number to be worked)) y=int(raw_input(Enter the second number to be worked))

Re: class implementation

2013-09-30 Thread Piet van Oostrum
markot...@gmail.com writes: under variables, i mean, the int's and lists and strings and floats that the parent class uses. IF in parent class there is variable called location, then can i use the same variable in my sub class. Do you mean class variables or instance variables? -- Piet

Re: VERY BASIC HELP

2013-09-30 Thread vignesh . harikrishna
Thank you both so much! I'll be sure to make more pertinent subject lines now :) Thanks for the detailed explanations! Clearly, I've just started learning this language ~20 minutes before I made this post, and am still learning the basics. Do you guys know of any guides for a beginner? I am

Re: what is wrong in my code?? (python 3.3)

2013-09-30 Thread Piet van Oostrum
dream4s...@gmail.com writes: I rename file from test.py in test.txt and all works fine. So clearly problem it is not in file coding or browser. ANY IDEAS?? It looks like the encoding of stdout is not utf-8 in the CGI script. Check it with import sys print(sys.stdout.encoding) If it's not

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web work and Python and get a job

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Antoon Pardon
Op 30-09-13 20:03, Νίκος schreef: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web

Re: Functional Programming and python

2013-09-30 Thread Neil Cerutti
On 2013-09-30, Franck Ditter nob...@nowhere.org wrote: In article ba94102b-18b6-4850-ac85-032b0fe2f...@googlegroups.com, rusi rustompm...@gmail.com wrote: I touched upon these in two blog-posts: 1. http://blog.languager.org/2013/06/functional-programming-invades.html 2.

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 19:03, Νίκος wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance here. Absolutely hilarious. Please give up your web

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Ned Batchelder
On 9/30/13 2:42 PM, Mark Lawrence wrote: Please drop dead and the sooner the better. Your arrogant attitide to the numerous people who've tried so hard to help you is disgraceful. Mark, I'm as frustrated as anyone by Nikos' threads, but there's really no call for Please drop dead. We can do

Re: Functional Programming and python

2013-09-30 Thread Piet van Oostrum
Franck Ditter nob...@nowhere.org writes: Good approach of FP in Python, but two points make me crazy : 1. Tail recursion is not optimized. We are in 2013, why ? This is known technology (since 1960). And don't answer with good programmers don't use recursion, this is bullshit. Tail

Re: VERY BASIC HELP

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 1:50 PM, vignesh.harikris...@gmail.com wrote: Thank you both so much! I'll be sure to make more pertinent subject lines now :) Thanks for the detailed explanations! Clearly, I've just started learning this language ~20 minutes before I made this post, and am still

Re: Functional Programming and python

2013-09-30 Thread Antoon Pardon
Op 30-09-13 19:04, Franck Ditter schreef: Good approach of FP in Python, but two points make me crazy : 1. Tail recursion is not optimized. We are in 2013, why ? This is known technology (since 1960). And don't answer with good programmers don't use recursion, this is bullshit. Guido

Re: Which Python Framework for REST API and Facebook Wrapper?

2013-09-30 Thread waynejwerner
On Saturday, September 28, 2013 11:20:21 AM UTC-5, harry@gmail.com wrote: I will be designing a REST based API for a cross-platform back end that will serve both desktop Facebook users as well as mobile users. It will handle operations such as user creation, retrieval of user and other

Re: class implementation

2013-09-30 Thread Dave Angel
On 30/9/2013 08:41, markot...@gmail.com wrote: under variables, i mean, the int's and lists and strings and floats that the parent class uses. IF in parent class there is variable called location, then can i use the same variable in my sub class. Python doesn't actually have variables, but

Re: CRUD library

2013-09-30 Thread waynejwerner
On Monday, September 30, 2013 5:14:28 AM UTC-5, AdamKal wrote: Hi, Do you know any library or framework that unifies CRUD somehow. Maybe I'll describe my problem: I have a application that uses many external services and processes them together. This are things like web

Re: Python Unit Tests

2013-09-30 Thread melwin9
Lol, im starting to get the hang out of, onto the next hurdle, i looked up the error and it says the data is none? Traceback (most recent call last): File guess.py, line 34, in module main(random.randint(1, 10)) File guess.py, line 27, in main guess, tries = getguess(target,

Do I really need a web framework?

2013-09-30 Thread dufriz
I want to set up a very simple website, and I need to know if it is necessary to use a web framework (e.g. Django) to do basic interactive operations such as receiving input from the user, looking up a database and returning some data to the user. I know that this is exactly the purpose of web

Re: Python Unit Tests

2013-09-30 Thread MRAB
On 30/09/2013 20:54, melw...@gmail.com wrote: Lol, im starting to get the hang out of, onto the next hurdle, i looked up the error and it says the data is none? Traceback (most recent call last): File guess.py, line 34, in module main(random.randint(1, 10)) File guess.py, line 27,

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 30/9/2013 9:42 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 19:03, Νίκος wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: On 29/09/2013 17:19, Νίκος wrote: Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε: asked and answered. Move on shut up. you are nothign but annoyance

Re: Python Unit Tests

2013-09-30 Thread Dave Angel
On 30/9/2013 15:54, melw...@gmail.com wrote: Lol, im starting to get the hang out of, onto the next hurdle, i looked up the error and it says the data is none? Traceback (most recent call last): File guess.py, line 34, in module main(random.randint(1, 10)) File guess.py, line 27,

Re: Functional Programming and python

2013-09-30 Thread Antoon Pardon
Op 30-09-13 20:55, Piet van Oostrum schreef: Franck Ditter nob...@nowhere.org writes: Good approach of FP in Python, but two points make me crazy : 1. Tail recursion is not optimized. We are in 2013, why ? This is known technology (since 1960). And don't answer with good programmers don't use

Re: Do I really need a web framework?

2013-09-30 Thread Tim Delaney
On 1 October 2013 05:57, duf...@gmail.com wrote: I want to set up a very simple website, and I need to know if it is necessary to use a web framework (e.g. Django) to do basic interactive operations such as receiving input from the user, looking up a database and returning some data to the

[ANN] MATLAB fmincon now available in Python

2013-09-30 Thread dmitrey15
Hi all, current state of Python - MATLAB connection soft doesn't allow passing of function handlers, however, a walkaround has been implemented via some tricks, so now MATLAB function fmincon is available in Python-written OpenOpt and FuncDesigner frameworks (with possibility of automatic

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along while contributing negatively only. Really? http://code.activestate.com/lists/python-list/651611/ -- Cheers. Mark

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Antoon Pardon
Op 30-09-13 20:54, Ned Batchelder schreef: On 9/30/13 2:42 PM, Mark Lawrence wrote: Please drop dead and the sooner the better. Your arrogant attitide to the numerous people who've tried so hard to help you is disgraceful. Mark, I'm as frustrated as anyone by Nikos' threads, but there's

Re: Functional Programming and python

2013-09-30 Thread Tim Chase
On 2013-09-30 19:04, Franck Ditter wrote: two points make me crazy : 1. Tail recursion is not optimized. We are in 2013, why ? This is known technology (since 1960). And don't answer with good programmers don't use recursion, I seem to recall hearing that the primary reason it hadn't been

Re: class implementation

2013-09-30 Thread Ned Batchelder
On 9/30/13 3:34 PM, Dave Angel wrote: Python doesn't actually have variables, but the things it documents as variables are local names within a method. Those are not visible outside of the method, regardless of whether you're in a class or a subclass. Why does this meme persist!? Of course

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along while contributing negatively only. Really?

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 22:34, Νίκος wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole leading this list, who is doing nothing else than critizizing others people's posts, spamming all he way along while contributing negatively only.

Re: class implementation

2013-09-30 Thread random832
On Mon, Sep 30, 2013, at 17:28, Ned Batchelder wrote: On 9/30/13 3:34 PM, Dave Angel wrote: Python doesn't actually have variables, but the things it documents as variables are local names within a method. Those are not visible outside of the method, regardless of whether you're in a class

Re: Do I really need a web framework?

2013-09-30 Thread John Gordon
In f4a6d31f-cffe-4c03-9586-4f00f9037...@googlegroups.com duf...@gmail.com writes: I want to set up a very simple website, and I need to know if it is necessary to use a web framework (e.g. Django) to do basic interactive operations such as receiving input from the user, looking up a database

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a major asshole

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Denis McMahon
On Mon, 30 Sep 2013 15:51:39 +0100, Mark Lawrence wrote: On 30/09/2013 14:51, Grant Edwards wrote: On 2013-09-29, ?? nikos.gr...@gmail.com wrote: 29/9/2013 10:53 , ??/?? Chris Angelico : You fail to understand that these code i now use was written with the

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 6:08 PM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com** wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 23:08, Νίκος wrote: Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote:

Re: Do I really need a web framework?

2013-09-30 Thread waynejwerner
On Monday, September 30, 2013 2:57:08 PM UTC-5, duf...@gmail.com wrote: I want to set up a very simple website, and I need to know if it is necessary to use a web framework (e.g. Django) to do basic interactive operations such as receiving input from the user, looking up a database and

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:14 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:08, Νίκος wrote: Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: On Mon, Sep 30, 2013 at 5:34 PM, Νίκος nikos.gr...@gmail.com mailto:nikos.gr...@gmail.com wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε:

Python variables? [was Re: class implementation]

2013-09-30 Thread Ethan Furman
On 09/30/2013 02:28 PM, Ned Batchelder wrote: On 9/30/13 3:34 PM, Dave Angel wrote: Python doesn't actually have variables, but the things it documents as variables are local names within a method. Those are not visible outside of the method, regardless of whether you're in a class or a

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Mark Lawrence
On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis Butthead! rofl... Well aside from the fact that you've maintained your record by being inaccurate with 50% of the names that you've quoted, it appears that we've

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 4:03 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: Absolutely hilarious. Please give up your web work and Python and get a job writing scripts for comedians, you'd make a large fortune. I learn Python for personal pleasure

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:28 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis Butthead! rofl... Well aside from the fact that you've maintained your record by being inaccurate with 50% of the names

Re: Python variables?

2013-09-30 Thread Ben Finney
Ethan Furman et...@stoneleaf.us writes: From [Ned Batchelder]'s blog: Names are Python's variables: they refer to values, and those values can change (vary) over the course of your program. This is partially incorrect. If the value referred to by the name is immutable, then it

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:29 πμ, ο/η Chris Angelico έγραψε: On Tue, Oct 1, 2013 at 4:03 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 30/9/2013 5:45 μμ, ο/η Mark Lawrence έγραψε: Absolutely hilarious. Please give up your web work and Python and get a job writing scripts for comedians, you'd make a large

Mutual respect, tolerance, encouragement (was: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte)

2013-09-30 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: Nikos, I sincerely hope that all these problems cause you to go out of business. Preferably right now, with just enough maintenance to last till the end of your contracts with people. Then start programming purely as a hobby, until you actually master

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 8:30 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 1:28 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis Butthead! rofl... Well aside from the fact that

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:43 πμ, ο/η Chris Angelico έγραψε: On Tue, Oct 1, 2013 at 8:30 AM, Νίκος nikos.gr...@gmail.com wrote: Στις 1/10/2013 1:28 πμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 23:19, Νίκος wrote: 2 dickheads names Joe Mark work together to achieve total bullshit! Well done Beavis

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 8:36 AM, Νίκος nikos.gr...@gmail.com wrote: I learn during the process. That's how i deal with the situation. I challedge my self and then try to confront the given situation _live_. It's not wise to do so, but that how i operate. Everyone's learning on the job. (I

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Νίκος
Στις 1/10/2013 1:56 πμ, ο/η Chris Angelico έγραψε: But what you're doing is charging your customers while you learn the very basics. I designed their websites and they are up and running. Yes i have charged some money, but they gain what they paid for, a running website, all of them. So,

Re: Python variables? [was Re: class implementation]

2013-09-30 Thread Ned Batchelder
On 9/30/13 6:02 PM, Ethan Furman wrote: On 09/30/2013 02:28 PM, Ned Batchelder wrote: On 9/30/13 3:34 PM, Dave Angel wrote: Python doesn't actually have variables, but the things it documents as variables are local names within a method. Those are not visible outside of the method,

Re: Python variables?

2013-09-30 Thread Ned Batchelder
On 9/30/13 6:37 PM, Ben Finney wrote: Ethan Furman et...@stoneleaf.us writes: From [Ned Batchelder]'s blog: Names are Python's variables: they refer to values, and those values can change (vary) over the course of your program. This is partially incorrect. If the value referred to by

Re: class implementation

2013-09-30 Thread Steven D'Aprano
On Mon, 30 Sep 2013 17:28:30 -0400, Ned Batchelder wrote: On 9/30/13 3:34 PM, Dave Angel wrote: Python doesn't actually have variables, but the things it documents as variables are local names within a method. Those are not visible outside of the method, regardless of whether you're in a

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-09-30 Thread Steven D'Aprano
On Tue, 01 Oct 2013 01:08:41 +0300, Νίκος wrote: stfu dickhead. And you're back in the kill-file. *plonk* -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Unit Tests

2013-09-30 Thread Terry Reedy
On 9/30/2013 3:54 PM, melw...@gmail.com wrote: Lol, im starting to get the hang out of, onto the next hurdle, i looked up the error and it says the data is none? Traceback (most recent call last): File guess.py, line 34, in module main(random.randint(1, 10)) File guess.py, line 27,

Re: Functional Programming and python

2013-09-30 Thread Steven D'Aprano
On Mon, 30 Sep 2013 18:36:28 +, Neil Cerutti quoted: Why can’t lambda forms contain statements? Gah! Please fix your news client! (I see you're using slrn.) The \x92 bytes found in your message are apostrophes (technically: right single quotation marks), encoded using the legacy

Re: Tab completion in Python3.4

2013-09-30 Thread Steven D'Aprano
On Mon, 30 Sep 2013 08:50:01 +, Antoine Pitrou wrote: Steven D'Aprano steve at pearwood.info writes: I don't consider either of these solutions to be satisfactory. If you agree, I urge you to try it out for yourself, and then leave a comment on the bug tracker asking for tab completion

Re: class implementation

2013-09-30 Thread Steven D'Aprano
On Mon, 30 Sep 2013 05:41:16 -0700, markotaht wrote: under variables, i mean, the int's and lists and strings and floats that the parent class uses. IF in parent class there is variable called location, then can i use the same variable in my sub class. Firstly, in Python circles we prefer to

Re: Python variables? [was Re: class implementation]

2013-09-30 Thread Rhodri James
On Tue, 01 Oct 2013 00:45:06 +0100, Ned Batchelder n...@nedbatchelder.com wrote: On 9/30/13 6:02 PM, Ethan Furman wrote: From your blog: Names are Python's variables: they refer to values, and those values can change (vary) over the course of your program. This is partially incorrect.

  1   2   3   >