[RELEASED] Python 3.4.0 release candidate 1

2014-02-12 Thread Larry Hastings
On behalf of the Python development team, I'm delighted to announce the first release candidate of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python 3.4 includes a range of improvements of the 3.x series, including hundreds of small

rJSmin 1.0.8

2014-02-12 Thread André Malo
Hello World, I'm pleased to announce version 1.0.8 of rJSmin. About rJSmin rJSmin is a javascript minifier written in python. The minifier is based on the semantics of jsmin.c by Douglas Crockford. The module is a re-implementation aiming for speed, so it can be used at runtime

ANN: Urwid 1.2.0

2014-02-12 Thread Ian Ward
Announcing Urwid 1.2.0 -- Urwid home page: http://urwid.org/ About this release: === This is a major feature release for Urwid. Urwid now works with PyPy. TwistedEventLoop, GlibEventLoop and the new TornadoEventLoop now work with Python 3.2+. New weakly

ANN: PSF Python Marketing Brochure - Last call for Ad Sponsors

2014-02-12 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks :-)] ANNOUNCING PSF Python Marketing Brochure - Last call for Ad Sponsors Please support the

[RELEASED] Python 3.3.4

2014-02-12 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm very happy to announce the release of Python 3.3.4. Python 3.3.4 includes several security fixes and over 120 bug fixes compared to the Python 3.3.3 release. This release fully supports OS X 10.9

Re: Finding size of Variable

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 6:49 PM, wxjmfa...@gmail.com wrote: The day you find an operator working on the set of reals (R) and it is somehow optimized for N (the subset of natural numbers), let me know. I have yet to find any computer that works with the set of real numbers in any way. Never

Re: Top down Python

2014-02-12 Thread Ben Finney
John Allsup py...@allsup.co writes: What is needed for proper learning is near-absolute simplicity. I think that's too simplistic :-) but I'll take it as merely a preference on your part for simplicity at this time. I want to be able to say: 1. Put a nice picture on the background.

Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: I have yet to find any computer that works with the set of real numbers in any way. Never mind optimization, they simply cannot work with real numbers. Not *any* computer? Not in *any* way? The Python built-in ‘float’ type “works with the set of real

Re: Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread wxjmfauth
Integers are integers. (1) Characters are characters. (2) (1) is a unique natural set. (2) is an artificial construct working with 3 sets (unicode). jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 7:17 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: I have yet to find any computer that works with the set of real numbers in any way. Never mind optimization, they simply cannot work with real numbers. Not *any* computer?

Re: Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread wxjmfauth
Le mercredi 12 février 2014 09:35:38 UTC+1, wxjm...@gmail.com a écrit : Integers are integers. (1) Characters are characters. (2) (1) is a unique natural set. (2) is an artificial construct working with 3 sets (unicode). jmf Addendum: One should not confuse unicode and

Re: Python programming

2014-02-12 Thread Ben Abramowitz
I started learning python 3.3 for 13 days (including today) ago, using this book, with no programming experience: http://openbookproject.net/thinkcs/python/english3e/index.html the fact that the author uses the python turtle to teach readers object orientated programming, has been ALL the

Re: Python programming

2014-02-12 Thread Gene Heskett
On Tuesday 11 February 2014 23:13:33 Roy Smith did opine: In article b2db52b0-d7f7-43dd-9ddf-86feb109e...@googlegroups.com, ngangsia akumbo ngang...@gmail.com wrote: Please i have a silly question to ask. How long did it take you to learn how to write programs? I've been working on

Re: Working with the set of real numbers

2014-02-12 Thread Ben Finney
wxjmfa...@gmail.com writes: (2) is an artificial construct working with 3 sets (unicode). jmf, you are being exceedingly disruptive: attempting to derail unrelated discussions for your favourite hobby-horse topic. Please stop. Everyone else: Please don't engage these attempts; instead, avoid

Re: Working with the set of real numbers

