PyCon Australia 2011: Early Bird Closing Soon

2011-05-28 Thread Ryan Kelly
Hi Everyone, A reminder that Early Bird Registrations for PyCon Australia 2011 will be closing soon. There are only a few days left to get your tickets at the discounted rate. PyCon Australia is Australia's only conference dedicated exclusively to the Python programming language, and will be

tox 1.0 - rapid multi-python test automation

2011-05-28 Thread holger krekel
tox 1.0: the rapid multi-python test automation === I am happy to announce tox 1.0, a stabilization and maintenance release with some small improvements. tox automates tedious test activities driven from a simple ``tox.ini``

Re: English Idiom in Unix: Directory Recursively

2011-05-28 Thread David Schwartz
On May 20, 12:00 am, Jonathan de Boyne Pollard J.deBoynePollard- newsgro...@ntlworld.com wrote: Indeed. And the algorithms that are employed to perform the operations so described are recursive. Actually, they almost never are. Iterative algorithms are almost always used to avoid a stack

Re: Beginner needs advice

2011-05-28 Thread Steven D'Aprano
On Fri, 27 May 2011 15:40:53 -0500, harrismh777 wrote: Steven D'Aprano wrote: Would you care to revise your claims? No. You have erected a straw-man... once again. You keep using that term, but it is clear to me that you don't have the foggiest idea of what the straw-man fallacy is.

Re: Beginner needs advice

2011-05-28 Thread Thorsten Kampe
* Thomas Rachel (Sat, 28 May 2011 07:06:53 +0200) Am 27.05.2011 17:52 schrieb Steven D'Aprano: On Fri, 27 May 2011 09:40:53 -0500, harrismh777 wrote: 3.x is completely incompatible with 2.x (some call it a dialect, but that is a lie). Completely incompatible? A lie? Hard word, but it

Re: Beginner needs advice

2011-05-28 Thread Chris Angelico
On Sat, May 28, 2011 at 4:38 PM, Thorsten Kampe thors...@thorstenkampe.de wrote: The question is: if you want (or have) to run your code under Python3, how likely is that it will run unmodified? My experience is: unless the code is especially written with Python3 compatability or just a short

Re: Beginner needs advice

2011-05-28 Thread Thorsten Kampe
* Thorsten Kampe (Sat, 28 May 2011 08:38:54 +0200) My experience is: unless the code is especially written with Python3 compatability [...] Oops, I meant unless the code is specifically written with Python3 compatability in mind [...] Thorsten --

Re: changing current dir and executing a shell script

2011-05-28 Thread Peter Otten
Albert Hopkins wrote: On Fri, 2011-05-27 at 14:25 -0700, suresh wrote: I want to execute the following command line stuff from inside python. $cd directory $./executable I tried the following but I get errors import subprocess subprocess.check_call('cd dir_name;./executable') Due to

Re: Beginner needs advice

2011-05-28 Thread Steven D'Aprano
On Sat, 28 May 2011 08:38:54 +0200, Thorsten Kampe wrote: * Thomas Rachel (Sat, 28 May 2011 07:06:53 +0200) Am 27.05.2011 17:52 schrieb Steven D'Aprano: On Fri, 27 May 2011 09:40:53 -0500, harrismh777 wrote: 3.x is completely incompatible with 2.x (some call it a dialect, but that is a

Re: The worth of comments

2011-05-28 Thread Gregory Ewing
Grant Edwards wrote: After hearing/reading somebody for years, I don't seem to have a detailed image of them in my head, but when I finally do see a picture of them, my initial reaction is almost always no, that's not at all what I thought he/she looked like. It works the other way, too. I've

Re: GIL in alternative implementations

2011-05-28 Thread Marc Christiansen
Daniel Kluev dan.kl...@gmail.com wrote: test.py: from threading import Thread class X(object): pass obj = X() obj.x = 0 def f(*args): for i in range(1): obj.x += 1 threads = [] for i in range(100): t = Thread(target=f) threads.append(t) t.start() for

Re: GIL in alternative implementations

2011-05-28 Thread Peter Otten
Daniel Kluev wrote: So I'd like to know: how do these other implementations handle concurrency matters for their primitive types, and prevent them from getting corrupted in multithreaded programs (if they do) ? I'm not only thinking about python types, but also primitive containers and types

Re: GIL in alternative implementations

