Python STEP file color and module issue.

2015-02-25 Thread Shiladittya Chakraborty
In the latest version of pythonOCC-0.16.0-win32-py34 its supporting WEBGGL that's a great one but its showing only one color and also its does not have all the module when I am going to compare this pythonOCC-0.16.0-win32-py34 with pythonOCC-0.4.win32-py2.6. So my questions are - 1) How to get

mod_python.publisher issue on ARM 64 bit machine

2015-02-25 Thread amito2in
Hi, We are using the following configurations on ARM 64 bit machine Apache Version:- 2.4.10 Python Version:- 2.7.4 Mod_Python:- 3.5.0 And we are observing the following error in mod_python.publisher while running our application Mod_python error: "PythonHandler mod_python.publisher" Traceback

GDAL Installation in Enthought Python Distribution

2015-02-25 Thread Leo Kris Palao
Hi Python Users, Would like to request how to install GDAL in my Enthought Python Distribution (64-bit). I am having some problems making GDAL work. Or can you point me into a blog that describes how to set up GDAL in Enthought Python Distribution. Thanks for any help. -Leo -- https://mail.pytho

Re: Bug in timsort!?

2015-02-25 Thread Serhiy Storchaka
On 25.02.15 18:56, Chris Kaynor wrote: While the CPython implementation was only broken for arrays of length larger than 2**49, aka, practically not broken, the Java implementation (such as used on Android phones) was broken with arrays of length > 67,108,864 at the time the post was made. While

Re: Parallelization of Python on GPU?

2015-02-25 Thread John Ladasky
Thanks for the various links, Ethan. I have encountered PyCUDA before, but not the other options. So far, I'm not seeing code examples which appear to do what I would like, which is simply to farm out one Python process to one GPU core. The examples all appear to parallelize array operations.

Re: Bug in timsort!?

2015-02-25 Thread Ian Kelly
On Wed, Feb 25, 2015 at 4:13 PM, Steven D'Aprano wrote: > TimSort is an algorithm, and it is not broken. The algorithm is correct. The algorithm asserted an invariant but failed to actually establish it. That sounds broken to me. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Worst Practices

2015-02-25 Thread Michael Torrie
On 02/25/2015 10:21 PM, Ben Finney wrote: > document we're talking about, with many pages. I don't > want to sit navigating in my browser to read it, when it's certainly in > a form that could just be presented for download and viewed in a program > of my choice, while offline. > >> > I certainly

Re: Design thought for callbacks

2015-02-25 Thread Gregory Ewing
Cem Karan wrote: I think I see what you're talking about now. Does WeakMethod (https://docs.python.org/3/library/weakref.html#weakref.WeakMethod) solve this problem? Yes, that looks like it would work. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Michael Torrie writes: > I'm curious. What browser app are you referring to here? Seems like the > presentation is pure html5 with a bit a javascript. Is this what you > mean? Yes. This is a document we're talking about, with many pages. I don't want to sit navigating in my browser to read it,

Re: Python Worst Practices

2015-02-25 Thread Ian Kelly
On Wed, Feb 25, 2015 at 1:45 PM, Mark Lawrence wrote: > http://www.slideshare.net/pydanny/python-worst-practices > > Any that should be added to this list? Any that be removed as not that bad? Using XML for configuration is a good example of a worst practice, but using Python instead isn't best

Re: Python Worst Practices