2014-02-12 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: On Wed, Feb 12, 2014 at 7:17 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: I have yet to find any computer that works with the set of real numbers in any way. Never mind optimization, they simply cannot

Re: Finding size of Variable

2014-02-12 Thread Jussi Piitulainen
Chris Angelico writes: On Wed, Feb 12, 2014 at 6:49 PM, wxjmfa...@gmail.com wrote: The day you find an operator working on the set of reals (R) and it is somehow optimized for N (the subset of natural numbers), let me know. ... In Python, integers have arbitrary precision, but floats,

Re: Working with the set of real numbers

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 7:56 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: So, if I understand you right, you want to say that you've not found a computer that works with the *complete* set of real numbers. Yes? Correct. When jmf referred to real numbers, he implied that there are no

Re: Finding size of Variable

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 7:57 PM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: In Python, integers have arbitrary precision, but floats, Fractions, and Decimals, don't. Nearly any operation on arbitrarily large numbers will be either more accurate or more efficient (maybe both) with

Re: Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread Jussi Piitulainen
Chris Angelico writes: On Wed, Feb 12, 2014 at 7:17 PM, Ben Finney wrote: What specific behaviour would, for you, qualify as “works with the set of real numbers in any way”? Being able to represent surds, pi, e, etc, for a start. It'd theoretically be possible with an algebraic notation

ANN: eGenix mxODBC Connect 2.0.4 - Python ODBC Database Interface

2014-02-12 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Connect Python ODBC Database Interface Version 2.0.4 mxODBC Connect is our commercially supported client-server product

Re: Finding size of Variable

2014-02-12 Thread Jussi Piitulainen
Chris Angelico writes: On Wed, Feb 12, 2014 at 7:57 PM, Jussi Piitulainen wrote: In Python, integers have arbitrary precision, but floats, Fractions, and Decimals, don't. Nearly any operation on arbitrarily large numbers will be either more accurate or more efficient (maybe both) with

Re: singleton ... again

2014-02-12 Thread Gregory Ewing
Roy Smith wrote: It looks to me like he's trying to implement a classic Gang of Four singleton pattern. Which I've never really seen the point of in Python, or any other language for that matter. Just create one instance of the class during initialisation, put it in a global somewhere, and use

Re: Working with the set of real numbers

2014-02-12 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: On Wed, Feb 12, 2014 at 7:56 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: So, if I understand you right, you want to say that you've not found a computer that works with the *complete* set of real numbers. Yes? Correct. […] My point is that

Re: singleton ... again

2014-02-12 Thread Ben Finney
Gregory Ewing greg.ew...@canterbury.ac.nz writes: Roy Smith wrote: It looks to me like he's trying to implement a classic Gang of Four singleton pattern. Which I've never really seen the point of in Python, or any other language for that matter. Just create one instance of the class

Re: Working with the set of real numbers

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 9:07 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: On Wed, Feb 12, 2014 at 7:56 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: So, if I understand you right, you want to say that you've not found a computer that works

Re: PIL Image.fromarray( ... , mode=1 )

2014-02-12 Thread xstgavin124
On Saturday, 31 October 2009 23:43:45 UTC+8, Hans Georg Schaathun wrote: Does anyone know how to save two-tone images represented as numpy arrays? I handle grayscale images by converting to PIL Image objects (mode=L) and then use the PIL save method, but I cannot make this work with mode=1.

Re: Working with the set of real numbers

2014-02-12 Thread wxjmfauth
The fascinating aspect of this FSR lies in its mathematical absurdity. jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Working with the set of real numbers

2014-02-12 Thread Ben Finney
Chris Angelico ros...@gmail.com writes: On Wed, Feb 12, 2014 at 9:07 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: That's why I think you need to be clear that your point isn't “computers don't work with real numbers”, but rather “computers work only with a limited subset of real

Re: Working with the set of real numbers