2011-05-28 Thread Wolfgang Rohdewald
On Samstag 28 Mai 2011, Marc Christiansen wrote: And I wouldn't rely on 3.2 not to break. it breaks too like it should, but only rarely like one out of 10 times i5:/pub/src/gitgames/kajongg/src$ python3.2 test.py 100 i5:/pub/src/gitgames/kajongg/src$ python3.2 test.py 100

Re: Question about isodate

2011-05-28 Thread Colin J. Williams
On 26-May-11 07:48 AM, truongxuan quang wrote: Hello list, I am installing and testing istSOS wrote base on Python with its extension like gdal, isodate, easy istall, setuptool, psycopg. I have already installed all these stuff when I was using method POST the error appear is _No module named

Re: and becomes or and or becomes and

2011-05-28 Thread bch
On May 23, 11:30 pm, rusi rustompm...@gmail.com wrote: On May 23, 5:30 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote: Stef Mientki stef.mien...@gmail.com wrote: must of us will not use single bits these days, but

Re: Beginner needs advice

2011-05-28 Thread D'Arcy J.M. Cain
On Sat, 28 May 2011 07:06:53 +0200 Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de wrote: Completely incompatible? A lie? Hard word, but it is true. Many things can and will fall on your feet when moving. There are very many subtle differences. The space

Re: Why did Quora choose Python for its development?

2011-05-28 Thread Roy Smith
In article fbd69b90-b709-48ed-a247-af943ddbc...@glegroupsg2000goo.googlegroups.com , Carl Banks pavlovevide...@gmail.com wrote: On Friday, May 27, 2011 6:47:21 AM UTC-7, Roy Smith wrote: One of the truly awesome things about the Python re library is that it lets you write complex regexes

Re: and becomes or and or becomes and

2011-05-28 Thread Chris Angelico
On Sat, May 28, 2011 at 10:27 PM, bch bch.itbgcth...@gmail.com wrote: And of course, a programmer cannot tell the difference between Halloween and Christmas day. Well known, of course. But a lot of modern programmers don't speak octal, they only use another power-of-two base; it's as though

Re: The worth of comments

2011-05-28 Thread Irmen de Jong
On 27-5-2011 19:53, Grant Edwards wrote: On 2011-05-27, Irmen de Jong ir...@-nospam-xs4all.nl wrote: On 27-05-11 15:54, Grant Edwards wrote: On 2011-05-27, Ben Finneyben+pyt...@benfinney.id.au wrote: Richard Parkerr.richardpar...@comcast.net writes: On May 26, 2011, at 4:28 AM,

Re: The worth of comments

2011-05-28 Thread python
Irmen, I'm going to share this thread, and the funny slideshow about Uncomment your code, with my team at work :-) We're not a Python shop so I'm probably the only one reading this Same here! but as usual there is a lot of wisdom going on in this new[s]group that is not only applicable

Re: and becomes or and or becomes and

2011-05-28 Thread Nobody
On Sun, 22 May 2011 15:39:33 -0700, Tim Roberts wrote: That IS funny. Interesting how a careful choice of arugments will fool us. One of my favorite math jokes is like that. A teacher asked a student to reduce the following fraction: 16 64 He says all I have to do is cancel

join this group

2011-05-28 Thread YUVI RAJ
http://123maza.com/65/Cape201/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The worth of comments

2011-05-28 Thread Roy Smith
In article irooea$kio$2...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: When trying to find a bug in code written by sombody else, I often first go through and delete all of the comments so as not to be mislead. I've heard people say that before. While I get the concept,

join this group

2011-05-28 Thread YUVI RAJ
http://123maza.com/65/Cape201/ -- http://mail.python.org/mailman/listinfo/python-list

PyCon Australia 2011: Early Bird Closing Soon

2011-05-28 Thread Ryan Kelly
Hi Everyone, A reminder that Early Bird Registrations for PyCon Australia 2011 will be closing soon. There are only a few days left to get your tickets at the discounted rate. PyCon Australia is Australia's only conference dedicated exclusively to the Python programming language, and will be

Re: The worth of comments

2011-05-28 Thread Chris Angelico
On Sat, May 28, 2011 at 11:36 PM, Roy Smith r...@panix.com wrote: def foo():   Raise IndexError.  This is useful as a testing fixture.   l = [1, 2, 3]   return l[3] A quite useful thing, on occasion. I have a couple of variants of this, actually. In one of my C++ programs: extern char

Re: and becomes or and or becomes and

