libsndfile-python : python wrapper for libsndfile

2010-10-26 Thread ./ed
Hi all, I am pleased to announce a release of a python wrapper for libsndfile. This is a re-installment of a previous version from Rob Melby (arcsin.org) with a numpy support. This a early beta release that worked fine for years using numpy and mostly intended for scientific applications.

PyCon 2011 Reminder: Call for Proposals, Posters and Tutorials - us.pycon.org

2010-10-26 Thread Jesse Noller
PyCon 2011 Reminder: Call for Proposals, Posters and Tutorials - us.pycon.org === Well, it's October 25th! The leaves have turned and the deadline for submitting main-conference talk proposals expires in 7 days (November 1st, 2010)! We are currently

Django course in Leipzig, Germany, Nov. 29 - Dec. 1, 2010 (in German)

2010-10-26 Thread Mike Müller
The course will be taught in German. Therefore, the announcement is also in German. Kurs: Django Python-Web-Framework = Kurzinfo Vom 29.11. bis zum 01.12.2010 findet ein Kurs zu Django[1] mit dem Trainer Markus Zapke-Gründemann[2] an der Python

Pogo 0.2

2010-10-26 Thread Jendrik Seipp
I am proud to announce the first release of Pogo, probably the simplest and fastest audio player for Linux. You can get the tarball and an Ubuntu deb package at http://launchpad.net/pogo What is Pogo? Pogo plays your music. Nothing else. It tries to be fast and

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message mailman.208.1287970911.2218.python-l...@python.org, MRAB wrote: On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: In messagemailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: No. GUI programs are marked as win-app, so w stands for Windows. Non GUI programs run

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message mailman.216.1287980107.2218.python-l...@python.org, Steve Holden wrote: and, in fact, the console is only a GUI window in a windowed system. It might be one of the console emulation windows that init starts under linux, or even a terminal connected to a computer by a serila line,

Re: Why flat is better than nested?

2010-10-26 Thread Jorgen Grahn
On Mon, 2010-10-25, bruno.desthuilli...@gmail.com wrote: On 25 oct, 15:34, Alex Willmer a...@moreati.org.uk wrote: On Oct 25, 11:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested?  Why?  Can anyone give me a concrete example that

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Steve Holden
On 10/26/2010 2:08 AM, Lawrence D'Oliveiro wrote: In message mailman.208.1287970911.2218.python-l...@python.org, MRAB wrote: On 25/10/2010 02:19, Lawrence D'Oliveiro wrote: In messagemailman.187.1287916654.2218.python-l...@python.org, Dave Angel wrote: No. GUI programs are marked as

Re: Help Need in running a Python Program from terminal

2010-10-26 Thread Raji
Greetings Philip ! File openastro.py, line 90, in module TRANSLATION[LANGUAGES[i]] = gettext.translation(openastro,TDomain,languages=['en']) File /usr/lib/python2.6/gettext.py, line 484, in translation raise IOError(ENOENT, 'No translation file found for domain', domain)

Re: Why flat is better than nested?

2010-10-26 Thread Carl Banks
On Oct 25, 11:20 pm, Jorgen Grahn grahn+n...@snipabacken.se wrote: On Mon, 2010-10-25, bruno.desthuilli...@gmail.com wrote: On 25 oct, 15:34, Alex Willmer a...@moreati.org.uk wrote: On Oct 25, 11:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is

Re: Descriptors and decorators

2010-10-26 Thread bruno.desthuilli...@gmail.com
On 25 oct, 17:18, Joost Molenaar j.j.molen...@gmail.com wrote: Thanks, Bruno. Your python-wiki page and walk-through for the Decorator code make it clear. I now finally understand that methods are in fact ordinary functions at the time the class is created, and that the descriptor protocol

Re: Python3: Is this a bug in urllib?