2015-02-25 Thread Michael Torrie
On 02/25/2015 09:08 PM, Ben Finney wrote: > Michael Torrie writes: > >> On 02/25/2015 04:45 PM, Ben Finney wrote: >>> Can someone direct us to a URL where the document can be downloaded >>> anonymously for offline viewing? >> >> Ahh, so you're referring to the Javascript? > > I'm referring to th

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 3:44 PM, Ben Finney wrote: > Chris Angelico writes: > >> I'd really like to see a lot more presentations done in pure text. > > Maybe so. My request at the moment, though, is not for people to change > what's on their slides; rather, if they want people to retrieve them, >

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Chris Angelico writes: > I'd really like to see a lot more presentations done in pure text. Maybe so. My request at the moment, though, is not for people to change what's on their slides; rather, if they want people to retrieve them, the slides should be downloadable easily (i.e. without a web a

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 3:08 PM, Ben Finney wrote: > Both of which have no technical justification; a PDF presentation > document would do just as well and avoid those problems. Probably doesn't even need PDF. The slides are approximately as complex as those in Ned Batchelder's "Pragmatic Unicode

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Michael Torrie writes: > On 02/25/2015 04:45 PM, Ben Finney wrote: > > Can someone direct us to a URL where the document can be downloaded > > anonymously for offline viewing? > > Ahh, so you're referring to the Javascript? I'm referring to the fact that a presentation document at Slideshare is

Re: Parallelization of Python on GPU?

2015-02-25 Thread John Ladasky
On Wednesday, February 25, 2015 at 7:03:23 PM UTC-8, Steven D'Aprano wrote: > I would like to point out that GPUs > typically don't support IEE-754 maths, which means that while they are > likely significantly faster, they're also likely significantly less > accurate. Historically, that has be

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 2:05 PM, Dave Angel wrote: > On 02/25/2015 08:44 PM, Mark Lawrence wrote: >> >> On 25/02/2015 20:45, Mark Lawrence wrote: >>> >>> http://www.slideshare.net/pydanny/python-worst-practices >>> >>> Any that should be added to this list? Any that be removed as not that >>> bad

Re: Parallelization of Python on GPU?

2015-02-25 Thread Ethan Furman
Oh, and this one: http://www.cs.toronto.edu/~tijmen/gnumpy.html -- ~Ethan~ signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Worst Practices

2015-02-25 Thread Dave Angel
On 02/25/2015 08:44 PM, Mark Lawrence wrote: On 25/02/2015 20:45, Mark Lawrence wrote: http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? Throwing in my own, how about built-in functions should not use "object

Re: Parallelization of Python on GPU?

2015-02-25 Thread Steven D'Aprano
John Ladasky wrote: > What I would REALLY like to do is to take advantage of my GPU. I can't help you with that, but I would like to point out that GPUs typically don't support IEE-754 maths, which means that while they are likely significantly faster, they're also likely significantly less a

Re: Parallelization of Python on GPU?

2015-02-25 Thread Ethan Furman
On 02/25/2015 06:35 PM, John Ladasky wrote: > What I would REALLY like to do is to take advantage of my GPU. My NVidia > graphics > card has 1152 cores and a 1.0 GHz clock. I wouldn't mind borrowing a few > hundred > of those GPU cores at a time, and see what they can do. In theory, I > calcu

Re: Python Worst Practices

2015-02-25 Thread Steven D'Aprano
Mark Lawrence wrote: > On 25/02/2015 20:45, Mark Lawrence wrote: >> http://www.slideshare.net/pydanny/python-worst-practices >> >> Any that should be added to this list? Any that be removed as not that >> bad? >> > > Throwing in my own, how about built-in functions should not use "object" > as t

Re: Python Worst Practices

2015-02-25 Thread Michael Torrie
On 02/25/2015 04:45 PM, Ben Finney wrote: > Mark Lawrence writes: > >> http://www.slideshare.net/pydanny/python-worst-practices > > Slideshare requires runing untrusted code in my browser, just to view > the slides. > > Can someone direct us to a URL where the document can be downloaded > anony

Parallelization of Python on GPU?

2015-02-25 Thread John Ladasky
I've been working with machine learning for a while. Many of the standard packages (e.g., scikit-learn) have fitting algorithms which run in single threads. These algorithms are not themselves parallelized. Perhaps, due to their unique mathematical requirements, they cannot be paralleized.

Re: Python Worst Practices

2015-02-25 Thread Mark Lawrence
On 25/02/2015 20:45, Mark Lawrence wrote: http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? Throwing in my own, how about built-in functions should not use "object" as the one and only argument, and a keyword

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Chris Angelico writes: > IMO the whole system of boolean logic in shell scripts is a massive > pile of hacks. Agreed. It bears all the hallmarks of a system which has been extended to become a complete programming language only with extreme reluctance on its part. I continue to be impressed by

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 11:11 AM, Ben Finney wrote: > Chris Angelico writes: > >> On Thu, Feb 26, 2015 at 10:48 AM, Ben Finney >> wrote: >> > Chris Angelico writes: >> > >> >> (Flipping the booleans makes no sense to me. When would 0 mean true >> >> and 1 mean false? […]) >> > >> > The Unix co

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 10:54 AM, Steven D'Aprano wrote: > - Violating the Rule of Demeter: don't talk to the dog's leg, talk to > the dog. Or another way to put it: don't let the paper boy reach > into your pocket for money. I'd call that code smell, rather than an automatic worst practice.

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Chris Angelico writes: > On Thu, Feb 26, 2015 at 10:48 AM, Ben Finney > wrote: > > Chris Angelico writes: > > > >> (Flipping the booleans makes no sense to me. When would 0 mean true > >> and 1 mean false? […]) > > > > The Unix commands ‘true’ and ‘false’ follow that convention > > https://en.

Re: Bug in timsort!?

2015-02-25 Thread Roy Smith
In article , Sturla Molden wrote: > On 24/02/15 22:34, Roy Smith wrote: > > http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm > > -is-broken-and-how-to-fix-it/ > > > > This is awful. It is broken for arrays longer than 2**49 elements. With > 8 bytes per PyObject* poi

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 10:48 AM, Ben Finney wrote: > Chris Angelico writes: > >> (Flipping the booleans makes no sense to me. When would 0 mean true >> and 1 mean false? Isn't it much more likely that, for instance, 0 >> means success and nonzero means error (and maybe there's just one >> error

Re: Python Worst Practices

2015-02-25 Thread Steven D'Aprano
Mark Lawrence wrote: > http://www.slideshare.net/pydanny/python-worst-practices > > Any that should be added to this list? Any that be removed as not that > bad? I have no idea about Python worst practices, but I think using some sort of Powerpoint slide is surely one of the worst practices in

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Chris Angelico writes: > (Flipping the booleans makes no sense to me. When would 0 mean true > and 1 mean false? Isn't it much more likely that, for instance, 0 > means success and nonzero means error (and maybe there's just one > error state, so 1 means failure)?) You've answered your question,

Re: Python Worst Practices

2015-02-25 Thread Ben Finney
Mark Lawrence writes: > http://www.slideshare.net/pydanny/python-worst-practices Slideshare requires runing untrusted code in my browser, just to view the slides. Can someone direct us to a URL where the document can be downloaded anonymously for offline viewing? -- \ “What is needed is

Re: Python Worst Practices

2015-02-25 Thread MRAB
On 2015-02-25 22:59, Joel Goldstick wrote: > On Wed, Feb 25, 2015 at 4:28 PM, MRAB wrote: > > On 2015-02-25 20:45, Mark Lawrence wrote: > >> > >> http://www.slideshare.net/pydanny/python-worst-practices > >> > >> Any that should be added to this list? Any that be removed as not that > >> bad?

Re: Bug in timsort!?

2015-02-25 Thread Steven D'Aprano
Sturla Molden wrote: > On 25/02/15 17:04, Peter Otten wrote: > >> These guys found a bug that is subtler than what most of us have dealt >> with in a widely used piece of code originally developed by one of the >> smarter members of the python "community". >> >> I bow my head to them and say than

Re: Python Worst Practices

2015-02-25 Thread Grant Edwards
On 2015-02-25, MRAB wrote: > On 2015-02-25 20:45, Mark Lawrence wrote: >> http://www.slideshare.net/pydanny/python-worst-practices >> >> Any that should be added to this list? Any that be removed as not that bad? > > We don't have numeric ZIP codes in the UK, but the entire world has > numeric te

Re: Python Worst Practices

2015-02-25 Thread Joel Goldstick
On Wed, Feb 25, 2015 at 4:28 PM, MRAB wrote: > On 2015-02-25 20:45, Mark Lawrence wrote: >> >> http://www.slideshare.net/pydanny/python-worst-practices >> >> Any that should be added to this list? Any that be removed as not that >> bad? >> > We don't have numeric ZIP codes in the UK, but the enti

Re: Python Worst Practices

2015-02-25 Thread MRAB
On 2015-02-25 20:45, Mark Lawrence wrote: http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? We don't have numeric ZIP codes in the UK, but the entire world has numeric telephone numbers, so that might be a bett

Re: Python Worst Practices

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 7:45 AM, Mark Lawrence wrote: > http://www.slideshare.net/pydanny/python-worst-practices > > Any that should be added to this list? Any that be removed as not that bad? Remove the complaint about id. It's an extremely useful variable name, and you hardly ever need the fun

Re: Bug in timsort!?

2015-02-25 Thread Terry Reedy
On 2/25/2015 10:23 AM, Zachary Ware wrote: Just to be clear, this has already been fixed, and the fix will be released in Python 2.7.10, 3.4.4, and 3.5.0. I think the important effect of the fix is to encourage automatic code verification both by the group that found this bug and by and other

Re: Python Worst Practices

2015-02-25 Thread Michiel Overtoom
On Feb 25, 2015, at 21:45, Mark Lawrence wrote: > http://www.slideshare.net/pydanny/python-worst-practices I agree with you that Python lambdas have little use beyond the most trivial use cases. For the non-trivial cases, I like to define a named function which does the job. And also provides

Python Worst Practices

2015-02-25 Thread Mark Lawrence
http://www.slideshare.net/pydanny/python-worst-practices Any that should be added to this list? Any that be removed as not that bad? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listi

Re: no patch for Python 3.4.2 ?

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 5:19 AM, Blaxton wrote: > I don't see any file named patch* in Python 3.4.2 source file. > does this mean there is no patch available for this release ? Not sure what you mean. Are you looking for a single massive patch which updates your 3.4.1 source code to 3.4.2? Or are

Re: Bug in timsort!?

2015-02-25 Thread Mark Lawrence
On 25/02/2015 17:22, Mario Figueiredo wrote: On Wed, 25 Feb 2015 17:04:10 +0100, Peter Otten <__pete...@web.de> wrote: These guys found a bug that is subtler than what most of us have dealt with in a widely used piece of code originally developed by one of the smarter members of the python "com

Re: Bug in timsort!?

2015-02-25 Thread Ian Kelly
On Wed, Feb 25, 2015 at 10:21 AM, Peter Otten <__pete...@web.de> wrote: > Mark Lawrence wrote: > >> Reading the bug report http://bugs.python.org/issue23515, specifically >> msg236586, it looks as if the proposed fix was wrong and one of the >> smarter members of the python community fixed it. > >

Re: Bug in timsort!?

2015-02-25 Thread Jonas Wielicki
On 25.02.2015 19:41, Sturla Molden wrote: > On 25/02/15 18:22, Mario Figueiredo wrote: > >> And also presented a solution. > > Which also was incorrect :-D > > But now Benjamin Peterson has finally fixed it, it appears: > > http://bugs.python.org/issue23515 It would be too great if anyone repl

Re: Bug in timsort!?

2015-02-25 Thread Sturla Molden
On 25/02/15 18:22, Mario Figueiredo wrote: And also presented a solution. Which also was incorrect :-D But now Benjamin Peterson has finally fixed it, it appears: http://bugs.python.org/issue23515 Sturla -- https://mail.python.org/mailman/listinfo/python-list

no patch for Python 3.4.2 ?

2015-02-25 Thread Blaxton
Hi I don't see any file named patch* in Python 3.4.2 source file.does this mean there is no patch available for this release ? Thanks DB-- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in timsort!?

2015-02-25 Thread Mario Figueiredo
On Wed, 25 Feb 2015 17:44:04 +0100, Sturla Molden wrote: >I am not joking about that. It is more the hype this gets that indicates >TimSort is already broken today, and even on your cell phone. > But it IS broken.The only hype I'm witnessing is this fantasy created by some that there's a hype

Python Captive Portal???

2015-02-25 Thread Alan Williams
I was wondering if anyone has experimented with python, memcache and maybe squid to write a simple captive portal managed by a linux box? Concept: Control Center - Linux box running Ubuntu 14.04 w/2 nic's and dhcp-server running on it. NIC's are setup eth0(192.168.0.2), eth1(10.10.10.2). eth0

Re: Bug in timsort!?

2015-02-25 Thread Mario Figueiredo
On Wed, 25 Feb 2015 17:04:10 +0100, Peter Otten <__pete...@web.de> wrote: > >These guys found a bug that is subtler than what most of us have dealt with >in a widely used piece of code originally developed by one of the smarter >members of the python "community". > >I bow my head to them and say

Re: Bug in timsort!?

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 3:56 AM, Chris Kaynor wrote: > so > CPython should now be able to handle infinite length arrays (once we > can build computers with that much storage...). Don't we have a Turing Machine buildbot? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Are threads bad? - was: Future of Pypy?

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 4:16 AM, Mark Lawrence wrote: > IIRC the underlying JET engine was replaced by SQL Server years ago. Maybe > not the best technlogy in the world, but you'd be hard pushed to do worse > than JET :) The way I understood it, MS Access could connect to a variety of database ba

Re: Bug in timsort!?

2015-02-25 Thread Peter Otten
Mark Lawrence wrote: > Reading the bug report http://bugs.python.org/issue23515, specifically > msg236586, it looks as if the proposed fix was wrong and one of the > smarter members of the python community fixed it. If I understand that correctly Benjamin's modifications don't affect the functio

Re: Are threads bad? - was: Future of Pypy?

2015-02-25 Thread Mark Lawrence
On 25/02/2015 17:00, Ian Kelly wrote: On Wed, Feb 25, 2015 at 9:37 AM, Mark Lawrence wrote: On 25/02/2015 06:02, Ian Kelly wrote: Is the name of that database program "Microsoft Access" perchance? Are you referring to the GUI, the underlying database engine, both, or what? The engine. I

Re: Are threads bad? - was: Future of Pypy?

2015-02-25 Thread Ian Kelly
On Wed, Feb 25, 2015 at 9:37 AM, Mark Lawrence wrote: > On 25/02/2015 06:02, Ian Kelly wrote: >> >> >> Is the name of that database program "Microsoft Access" perchance? >> > > Are you referring to the GUI, the underlying database engine, both, or what? The engine. In theory it supports concurren

Re: Bug in timsort!?

2015-02-25 Thread Mark Lawrence
On 25/02/2015 16:04, Peter Otten wrote: Sturla Molden wrote: On 24/02/15 22:34, Roy Smith wrote: http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ This is awful. It is broken for arrays longer than 2**49 elements. With 8 bytes per PyOb

Re: Bug in timsort!?

2015-02-25 Thread Chris Kaynor
On Wed, Feb 25, 2015 at 8:44 AM, Sturla Molden wrote: > > On 25/02/15 17:04, Peter Otten wrote: > >> These guys found a bug that is subtler than what most of us have dealt with >> in a widely used piece of code originally developed by one of the smarter >> members of the python "community". >> >>

Re: Bug in timsort!?

2015-02-25 Thread Mark Lawrence
On 25/02/2015 13:58, Sturla Molden wrote: On 24/02/15 22:34, Roy Smith wrote: http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ This is awful. It is broken for arrays longer than 2**49 elements. With 8 bytes per PyObject* pointer this i

Re: Python Silent Install

2015-02-25 Thread Tim Golden
On 25/02/2015 16:40, Mark Lawrence wrote: > On 25/02/2015 08:26, Tim Golden wrote: >> [... re installing with ensurepip disabled ...] >> >> On 24/02/2015 23:05, Albert-Jan Roskam wrote: >>> Personally I find that Python is incomplete without pip and setuptools. >> >> Of course; that's why the ensur

Re: Bug in timsort!?

2015-02-25 Thread Sturla Molden
On 25/02/15 17:04, Peter Otten wrote: These guys found a bug that is subtler than what most of us have dealt with in a widely used piece of code originally developed by one of the smarter members of the python "community". I bow my head to them and say thank you. I am not joking about that. I

Re: Python Silent Install

2015-02-25 Thread Mark Lawrence
On 25/02/2015 08:26, Tim Golden wrote: [... re installing with ensurepip disabled ...] On 24/02/2015 23:05, Albert-Jan Roskam wrote: Personally I find that Python is incomplete without pip and setuptools. Of course; that's why the ensurepip was added to the installers. But there are other way

Re: Are threads bad? - was: Future of Pypy?

2015-02-25 Thread Mark Lawrence
On 25/02/2015 06:02, Ian Kelly wrote: Is the name of that database program "Microsoft Access" perchance? Are you referring to the GUI, the underlying database engine, both, or what? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mar

Re: progress bar

2015-02-25 Thread Denis McMahon
On Tue, 24 Feb 2015 23:42:42 -0800, Swapnil Pande wrote: > i want to call another tkinter window after completing the progress bar > an n e one help me Try shouting "Oi, Window!" Or show us the code that isn't working (just the bit that isn't working) and explain what it should be doing and wha