2011-05-28 Thread Chris Angelico
On Sat, May 28, 2011 at 11:31 PM, Nobody nob...@nowhere.com wrote: Not Python, but:        #define SIX  1 + 5        #define NINE 8 + 1        ...        printf(six times nine is: %d\n, SIX * NINE); *AWESOME*!! That is brilliant! DNA FTW. ChrisA --

Re: The worth of comments

2011-05-28 Thread Irmen de Jong
On 28-5-2011 15:36, Roy Smith wrote: In article irooea$kio$2...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: When trying to find a bug in code written by sombody else, I often first go through and delete all of the comments so as not to be mislead. I've heard people

How to catch a line with Popen

2011-05-28 Thread TheSaint
Hello. I'm looking into subprocess.Popen docs. I've launch the program with its arguments and that's smooth. I'm expecting to read the output by *comunicate()* at every line that prgram may blow during the process, but the output is given only when the child process is ended. I'd like to

Re: GIL in alternative implementations

2011-05-28 Thread John Nagle
On 5/27/2011 7:06 PM, Daniel Kluev wrote: So I'd like to know: how do these other implementations handle concurrency matters for their primitive types, and prevent them from getting corrupted in multithreaded programs (if they do) ? I'm not only thinking about python types, but also primitive

Re: GIL in alternative implementations

2011-05-28 Thread Steven D'Aprano
On Sat, 28 May 2011 09:39:08 -0700, John Nagle wrote: Python allows patching code while the code is executing. Can you give an example of what you mean by this? If I have a function: def f(a, b): c = a + b d = c*3 return hello world*d how would I patch this function while it is

Re: Beginner needs advice

2011-05-28 Thread Uncle Ben
On May 27, 5:33 pm, Ethan Furman et...@stoneleaf.us wrote: Lew Schwartz wrote: So, if I read between the lines correctly, you recommend Python 3? Does the windows version install with a development environment? Dabo, last I checked, uses wxPython, which uses wxWidgets (sp?), which is not

Re: Beginner needs advice

2011-05-28 Thread harrismh777
Ethan Furman wrote: Um -- how can you have on the one hand completely not compatible and on the other code that can cross-execute on either version? Great question ! .. .it has to do with education. ... if you learn 2.x (only) and attempt to program on the 3.x platform, (without helps,

Re: English Idiom in Unix: Directory Recursively

2011-05-28 Thread Rikishi42
On 2011-05-25, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I know many people who have no idea what a directory is, let alone a subdirectory, unless it's the phone directory. They're non-computer users. Once they start using computers, they quickly work out what the word

Re: Beginner needs advice

2011-05-28 Thread Chris Angelico
On Sun, May 29, 2011 at 5:21 AM, harrismh777 harrismh...@charter.net wrote: The problem is that they look similar.     :) C looks like every other bracey language in the world. Is that a problem? According to Wikipedia, there's quite a lot of them:

Re: English Idiom in Unix: Directory Recursively

2011-05-28 Thread Chris Angelico
On Sun, May 29, 2011 at 5:36 AM, Rikishi42 skunkwo...@rikishi42.net wrote: Is it [the term 'incinerate'] that widespread? I figured most people woul speak of burning. OK, my bad if it is. I think it's geographic. This list covers a lot of geography; I'm in Australia, there are quite a few

Class decorators might also be super too

2011-05-28 Thread Raymond Hettinger
David Beazley wrote a class decorator blog post that is worth reading: http://dabeaz.blogspot.com/2011/05/class-decorators-might-also-be-super.html Raymond -- http://mail.python.org/mailman/listinfo/python-list

Re: bdist_wininst: install_script not run on uninstall

2011-05-28 Thread Wilbert Berendsen
Op zaterdag 28 mei 2011 schreef Mark: This is a bug in distutils/bdist_wininst - I just created http://bugs.python.org/issue12200 with the details and your samples, and sadly I can't think of a work around you can use until this is fixed (which I might get to soon, but not this weekend...)

Re: English Idiom in Unix: Directory Recursively

