[ANNOUNCE] PyChess Staunton 0.10

2011-03-19 Thread pychess
Announcement for PyChess Staunton 0.10 We have had a lot of last minute fixes since the release candidate. A few of them for bugs that have been around a long time. In particular there has been a lot of

ANN: PyGUI 2.4

2011-03-19 Thread Greg Ewing
PyGUI 2.4 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Highlights of this release: * Python 3 Compatible on MacOSX and Windows. * ScrollableView has been overhauled on Windows and should now work with all builds of pywin32 as far as I know. What is PyGUI?

Re: Syntax Error

2011-03-19 Thread Terry Reedy
On 3/19/2011 1:03 AM, Vlastimil Brom wrote: 2011/3/19 Manateemarkrri...@aol.com: I hope this is the place to post this question. Yes. Lesson 1. Report Python version used, as things change. For anything that seems like it might by os/system specific, include that too. Lesson 2. Always

install excel xlwt in ubuntu 9

2011-03-19 Thread ratna PB
Hey friends i tried a lot to install excel xlwt in ubuntu 9 but failed please help me before i get full fraustrated... -- http://mail.python.org/mailman/listinfo/python-list

Re: Abend with cls.__repr__ = cls.__str__ on Windows.

2011-03-19 Thread Steven D'Aprano
On Fri, 18 Mar 2011 14:15:46 -0700, Carl Banks wrote: I observed the same behavior (2.6 and 3.2 on Linux, hangs) and went ahead and submitted a bug report. Thank you. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax Error

2011-03-19 Thread Steven D'Aprano
On Fri, 18 Mar 2011 21:39:20 -0700, Manatee wrote: I hope this is the place to post this question. I am a really new pythonista. I am studying Tkinter and when I run this basic code, I get a syntax error on line 20, print hi there, everyone. Its a simple print line, but I can't see the

Re: value of pi and 22/7

2011-03-19 Thread Steven D'Aprano
On Fri, 18 Mar 2011 07:22:43 -0700, Kee Nethery wrote: On Mar 18, 2011, at 5:17 AM, Neil Cerutti wrote: On 2011-03-18, peter peter.mos...@talk21.com wrote: The Old Testament (1 Kings 7,23) says ... And he made a molten sea, ten cubits from the one brim to the other: it was round all about,

Re: Bounds checking