Issue with VTK quadratic Python Program

2015-02-25 Thread Shalini Ravishankar
Hello Everyone, I am new to VTK. I m trying to create a quadratic function with interactive slider. But the output is not as expected. Can someone tell em what I am doing wrong here ? # First, we need to import vtk package in order to access VTK classes/functions. import vtk # create a d

Re: Bug in timsort!?

2015-02-25 Thread Peter Otten
Sturla Molden wrote: > On 24/02/15 22:34, Roy Smith wrote: >> http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ >> > > This is awful. It is broken for arrays longer than 2**49 elements. With > 8 bytes per PyObject* pointer this is >4096 tera

[RELEASED] Python 3.4.3 is now available

2015-02-25 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.3. Python 3.4.3 has many bugfixes and other small improvements over 3.4.2. You can find it here: https://www.python.org/downloads/release/python-343/

Re: Bug in timsort!?

2015-02-25 Thread Grant Edwards
On 2015-02-25, Robert Kern wrote: > On 2015-02-24 22:45, Grant Edwards wrote: >> On 2015-02-24, Roy Smith wrote: >> >>> http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ >> >> I don't get it. >> >> 3.2 Corrected Python merge_collapse fu

Re: Running Idle on Windows 8 (.1)

2015-02-25 Thread Ian Kelly
On Tue, Feb 24, 2015 at 6:29 PM, Terry Reedy wrote: > On 2/24/2015 3:13 PM, blakemal...@gmail.com wrote: > >> I too can not get idle to run on win 8.1 using python3.4.2 installed from >> the python-3.4.2.amd64.msi. > > > What experience have others had with Idle and Windows 8? > > The OP for > htt