2014-02-12 Thread Ned Batchelder
On 2/12/14 5:55 AM, wxjmfa...@gmail.com wrote: The fascinating aspect of this FSR lies in its mathematical absurdity. jmf Stop. -- Ned Batchelder, http://nedbatchelder.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Working with the set of real numbers

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 10:44 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: On Wed, Feb 12, 2014 at 9:07 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: That's why I think you need to be clear that your point isn't “computers don't work with

Re: Working with the set of real numbers

2014-02-12 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: Hmm, I'm not sure that my statement is false. If a computer can work with real numbers, then I would expect it to be able to work with any real number. In C, I can declare an 'int' variable, which can hold the real number 4 - does that mean that that variable

Re: Working with the set of real numbers

2014-02-12 Thread Chris Angelico
On Wed, Feb 12, 2014 at 11:48 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: Hmm, I'm not sure that my statement is false. If a computer can work with real numbers, then I would expect it to be able to work with any real number. In C, I can declare an 'int'

Re: Python programming

2014-02-12 Thread Mark Lawrence
On 12/02/2014 04:14, Gene Heskett wrote: On Tuesday 11 February 2014 23:13:33 Roy Smith did opine: In article b2db52b0-d7f7-43dd-9ddf-86feb109e...@googlegroups.com, ngangsia akumbo ngang...@gmail.com wrote: Please i have a silly question to ask. How long did it take you to learn how to

Re: singleton ... again

2014-02-12 Thread Roy Smith
In article mailman.6750.1392199807.18130.python-l...@python.org, Ben Finney ben+pyt...@benfinney.id.au wrote: Gregory Ewing greg.ew...@canterbury.ac.nz writes: Roy Smith wrote: It looks to me like he's trying to implement a classic Gang of Four singleton pattern. Which I've never

Re: Python programming

2014-02-12 Thread Larry Martell
On Tue, Feb 11, 2014 at 7:21 PM, ngangsia akumbo ngang...@gmail.com wrote: Please i have a silly question to ask. How long did it take you to learn how to write programs? My entire life. I started in 1975 when I was 16 - taught myself BASIC and wrote a very crude downhill skiing game. I had

Re: Finding size of Variable

2014-02-12 Thread Mark Lawrence
On 12/02/2014 07:49, wxjmfa...@gmail.com wrote: Le mardi 11 février 2014 20:04:02 UTC+1, Mark Lawrence a écrit : On 11/02/2014 18:53, wxjmfa...@gmail.com wrote: Le lundi 10 février 2014 15:43:08 UTC+1, Tim Chase a écrit : On 2014-02-10 06:07, wxjmfa...@gmail.com wrote: Python does

Re: Working with the set of real numbers

2014-02-12 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: On Wed, Feb 12, 2014 at 11:48 PM, Marko Rauhamaa ma...@pacujo.net wrote: According to your definition, there's no computer in the world that can work with integers or text files. Integers as far as RAM will allow, usually (which is the same caveat as is used

Re: Working with the set of real numbers

2014-02-12 Thread Rustom Mody
On Wednesday, February 12, 2014 3:37:04 PM UTC+5:30, Ben Finney wrote: Chris Angelico writes: On Wed, Feb 12, 2014 at 7:56 PM, Ben Finney wrote: So, if I understand you right, you want to say that you've not found a computer that works with the *complete* set of real numbers. Yes?

Re: Python programming

2014-02-12 Thread Roy Smith
In article mailman.6757.139221.18130.python-l...@python.org, Larry Martell larry.mart...@gmail.com wrote: On Tue, Feb 11, 2014 at 7:21 PM, ngangsia akumbo ngang...@gmail.com wrote: Please i have a silly question to ask. How long did it take you to learn how to write programs? My

Re: Finding size of Variable

2014-02-12 Thread Rustom Mody
On Wednesday, February 12, 2014 7:34:42 PM UTC+5:30, Mark Lawrence wrote: I ask you, members of the jury, to find the accused, jmf, guilty of writing nonsense and deliberately using google groups to double line space. The evidence is directly above and quite clearly prooves, beyond a

Re: Finding size of Variable

