ANN: PyQt v5.3 Released

2014-06-02 Thread Phil Thompson
PyQt5 v5.3 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include support

ANN: pysendfile 2.0.1 released

2014-06-02 Thread Giampaolo Rodola'
Hi folks, I'm pleased to announce the 2.0.1 release of pysendfile: https://github.com/giampaolo/pysendfile === About === This is a python interface to sendfile(2) system call available on most UNIX systems. sendfile(2) provides a zero-copy way of copying data from one file descriptor to another

[ANN]: Salstat, friendly open source statistics

2014-06-02 Thread Alan James Salmoni
I am proud to announce a new source code release of Salstat, the friendly open source statistics program. It is written in Python with Numpy, SciPy, wxPython and many other Python libraries (see the readme.md Code is available from GitHub: https://github.com/salmoni/Salstat ## What is

ANN: Pandas 0.14.0 released

2014-06-02 Thread Jeff Reback
Hello, We are proud to announce v0.14.0 of pandas, a major release from 0.13.1. This release includes a small number of API changes, several new features, enhancements, and performance improvements along with a large number of bug fixes. This was 4 months of work with 1014 commits by 121

Crochet 1.3.0 - Use Twisted Anywhere!

2014-06-02 Thread Itamar Turner-Trauring
Crochet is an MIT-licensed library that makes it easier to use Twisted from regular blocking code. Some use cases include: * Easily use Twisted from a blocking framework like Django or Flask. * Write a library that provides a blocking API, but uses Twisted for its implementation. * Port

[RELEASE] Python 2.7.7

2014-06-02 Thread Benjamin Peterson
I'm happy to announce the immediate availability of Python 2.7.7. Python 2.7.7 is a regularly scheduled bugfix release for the Python 2.7 series. This release includes months of accumulated bugfixes. All the changes in Python 2.7.7 are described in detail in the Misc/NEWS file of the source

Re: ImportError: No module named _gdb

2014-06-02 Thread dieter
Marcelo Sardelich msardel...@gmail.com writes: So I'm trying to implement pretty printing information using gdb-python27 on Windows7 Hopefully, someone experienced the same issue. GDB is working fine, but when I run gdb-python27 I got the following error (related to a python import):

Re: Python 3 is killing Python

2014-06-02 Thread Bob Martin
in 722944 20140601 124133 Steve Hayes hayes...@telkomsa.net wrote: On Sun, 01 Jun 2014 07:01:46 BST, Bob Martin bob.mar...@excite.com wrote: in 722929 20140601 035727 Steve Hayes hayes...@telkomsa.net wrote: No, it's a bit like flying in a Boeing 747 rather than a Concorde. The latyer may be

Re: IDE for python

2014-06-02 Thread Wolfgang Maier
wxjmfauth at gmail.com writes: Amen. Ite missa est. Oh, why all the lamenting about python's unicode support, when your latin is so superbe ! Elegant solution to all your problems :) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 has some deadly infection

2014-06-02 Thread Wolfgang Maier
Tim Delaney timothy.c.delaney at gmail.com writes: I also should have been more clear that *in the particular situation I was talking about* iso-latin-1 as default would be the right thing to do, not in the general case. Quite often we won't know the correct encoding until we've executed a

Re: IDE for python

2014-06-02 Thread Tim Golden
On 02/06/2014 08:28, Wolfgang Maier wrote: wxjmfauth at gmail.com writes: Amen. Ite missa est. Oh, why all the lamenting about python's unicode support, when your latin is so superbe ! Elegant solution to all your problems :) After all, if you can't use Latin-1 for Latin, what can you

Re: Python 3.2 has some deadly infection

2014-06-02 Thread Tim Delaney
On 2 June 2014 17:45, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de wrote: Tim Delaney timothy.c.delaney at gmail.com writes: For some purposes, there needs to be a way to treat an arbitrary stream of bytes as an arbitrary stream of 8-bit characters. iso-latin-1 is a convenient

Re: IDE for python

2014-06-02 Thread Mark Lawrence
On 02/06/2014 09:15, Tim Golden wrote: On 02/06/2014 08:28, Wolfgang Maier wrote: wxjmfauth at gmail.com writes: Amen. Ite missa est. Oh, why all the lamenting about python's unicode support, when your latin is so superbe ! Elegant solution to all your problems :) After all, if you

Re: IDE for python

2014-06-02 Thread Chris Angelico
On Mon, Jun 2, 2014 at 7:02 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: What is the Latin for resident unicode expert go home? Google Translate says: Eusebius, et revertatur in domum perito resident. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 has some deadly infection

2014-06-02 Thread Chris Angelico
On Mon, Jun 2, 2014 at 7:02 PM, Tim Delaney timothy.c.dela...@gmail.com wrote: In Java, it's much worse. At least with Python you can perform string-like operations on bytes. In Java you have to convert it to characters before you can really do anything with it, so people just use the default

Re: IDE for python

2014-06-02 Thread Wolfgang Maier
Chris Angelico rosuav at gmail.com writes: On Mon, Jun 2, 2014 at 7:02 PM, Mark Lawrence breamoreboy at yahoo.co.uk wrote: What is the Latin for resident unicode expert go home? Google Translate says: Eusebius, et revertatur in domum perito resident. ChrisA Oh, the joys of

Re: IDE for python

2014-06-02 Thread Tim Golden
On 02/06/2014 10:15, Chris Angelico wrote: On Mon, Jun 2, 2014 at 7:02 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: What is the Latin for resident unicode expert go home? Google Translate says: Eusebius, et revertatur in domum perito resident. ChrisA Try: Perite domestice

Re: Python 3.2 has some deadly infection

2014-06-02 Thread Robin Becker
I probably should have mentioned it, but in my case it's not even Python (Java). It's exactly the same principal - an assumption was made that has become entrenched due to the fear of breakage. If they'd been forced to think about encodings up-front, it shouldn't have been an

Re: Python GUI?

2014-06-02 Thread vidarwilliam
I don't like it when you can DD to position things. I don't understand why someone wouldn't want to write the positioning code, and have fun with the debugging. That's the best part about writing a program, in my opinion. I'm against DD with programming, and I'm not sure why. I don't

Re: IDE for python

2014-06-02 Thread Mark Lawrence
On 02/06/2014 11:43, Tim Golden wrote: On 02/06/2014 10:15, Chris Angelico wrote: On Mon, Jun 2, 2014 at 7:02 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: What is the Latin for resident unicode expert go home? Google Translate says: Eusebius, et revertatur in domum perito resident.

Obfuscated Python hack

2014-06-02 Thread Steven D'Aprano
Kids, don't try this at home! In Python 2.7, run this: exec((lambda *fs: reduce(lambda f, g: lambda x: f(g(x)), fs))(*([lambda s: s[1::2]+s[-2::-2]]*54))('motcye;cye._n8fo_drs(d4+)vle=5 ua.8) (isedamr.ticspt spt rpi')) Then run these: 10 - 6 == 10 - 5 4 + 1 == 7 - 1 2*2 == 10//2 A shiny

Re: Obfuscated Python hack

2014-06-02 Thread Tim Chase
On 2014-06-02 12:11, Steven D'Aprano wrote: Kids, don't try this at home! In Python 2.7, run this: exec((lambda *fs: reduce(lambda f, g: lambda x: f(g(x)), fs))(*([lambda s: s[1::2]+s[-2::-2]]*54))('motcye;cye._n8fo_drs(d4+)vle=5 ua.8) (isedamr.ticspt spt rpi')) Then run these:

Re: Obfuscated Python hack

2014-06-02 Thread Chris Angelico
On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase python.l...@tim.thechases.com wrote: Stripping off the exec() call makes it pretty transparent that you're attempting (successfully on some platforms) to set the value of 4 to 5. But a cute hack. And not on Windows inside IDLE, where attempting to

How to read a directory path from a txt file

2014-06-02 Thread Samuel Kamau
I have created a txt file with various paths to directories. The paths look like this /home/wachkama/Desktop/api/genshi /home/wachkama/Desktop/www/portal/schedule /home/wachkama/Desktop/show/help.genshi How do i read this paths in python ? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to read a directory path from a txt file

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 12:18 AM, Samuel Kamau wachk...@gmail.com wrote: I have created a txt file with various paths to directories. The paths look like this /home/wachkama/Desktop/api/genshi /home/wachkama/Desktop/www/portal/schedule /home/wachkama/Desktop/show/help.genshi How do i read

Re: How to read a directory path from a txt file

2014-06-02 Thread Rustom Mody
On Monday, June 2, 2014 7:48:25 PM UTC+5:30, Samuel Kamau wrote: I have created a txt file with various paths to directories. The paths look like this /home/wachkama/Desktop/api/genshi /home/wachkama/Desktop/www/portal/schedule /home/wachkama/Desktop/show/help.genshi How do i

Re: How to read a directory path from a txt file

2014-06-02 Thread Mark Lawrence
On 02/06/2014 15:18, Samuel Kamau wrote: I have created a txt file with various paths to directories. The paths look like this /home/wachkama/Desktop/api/genshi /home/wachkama/Desktop/www/portal/schedule /home/wachkama/Desktop/show/help.genshi How do i read this paths in python ?

Re: Python 3 is killing Python

2014-06-02 Thread Ian Kelly
On Jun 1, 2014 12:11 PM, wxjmfa...@gmail.com wrote: At least Py2 does not crash when using non ascii (eg sticking with cp1252). I just noticed this last week, Thursday, when presenting the absurdity of the Flexible String Representation. So have you reported this alleged crash bug to the

Re: How to read a directory path from a txt file

2014-06-02 Thread Samuel Kamau
On Monday, June 2, 2014 10:18:25 AM UTC-4, Samuel Kamau wrote: I have created a txt file with various paths to directories. The paths look like this /home/wachkama/Desktop/api/genshi /home/wachkama/Desktop/www/portal/schedule /home/wachkama/Desktop/show/help.genshi How do i read

Re: Obfuscated Python hack

2014-06-02 Thread Steven D'Aprano
On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote: On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase python.l...@tim.thechases.com wrote: Stripping off the exec() call makes it pretty transparent that you're attempting (successfully on some platforms) to set the value of 4 to 5. But a cute

Re: Obfuscated Python hack

2014-06-02 Thread Ian Kelly
On Mon, Jun 2, 2014 at 9:38 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote: On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase python.l...@tim.thechases.com wrote: Stripping off the exec() call makes it pretty transparent that

Re: Obfuscated Python hack

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 1:38 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote: On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase python.l...@tim.thechases.com wrote: Stripping off the exec() call makes it pretty transparent that

Re: Obfuscated Python hack

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 1:47 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jun 2, 2014 at 9:38 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote: On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase

Re: Is MVC Design Pattern good enough?

2014-06-02 Thread Wolfgang Keller
I had developed many database business applications using MVC design pattern with different programming languages like PHP, Java EE, VB.NET, C#, VB 6.0, VBA, etc. All of them defined the Model layer as the data management of the application domain and business logic implementation. I ready

Re: Python 3 is killing Python

2014-06-02 Thread Steven D'Aprano
On Mon, 02 Jun 2014 09:01:01 -0600, Ian Kelly wrote: On Jun 1, 2014 12:11 PM, wxjmfa...@gmail.com wrote: At least Py2 does not crash when using non ascii (eg sticking with cp1252). I just noticed this last week, Thursday, when presenting the absurdity of the Flexible String

Re: How to read a directory path from a txt file

2014-06-02 Thread Denis McMahon
On Mon, 02 Jun 2014 08:13:23 -0700, Samuel Kamau wrote: I have permission issues with my web server. Hacks to fix permissions problems are dangerous. There is probably a better way to fix this issue. -- Denis McMahon, denismfmcma...@gmail.com --

Re: Python 3 is killing Python

2014-06-02 Thread Roy Smith
In article 538ca310$0$29978$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 09:01:01 -0600, Ian Kelly wrote: On Jun 1, 2014 12:11 PM, wxjmfa...@gmail.com wrote: At least Py2 does not crash when using non ascii (eg

Re: Python 3 is killing Python

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 2:21 AM, Roy Smith r...@panix.com wrote: Are we talking Tolkien trolls, Pratchett trolls, Rowling trolls, DD trolls, WoW trolls, or what? Details matter. Don't forget Frozen trolls, they're love experts! ChrisA (Why aren't you running?) --

Re: Is MVC Design Pattern good enough?

2014-06-02 Thread Marko Rauhamaa
Wolfgang Keller felip...@gmx.net: The most intuitive approach to database applications would be: http://en.wikipedia.org/wiki/Naked_objects http://www.nakedobjects.org/ [...] Unfortunately, there's no Python framework (yet?) that implements this design. It could be a blessing in

Re: Python 3 is killing Python

2014-06-02 Thread Steven D'Aprano
On Mon, 02 Jun 2014 12:21:45 -0400, Roy Smith wrote: There's a corollary to Poe's Law that says that a sufficiently advanced troll is indistinguishable from a crank. Whichever JMF is, please don't feed him attention. Are we talking Tolkien trolls, Pratchett trolls, Rowling trolls, DD

Re: Python 3 is killing Python

2014-06-02 Thread Johannes Bauer
On 02.06.2014 18:21, Roy Smith wrote: Are we talking Tolkien trolls, Pratchett trolls, Rowling trolls, DD trolls, WoW trolls, or what? Details matter. Monkey Island trolls, obviously. Cheers, Johannes -- Wo hattest Du das Beben nochmal GENAU vorhergesagt? Zumindest nicht öffentlich! Ah,

Re: How to read a directory path from a txt file

2014-06-02 Thread Samuel Kamau
On Monday, June 2, 2014 12:24:59 PM UTC-4, Denis McMahon wrote: On Mon, 02 Jun 2014 08:13:23 -0700, Samuel Kamau wrote: I have permission issues with my web server. Hacks to fix permissions problems are dangerous. There is probably a better way to fix this issue. --

Re: ImportError: No module named _gdb

2014-06-02 Thread Marcelo Sardelich
Didier thanks for your prompt reply. I installed a pre-built version of Python. As you said, probably something is missing. I tried to google packages related to gdb, but ain't had no luck. Do you have any idea if it is a compiler directive? I mean I can compile Python from source. Not a

Strange Behavior

2014-06-02 Thread robertw89
Hello folks, I am not sure if it is only on my system the case that the code in http://pastebin.com/WETvqMJN misbehaves in the stated way. Can anybody reproduce it? I thought it could be that the tabs/spaces do influence it, but it doesn't care. Thank you very much for your time. Robert --

Benefits of asyncio

2014-06-02 Thread Aseem Bansal
I read in these groups that asyncio is a great addition to Python 3. I have looked around and saw the related PEP which is quite big BTW but couldn't find a simple explanation for why this is such a great addition. Any simple example where it can be used? It can be used to have a queue of

Re: Strange Behavior

2014-06-02 Thread Mark Lawrence
On 02/06/2014 17:35, robert...@googlemail.com wrote: Hello folks, I am not sure if it is only on my system the case that the code in http://pastebin.com/WETvqMJN misbehaves in the stated way. Can anybody reproduce it? I thought it could be that the tabs/spaces do influence it, but it doesn't

Re: Python 3 is killing Python

2014-06-02 Thread Ian Kelly
On Mon, Jun 2, 2014 at 10:15 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 09:01:01 -0600, Ian Kelly wrote: On Jun 1, 2014 12:11 PM, wxjmfa...@gmail.com wrote: At least Py2 does not crash when using non ascii (eg sticking with cp1252). I just noticed

Re: Strange Behavior

2014-06-02 Thread Peter Otten
robert...@googlemail.com wrote: Hello folks, I am not sure if it is only on my system the case that the code in http://pastebin.com/WETvqMJN misbehaves in the stated way. Can anybody reproduce it? I thought it could be that the tabs/spaces do influence it, but it doesn't care. Thank

Re: Strange Behavior

2014-06-02 Thread robertw89
I invoked the wrong bug.py :/ , works fine now (this happens to me when im a bit tired sometimes...). Im unsure about the real bugreport, will investigate if I find some time and motivation. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 is killing Python

2014-06-02 Thread Mark Lawrence
On 02/06/2014 18:53, Ian Kelly wrote: On Mon, Jun 2, 2014 at 10:15 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 09:01:01 -0600, Ian Kelly wrote: On Jun 1, 2014 12:11 PM, wxjmfa...@gmail.com wrote: At least Py2 does not crash when using non ascii (eg

Re: Benefits of asyncio

2014-06-02 Thread Ian Kelly
On Mon, Jun 2, 2014 at 11:40 AM, Aseem Bansal asmbans...@gmail.com wrote: I read in these groups that asyncio is a great addition to Python 3. I have looked around and saw the related PEP which is quite big BTW but couldn't find a simple explanation for why this is such a great addition. Any

Re: Benefits of asyncio

2014-06-02 Thread Terry Reedy
On 6/2/2014 1:40 PM, Aseem Bansal wrote: The following supplement Ian's answer. I read in these groups that asyncio is a great addition to Python 3. I have looked around and saw the related PEP which is quite big BTW but couldn't find a simple explanation for why this is such a great addition.

Re: Benefits of asyncio

2014-06-02 Thread Roy Smith
In article mailman.10573.1401739639.18130.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: asyncio lets you write platform independent code while it makes good use of the asynchronous i/o available on each particular system. Async-i/o is one area where Windows has made advances

Re: Benefits of asyncio

2014-06-02 Thread Marko Rauhamaa
Terry Reedy tjre...@udel.edu: I do not understand this. asyncio should switch between tasks faster than the OS switches between threads, thus reducing waiting time. I don't know if thread switching is slower than task switching. However, there are two main reasons to prefer asyncio over

Re: Benefits of asyncio

2014-06-02 Thread Paul Rubin
Marko Rauhamaa ma...@pacujo.net writes: - Thread programming assumes each thread is waiting for precisely one external stimulus in any given state -- in practice, each state must be prepared to handle quite a few possible stimuli. Eh? Threads typically have their own event

Re: Benefits of asyncio

2014-06-02 Thread Burak Arslan
On 06/02/14 20:40, Aseem Bansal wrote: I read in these groups that asyncio is a great addition to Python 3. I have looked around and saw the related PEP which is quite big BTW but couldn't find a simple explanation for why this is such a great addition. Any simple example where it can be

Re: Python 3.2 has some deadly infection

2014-06-02 Thread Terry Reedy
On 6/2/2014 7:10 AM, Robin Becker wrote: there seems to be an implicit assumption in python land that encoded strings are the norm. I don't know why you say that. To have a stream of bytes interpreted as characters, open in text mode and give the encoding. Otherwise, open in binary mode and

Re: Benefits of asyncio

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 6:45 AM, Paul Rubin no.email@nospam.invalid wrote: - Thread-safe programming is easy to explain but devilishly difficult to get right. I keep hearing that but not encountering it. Yes there are classic hazards from sharing mutable state between threads.

Introdution

2014-06-02 Thread Hisham Mughal
HI! plz tell me about books for python i am beginner of this lang.. Regards, Hisham -- https://mail.python.org/mailman/listinfo/python-list

Re: Introdution

2014-06-02 Thread Mark Lawrence
On 02/06/2014 23:01, Hisham Mughal wrote: HI! plz tell me about books for python i am beginner of this lang.. Regards, Hisham Either http://www.diveintopython.net/ or http://www.diveintopython3.net/ depending on whether you're using Python 2 or 3. -- My fellow Pythonistas, ask not what

Re: Introdution

2014-06-02 Thread Emile van Sebille
On 6/2/2014 3:56 PM, Mark Lawrence wrote: On 02/06/2014 23:01, Hisham Mughal wrote: HI! plz tell me about books for python i am beginner of this lang.. Regards, Hisham Either http://www.diveintopython.net/ or http://www.diveintopython3.net/ depending on whether you're using Python 2 or 3.

Re: Introdution

2014-06-02 Thread Mark Lawrence
On 03/06/2014 00:04, Emile van Sebille wrote: On 6/2/2014 3:56 PM, Mark Lawrence wrote: On 02/06/2014 23:01, Hisham Mughal wrote: HI! plz tell me about books for python i am beginner of this lang.. Regards, Hisham Either http://www.diveintopython.net/ or http://www.diveintopython3.net/

Issues with tkinter

2014-06-02 Thread BNelson
Am having difficulty with importing tkinter following cross-compiling Python from source. My build environment: GCC 4.7 uClibc 0.9.33 buildroot Python 3.4 Tcl/Tk 8.6 target platform=ARM The symptoms are as follows: import _tkinter ... # trying

Re: Strange Behavior

2014-06-02 Thread Steven D'Aprano
On Mon, 02 Jun 2014 20:05:29 +0200, robertw89 wrote: I invoked the wrong bug.py :/ , works fine now (this happens to me when im a bit tired sometimes...). Clarity in naming is an excellent thing. If you have two files called bug.py, that's two too many. Imagine having fifty files called

Re: Strange Behavior

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 10:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 20:05:29 +0200, robertw89 wrote: I invoked the wrong bug.py :/ , works fine now (this happens to me when im a bit tired sometimes...). Clarity in naming is an excellent thing. If

Re: Strange Behavior

2014-06-02 Thread Igor Korot
On Mon, Jun 2, 2014 at 5:30 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Jun 3, 2014 at 10:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jun 2014 20:05:29 +0200, robertw89 wrote: I invoked the wrong bug.py :/ , works fine now (this happens to me when im

Choosing good names for things is difficult (was: Strange Behavior)

2014-06-02 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Mon, 02 Jun 2014 20:05:29 +0200, robertw89 wrote: I invoked the wrong bug.py :/ , works fine now (this happens to me when im a bit tired sometimes...). Clarity in naming is an excellent thing […] Programs should be named by

Re: Business model

2014-06-02 Thread ngangsia akumbo
No need to apologise. It's an interesting question, and reading the answers given last time will be useful. After you have read those dozen or so answers, please come back with any further questions. Here's the link again: http://code.activestate.com/lists/python-list/60/

Re: Business model

2014-06-02 Thread ngangsia akumbo
No need to apologise. It's an interesting question, and reading the answers given last time will be useful. After you have read those dozen or so answers, please come back with any further questions. Here's the link again: http://code.activestate.com/lists/python-list/60/

Re: Benefits of asyncio

2014-06-02 Thread Terry Reedy
To all the great responders. If anyone thinks the async intro is inadequate and has a paragraph to contribute, open a tracker issue. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Choosing good names for things is difficult (was: Strange Behavior)

2014-06-02 Thread Rustom Mody
On Tuesday, June 3, 2014 6:27:25 AM UTC+5:30, Ben Finney wrote: Steven D'Aprano writes: On Mon, 02 Jun 2014 20:05:29 +0200, robertw89 wrote: I invoked the wrong bug.py :/ , works fine now (this happens to me when im a bit tired sometimes...). Clarity in naming is an excellent thing

RE: Introdution

2014-06-02 Thread Deb Wyatt
-Original Message- From: tagh...@gmail.com Sent: Mon, 2 Jun 2014 15:01:17 -0700 (PDT) To: python-list@python.org Subject: Introdution HI! plz tell me about books for python i am beginner of this lang.. hello! I, too, am fairly new to Python. I have discovered a lot of

Re: Choosing good names for things is difficult (was: Strange Behavior)

2014-06-02 Thread Chris Angelico
On Tue, Jun 3, 2014 at 12:06 PM, Rustom Mody rustompm...@gmail.com wrote: Add to that the restriction to limited character sets such as ASCII – a restriction that has only historical relevance Wrong. The name has to fit inside the human's brain; if it's not ASCII, that's not a problem. ChrisA

Lock Windows Screen GUI using python

2014-06-02 Thread Jaydeep Patil
Dear all, Can we Lock Windows Screen GUI till program runs unlock screen GUI when program finishes? Regards Jaydeep Paril -- https://mail.python.org/mailman/listinfo/python-list

can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Deb Wyatt
a_string = "This is a string"a_string is pointing to the above stringnow I change the value of a_stringa_string = "This string is different"I understand that now a_string is pointing to a different string than it was before, in a different location.my question is what happens to the original

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Ian Kelly
On Jun 2, 2014 10:41 PM, Deb Wyatt codemon...@inbox.com wrote: a_string = This is a string a_string is pointing to the above string now I change the value of a_string a_string = This string is different I understand that now a_string is pointing to a different string than it was before, in

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Ben Finney
Deb Wyatt codemon...@inbox.com writes: [no text] Deb, can you expand a bit – and write the question in the body of your message? It's not clear what you want explained. -- \ “I hope if dogs ever take over the world, and they chose a | `\king, they don't just go by size,

Re: Benefits of asyncio

2014-06-02 Thread Aseem Bansal
I haven't worked with asynchronous tasks or concurrent programming so far. Used VB2010 and have used some jQuery in a recent project but nothing low level. As per the explanation it seems that programming using asyncio would require identifying blocks of code which are not dependent on the IO.

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Deb Wyatt
-Original Message- From: b...@benfinney.id.au Sent: Tue, 03 Jun 2014 14:54:01 +1000 To: python-list@python.org Subject: Re: can someone explain the concept of strings (or whatever) being immutable Deb Wyatt codemon...@inbox.com writes: [no text] Deb, can you expand a bit –

Re: Lock Windows Screen GUI using python

2014-06-02 Thread Ian Kelly
On Mon, Jun 2, 2014 at 10:28 PM, Jaydeep Patil patil.jay2...@gmail.com wrote: Dear all, Can we Lock Windows Screen GUI till program runs unlock screen GUI when program finishes? If you mean can you programmatically bring up the Windows lock screen, then you can do this: import ctypes

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Gary Herron
On 06/02/2014 09:39 PM, Deb Wyatt wrote: a_string = This is a string a_string is pointing to the above string now I change the value of a_string a_string = This string is different I understand that now a_string is pointing to a different string than it was before, in a different location.

Re: Python 3.2 has some deadly infection

2014-06-02 Thread Gregory Ewing
Terry Reedy wrote: The issue Armin ran into is this. He write a library module that makes sure the streams are binary. Seems to me he made a mistake right there. A library should *not* be making global changes like that. It can obtain binary streams from stdin and stdout for its own use, but

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread prashanth B.G
Hi Deb, Immutability means that once This is a string is created in memory , the string cannot be changed. When we assign a_string with A different string this A different string is in a new memory location again (a new object) . This is a string and A different string are two different

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Ben Finney
Deb Wyatt codemon...@inbox.com writes: -Original Message- From: b...@benfinney.id.au Deb, can you expand a bit – and write the question in the body of your message? It's not clear what you want explained. that's strange that you see no text. A likely cause is that your message

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Deb Wyatt
Please adjust your mailer to send plain text only. It is all you need anyway, and renders more reliably for other people. Thank you, Cameron Simpson c...@zip.com.au I am so sorry, I did not realize it was a problem. Hopefully it will behave now. Deb in WA, USA

Re: Obfuscated Python hack

2014-06-02 Thread Gregory Ewing
Tim Chase wrote: Stripping off the exec() call makes it pretty transparent that you're attempting (successfully on some platforms) to set the value of 4 to 5. But you have to do that in *another* Python session, because the first one is broken in interesing ways, e.g. (lambda *fs:

Re: can someone explain the concept of strings (or whatever) being immutable

2014-06-02 Thread Cameron Simpson
On 02Jun2014 21:06, Deb Wyatt codemon...@inbox.com wrote: Deb Wyatt codemon...@inbox.com writes: [no text] Deb, can you expand a bit – and write the question in the body of your message? It's not clear what you want explained. [...] that's strange that you see no text. The body of my email

[issue11387] Tkinter, callback functions

2014-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not Tkinter bug, this is normal Tk behavior. Here is minimal reproducer on Tcl/Tk : button .b -text Click me bind .b Button-1 {tk_messageBox -message The button is sunken!} pack .b I suppose the button is left sunken because the message

[issue11387] Tkinter, callback functions

2014-06-02 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11387 ___

[issue21611] int() docstring - unclear what number is

2014-06-02 Thread Dmitry Andreychuk
Dmitry Andreychuk added the comment: Now I see that my message may look like a suggestion to add an encyclopedic definition of number there. Sorry. Actually I was talking about requirements for user-defined types to make them work with int(). Something like: If x has __int__() method return

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2014-06-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6167 ___ ___

[issue21611] int() docstring - unclear what number is

2014-06-02 Thread eryksun
eryksun added the comment: The constructor tries __trunc__ (truncate toward 0) if __int__ isn't defined. If __trunc__ doesn't return an instance of int, it calls the intermediate result's __int__ method. In terms of the numbers ABCs, numbers.Real requires __trunc__, which should return a

[issue18039] dbm.open(..., flag=n) does not work and does not give a warning

2014-06-02 Thread Claudiu.Popa
Changes by Claudiu.Popa pcmantic...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039 ___ ___

[issue18039] dbm.open(..., flag=n) does not work and does not give a warning

2014-06-02 Thread Claudiu.Popa
Claudiu.Popa added the comment: Serhiy, could you please have a look at this patch? Given the fact that you committed my last dbm patch, I hope you have a couple of minutes to have a look at this one as well. -- ___ Python tracker

[issue4350] Remove dead code from Tkinter.py

2014-06-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4350 ___ ___

[issue17095] Modules/Setup *shared* support broken

2014-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c468df214dc by Ned Deily in branch '3.4': Issue #17095: Fix Modules/Setup *shared* support. http://hg.python.org/cpython/rev/6c468df214dc New changeset 227ce85bdbe0 by Ned Deily in branch 'default': Issue #17095: Fix Modules/Setup *shared*

[issue17095] Modules/Setup *shared* support broken

2014-06-02 Thread Ned Deily
Ned Deily added the comment: Committed for release in 3.4.2 and 3.5.0. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17095

[issue20147] multiprocessing.Queue.get() raises queue.Empty exception if even if an item is available

2014-06-02 Thread Alexei Mozhaev
Alexei Mozhaev added the comment: Hi! Are there any updates on the issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20147 ___ ___

[issue19997] imghdr.what doesn't accept bytes paths

2014-06-02 Thread Claudiu.Popa
Claudiu.Popa added the comment: There are other modules with support for bytes filenames in their API: bz2 codecs gzip lzma pipes.Template tarfile tokenize fileinput filecmp sndhdr

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-06-02 Thread STINNER Victor
STINNER Victor added the comment: Serhiy wrote: I think that even if we accept this change (I am unsure in this), a warning should be raised only when bytes and unicode objects are equal. When they are not equal, a warning should not be raised, because this matches Python 3 behavior. Python

  1   2   3   >