Re: Bug in timsort!?

2015-02-25 Thread Zachary Ware
On Wed, Feb 25, 2015 at 9:03 AM, alister wrote: > the oh well it wont affect current devices attitude is a very poor > attitude to big fixes. > if a bug is reported it should be resolved a quickly as practical sot hat > it never does become a real world issue > > much better to bolt the door BEFOR

Re: Bug in timsort!?

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 2:05 AM, Sturla Molden wrote: > On 25/02/15 15:33, Chris Angelico wrote: > >> It's even worse than that. Unless you have a list of 2**49 references >> to the same few objects, you're going to need to have some actual >> content for each one. The absolute best you could do i

Re: Bug in timsort!?

2015-02-25 Thread alister
On Wed, 25 Feb 2015 14:58:31 +0100, Sturla Molden wrote: > On 24/02/15 22:34, Roy Smith wrote: >> http://envisage-project.eu/proving-android-java-and-python-sorting- algorithm-is-broken-and-how-to-fix-it/ >> >> > This is awful. It is broken for arrays longer than 2**49 elements. With > 8 bytes per

Re: Bug in timsort!?

2015-02-25 Thread Sturla Molden
On 25/02/15 15:33, Chris Angelico wrote: It's even worse than that. Unless you have a list of 2**49 references to the same few objects, you're going to need to have some actual content for each one. The absolute best you could do is to sort integers, which would take 32 bytes each [1]; if you're