2014-02-12 Thread Mark Lawrence
On 12/02/2014 14:14, Rustom Mody wrote: On Wednesday, February 12, 2014 7:34:42 PM UTC+5:30, Mark Lawrence wrote: I ask you, members of the jury, to find the accused, jmf, guilty of writing nonsense and deliberately using google groups to double line space. The evidence is directly above and

Re: Finding size of Variable

2014-02-12 Thread Rustom Mody
On Wednesday, February 12, 2014 7:55:32 PM UTC+5:30, Mark Lawrence wrote: On 12/02/2014 14:14, Rustom Mody wrote: On Wednesday, February 12, 2014 7:34:42 PM UTC+5:30, Mark Lawrence wrote: I ask you, members of the jury, to find the accused, jmf, guilty of writing nonsense and deliberately

Combination Function Help

2014-02-12 Thread kjakupak
So I need to write a function based off of nCr, which I have here: def choices(n, k): if n == k: return 1 if k == 1: return n if k == 0: return 1 return choices(n - 1, k) + choices(n - 1, k - 1) It works fine, but then I need to add in so that the user can

Re: Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread Grant Edwards
On 2014-02-12, Ben Finney ben+pyt...@benfinney.id.au wrote: Chris Angelico ros...@gmail.com writes: I have yet to find any computer that works with the set of real numbers in any way. Never mind optimization, they simply cannot work with real numbers. Not *any* computer? Not in *any* way?

Re: Newcomer Help

2014-02-12 Thread Grant Edwards
On 2014-02-12, Ben Finney ben+pyt...@benfinney.id.au wrote: In other contexts eg corporates, often the culture is the opposite: top-posting with strictly NO trimming. I've never found a corporation that objects to the sensible conversation-style, minimal-quotes-for-context interleaved

Re: Flag control variable

2014-02-12 Thread luke . geelen
Op woensdag 12 februari 2014 06:23:14 UTC+1 schreef Dave Angel: luke.gee...@gmail.com Wrote in message: Can I make it that if C = int(sys.argv[3]) But when I only enter 2 argumentvariable it sets c automaticly to 0 or 1 Why do you ask for 'automatically'? You're the

Re: Combination Function Help

2014-02-12 Thread Mark Lawrence
On 12/02/2014 15:20, kjaku...@gmail.com wrote: So I need to write a function based off of nCr, which I have here: def choices(n, k): if n == k: return 1 if k == 1: return n if k == 0: return 1 return choices(n - 1, k) + choices(n - 1, k - 1) It

Re: Flag control variable

2014-02-12 Thread Mark Lawrence
On 12/02/2014 15:32, luke.gee...@gmail.com wrote: Op woensdag 12 februari 2014 06:23:14 UTC+1 schreef Dave Angel: luke.gee...@gmail.com Wrote in message: Can I make it that if C = int(sys.argv[3]) But when I only enter 2 argumentvariable it sets c automaticly to 0 or 1 Why do

Re: Combination Function Help

2014-02-12 Thread kjakupak
def choices(n, k): if k == 1: return n if n == k: return 1 if k == 0: return 1 return choices(n - 1, k) + choices(n - 1, k - 1) print (Total number of ways of choosing %d out of %d courses: % (n, k)) n = int(input(Number of courses you like: )) k =

Re: Flag control variable

2014-02-12 Thread Alain Ketterlin
luke.gee...@gmail.com writes: Can I make it that if C = int(sys.argv[3]) But when I only enter 2 argumentvariable it sets c automaticly to 0 or 1 C = int(sys.argv[3]) if len(sys.argv) 3 else 0 is one possibility. -- Alain. -- https://mail.python.org/mailman/listinfo/python-list

Re: Combination Function Help