2011-03-19 Thread Steven D'Aprano
On Fri, 18 Mar 2011 07:24:33 -0700, Martin De Kauwe wrote: Hi, if one has a set of values which should never step outside certain bounds (for example if the values were negative then they wouldn't be physically meaningful) is there a nice way to bounds check? I potentially have 10 or so

Re: Bounds checking

2011-03-19 Thread Steven D'Aprano
On Fri, 18 Mar 2011 15:35:40 -0700, Martin De Kauwe wrote: Don't check for bounds, fix any bug in the code that would set your values out of bounds and use asserts while debugging. whilst that is a nice idea in practice this just is not a practical solution. Sorry, are you trying to say

Re: Reading/Writing files

2011-03-19 Thread Nobody
On Fri, 18 Mar 2011 16:00:55 -0700, Ethan Furman wrote: Dan Stromberg wrote: / works fine on windows, and doesn't require escaping (/foo/bar). / works fine in most contexts, but not in shell commands, where / is conventionally used to indicate a switch. Commands which follow this convention

Re: Bounds checking

2011-03-19 Thread Martin De Kauwe
dir() has to do a bit a computation. I would be tempted to give 'state' a set of attributes to check. Call it 'nonnegatives'.     for attr in nonnegatives:        if ... This allows for attributes not subject to that check. -- Terry Jan Reedy Agreed. I was trying to just write a dummy

Re: Bounds checking

2011-03-19 Thread Martin De Kauwe
assert all(x = 0 for x in (a, b, c, d, e, f, g, h, i, j)) yep neat! Why don't you do the range check *before* storing it in state? That way you can identify the calculation that was wrong, instead of merely noticing that at some point some unknown calculation went wrong. I guess no

Re: Bounds checking

2011-03-19 Thread Martin De Kauwe
Sorry, are you trying to say that it is not practical to write correct code that isn't buggy? Well, you're honest, at least, still I can't help but feel that you're admitting defeat before even starting. No. What I am saying is the code is written has been well tested and *appears* to be

Re: install excel xlwt in ubuntu 9

2011-03-19 Thread Alexander Kapps
On 19.03.2011 07:29, ratna PB wrote: Hey friends i tried a lot to install excel xlwt in ubuntu 9 but failed please help me before i get full fraustrated... What have you tried and how did it failed? On 9.10, simply do (you might need to enable the universe repository in Synaptic first): $

Re: install excel xlwt in ubuntu 9

2011-03-19 Thread J.O. Aho
ratna PB wrote: Hey friends i tried a lot to install excel xlwt in ubuntu 9 but failed please help me before i get full fraustrated... sudo apt-get install python-xlwt -- //Aho -- http://mail.python.org/mailman/listinfo/python-list

Re: Bounds checking

2011-03-19 Thread Steven D'Aprano
On Sat, 19 Mar 2011 01:38:10 -0700, Martin De Kauwe wrote: Why don't you do the range check *before* storing it in state? That way you can identify the calculation that was wrong, instead of merely noticing that at some point some unknown calculation went wrong. I guess no reason really. I

Thanks...

2011-03-19 Thread wisecracker
Hi guys... A few weeks ago I joined here with a couple of code snippets that I gave away and someone on here - can`t remember who pointed me to:- http://code.activestate.com/recipes/langs/python/ Well I have uploaded 6 items but a day or so ago I uploaded this one:-

Re: ctypes pointer to structure memory swap

2011-03-19 Thread Wanderer
On Mar 18, 6:42 pm, Nobody nob...@nowhere.com wrote: On Fri, 18 Mar 2011 15:16:40 -0700, Wanderer wrote: Thanks for the reply, but I'm still not sure I understand. Why should Object1 be at address1 and Object2 be at address2 and the next moment Object2 is at address1 and Object1 is at

puzzle about file Object.readlines()

2011-03-19 Thread 林桦
i use python 2.5. os is window 7. the puzzle is :python don't read the leave text when meet character: chr(26) the code is: * fileObject=open('d:\\temp\\1.txt','w') fileObject.write('22\r\n') fileObject.write(chr(26)+'\r\n') fileObject.write('33')

Re: value of pi and 22/7

2011-03-19 Thread D'Arcy J.M. Cain
On Fri, 18 Mar 2011 13:45:47 +0100 Stefan Behnel stefan...@behnel.de wrote: Neil Cerutti, 18.03.2011 13:17: RIIght. What's a cubit? http://en.wikipedia.org/wiki/Cubit I don't believe that Neil was asking a serious question. http://www.youtube.com/watch?v=so9o3_daDZw -- D'Arcy J.M.

Surge 2011 Conference CFP

2011-03-19 Thread Katherine Jeschke
We are excited to announce Surge 2011, the Scalability and Performance Conference, to be held in Baltimore on Sept 28-30, 2011. The event focuses on case studies that demonstrate successes (and failures) in Web applications and Internet architectures. This year, we're adding Hack Day on September

ANN: PyGUI 2.4

2011-03-19 Thread Greg Ewing
PyGUI 2.4 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Highlights of this release: * Python 3 Compatible on MacOSX and Windows. * ScrollableView has been overhauled on Windows and should now work with all builds of pywin32 as far as I know. What is PyGUI?

ANN: fathom 0.1.0

2011-03-19 Thread Filip Gruszczyński
Hello everyone! I have created a small python package for python3 called fathom that provides database inspection. It is in a very early stage, rather a proof of concept right now. It provides basic information about database schema and works with Sqlite3, PostgreSQL and MySQL. I am looking for

Re: puzzle about file Object.readlines()

2011-03-19 Thread MRAB
On 19/03/2011 13:15, 林桦 wrote: i use python 2.5. os is window 7. the puzzle is :python don't read the leave text when meet character: chr(26) the code is: /fileObject=open('d:\\temp\\1.txt','w') fileObject.write('22\r\n') fileObject.write(chr(26)+'\r\n')

Re: Syntax Error

2011-03-19 Thread Manatee
On Mar 19, 1:03 am, Vlastimil Brom vlastimil.b...@gmail.com wrote: 2011/3/19 Manatee markrri...@aol.com: I hope this is the place to post this question. I am a really new pythonista. I am studying Tkinter and when I run this basic code, I get  a syntax error on line 20,  print hi there,

Re: Syntax Error

2011-03-19 Thread Manatee
On Mar 19, 2:00 am, Terry Reedy tjre...@udel.edu wrote: On 3/19/2011 1:03 AM, Vlastimil Brom wrote: 2011/3/19 Manateemarkrri...@aol.com: I hope this is the place to post this question. Yes. Lesson 1. Report Python version used, as things change. For anything that seems like it might by

Re: Syntax Error

2011-03-19 Thread Manatee
On Mar 19, 3:26 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Fri, 18 Mar 2011 21:39:20 -0700, Manatee wrote: I hope this is the place to post this question. I am a really new pythonista. I am studying Tkinter and when I run this basic code, I get a syntax error on

Re: Syntax Error

2011-03-19 Thread Manatee
On Mar 19, 3:26 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Fri, 18 Mar 2011 21:39:20 -0700, Manatee wrote: I hope this is the place to post this question. I am a really new Also, this is what is printed in the window when I type Python

Re: Syntax Error

2011-03-19 Thread Manatee
On Mar 19, 3:26 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Fri, 18 Mar 2011 21:39:20 -0700, Manatee wrote: I hope this is the place to post this question. I am a really new pythonista. I am studying Tkinter and when I run this basic code, I get a syntax error on

Re: puzzle about file Object.readlines()

2011-03-19 Thread Dave Angel
On 01/-10/-28163 02:59 PM, MRAB wrote: On 19/03/2011 13:15, 林桦 wrote: i use python 2.5. os is window 7. the puzzle is :python don't read the leave text when meet character: chr(26) the code is: /fileObject=open('d:\\temp\\1.txt','w') fileObject.write('22\r\n')

Re: multiprocessing Pool workers cannot create subprocesses

2011-03-19 Thread John L. Stephens
On 3/18/2011 7:54 PM, Jason Grout wrote: Right; thanks. Let me rephrase my questions: 1. Why is important that the multiprocessing Pool worker processors have daemon=True (I think this is the same as asking: why is it important that they be terminated with terminate() rather than join() )?

Re: Syntax Error

2011-03-19 Thread Terry Reedy
On 3/19/2011 2:07 PM, Manatee wrote: C:\Users\Rivetmr\MyPythonScriptsPython Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] onI win32 Type help, copyright, credits or license for more information. I guess I have to go to an earlier version; maybe 2.6? No

Re: send function keys to a legacy DOS program

2011-03-19 Thread Alexander Gattin
Hello, On Thu, Mar 10, 2011 at 04:58:53PM -0800, Justin Ezequiel wrote: We have an old barcode program (MSDOS and source code unavailable.) I've figured out how to populate the fields (by hacking into one of the program's resource files.) However, we still need to hit the following function

Re: Reading/Writing files

2011-03-19 Thread Dan Stromberg
On Sat, Mar 19, 2011 at 12:55 AM, Nobody nob...@nowhere.com wrote: On Fri, 18 Mar 2011 16:00:55 -0700, Ethan Furman wrote: Dan Stromberg wrote: / works fine on windows, and doesn't require escaping (/foo/bar). / works fine in most contexts, but not in shell commands, where / is

Re: send function keys to a legacy DOS program

2011-03-19 Thread Alexander Gattin
On Sun, Mar 20, 2011 at 12:52:28AM +0200, Alexander Gattin wrote: On Thu, Mar 10, 2011 at 04:58:53PM -0800, Justin Ezequiel wrote: We have an old barcode program (MSDOS and source code unavailable.) I've figured out how to populate the fields (by hacking into one of the program's resource

Some Minor questions on Class and Functions

2011-03-19 Thread joy99
Dear Group, I am trying to pose two small questions. 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. 1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information, on WINXP SP2. As I am writing a code for class like the following: IDLE 2.6.5

Re: class error

2011-03-19 Thread Rhodri James
On Sat, 19 Mar 2011 02:15:55 -, Terry Reedy tjre...@udel.edu wrote: On 3/18/2011 5:27 PM, monkeys paw wrote: TypeError: Error when calling the metaclass bases module.__init__() takes at most 2 arguments (3 given) OK, i overlooked that and the error was not very enlightening. A detailed

os.walk/list

2011-03-19 Thread ecu_jon
so i am trying to add md5 checksum calc to my file copy stuff, to make sure the source and dest. are same file. i implemented it fine with the single file copy part. something like : for files in sourcepath: f1=file(files ,'rb') try: shutil.copy2(files,

Re: Remove all directories using wildcard

2011-03-19 Thread Rikishi42
On 2011-03-18, JSkinn3 skinner_1...@hotmail.com wrote: I'm new to python and I am trying to figure out how to remove all sub directories from a parent directory using a wildcard. For example, remove all sub directory folders that contain the word PEMA from the parent directory C:\Data. I've

Re: Some Minor questions on Class and Functions

2011-03-19 Thread Benjamin Kaplan
On Sat, Mar 19, 2011 at 7:57 PM, joy99 subhakolkata1...@gmail.com wrote: Dear Group, I am trying to pose two small questions. 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. 1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information, on

Re: os.walk/list

2011-03-19 Thread Dan Stromberg
You're not really supposed to call into the md5 module directly anymore; you might use hashlib instead. But actually, using a cryptographic hash doesn't really help comparing just one pair of files; it's more certain to do a block by block comparison, and the I/O time is roughly the same -

Re: multiprocessing Pool workers cannot create subprocesses

2011-03-19 Thread Jason Grout
On 3/19/11 4:17 PM, John L. Stephens wrote: On 3/18/2011 7:54 PM, Jason Grout wrote: Right; thanks. Let me rephrase my questions: 1. Why is important that the multiprocessing Pool worker processors have daemon=True (I think this is the same as asking: why is it important that they be

This algorithm written in Python solves at least a subset of the Hamilton Circuit problem, which is NP complete, in n^3 time.

2011-03-19 Thread Martin
This algorithm written in Python solves at least a subset of the Hamilton Circuit problem, which is NP complete, in n^3 time. #!/usr/bin/env python # # hamiltoncircuit.python # # Copyright 2011 Martin Musatov musa...@att.net # # This program is free software; you may

import newer

2011-03-19 Thread xinyou yan
I begin to study with learning python I met a problem with import. first I creat a file hello.py then in fedora /14 I type python to the interpreter import hello Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named hello What should i do now.

Re: Some Minor questions on Class and Functions

2011-03-19 Thread Steven D'Aprano
On Sat, 19 Mar 2011 16:57:58 -0700, joy99 wrote: Dear Group, I am trying to pose two small questions. 1) I am using Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v. 1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information, on WINXP SP2. As I am

Distributing Python Program

2011-03-19 Thread T
I have a Python program (which I've frozen via py2exe) that I'd like to distribute online, but I'm not sure of the steps to take. My thoughts were to create an account with RegNow or FastSpring, who could accept the payment and offer the download, but I'm unsure as to how you deal with licensing

[issue11549] Rewrite peephole to work on AST

2011-03-19 Thread Eugene Toder
Eugene Toder elto...@gmail.com added the comment: AFAICT my patch has everything that #1346238 has, except BoolOps, which can be easily added (there's a TODO). I don't want to add any new code, though, until the current patch will get reviewed -- adding code will only make reviewing harder.

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-03-19 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: I am only suggesting a check for module because the is the only mistake I remember anyone reporting. Passing a number as a base class gives a similar message, but no one does that. And as far as I know, there is no way in general to

[issue10812] Add some posix functions

2011-03-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 96e09d039433 by Ross Lagerwall in branch 'default': Fix refleak introduced by #10812. http://hg.python.org/cpython/rev/96e09d039433 -- ___ Python tracker rep...@bugs.python.org

[issue11465] Set documentation: Link to wikipedia

2011-03-19 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I concur with the other respondants. Also, experience has shown a near zero learning curve for sets. For whatever reason, people seem to just get it and not require further explanation. -- nosy: +rhettinger

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread John Machin
John Machin sjmac...@lexicon.net added the comment: Can somebody please review my doc patch submitted 2 months ago? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7198 ___

[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Since the reporter did not get back with more details (testing against curl or a HEAD output to eliminate server issues), I am closing this issue. -- resolution: - invalid status: pending - closed

[issue11549] Rewrite peephole to work on AST

2011-03-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset edc3d3b07435 by Senthil Kumaran in branch '3.2': Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil. http://hg.python.org/cpython/rev/edc3d3b07435 New changeset dfceb98767c0 by Senthil Kumaran in branch

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: WFM then. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11412 ___

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @Senthil Kumaran: Because your patch touchs not only the test, can you document your change in Misc/NEWS? Sending a new HTTP header should be documented. Is there an issue to support persistent connections in

[issue11575] addresses.txt file leaks into search engines

2011-03-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Sure, the repo can go private if deemed necessary. I still think this is not a big deal anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11575

[issue11605] EMail generator.flatten() disintegrates over UTF-8 multipart/alternative

2011-03-19 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Hi David, i'm having real problems here! Got a multipart mail and i get this: __ Traceback (most recent call last): File /Users/steffen/usr/bin/s-postman.py, line 1239, in save_ticket mb.add(ticket.message()) File

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-19 Thread Michael Henry
New submission from Michael Henry pyt...@drmikehenry.com: The email module's body_encode() function (found in quoprimime.py) can generate oversized encoded lines that exceed the maximum line length specified by the maxlinelen parameter. The attached test case

[issue11605] EMail generator.flatten() disintegrates over UTF-8 multipart/alternative

2011-03-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Just want to point out that to my knowledge the mail is absolutely correct, in respect to classification and content. BytesGenerator tries to warp a UTF-8 message (which effectively contains LATIN1 data in the text part) to

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: By the way, instead of using my postman you may also reuse the stuff from #11401. To crash that instead of generator_booom.mbox simply change whatever character in the text/plain part to a valid LATIN1 (charset=ISO-8859-1)

[issue11459] Python select.select does not correctly report read readyness

2011-03-19 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a patch which uses -1 for the buffer size of popen(). This gets translated by the io.open() to the default io buffer size. -- Added file: http://bugs.python.org/file21290/11459_v2.patch

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't think the tests should be moved from one file to the other. It's making more difficult to tell whether you have changed them or not. I think moving the tests (as well as changing the synopsis, hello Eric) are cosmetic changes that are

[issue11466] getpass.getpass doesn't close tty file

2011-03-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: About security: i think that you, Éric, have referred to this when you've said your patch is not uncontroversial. No, I was only referring to the fact that one unrelated change was present in a patch while it was still being discussed in

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nice cleanup. -reductor = getattr(x, __reduce__, None) -if reductor: -rv = reductor() -else: -raise Error(un(shallow)copyable object of type %s % cls) +raise

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-19 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg130613 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11236 ___

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If this bugs needs to be solved before #11466 can be fixed, let’s mark it as a dependency. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11236

[issue11466] getpass.getpass doesn't close tty file

2011-03-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Mar 19, 2011 at 01:29:28PM +, Éric Araujo wrote: It’s a private function, it that makes the patch smaller let’s change it. You get a new patch from me tomorrow evening at the latest --

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: John John Machin sjmac...@lexicon.net added the comment: John Can somebody please review my doc patch submitted 2 months ago? My apologies. I have it in my sandbox, but a combination of the switch to Mercurial and lack of round tuits has

[issue7198] Extraneous newlines with csv.writer on Windows

2011-03-19 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Actually, I was thinking of another doc patch for the csv module. Your changes (or something very like them) made it into the 3.2 release, as you can see here: http://docs.python.org/py3k/library/csv.html S -- resolution: -

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605 ___ ___

[issue11606] maxlinelen exceeded by email module's body_encode() function

2011-03-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue10050] urllib.request still has old 2.x urllib primitives

2011-03-19 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I'll make those changes, sure. I had the same thought re: block size, but I was trying to keep inline with what the current function did. -- ___ Python tracker rep...@bugs.python.org

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can reproduce this just using message_from_binary_file and BytesGenerator on your input file, so thanks for attaching the email. I have a test in the test suite that is *supposed* to test this, but clearly there is a case here that is

[issue11575] addresses.txt file leaks into search engines

2011-03-19 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Tom Pinckney thinks it's a big deal. I suspect he might be interested to know why you think it's not. We are entitled to our own opinions about privacy, but the request at hand concerns another person's privacy. He's the one you need to

[issue11575] addresses.txt file leaks into search engines

2011-03-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: As I said, I'm not opposed to make the repo private. I don't need to convince anyone. You sound like you're trying to change my opinion here. -- ___ Python tracker rep...@bugs.python.org

[issue11459] Python select.select does not correctly report read readyness

2011-03-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is the adapted patch for 3.1, with a test case. -- nosy: +pitrou Added file: http://bugs.python.org/file21291/11459_v3.patch ___ Python tracker rep...@bugs.python.org

[issue11607] Apllication crashes when saving file

2011-03-19 Thread roobman26
New submission from roobman26 rlsander...@gmail.com: when i try to save a file it saves, but then the application crashes. The same thing happens when I try to open a saved file. -- assignee: ronaldoussoren components: Macintosh messages: 131424 nosy: ronaldoussoren, roobman26

[issue11459] Python select.select does not correctly report read readyness

2011-03-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1dc52ecb8949 by Antoine Pitrou in branch '3.1': Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates http://hg.python.org/cpython/rev/1dc52ecb8949 New changeset 7451da272111 by Antoine Pitrou in branch '3.2':

[issue11459] Python select.select does not correctly report read readyness

2011-03-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed now, thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11608] GzipFile cannot be used for streaming

2011-03-19 Thread Enrico Zini
New submission from Enrico Zini enr...@enricozini.org: Hello, this snippet does not work, because GzipFile wants a file-like object that can do tell() and seek(): #!/usr/bin/python import gzip from urllib import urlopen zfd = urlopen(http://ftp.debian.org/debian/dists/sid/Contents-udeb.gz;)

[issue11607] Apllication crashes when saving file

2011-03-19 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: You're going to need to supply more information. What application? Can you post the source code? What does crashes mean? Is it giving a Python traceback? If so, please supply it. Thanks. -- nosy: +eric.smith

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-19 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: urlopen_HttpTests.test_willclose() fails to call unfakehttp(), which breaks subsequent runs of test_urllib2_localnet, test_urllib2net and test_urllibnet. Fix attached. -- Added file:

[issue11609] urllib-related buildbot failures

2011-03-19 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Many urllib-related buildbot failures recently, this seems to be cause by one of the recent urllib commits. 3.2 and 3.3 are affected. http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/1255 --

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-19 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Regarding __reduce__, other readers will have the same question Éric did, so that point should definitely go in a comment after the __reduce_ex__ check. -- ___ Python tracker rep...@bugs.python.org

[issue11575] addresses.txt file leaks into search engines

2011-03-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, the repo is now private. -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11575 ___

[issue11456] Documentation csv RFC4180

2011-03-19 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c63d7374b89a by Skip Montanaro in branch 'default': Mention RFC 4180. Based on input by Tony Wallace in issue 11456. http://hg.python.org/cpython/rev/c63d7374b89a -- nosy: +python-dev

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-19 Thread Brandon Craig Rhodes
Brandon Craig Rhodes bran...@rhodesmill.org added the comment: Nick Coghlan rep...@bugs.python.org writes: Nick Coghlan ncogh...@gmail.com added the comment: Regarding __reduce__, other readers will have the same question Éric did, so that point should definitely go in a comment after the

[issue11583] os.path.isdir() is slow on windows

2011-03-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583 ___ ___

[issue11575] addresses.txt file leaks into search engines

2011-03-19 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: I interpreted not a big deal to mean that having addresses exposed was not a big deal. Too many pronouns perhaps. -- status: pending - open ___ Python tracker rep...@bugs.python.org

[issue11610] Improving property to accept abstract methods

2011-03-19 Thread Darren Dale
New submission from Darren Dale dsdal...@gmail.com: I posted a suggestion at python-ideas that the declaration of abstract properties could be improved in such a way that they could be declared with either the long-form or decorator syntax using the built-in property and abc.abstractmethod:

[issue11456] Documentation csv RFC4180

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11456 ___

[issue11610] Improving property to accept abstract methods

2011-03-19 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: The discussion on python-ideas: http://mail.python.org/pipermail/python-ideas/2011-March/009411.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610

[issue11575] addresses.txt file leaks into search engines

2011-03-19 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Your interpretation was correct indeed. It's an email address we're talking about here, which is necessarily a public bit of information, not a private one like a Social Security or credit card number. Anyway, the repo is now private, so

[issue10515] csv sniffer does not recognize quotes at the end of line

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- assignee: skip.montanaro - nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10515 ___

[issue11549] Rewrite peephole to work on AST

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11549 ___ ___ Python-bugs-list

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11579 ___ ___ Python-bugs-list

[issue11439] subversion keyword breakage

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11439 ___ ___ Python-bugs-list

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11445 ___ ___ Python-bugs-list

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-19 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: -skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11419 ___ ___ Python-bugs-list

  1   2   >