Re: python 2 to python 3

2015-02-25 Thread William Ray Wing
> On Feb 24, 2015, at 9:55 PM, Audrey McFarlane wrote: > > I am using Wing101 v.5 and it is using Python2, but I want to make it use > Python3 instead because need Python3 for a uni lab. How do I change it? > -- > https://mail.python.org/mailman/listinfo/python-list Assuming you have Python

EuroPython 2015: Our first keynote speaker: Guido van Rossum

2015-02-25 Thread M.-A. Lemburg
We are pleased to announce our first keynote speaker for EuroPython 2015: Python’s creator: Guido van Rossum Guido will give a keynote and a more technical talk about the new type hinting proposal for Python 3.5 that’s currently being discussed as PEP 483 (The Theory of Type Hint

mx as dependency tox throws GCC error

2015-02-25 Thread Albert-Jan Roskam
Hi, If I pip install the mx package with "pip install egenix-mx-base", it works. If I put that same pip install command under 'install_command' in my tox.ini it also works (see below) However, if I specify the dependency under 'deps', I get an error. Any idea why? I read that 'install_command'

Re: Bug in timsort!?

2015-02-25 Thread Chris Angelico
On Thu, Feb 26, 2015 at 12:58 AM, Sturla Molden wrote: > This is awful. It is broken for arrays longer than 2**49 elements. With 8 > bytes per PyObject* pointer this is >4096 terabytes of RAM. I don't see how > we can fix this in time. It's even worse than that. Unless you have a list of 2**49 re

Re: Bug in timsort!?

2015-02-25 Thread Jonas Wielicki
On 25.02.2015 14:58, Sturla Molden wrote: > On 24/02/15 22:34, Roy Smith wrote: >> http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ >> >> > […] > > Oh yes, and they mention that TimSort is used on billions of devices due > to Android mobile p

Re: Bug in timsort!?

2015-02-25 Thread Sturla Molden
On 24/02/15 22:34, Roy Smith wrote: http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ This is awful. It is broken for arrays longer than 2**49 elements. With 8 bytes per PyObject* pointer this is >4096 terabytes of RAM. I don't see how

Re: Design thought for callbacks

2015-02-25 Thread Cem Karan
On Feb 24, 2015, at 4:19 PM, Gregory Ewing wrote: > random...@fastmail.us wrote: >> On Tue, Feb 24, 2015, at 00:20, Gregory Ewing wrote: >>> This is why I suggested registering a listener object >>> plus a method name instead of a callback. It avoids that >>> reference cycle, because there is no

Re: Design thought for callbacks

2015-02-25 Thread Cem Karan
On Feb 24, 2015, at 8:23 AM, Fabio Zadrozny wrote: > Hi Cem, > > I didn't read the whole long thread, but I thought I'd point you to what I'm > using in PyVmMonitor (http://www.pyvmmonitor.com/) -- which may already cover > your use-case. > > Take a look at the callback.py at > https://gith

Re: Bug in timsort!?

2015-02-25 Thread Robert Kern
On 2015-02-24 22:45, Grant Edwards wrote: On 2015-02-24, Roy Smith wrote: http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ I don't get it. 3.2 Corrected Python merge_collapse function merge_collapse(MergeState *ms) {

Re: strip bug?

2015-02-25 Thread Rustom Mody
On Wednesday, February 25, 2015 at 4:35:37 AM UTC+5:30, bay...@gmail.com wrote: > >>> 'http://xthunder'.strip('http://') > 'xthunder' > >>> 'http://thunder'.strip('http://') > 'under' > >>> > > I could understand backslash but forward slash? Others have answered specifically. However you probably

Re: progress bar

2015-02-25 Thread Steven D'Aprano
Swapnil Pande wrote: > i want to call another tkinter window after completing the progress bar > an n e one help me What does "call another tkinter window" mean? I understand "call another function", but how do you call a window? Perhaps it will help if you show us some code. -- Steven --

Re: python 2 to python 3

2015-02-25 Thread Steven D'Aprano
Audrey McFarlane wrote: > I am using Wing101 v.5 and it is using Python2, but I want to make it use > Python3 instead because need Python3 for a uni lab. How do I change it? I'm afraid I don't use Wing so I can't give a good answer, but I googled and found this: http://stackoverflow.com/quest

Re: Bug in timsort!?

2015-02-25 Thread Chris Angelico
On Wed, Feb 25, 2015 at 8:10 PM, Paddy wrote: > If we are given a proven fix *with little downside* then if we are to touch > the source then we should MAKE THE FIX. (emphasis mine) That's really the question, though. I'm in no position to evaluate the patch and ascertain whether the fix does i

Configuring problems with GDAL in enthought Python Canopy

2015-02-25 Thread Leo Kris Palao
Hi ALL, Just wanted to ask if somebody could guide me in installing GDAL in my Python installed using Canopy. Could you give me some steps how to successfully install this package? I got it running using my previous Python Installation, but I removed it and used Canopy Python now. btw: my python

Re: Bug in timsort!?

2015-02-25 Thread Paddy
On Wednesday, 25 February 2015 00:08:32 UTC, Chris Angelico wrote: > On Wed, Feb 25, 2015 at 10:50 AM, Skip Montanaro > wrote: > > Even if/when we get to the point where machines can hold an array of > > 2**49 elements, I suspect people won't be using straight Python to > > wrangle them. > <> >

Re: Python shell: Arrow keys not working in PuTTY

2015-02-25 Thread Ned Deily
In article <54ec1360$0$12978$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Ned Deily wrote: > > With no --prefix= on ./configure, the default install location is to > > /usr/local, so "make install" would install a link at > > /usr/local/bin/python (or python3) and it would only o

Re: Compatibility Issues - Windows 8

2015-02-25 Thread blakemalc66
On Tuesday, February 24, 2015 at 2:57:08 PM UTC+11, Iris J Rosario wrote: > Hello, > > > > I've been having problems with running python IDLE on my Windows 8 tower. Can > you please let me know where I can rea up on how to correct it? Or which > version will work best on my computer? > > >

python 2 to python 3

2015-02-25 Thread Audrey McFarlane
I am using Wing101 v.5 and it is using Python2, but I want to make it use Python3 instead because need Python3 for a uni lab. How do I change it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Silent Install

2015-02-25 Thread Tim Golden
[... re installing with ensurepip disabled ...] On 24/02/2015 23:05, Albert-Jan Roskam wrote: > Personally I find that Python is incomplete without pip and setuptools. Of course; that's why the ensurepip was added to the installers. But there are other ways of installing pip after the event. Incl