2014-02-12 Thread Joel Goldstick
Y On Feb 12, 2014 11:00 AM, kjaku...@gmail.com wrote: def choices(n, k): if k == 1: return n if n == k: return 1 if k == 0: return 1 return choices(n - 1, k) + choices(n - 1, k - 1) Following line never runs print (Total number of ways of

Re: Working with the set of real numbers (was: Finding size of Variable)

2014-02-12 Thread Gisle Vanem
Grant Edwards wrote: Not *any* computer? Not in *any* way? The Python built-in float type works with the set of real numbers, in a way. The only people who think that are people who don't actualy _use_ floating point types on computers. FPU parsing the IEEE spec, or?. I didn't quite parse

Re: Combination Function Help

2014-02-12 Thread John Ladasky
On Wednesday, February 12, 2014 7:56:05 AM UTC-8, kjak...@gmail.com wrote: [snip] choices(n, k) Changed it like you said, didn't work What are you doing with the value returned by the function, choices()? Right now, you aren't doing anything with it. You are throwing it away. That's the

Re: Top down Python

2014-02-12 Thread John Allsup
I've realised that the best way to do this is to use a web browser for the graphical front end: high end graphics are simply not a necessity here, so one does not need to leave the confines of the browser. Thus we need a simple server script. I'm still minimalist, so I guess we want xmlrpc

Re: Python programming

2014-02-12 Thread Larry Martell
On Wed, Feb 12, 2014 at 9:13 AM, Roy Smith r...@panix.com wrote: In article mailman.6757.139221.18130.python-l...@python.org, Larry Martell larry.mart...@gmail.com wrote: On Tue, Feb 11, 2014 at 7:21 PM, ngangsia akumbo ngang...@gmail.com wrote: Please i have a silly question to ask.

Re: Combination Function Help

2014-02-12 Thread Mark Lawrence
On 12/02/2014 15:56, kjaku...@gmail.com wrote: def choices(n, k): if k == 1: return n if n == k: return 1 if k == 0: return 1 return choices(n - 1, k) + choices(n - 1, k - 1) print (Total number of ways of choosing %d out of %d courses: % (n,

Re: Top down Python

2014-02-12 Thread Mark Lawrence
On 12/02/2014 16:40, John Allsup wrote: I've realised that the best way to do this is to use a web browser for the graphical front end: high end graphics are simply not a necessity here, so one does not need to leave the confines of the browser. Thus we need a simple server script. I'm still

Re: Top down Python

2014-02-12 Thread John Allsup
Hi, Current software development methods make things way more complex than they need to be. I am trying to get an idea for how simple things can be from final product down to low level implementation, hoping to recover the code density miracles that the old school Forthers turned out ages ago.

Re: Top down Python

2014-02-12 Thread John Allsup
Hi, I'm trying to figure out where 'simpler' stops and 'too simplistic' begins. That's what I call 'absolute simplicity'. It is a necessity in some areas of learning where even a jot of inefficiency can be costly (consider a superconducting magnet just below the critical frequency with massive

Re: Top down Python

2014-02-12 Thread Ben Finney
John Allsup py...@allsup.co writes: Hi, (John, please don't top-post. Instead, retain only the quoted material you're responding to, and interleave your responses after the points like a conversation. See URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style.) I'm trying to

Re: Flag control variable

2014-02-12 Thread luke . geelen
Op woensdag 12 februari 2014 17:10:36 UTC+1 schreef Alain Ketterlin: luke.gee...@gmail.com writes: Can I make it that if C = int(sys.argv[3]) But when I only enter 2 argumentvariable it sets c automaticly to 0 or 1 C = int(sys.argv[3]) if len(sys.argv) 3 else 0 is

Re: Working with the set of real numbers

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 1:13 AM, Marko Rauhamaa ma...@pacujo.net wrote: Text files suffer from the same caveat as integers: there's a limit to how much you can store on the physical computer. Sure, but nobody said the text file had to be _stored_ anywhere :) Computers are quite capable of

Re: singleton ... again

2014-02-12 Thread Asaf Las
On Wednesday, February 12, 2014 7:48:51 AM UTC+2, Dave Angel wrote: Perhaps if you would state your actual goal, we could judge whether this code is an effective way to accomplish it. DaveA Thanks! There is no specific goal, i am in process of building pattern knowledge in python by

Re: Newcomer Help

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 2:17 AM, Grant Edwards invalid@invalid.invalid wrote: On 2014-02-12, Ben Finney ben+pyt...@benfinney.id.au wrote: In other contexts eg corporates, often the culture is the opposite: top-posting with strictly NO trimming. I've never found a corporation that objects to

Re: singleton ... again

2014-02-12 Thread Asaf Las
There is another one. Once object passes through singletonizator there wont be any other object than first one. Then object constructor can freely be used in every place of code. Curious if there could be any impact and applicability of this to builtin types. p.s. learned today that

Re: Top down Python

2014-02-12 Thread Michael Torrie
On 02/12/2014 09:40 AM, John Allsup wrote: I've realised that the best way to do this is to use a web browser for the graphical front end: high end graphics are simply not a necessity here, so one does not need to leave the confines of the browser. Thus we need a simple server script.

Re: singleton ... again

2014-02-12 Thread Asaf Las
mistake, object constructor - to class constructor -- https://mail.python.org/mailman/listinfo/python-list

Re: Top down Python

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 4:57 AM, Michael Torrie torr...@gmail.com wrote: It's unclear of what you are really trying to do, though. Doing as you propose to have a python server communicating with a web front-end is going to be a lot harder than you think. ... Some kind of CGI system. Or roll

Re: Combination Function Help

2014-02-12 Thread Dave Angel
kjaku...@gmail.com Wrote in message: def choices(n, k): if k == 1: return n if n == k: return 1 if k == 0: return 1 return choices(n - 1, k) + choices(n - 1, k - 1) print (Total number of ways of choosing %d out of %d courses: % (n, k)) n =

Re: pip3.x error using LIST instead of list

2014-02-12 Thread Neil Cerutti
On 2014-02-11, Dave Angel da...@davea.name wrote: Mark Lawrence breamore...@yahoo.co.uk Wrote in message: No matter what I try I can't get the subcommands in lower-case when I have caps lock on, is there a simple work-around for this as well? :) You could do what I've done for my own DOS,

Re: Flag control variable

2014-02-12 Thread Dave Angel
luke.gee...@gmail.com Wrote in message: Deleting all the obnoxious doublespaced googlegroups nonsense. .. then i keep getting IndexError: list index out of range anyway to prevent it and just set the value to 0? My car makes a funny noise. What kind of coat should I wear to the dance

Re: pip3.x error using LIST instead of list

2014-02-12 Thread Pete Forman
Dave Angel da...@davea.name writes: Mark Lawrence breamore...@yahoo.co.uk Wrote in message: No matter what I try I can't get the subcommands in lower-case when I have caps lock on, is there a simple work-around for this as well? :) You could do what I've done for my own DOS, Windows,

Re: singleton ... again

2014-02-12 Thread Mark Lawrence
On 12/02/2014 17:50, Asaf Las wrote: On Wednesday, February 12, 2014 7:48:51 AM UTC+2, Dave Angel wrote: Perhaps if you would state your actual goal, we could judge whether this code is an effective way to accomplish it. DaveA Thanks! There is no specific goal, i am in process of

Wait... WHAT?

2014-02-12 Thread eneskristo
http://postimg.org/image/rkm9lhj8n/ So, I was doing some cx freeze stuff. If you cant understand everything from the pic, I'll give extra info. Please help me. -- https://mail.python.org/mailman/listinfo/python-list

Re: Wait... WHAT?

2014-02-12 Thread Ian Kelly
On Wed, Feb 12, 2014 at 12:43 PM, eneskri...@gmail.com wrote: http://postimg.org/image/rkm9lhj8n/ So, I was doing some cx freeze stuff. If you cant understand everything from the pic, I'll give extra info. Please help me. It would be preferable if you would please copy and paste the

How does python know?

2014-02-12 Thread Tobiah
I do this: a = 'lasdfjlasdjflaksdjfl;akjsdf;kljasdl;kfjasl' b = 'lasdfjlasdjflaksdjfl;akjsdf;kljasdl;kfjasl' print print id(a) print id(b) And get this: True 140329184721376 140329184721376 This works for longer strings. Does python compare a new string to every other string I've made in

Re: Wait... WHAT?

2014-02-12 Thread eneskristo
I think of it as a bit strange. Should I report it as a bug? I was trying to incorporate a save/load, and this happened. def save(): target = open (save.swroc, 'w') target.write([counter, loop, number_of_competitors, competitors]) def load(): target =

Re: How does python know?

2014-02-12 Thread Tobiah
On 02/12/2014 12:17 PM, Tobiah wrote: I do this: a = 'lasdfjlasdjflaksdjfl;akjsdf;kljasdl;kfjasl' b = 'lasdfjlasdjflaksdjfl;akjsdf;kljasdl;kfjasl' print print id(a) print id(b) And get this: True 140329184721376 140329184721376 This works for longer strings. Does python compare a new

Re: How does python know?

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 7:17 AM, Tobiah t...@tobiah.org wrote: This works for longer strings. Does python compare a new string to every other string I've made in order to determine whether it needs to create a new object? No, it doesn't; but when you compile a module (including a simple

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
On 12/02/2014 20:21, eneskri...@gmail.com wrote: I think of it as a bit strange. Should I report it as a bug? I was trying to incorporate a save/load, and this happened. def save(): target = open (save.swroc, 'w') target.write([counter, loop, number_of_competitors,

Re: Wait... WHAT?

2014-02-12 Thread eneskristo
One to write in the file, and one to read it. -- https://mail.python.org/mailman/listinfo/python-list

Re: Working with the set of real numbers

2014-02-12 Thread Ian Kelly
On Wed, Feb 12, 2014 at 7:11 AM, Rustom Mody rustompm...@gmail.com wrote: On Wednesday, February 12, 2014 3:37:04 PM UTC+5:30, Ben Finney wrote: Chris Angelico writes: On Wed, Feb 12, 2014 at 7:56 PM, Ben Finney wrote: So, if I understand you right, you want to say that you've not found

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
On 12/02/2014 20:43, eneskri...@gmail.com wrote: One to write in the file, and one to read it. Nice to know, but please place this in context. Many people who partake in this group are smart, but we're not mind readers :) -- My fellow Pythonistas, ask not what our language can do for you,

Re: Wait... WHAT?

2014-02-12 Thread eneskristo
I am sorry then. So what's the problem, and if it is a bug, should I report it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python programming

2014-02-12 Thread Tim Delaney
On 13 February 2014 00:55, Larry Martell larry.mart...@gmail.com wrote: On Tue, Feb 11, 2014 at 7:21 PM, ngangsia akumbo ngang...@gmail.com wrote: Please i have a silly question to ask. How long did it take you to learn how to write programs? My entire life. I started in 1975 when I

Re: [RELEASED] Python 3.4.0 release candidate 1

2014-02-12 Thread Bob Hanson
[32-bit Windows XP-SP2] On Tue, 11 Feb 2014 12:11:49 -0500, Terry Reedy wrote: [problems installing rc1] On 2/11/2014 10:42 AM, Duncan Booth wrote: Does it put any useful messages in logfile.txt? 'error' occurs on 40. most are like the following MSI (s) (40:08) [11:57:25:973]:

Re: How does python know?

2014-02-12 Thread Gary Herron
On 02/12/2014 12:17 PM, Tobiah wrote: I do this: a = 'lasdfjlasdjflaksdjfl;akjsdf;kljasdl;kfjasl' b = 'lasdfjlasdjflaksdjfl;akjsdf;kljasdl;kfjasl' print print id(a) print id(b) And get this: True 140329184721376 140329184721376 This works for longer strings. Does python compare a new

Re: Newcomer Help

2014-02-12 Thread Tim Delaney
On 13 February 2014 02:17, Grant Edwards invalid@invalid.invalid wrote: On 2014-02-12, Ben Finney ben+pyt...@benfinney.id.au wrote: In other contexts eg corporates, often the culture is the opposite: top-posting with strictly NO trimming. I've never found a corporation that objects to

Re: Wait... WHAT?

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 7:59 AM, eneskri...@gmail.com wrote: I am sorry then. So what's the problem, and if it is a bug, should I report it? As Mark said, we need a bit of context in your emails. This on its own carries no information. ChrisA --

Re: Newcomer Help

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 8:07 AM, Tim Delaney timothy.c.dela...@gmail.com wrote: On 13 February 2014 02:17, Grant Edwards invalid@invalid.invalid wrote: I've always worked in corporations where the email culture is the Microsoft-induced lazy and stupid style as you describe. And yet when I

Re: Wait... WHAT?

2014-02-12 Thread Mark Lawrence
On 12/02/2014 20:59, eneskri...@gmail.com wrote: I am sorry then. So what's the problem, and if it is a bug, should I report it? Report what, you keep sending us one liners with no context? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: Simple Object assignment giving me errors

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 8:18 AM, Nir nircher...@gmail.com wrote: class FileInfo(UserDict): def __init__(self, filename=None): UserDict.__init__(self) self[name] = filename I get a TypeError: 'FileInfo' object doesn't support item assignment . Am I

Simple Object assignment giving me errors

2014-02-12 Thread Nir
This is from the book 'dive into python'. I am trying to define jeez as being an instance of FileInfo. class UserDict(object): def __init__(self, dict = None): self.data = {} if dict is not None: self.update(dict) class FileInfo(UserDict): def

Re: Python programming

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 8:02 AM, Tim Delaney timothy.c.dela...@gmail.com wrote: I received a copy of The Beginners Computer Handbook: Understanding programming the micro (Judy Tatchell and Bill Bennet, edited by Lisa Watts - ISBN 0860206947) for Christmas of 1985 (I think - I would have been

Re: Wait... WHAT?

2014-02-12 Thread Ian Kelly
On Wed, Feb 12, 2014 at 1:21 PM, eneskri...@gmail.com wrote: I think of it as a bit strange. Should I report it as a bug? I was trying to incorporate a save/load, and this happened. def save(): target = open (save.swroc, 'w') target.write([counter, loop,

Re: singleton ... again

2014-02-12 Thread Ned Batchelder
On 2/12/14 12:50 PM, Asaf Las wrote: On Wednesday, February 12, 2014 7:48:51 AM UTC+2, Dave Angel wrote: Perhaps if you would state your actual goal, we could judge whether this code is an effective way to accomplish it. DaveA Thanks! There is no specific goal, i am in process of

Re:Simple Object assignment giving me errors

2014-02-12 Thread Dave Angel
Nir nircher...@gmail.com Wrote in message: This is from the book 'dive into python'. I am trying to define jeez as being an instance of FileInfo. class UserDict(object): def __init__(self, dict = None): self.data = {} if dict is not None:

Re: Wait... WHAT?

2014-02-12 Thread Michael Torrie
On 02/12/2014 01:21 PM, eneskri...@gmail.com wrote: I think of it as a bit strange. Should I report it as a bug? I was trying to incorporate a save/load, and this happened. What happened? I'm not seeing any exception information. I do see code that doesn't quite make sense. def save():

Re: Simple Object assignment giving me errors

2014-02-12 Thread Nir
Those two classes are from this code here(pasted below). Quite frankly, I don't understand this code. Also, UserDict is a built in module. I just typed it out so as to give reference or any clue as to why I cant instantiate jeez.

Re: Simple Object assignment giving me errors

2014-02-12 Thread Chris Angelico
On Thu, Feb 13, 2014 at 8:42 AM, Nir nircher...@gmail.com wrote: Also, UserDict is a built in module. I just typed it out so as to give reference or any clue as to why I cant instantiate jeez. Recommendation for next time: Don't type it out, copy and paste it. Show the actual code you ran, and

  1   2   3   >