2010-10-26 Thread Justin Ezequiel
''' C:\Documents and Settings\Administrator\Desktoppython wtf.py 301 Moved Permanently b'HTMLHEADmeta http-equiv=content-type content=text/ html;charset=utf-8 \nTITLE301 Moved/TITLE/HEADBODY\nH1301 Moved/H1\nThe document has mo ved\nA HREF=http://www.google.de/;here/A.\r\n/BODY/HTML\r\n' foo 5.328

Re: downcasting problem

2010-10-26 Thread Hrvoje Niksic
John Nagle na...@animats.com writes: On 10/25/2010 7:38 AM, Tim Chase wrote: While a dirty hack for which I'd tend to smack anybody who used it...you *can* assign to instance.__class__ That's an implementation detail of CPython. May not work in IronPython, Unladen Swallow, PyPy, or Shed

is list comprehension necessary?

2010-10-26 Thread Xah Lee
recently wrote a article based on a debate here. (can't find the original thread on Google at the moment) • 〈What's List Comprehension and Why is it Harmful?〉 http://xahlee.org/comp/list_comprehension.html it hit reddit.

Re: time difference interms of day

2010-10-26 Thread M.-A. Lemburg
Steve Holden wrote: On 10/24/2010 1:55 PM, mukkera harsha wrote: Hello I was wondering if there is an existing function that would let me determine the difference in time. To explain: Upon starting a program: startup = time.time() After some very long processing: now =

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Martin Gregorie
On Tue, 26 Oct 2010 02:38:43 -0400, Steve Holden wrote: I really don't understand what you are trying to say here. Could you please explain? I know you to be a capable and sensible person, but this sounds like nonsense to me, so I must be misunderstanding. I think he's saying that on a

Re: Why flat is better than nested?

2010-10-26 Thread kj
In mailman.241.1288036400.2218.python-l...@python.org Terry Reedy tjre...@udel.edu writes: On 10/25/2010 3:11 PM, kj wrote: Well, it's pretty *enshrined*, wouldn't you say? No. After all, it is part of the standard distribution, So is 'import antigravity' Are you playing with my

Re: Inconsistent results from int(floatNumber)

2010-10-26 Thread gershar
On Oct 25, 5:44 pm, gershar gerrys...@gmail.com wrote: I had some problems with some Python projects that gave variable results that I could not track down. Eventually and reluctantly I converted them to Java. Later, when I had more time I tried to analyze what the Python code was doing and

Re: Why flat is better than nested?

2010-10-26 Thread Benjamin Kaplan
On Tue, Oct 26, 2010 at 9:05 AM, kj no.em...@please.post wrote: In mailman.241.1288036400.2218.python-l...@python.org Terry Reedy tjre...@udel.edu writes: On 10/25/2010 3:11 PM, kj wrote: Well, it's pretty *enshrined*, wouldn't you say? No.  After all, it is part of the standard

Generating PDF file in Python

2010-10-26 Thread Ed Keith
I need to generate PDF files and I'm exploring what tools to use. I was planing on using ReportLab, but recently found some references to pango (http://www.pango.org/) and ciaro (http://cairographics.org/) being able to generate PDF files. But am having difficulty finding details. The program

Re: Why flat is better than nested?

2010-10-26 Thread Seebs
On 2010-10-26, kj no.em...@please.post wrote: (Though, humorless as it is of me, I still would prefer the ZoP out of the standard library, to save myself having to tell those who are even newer to Python than me not to take it seriously.) Well, not to take it *too* seriously. It's like any

Re: minimal D: need software testers

2010-10-26 Thread Aahz
[posted e-mailed] In article 43bd55e3-e924-40b5-a157-b57ac8544...@f25g2000yqc.googlegroups.com, Kruptein darragh@gmail.com wrote: I've released the second alpha for minimal-D a program I've written in python which should make developing easier. I need people to test the app on bugs and

Re: Introducing Kids to Programming: 2 or 3?

2010-10-26 Thread Aahz
[posted e-mailed] [chiming in late] In article mailman.1095.1285602516.29448.python-l...@python.org, Marco Gallotta ma...@gallotta.co.za wrote: I'm sure you get a lot of 2 or 3 questions, but here's another. Umonya [1] uses Python to introduce school kids to programming. The initiative is

Re: Why flat is better than nested?

2010-10-26 Thread Steve Holden
On 10/26/2010 9:05 AM, kj wrote: Perhaps the disconnect here is that you're seeing the whole thing from an insider's point of view, while I'm still enough of an outsider not to share this point of view. (I happen to think that one the hallmarks of being an initiate to a discipline is an

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Grant Edwards
On 2010-10-26, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.216.1287980107.2218.python-l...@python.org, Steve Holden wrote: and, in fact, the console is only a GUI window in a windowed system. It might be one of the console emulation windows that init

Re: ANN: PyGUI 2.3

2010-10-26 Thread Daniel Fetchinson
PyGUI 2.3 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version works on Snow Leopard with PyObjC 2.3. Any reason your project is not easy_installable? Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown --

Re: Why flat is better than nested?

2010-10-26 Thread Robin Becker
On 26/10/2010 15:42, Steve Holden wrote: he answer is probably the same as you will see if you try from __future__ import braces That feature*is* available in Python 2.6;-) In the past I used to think it was really cool that one could do from __future__ import exciting_and_cool_new_stuff

Re: Generating PDF file in Python

2010-10-26 Thread Gary Herron
On 10/26/2010 06:18 AM, Ed Keith wrote: I need to generate PDF files and I'm exploring what tools to use. I was planing on using ReportLab, but recently found some references to pango (http://www.pango.org/) and ciaro (http://cairographics.org/) being able to generate PDF files. But am having

Re: Generating PDF file in Python

2010-10-26 Thread D'Arcy J.M. Cain
On Tue, 26 Oct 2010 08:38:45 -0700 Gary Herron gher...@islandtraining.com wrote: On 10/26/2010 06:18 AM, Ed Keith wrote: I was planing on using ReportLab, but recently found some references to pango Try a package named reportlab. It's very comprehensive, opensource, On the other hand, there

Re: is list comprehension necessary?

2010-10-26 Thread John Nagle
On 10/26/2010 2:31 AM, Xah Lee wrote: recently wrote a article based on a debate here. (can't find the original thread on Google at the moment) • 〈What's List Comprehension and Why is it Harmful?〉 http://xahlee.org/comp/list_comprehension.html it hit reddit.

Re: Unicode questions

2010-10-26 Thread John Nagle
On 10/19/2010 12:02 PM, Tobiah wrote: I've been reading about the Unicode today. I'm only vaguely understanding what it is and how it works. Please correct my understanding where it is lacking. http://justfuckinggoogleit.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: HTMLParser not parsing whole html file

2010-10-26 Thread John Nagle
On 10/24/2010 11:44 PM, Stefan Behnel wrote: josh logan, 25.10.2010 04:14: I found the error. The HTML file I'm parsing has invalid HTML at line 193. It has something like: a href=mystuff class = stuff Note there is no space between the closing quote for the href tag and the class attribute.

Re: Why flat is better than nested?

2010-10-26 Thread John Nagle
On 10/25/2010 6:34 AM, Alex Willmer wrote: On Oct 25, 11:07 am, kjno.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a concrete example that illustrates this point? I take this as a reference to the layout of the

Re: Unicode questions

2010-10-26 Thread Steve Holden
On 10/26/2010 12:32 PM, John Nagle wrote: On 10/19/2010 12:02 PM, Tobiah wrote: I've been reading about the Unicode today. I'm only vaguely understanding what it is and how it works. Please correct my understanding where it is lacking. http://justfuckinggoogleit.com/ Neither friendly

Re: is list comprehension necessary?

2010-10-26 Thread Andre Alexander Bell
Hello, I occasionally use LCs, if they seem useful. However, what I don't like about LCs is that they 'look-like' being a closed scope, while actually they are in the scope of there call. Example: i = 5 l = [i**2 for i in range(3)] i 2 Regards Andre --

Re: is list comprehension necessary?

2010-10-26 Thread Paul Rudin
Andre Alexander Bell p...@andre-bell.de writes: I occasionally use LCs, if they seem useful. However, what I don't like about LCs is that they 'look-like' being a closed scope, while actually they are in the scope of there call. Example: i = 5 l = [i**2 for i in range(3)] i 2 Although:

Re: is list comprehension necessary?

2010-10-26 Thread Ian Kelly
On Tue, Oct 26, 2010 at 11:07 AM, Andre Alexander Bell p...@andre-bell.dewrote: Hello, I occasionally use LCs, if they seem useful. However, what I don't like about LCs is that they 'look-like' being a closed scope, while actually they are in the scope of there call. Example: i = 5 l =

RE: is list comprehension necessary?

2010-10-26 Thread Mikael B
That's from the functional programming crowd. Python isn't a functional language. A noob question: what is a functional language? What does it meen? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Nobody
On Tue, 26 Oct 2010 14:44:11 +, Grant Edwards wrote: There is no difference based on the name of your executable, how it is built, or what libraries it links to; the only difference is in its run-time behaviour, whether it invokes any GUI functions or not. No, we're not talking about

Re: Why flat is better than nested?

2010-10-26 Thread Albert Hopkins
On Tue, 2010-10-26 at 09:45 -0700, John Nagle wrote: On 10/25/2010 6:34 AM, Alex Willmer wrote: On Oct 25, 11:07 am, kjno.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a concrete example that illustrates this

Unittest: how to pass information to TestCase classes?

2010-10-26 Thread AK
Hi, I have a question about unittest: let's say I create a temp dir for my tests, then use loadTestsFromNames() to load my tests from packages and modules they're in, then use TextTestRunner.run() to run the tests, how can I pass information to TestCase instances, e.g. the location of the temp

Re: Why flat is better than nested?

2010-10-26 Thread kj
In mailman.258.1288104186.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: The answer is probably the same as you will see if you try from __future__ import braces That feature *is* available in Python 2.6 ;-) Now, that's hilarious. kj --

Re: pyqt4 Table Widget deleting c/c++ object

2010-10-26 Thread Andrew
On Oct 19, 2:29 pm, David Boddie da...@boddie.org.uk wrote: On Monday 18 October 2010 23:26, Andrew wrote: I have two issues dealing with the table widget, though they may be interconnected. I'm not sure. Both delete the cell widgets off of my table but leave the rows, and then when I have

Schengen States free EDUCATION STUDY VISA

2010-10-26 Thread neha shena
Schengen States free EDUCATION STUDY VISA http://childschooledu.blogspot.com/2010/10/get-internship-in-united-states.html The European Union (EU) allows for the free movement of goods between Italy and other member states: Austria, Belgium, Bulgaria, Cyprus, Czech Republic, Denmark, Estonia,

Schengen States free EDUCATION STUDY VISA

2010-10-26 Thread neha shena
Schengen States free EDUCATION STUDY VISA http://childschooledu.blogspot.com/2010/10/get-internship-in-united-states.html The European Union (EU) allows for the free movement of goods between Italy and other member states: Austria, Belgium, Bulgaria, Cyprus, Czech Republic, Denmark, Estonia,

Re: ANN: PyGUI 2.3

2010-10-26 Thread Terry Reedy
On 10/26/2010 10:54 AM, Daniel Fetchinson wrote: PyGUI 2.3 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version works on Snow Leopard with PyObjC 2.3. I suspect that Python 2.3 or later is required. should read Python 2.3 to Python 2.7 is required. -- Terry

How i can get data from an image

2010-10-26 Thread Kechagias Apostolos
Hello there. I ve been using python a lot lately for my school in order to make small gui(wxpython) apps. Today a teacher came up with an interesting project. The idea is that he gives you a series of photos with some objects inside. For example a photo could contain two black circles in a white

How i can get data from an image

2010-10-26 Thread Kechagias Apostolos
Hello there. I ve been using python a lot lately for my school in order to make small gui(wxpython) apps. Today a teacher came up with an interesting project. The idea is that he gives you a series of photos with some objects inside. For example a photo could contain two black circles in a white

Re: Why flat is better than nested?

2010-10-26 Thread Ian
On 26/10/2010 14:18, Benjamin Kaplan wrote: This is a programming language named after a British comedy group (not the snake). There are going to be jokes inserted in lots of otherwise serious things. Like the standard library. Please, lets NOT get a newsgroup cross feed! I don't want spam,

Re: is list comprehension necessary?

2010-10-26 Thread Andre Alexander Bell
On 10/26/2010 07:22 PM, Ian Kelly wrote: i = 5 l = [i**2 for i in range(3)] i 2 This has been corrected in Python 3. Sorry. You're right. I forgot to mention that... Andre -- http://mail.python.org/mailman/listinfo/python-list

Re: is list comprehension necessary?

2010-10-26 Thread Chris Rebert
On 10/26/10, Mikael B mba...@live.se wrote: That's from the functional programming crowd. Python isn't a functional language. A noob question: what is a functional language? What does it meen? A language which supports the functional programming paradigm:

Re: How i can get data from an image

2010-10-26 Thread Krister Svanlund
You should check out OpenCV. On Tue, Oct 26, 2010 at 8:53 PM, Kechagias Apostolos pasxal.an...@gmail.com wrote: Hello there. I ve been using python a lot lately for my school in order to make small gui(wxpython) apps. Today a teacher came up with an interesting project. The idea is that he

Re: is list comprehension necessary?

2010-10-26 Thread Dan Stromberg
On Tue, Oct 26, 2010 at 10:31 AM, Mikael B mba...@live.se wrote: That's from the functional programming crowd. Python isn't a functional language. A noob question: what is a functional language? What does it meen? -- http://mail.python.org/mailman/listinfo/python-list It's a

Re: Unittest: how to pass information to TestCase classes?

2010-10-26 Thread Ben Finney
AK andrei@gmail.com writes: Hi, I have a question about unittest: let's say I create a temp dir for my tests, then use loadTestsFromNames() to load my tests from packages and modules they're in, then use TextTestRunner.run() to run the tests, how can I pass information to TestCase

Re: Why flat is better than nested?

2010-10-26 Thread Steve Holden
On 10/26/2010 2:44 PM, kj wrote: In mailman.258.1288104186.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: The answer is probably the same as you will see if you try from __future__ import braces That feature *is* available in Python 2.6 ;-) Now, that's

Re: Unittest: how to pass information to TestCase classes?

2010-10-26 Thread Steve Holden
On 10/26/2010 2:46 PM, AK wrote: Hi, I have a question about unittest: let's say I create a temp dir for my tests, then use loadTestsFromNames() to load my tests from packages and modules they're in, then use TextTestRunner.run() to run the tests, how can I pass information to TestCase

High(er) level frameworks that wrap Tkinter/ttk?

2010-10-26 Thread python
Curious if there are any higher level frameworks that attempt to wrap Tkinter? For example, wxPython is wrapped by the Dabo framework (http://dabodev.com/) and PythonCard. Motivation: We've recently moved to Python 2.7 (Windows) and are very impressed with the new ttk (Tile) support which allows

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message pan.2010.10.26.17.38.14.766...@nowhere.com, Nobody wrote: python.exe is a console executable, pythonw.exe is a GUI executable. Hence python.exe automatically gets a console window, while pythonw.exe doesn't. That's the whole reason why Windows has separate python.exe and

Re: python library for mail/news message headers bodies?

2010-10-26 Thread Arthur Divot
Chris Rebert wrote: On Mon, Oct 25, 2010 at 7:18 PM, Arthur Divot art...@example.com wrote: Is there a python library equivalent to Perl's News::Article (load a file containing a news or mail message into an object, manipulate the headers and body, create a new empty one, save one to a

Python 2.7 or 3.1

2010-10-26 Thread Braden Faulkner
Which is better for a beginner to get started in Python with? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Lawrence D'Oliveiro
In message mailman.265.1288113240.2218.python-l...@python.org, Dennis Lee Bieber wrote: (The Amiga made it simple -- a shell invocation received a non-zero argc, with command line parameters in argv; a clicked invocation received argc of 0, and argv pointed to a structure containing the

Re: Unix-head needs to Windows-ize his Python script (II)

2010-10-26 Thread Nobody
On Wed, 27 Oct 2010 13:46:28 +1300, Lawrence D'Oliveiro wrote: Why would you want both CLI and GUI functions in one program? An obvious example was the one which was being discussed, i.e. the Python interpreter. Depending upon the script, it may need to behave as a command-line utility (read

Re: Python 2.7 or 3.1

2010-10-26 Thread Christian Heimes
Am 27.10.2010 02:16, schrieb Braden Faulkner: Which is better for a beginner to get started in Python with? Thanks! It depends on your needs. Most 3rd party library haven't been ported to Python 3 yet. You'll get more useful stuff with 2.7 or even 2.6.

Interaction btw unittest.assertRaises and __getattr__. Bug?

2010-10-26 Thread Inyeol
Unittest assertRaises cannot handle exception raised inside __getattr__ method. Is it a bug? or am I missing something obvious? Here is a sample of this problem: - import unittest class C(): def simple_attr(self): raise

Trouble with importing

2010-10-26 Thread Ben
In brief summary, I have installed gnuradio [gnuradio.org] and the gen2_rfid module [https://www.cgran.org/wiki/Gen2] on Ubuntu 10.04, with all installed packages up to date as of a few days ago. When I try to run the rfid reader/decoder script, I get the following error:

Can 32-bit and 64-bit Python coexist in the same computer?

2010-10-26 Thread Andy
Hi guys! I got a new laptop computer which came with the 64-bit version of Windows 7. I installed the 64-bit versions of Python and a few other libraries and wrote a few Python programs right there. If I copy the Python scripts to a 32-bit computer, it runs flawlessly. But in the future I may

Re: Python 2.7 or 3.1

2010-10-26 Thread Christian Heimes
Am 27.10.2010 03:38, schrieb Jorge Biquez: And what about if I only were to develop for the web? I mean web applications, Mysql, etc? It would be better to still be in 2.7? Most frameworks and database adapters at least target Python 2.6+ as their main Python version. I guess the majority has

Re: How i can get data from an image

2010-10-26 Thread John Nagle
On 10/26/2010 1:46 PM, Krister Svanlund wrote: You should check out OpenCV. Yes. See http://code.google.com/p/pyopencv/ Note the people detector example. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with importing

2010-10-26 Thread Jerry Hill
On Tue, Oct 26, 2010 at 5:24 PM, Ben bahr...@gmail.com wrote: b...@sdrfid:~/gen2_rfid/trunk/src/app$ python -c from gnuradio import rfid works fine (at least, it doesn't say anything, which I take to be a good sign), but b...@sdrfid:~/gen2_rfid/trunk/src/app$ sudo python -c from gnuradio

Re: Interaction btw unittest.assertRaises and __getattr__. Bug?

2010-10-26 Thread Benjamin Peterson
Inyeol inyeol.lee at gmail.com writes: or am I missing something obvious? The attribute access is evaluated before the call to assertRaises, so unittest never has a cache to cache it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interaction btw unittest.assertRaises and __getattr__. Bug?

2010-10-26 Thread Chris Rebert
On Tue, Oct 26, 2010 at 7:51 PM, Benjamin Peterson benja...@python.org wrote: Inyeol inyeol.lee at gmail.com writes: or am I missing something obvious? The attribute access is evaluated before the call to assertRaises, so unittest never has a cache to cache it. or rather, chance to catch

Re: Python 2.7 or 3.1

2010-10-26 Thread Jorge Biquez
Hello Christian and all . Thanks for the comments. I am newbie to Python trying to learn all the comments, that , by the way, I am very impressed of the knowledge of the people present in this list. I was wondering if you can comment more about what alternatives to use instead to MySql. My

Re: Python 2.7 or 3.1

2010-10-26 Thread Philip Semanchuk
On Oct 26, 2010, at 11:10 PM, Jorge Biquez wrote: Hello Christian and all . Thanks for the comments. I am newbie to Python trying to learn all the comments, that , by the way, I am very impressed of the knowledge of the people present in this list. I was wondering if you can comment

Re: is list comprehension necessary?

2010-10-26 Thread rantingrick
On Oct 26, 11:29 am, John Nagle na...@animats.com wrote: On 10/26/2010 2:31 AM, Xah Lee wrote: recently wrote a article based on a debate here. (can't find the original thread on Google at the moment) • 〈What's List Comprehension and Why is it Harmful?〉

Re: is list comprehension necessary?

2010-10-26 Thread rantingrick
On Oct 26, 12:07 pm, Andre Alexander Bell p...@andre-bell.de wrote: Hello, I occasionally use LCs, if they seem useful. However, what I don't like about LCs is that they 'look-like' being a closed scope, while actually they are in the scope of there call. Example: i = 5 l = [i**2 for i

Re: is list comprehension necessary?

2010-10-26 Thread Gary Herron
On 10/26/2010 09:28 PM, rantingrick wrote: On Oct 26, 12:07 pm, Andre Alexander Bellp...@andre-bell.de wrote: Hello, I occasionally use LCs, if they seem useful. However, what I don't like about LCs is that they 'look-like' being a closed scope, while actually they are in the scope of there

Re: Can 32-bit and 64-bit Python coexist in the same computer?

2010-10-26 Thread J.O. Aho
Andy wrote: Hi guys! I got a new laptop computer which came with the 64-bit version of Windows 7. I installed the 64-bit versions of Python and a few other libraries and wrote a few Python programs right there. If I copy the Python scripts to a 32-bit computer, it runs flawlessly. But in

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The attached patches implement an exit callback for IDLE on OS X that ensures IDLE will not terminate from an application Quit command without giving the opportunity to save files. -- assignee: ned.deily - ronaldoussoren components: +Macintosh

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: Added file: http://bugs.python.org/file19367/issue10107-27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10107 ___

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: BTW, the patched IDLEs were tested on 2.7 and py3k (3.2a3+) on 10.4, 10.5, and 10.6 with the Apple-supplied Tk 8.4 (all), the Apple-supplied Tk 8.5 (available only in 10.6), ActiveState Tk 8.4 (all), and ActiveState 8.5 (all). And the patches have no

[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-26 Thread ptz
ptz ppt...@gmail.com added the comment: As David suggested, it indeed seems to be a case of timing. When telnetlib.Telnet(...) returns, the server still doesn't have the data cooked, and read_very_eager() fetches nothing. So nothing here fails as such, it's just that my 0 experience in

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed with Benjamin. There is already a visible issue with the patch: it breaks compatibility because the Py_VISIT() argument must now be an lvalue. -- ___ Python tracker rep...@bugs.python.org

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Unless we want to test manually each memory allocation in the interpreter, the only reasonable way seems to be some kind of fuzzing (perhaps using a reproducible random seed). -- nosy: +haypo ___

[issue5178] Add context manager for temporary directory

2010-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Merging the interfaces for mkdtemp and TemporaryDirectory isn't going to happen. mkstemp/mkdtemp are for when the user wants to control the lifecycle of the filesystem entries themselves. (Note that context management on a regular file-like

[issue6269] threading documentation makes no mention of the GIL

2010-10-26 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Agree with Jesse, the description in the patch is not quite correct. I think detailed description of the GIL has been given in C API documentation: http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock. How about

[issue2775] Implement PEP 3108

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Shouldn't this be closed? Most of this has been done and we can't do the rest anyway, without breaking backwards compatibility. -- nosy: +pitrou status: open - pending ___ Python tracker

[issue3362] locale.getpreferredencoding() gives bus error on Mac OS X 10.4.11 PPC

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it still reproduceable with 2.7, 3.1 or 3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3362 ___

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Don't you know http://www.nongnu.org/failmalloc/? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10195 ___

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, but in that particular case the exact line referenced is involved in the error, since it that error is that the symbol is both nonlocal and an argument, and the error points to the head of the block which is the 'def' statement.

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg119601 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10189 ___

[issue10195] Memory allocation fault-injection?

2010-10-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Don't you know http://www.nongnu.org/failmalloc/? This doesn't answer the question of what and how to test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10195

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, but in that particular case the exact line referenced is involved in the error, since it that error is that the symbol is both nonlocal and an argument, and the error points to the head of the block which is the 'def' statement.

[issue10189] SyntaxError: no binding for nonlocal doesn't contain a useful traceback

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I hadn't noticed Benjamin assigned this to himself when I submitted that patch. Well, maybe it will be marginally useful anyway :) -- ___ Python tracker rep...@bugs.python.org

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread jldm
New submission from jldm j_l_domen...@yahoo.com: Hi, first of all sorry for my English. On windows XP SP3, the following code: import subprocess subprocess.getoutput(dir) returns '{ is not recognized as an internal or external command,\noperable program or batch file.' I made a

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to py3k in r85846, 3.1 in r85847. -- resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oddly, the test suite skips getoutput and getstatusoutput on windows with the comment that the source says it is relevant only for posix, but the documentation does not have 'availability: unix' tags. (It is also odd that getoutput

[issue10197] subprocess.getoutput fails on win32

2010-10-26 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +Windows nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10197 ___ ___

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson pinge...@yahoo.com added the comment: Thanks, I've started a thread on python-dev to discuss the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10194 ___

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-10-26 Thread David Barnett
New submission from David Barnett davidbarne...@gmail.com: If the first call to writeframes happens to take an empty string as the data to write, then the next call to writeframes writes a 2nd header into the file, and forever after fails to patch the data length correctly. --

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-10-26 Thread David Barnett
David Barnett davidbarne...@gmail.com added the comment: This patch against the python 2.6 version fixes the problem for me. -- keywords: +patch Added file: http://bugs.python.org/file19369/fix_double_header.patch ___ Python tracker

  1   2   >