2011-05-28 Thread GSO
The beginning of wisdom is to call things by their right names. - Chinese Proverb (So I'm told at least, I'd check with the Chinese first though ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-28 Thread Chris Angelico
On Sun, May 29, 2011 at 7:25 AM, GSO gso...@yahoo.co.uk wrote: The beginning of wisdom is to call things by their right names. - Chinese Proverb (So I'm told at least, I'd check with the Chinese first though ;) See, I thought it was The fear of the Lord is the beginning of wisdom, but the

Re: changing current dir and executing a shell script

2011-05-28 Thread Albert Hopkins
On Sat, 2011-05-28 at 09:41 +0200, Peter Otten wrote: You don't want to do this because cd is a built-in shell command, and subprocess does not execute within a shell (by default). The problem is not that cd is built-in, but that there is no shell at all. You can change that with

Re: Beginner needs advice

2011-05-28 Thread Terry Reedy
On 5/28/2011 2:57 PM, Uncle Ben wrote: Just this past Tuesday, I blindly downloaded 3.1 and found that at the level I am workloing, all it took to get my 2.7 code to run was to put parens around the print arguments and double the slashes in integer division. I didn't even use the 2to3

Re: How to catch a line with Popen

2011-05-28 Thread Nobody
On Sun, 29 May 2011 00:01:56 +0800, TheSaint wrote: I'm looking into subprocess.Popen docs. I've launch the program with its arguments and that's smooth. I'm expecting to read the output by *comunicate()* at every line that prgram may blow during the process, but the output is given only when

Re: Parse config file and command-line arguments, to get a single collection of options

2011-05-28 Thread rzed
Ben Finney b...@benfinney.id.au wrote in news:87k4deaxfc@benfinney.id.au: Howdy all, Python's standard library has modules for configuration file parsing (configparser) and command-line argument parsing (optparse, argparse). I want to write a program that does both, but also: *

portable way of sending notifying a process

2011-05-28 Thread News123
Hi, I'm looking for a portable way (windows XP / Windows Vista and Linux ) to send a signal from any python script to another one (one signa would be enough) I have several python scripts started from different parent processes occasionally some of the scripts want to tell another to reread

Re: How to catch a line with Popen

2011-05-28 Thread Tim Roberts
TheSaint nob...@nowhere.net.no wrote: I'm looking into subprocess.Popen docs. I've launch the program with its arguments and that's smooth. I'm expecting to read the output by *comunicate()* at every line that prgram may blow during the process, but the output is given only when the child

float(nan) in set or as key

2011-05-28 Thread MRAB
Here's a curiosity. float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} except that sometimes it can't: nan = float(nan) {nan, nan} {nan} -- http://mail.python.org/mailman/listinfo/python-list

Re: float(nan) in set or as key

2011-05-28 Thread Erik Max Francis
MRAB wrote: Here's a curiosity. float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} except that sometimes it can't: nan = float(nan) {nan, nan} {nan} It's fundamentally because NaN is not equal to itself, by design. Dictionaries

Re: float(nan) in set or as key

2011-05-28 Thread Albert Hopkins
On Sun, 2011-05-29 at 00:41 +0100, MRAB wrote: Here's a curiosity. float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} These two nans are not equal (they are two different nans) except that sometimes it can't: nan = float(nan)

Re: float(nan) in set or as key

2011-05-28 Thread Tim Delaney
On 29 May 2011 10:16, Erik Max Francis m...@alcyone.com wrote: MRAB wrote: Here's a curiosity. float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} except that sometimes it can't: nan = float(nan) {nan, nan} {nan} It's

Re: float(nan) in set or as key

2011-05-28 Thread Steven D'Aprano
On Sun, 29 May 2011 00:41:16 +0100, MRAB wrote: Here's a curiosity. float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} That's an implementation detail. Python is free to reuse the same object when you create an immutable object twice

Re: float(nan) in set or as key

2011-05-28 Thread Chris Angelico
On Sun, May 29, 2011 at 10:28 AM, Albert Hopkins mar...@letterboxes.org wrote: This is the same nan, so it is equal to itself. Actually, they're not. But it's possible the dictionary uses an 'is' check to save computation, and if one thing 'is' another, it is assumed to equal it. That's true of

Re: How to catch a line with Popen

2011-05-28 Thread Dan Stromberg
On Sat, May 28, 2011 at 4:32 PM, Tim Roberts t...@probo.com wrote: TheSaint nob...@nowhere.net.no wrote: I'm looking into subprocess.Popen docs. I've launch the program with its arguments and that's smooth. I'm expecting to read the output by *comunicate()* at every line that prgram may

Re: float(nan) in set or as key

2011-05-28 Thread Erik Max Francis
Albert Hopkins wrote: On Sun, 2011-05-29 at 00:41 +0100, MRAB wrote: 1.0 == 1.0 True float(nan) == float(nan) False I can't cite this in a spec, but it makes sense (to me) that two things which are nan are not necessarily the same nan. It's part of the IEEE standard. -- Erik Max Francis

Re: The worth of comments

2011-05-28 Thread Gregory Ewing
Irmen de Jong wrote: I don't see how that is opposed to what Grant was saying. It's that these 'contracts' tend to change and that people forget or are too lazy to update the comments to reflect those changes. However, I can't see that deleting the comment documenting the contract can be

Re: English Idiom in Unix: Directory Recursively

2011-05-28 Thread Steven D'Aprano
On Sun, 29 May 2011 05:58:01 +1000, Chris Angelico wrote: Geeks tend to have larger vocabularies than non-geeks, on average; probably akin to our love of word games and precision (two distinct notions that bridge surprisingly often). And also because more educated people in general tend to

Re: float(nan) in set or as key

2011-05-28 Thread Gregory Ewing
MRAB wrote: float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} except that sometimes it can't: nan = float(nan) {nan, nan} {nan} NaNs are weird. They're not equal to themselves: Python 2.7 (r27:82500, Oct 15 2010, 21:14:33) [GCC

Re: The worth of comments

2011-05-28 Thread Ben Finney
Gregory Ewing greg.ew...@canterbury.ac.nz writes: If the contract comment doesn't match what code does, then there are two possibilities -- the comment is wrong, or the code is wrong. The appropriate response is to find out which one is wrong and fix it. You omit the common third possibility:

Re: The worth of comments

2011-05-28 Thread Irmen de Jong
On 29-5-2011 2:47, Gregory Ewing wrote: Irmen de Jong wrote: I don't see how that is opposed to what Grant was saying. It's that these 'contracts' tend to change and that people forget or are too lazy to update the comments to reflect those changes. However, I can't see that deleting

Re: Beginner needs advice

2011-05-28 Thread harrismh777
Chris Angelico wrote: Both versions of Python are the same language, because they think the same way; I appreciate your thought. And there is an obvious continuity in philosophy between 2.x and 3.x; in fact even a cursory study of the history of python demonstrates a concerted effort to

Re: Beginner needs advice

2011-05-28 Thread Chris Angelico
On Sun, May 29, 2011 at 12:02 PM, harrismh777 harrismh...@charter.net wrote: Chris Angelico wrote: Both versions of Python are the same language, because they think the same way;     I see your point. But, knowing that 3.x thinks like 2.x is not helpful when we all know that languages don't

Re: float(nan) in set or as key

2011-05-28 Thread Grant Edwards
On 2011-05-29, Albert Hopkins mar...@letterboxes.org wrote: On Sun, 2011-05-29 at 00:41 +0100, MRAB wrote: Here's a curiosity. float(nan) can occur multiple times in a set or as a key in a dict: {float(nan), float(nan)} {nan, nan} These two nans are not equal (they are two different

Re: Beginner needs advice

2011-05-28 Thread harrismh777
Steven D'Aprano wrote: A straw man is not when somebody points out holes in your argument, or unwanted implications that you didn't realise were there. It is when somebody makes claims on your behalf that you did not make to discredit you, not because you don't understand the implications of

Re: Beginner needs advice

2011-05-28 Thread Dotan Cohen
On Fri, May 27, 2011 at 23:40, harrismh777 harrismh...@charter.net wrote: You have erected a straw-man... once again. I think that is a red herring, not a strawman. Most 2.x code *will not* run correctly in 3.x/  Most of the best improvements and enhancements of 3.x will not back-port to

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: I don't see this having much to do with the DRY principle. It's explicit is better than implicit and better safe than sorry that applies here. -- ___ Python tracker rep...@bugs.python.org

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I recommend to revert this change. It seems that some users are opposed to any kind of folding (as my earlier folding experiment has demonstrated); users who *really* don't want to see the history would need to step forward and request a

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- Removed message: http://bugs.python.org/msg137107 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8583 ___

[issue12163] str.count

2011-05-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Interpreter Core versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12163 ___

[issue9670] Exceed Recursion Limit in Thread

2011-05-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset ecf0ef85c72a by Ned Deily in branch '2.7': Issue #9670: Increase the default stack size for secondary threads on http://hg.python.org/cpython/rev/ecf0ef85c72a New changeset 0cded2f2cea3 by Ned Deily in branch '3.1': Issue #9670:

[issue9670] Exceed Recursion Limit in Thread

2011-05-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Version 4 looks good and the tests pass on OS X with pydebug enabled. Applied in 2.7 (for release in 2.7.2), 3.1 (for 3.1.4). 3.2 (for 3.2.1), and default (for 3.3). -- resolution: - fixed stage: patch review - committed/rejected status:

[issue12196] add pipe2() to the os module

2011-05-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Out of interest, is there any reason that the configure check for pipe2 is a special case near the bottom of configure.in instead of with all the other function checks in the AC_CHECK_FUNCS[] section in the middle? I know this patch

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm not sure it's worth adding this to the PEP 7. The PEP is about conventions and style not idioms. PEP 8 has a section about Programming Recommendations that contains a few idioms, but since PEP 7 doesn't have an equivalent section, I

[issue11906] test_argparse failure in interactive mode

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Terry, I think you can apply the patch you proposed in msg137085 and close this issue. If the recommended structure of test files is not documented, a section in the devguide should be added, but that's another issue. (FWIW I'm not even

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Python 3.1.4 should be released today, so I think it's too late for this to be fixed. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10449

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The release date of 3.1.4 is actually June 11th. Today will be released an RC though, so what I said should still apply. -- ___ Python tracker rep...@bugs.python.org

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___

[issue9382] os.popen referenced but not documented in Python 3.x

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9382 ___ ___ Python-bugs-list

[issue10224] Build 3.x documentation using python3.x

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10224 ___ ___

[issue10225] Fix doctest runable examples in python manual

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10225 ___ ___

[issue985064] plistlib crashes too easily on bad files

2011-05-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a2688e252204 by Ned Deily in branch '3.1': Issue #985064: Make plistlib more resilient to faulty input plists. http://hg.python.org/cpython/rev/a2688e252204 New changeset f555d959a5d7 by Ned Deily in branch '3.2': Issue #985064:

[issue985064] plistlib crashes too easily on bad files

2011-05-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thank you for the patch and tests! Applied in 3.1 (for 3.1.4), 3.2 (for 3.2.1), and 3.3. (The 2.x version of plistlib differs somewhat from the 3.x version so the patch would need some rework and testing for 2.7; that is probably not worth the effort

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Does this change have a visible effect? If so, can it have some unit test? Otherwise pypy and other alternative implementations are likely to miss this change. -- nosy: +amaury.forgeotdarc

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___ ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Out of interest, is there any reason that the configure check for pipe2 is a special case near the bottom of configure.in instead of with all the other function checks in the AC_CHECK_FUNCS[] section in the middle? No clue. I'll

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12196 ___ ___

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I think, if you speak to RM, you can just have this change in. Don't we get no commits please email request from RM with hg or is the branch already cut? -- ___ Python tracker

[issue12199] Unify TryExcept and TryFinally

2011-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: From my review: One genuine problem with a stale assert and comment in ast.c, and a small objection to style in compile.c (I'd like a new compile_try() function to match the new AST node). Otherwise looked good in a desk review. --

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The AST version changed, and, more importantly, if other implementations pick up our AST changes without updating their compilers accordingly, their symbol table analysis and code compilation processes will break. So yes, the test suite does

[issue12196] add pipe2() to the os module

2011-05-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Also, the pure python implementation of subprocess for posix can now be updated to use pipe2 if it exists (previously on _posixsubprocess.c used it). I don't understand the last part :-) What do you suggest? Perhaps, os.pipe2 can

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Thanks for this answer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___ ___

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: One other thing I should mention is that in a later checkin, Benjamin did add a couple of explicit with statement examples to test_ast. These will fail if other implementations don't update the front end of their compilation processes

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: That would be c4ddb460f4f2. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Note that usually 'self' is not included in the arguments of methods. The 3.3 doc correctly uses e.g. copy_sign(other). A 'd.' could also be added so that the end result looks like: d.copy_sign(other) but it's not mandatory (if done,

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10449 ___ ___

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12185 ___ ___

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11699 ___ ___

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-28 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: To the extent that we can, we should try to support relative symlinks. Absolute symlinks aren't the right thing in some cases, where the symlinks should be movable with their targets. I use relative links extensively. Is it worth

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-05-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a2f088cf7ced by Ned Deily in branch '2.7': Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds, http://hg.python.org/cpython/rev/a2f088cf7ced New changeset 7f2e3c466d57 by Ned Deily in branch '3.2': Issue #11217: For

[issue11644] Cross-link 2to3 documentation, what’s new and pyporting howto

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11644 ___ ___

[issue11203] gzip doc is behind

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11203 ___ ___

  1   2   >