Re: I have a problem when creating a django project

2013-09-30 Thread YetToCome
在 2013年10月1日星期二UTC+8下午1时47分05秒,YetToCome写道: > I can't create a django project, I think the usage of the commend is > correct...here is the error information. > > > > > > h:\jcode>django-admin.py startproject mysite > > Usage: django-admin.py subcommand [options] [args] > > > > Options: >

I have a problem when creating a django project

2013-09-30 Thread YetToCome
I can't create a django project, I think the usage of the commend is correct...here is the error information. h:\jcode>django-admin.py startproject mysite Usage: django-admin.py subcommand [options] [args] Options: -v VERBOSITY, --verbosity=VERBOSITY Verbosity level; 0

extraction tool using CRF++

2013-09-30 Thread cerr
Hi, I want to write an extraction tool using CRF++ (http://crfpp.googlecode.com/svn/trunk/doc/index.html). I have written a trainings file and a template: training: banana FOODB-NP bread FOODI-NP template: U01:%x[0,1] U02:%x[1,1] and now I want to go ahead and extract the foods from a

Re: [Python-Dev] Released: Python 2.6.9 release candidate 1

2013-09-30 Thread Thanatos xiao
Ooh!ths! 2013/10/1 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

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 means

Re: Functional Programming and python

2013-09-30 Thread rusi
On Tuesday, October 1, 2013 6:11:18 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 30 Sep 2013 19:04:32 +0200, Franck Ditter wrote: > > 2. Lambda-expression body is limited to one expression. Why ? > > Nobody has come up with syntax that is unambiguous, would allow multiple > statements in an expr

Re: Python variables?

2013-09-30 Thread Ned Batchelder
On 9/30/13 9:03 PM, Steven D'Aprano wrote: On Mon, 30 Sep 2013 19:47:49 -0400, Ned Batchelder wrote: On 9/30/13 6:37 PM, Ben Finney wrote: Ethan Furman writes: From [Ned Batchelder]'s blog: Names are Python's variables: they refer to values, and those values can change (vary) over the

Re: Functional Programming and python

2013-09-30 Thread alex23
On 1/10/2013 3:04 AM, Franck Ditter 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. Here's an article Guido wrote explaining his reasoning: http://neopythonic

Re: Do I really need a web framework?

2013-09-30 Thread Roy Smith
In article , 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 user. >

Re: Python variables?

2013-09-30 Thread Steven D'Aprano
On Mon, 30 Sep 2013 19:47:49 -0400, Ned Batchelder wrote: > On 9/30/13 6:37 PM, Ben Finney wrote: >> Ethan Furman 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. >>> T

Re: Functional Programming and python

2013-09-30 Thread Terry Reedy
On 9/30/2013 5:02 PM, Tim Chase wrote: 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 th

Re: class implementation

2013-09-30 Thread Ethan Furman
On 09/30/2013 04:45 PM, Steven D'Aprano wrote: I can't speak for others, but in my own experience, I never *quite* understood the semantic differences between Python name bindings and Pascal variables until I came across the meme "Python has no variables". +1 -- https://mail.python.org/mailman

Re: Functional Programming and python

2013-09-30 Thread Steven D'Aprano
On Mon, 30 Sep 2013 19:04:32 +0200, Franck Ditter wrote: > 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 bull

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

2013-09-30 Thread Rhodri James
On Tue, 01 Oct 2013 00:45:06 +0100, Ned Batchelder 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. If the value referred

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 t

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 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: 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 Windo

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 main(random.randint(1, 10)) File "guess.py", line 27, in

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: 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

Re: Python variables?

2013-09-30 Thread Ned Batchelder
On 9/30/13 6:37 PM, Ben Finney wrote: Ethan Furman 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 immutab

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, regardless

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, its

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, Νίκος 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 learned this week th

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, Νίκος 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...

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, Νίκος 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

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 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 the craft. Th

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, Νίκος 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 P

Re: Python variables?

2013-09-30 Thread Ben Finney
Ethan Furman 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 cannot change;

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: 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, Νίκος 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 because i like p

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 someth

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 subclas

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, Νίκος mailto:nikos.gr...@gmail.com>> wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013

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 retu

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, Νίκος mailto:nikos.gr...@gmail.com>> wrote: Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: On 30/09/2013 21:13, Νίκος wrote: And you are a majo

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, Νίκος wrote: > Στις 1/10/2013 12:44 πμ, ο/η Joel Goldstick έγραψε: > >> >> >> >> On Mon, Sep 30, 2013 at 5:34 PM, Νίκος > **> wrote: >> >> Στις 30/9/2013 11:44 μμ, ο/η Mark Lawrence έγραψε: >> >> On 30/09/2013 21:13, Νίκος

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, ?? wrote: >>> 29/9/2013 10:53 , ??/?? Chris Angelico : >>> You fail to understand that these code i now use was written with the >>> help of reg

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, Νίκος 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 leading this list, who is

Re: Do I really need a web framework?

2013-09-30 Thread John Gordon
In 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 > and returning some data to the user. No, it's no

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

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: 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, Νίκος 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 >>>

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? http://code.activestate.c

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 Py

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 bee

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 reall

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 Lawre

[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 diff

Re: Do I really need a web framework?

2013-09-30 Thread Tim Delaney
On 1 October 2013 05:57, 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 user. > I know

Re: Functional Programming and python

2013-09-30 Thread Antoon Pardon
Op 30-09-13 20:55, Piet van Oostrum schreef: Franck Ditter 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

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 > main(random.randint(1, 10)) > File "guess.py", line

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 here

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 main(random.randint(1, 10)) File "guess.py", line 27, in m

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 f

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 main(random.randint(1, 10)) File "guess.py", line 27, in main guess, tries = getguess(target, allowed) T

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 lik

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, bu

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: 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 doesn

Re: VERY BASIC HELP

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 1:50 PM, 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 > learning the basics. Do you gu

Re: Functional Programming and python

2013-09-30 Thread Piet van Oostrum
Franck Ditter 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 recursion optimiza

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 d

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: Functional Programming and python

2013-09-30 Thread Neil Cerutti
On 2013-09-30, Franck Ditter wrote: > In article , > rusi wrote: >> I touched upon these in two blog-posts: >> 1. http://blog.languager.org/2013/06/functional-programming-invades.html >> 2. http://blog.languager.org/2012/10/functional-programming-lost-booty.html >> >> Also most programmers with

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: 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 writi

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: 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 defi

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 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 b

Re: Functional Programming and python

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 3:04 AM, Franck Ditter 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 compiler/interpre

Re: VERY BASIC HELP

2013-09-30 Thread Chris Angelico
On Tue, Oct 1, 2013 at 2:55 AM, wrote: > print "Invalid input.";raw_input("Press 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, exit isn't a statement, it's a

Re: Functional Programming and python

2013-09-30 Thread Franck Ditter
In article , rusi 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: > > If there is an issue in place for improving the lambda forms then

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("Ent

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 Burson 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 > > executing the simpl

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.execu

Re: fetchall to python lists

2013-09-30 Thread Joel Goldstick
On Mon, Sep 30, 2013 at 10:58 AM, 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 measure,fin_year_no,fin_week_no,location_

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 y

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 wrote: > On 30/09/2013 14:51, Grant Edwards wrote: >> >> On 2013-09-29, ?? wrote: >>> >>> 29/9/2013 10:53 , ??/?? Chris Angelico : >>> >>> You fail to understand that these code i now use was written with the >>> help

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 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 London and when asked how to d

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() resul

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, ?? 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

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 http://pythonhosted.org/pyBarcode/> says it's a >pure-Python library that takes a barcode type and the value, and >generates an SVG of

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 fortu

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. Mig

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!') > > > print('ранее

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, ?? 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. There's no need to bot

Re: DNS query against a specific server.

2013-09-30 Thread Gisle Vanem
"Chris Angelico" 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; "a Python modu

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 i

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

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. -- https://mail.python.or

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

2013-09-30 Thread Neil Cerutti
On 2013-09-30, Chris Angelico 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 >>> suggesti

Re: DNS query against a specific server.

2013-09-30 Thread Chris Angelico
On Mon, Sep 30, 2013 at 10:45 PM, Michel Albert 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 not take an > o

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, b

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

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 William Ray Wing
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* > server? > > I see that twisted.names allows you to do this, but, having all of t

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, haven't

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 wrote: > On 2013-09-28, Zero Piraeus wrote: >>: >> >>> On Sat, Sep 28, 2013 at 1:53 PM, Mark Lawrence >>> wrote: >>> > You actually need the tool that was used on King Edward II. >> >> To be clear, Mark, you are calling for ?? to be tortured

  1   2   >