pytest-2.2.4 - bugfixes and better junitxml/unittest/python3 compat

2012-05-23 Thread holger krekel
pytest-2.2.4: bug fixes, better junitxml/unittest/python3 compat === pytest-2.2.4 is a minor backward-compatible release of the versatile py.test testing tool. It contains bug fixes and a few refinements to junitxml

StoryText 3.7 - GUI testing tool

2012-05-23 Thread Geoff Bache
Hi all, The 3.7 release features the following: Many improvements to SWT/Eclipse RCP support, including support for GEF applications. Many improvements to wxPython support, status changed from Alpha to Beta. Support for Python 3 and Tkinter added. Shortcuts can now be parametrized. Many

ANN: EPD 7.3 (and 8 preview beta) released

2012-05-23 Thread Ilan Schnell
Hello, I am pleased to announce the release of Enthought Python Distribution, EPD version 7.3, along with its EPD Free counterpart. The highlights of this release are: the addition of enaml, Shapely and several other packages, as well as updates to over 30 packages, including SciPy and IPython.

Re: install python 2.6 on Ubuntu 12.04

2012-05-23 Thread Christian Heimes
Am 23.05.2012 02:51, schrieb Benjamin Kaplan: Even easier: ./configure make sudo make altinstall If I recall correctly, that will install it in /usr/local/lib/python2.6 and it will create /usr/local/bin/python2.6 but it will not create /usr/local/bin/python so it won't clobber the

Re: install python 2.6 on Ubuntu 12.04

2012-05-23 Thread Christian Heimes
Am 23.05.2012 09:40, schrieb Christian Heimes: You recall correctly. That's the recommended and correct way to install Python 2.6 on a recent machine, with one exception. You must compile it with the option MACHDEP=linux2, otherwise sys.platform will contain the string linux3 [1]. You also

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Jean-Michel Pichavant
Dan Stromberg wrote: On Tue, May 22, 2012 at 3:20 PM, Ben Finney ben+pyt...@benfinney.id.au mailto:ben+pyt...@benfinney.id.au wrote: Python Recruiter ro...@omniumit.com mailto:ro...@omniumit.com writes: Can any one help? I am looking for a Senior Python Developer Yes,

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Chris Angelico
On Wed, May 23, 2012 at 7:27 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Sorry for asking but what do you mean by doing latitude and longitude. I tried dictionaries + google and didn't find how these geographical terms apply to job boards. Since you said it's important... My

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Chris Withers
On 23/05/2012 00:34, Dan Stromberg wrote: I find it more than a little disappointing that the Python Job Board doesn't do latitude and longitude. It's a big missed opportunity. Yes, it's not an identical process from nation to nation, but it's still important. If you had experience of how

How to launch idle -n on windows ?

2012-05-23 Thread Franck Ditter
I have some problems with Python 3.2 on Windows. I want to use the turtle package, works fine, but I can't close the turtle windows. On MacOS-X, I launch idle -n and it's fine. How can I do that on Windows ? Thanks, fd -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI toolkits and dynamic table browser widget

2012-05-23 Thread Sibylle Koczian
Am 22.05.2012 04:37, schrieb Simon Cropper: On 22/05/12 05:35, Sibylle Koczian wrote: So I suppose you're using Python 2 or that's acceptable for you at least. In this case I'd take a long look at Dabo: http://www.dabodev.com/ That's based on wxPython but easier to use and explicitly made for

append method

2012-05-23 Thread ????????
s=[1,2,3] s.append(5) s [1, 2, 3, 5] s=s.append(5) s print s None why can't s=s.append(5) ,what is the reason?-- http://mail.python.org/mailman/listinfo/python-list

Re: append method

2012-05-23 Thread Jean-Michel Pichavant
wrote: s=[1,2,3] s.append(5) s [1, 2, 3, 5] s=s.append(5) s print s None why can't s=s.append(5) ,what is the reason? Because the append method returns None, not the object. It modifies the object in place, and does not create any copy. You can still write s = s + [5] if you

Re: escaping/encoding/formatting in python

2012-05-23 Thread John Nagle
On 4/5/2012 10:10 PM, Steve Howell wrote: On Apr 5, 9:59 pm, rusirustompm...@gmail.com wrote: On Apr 6, 6:56 am, Steve Howellshowel...@yahoo.com wrote: You've one-upped me with 2-to-the-N backspace escaping. Early attempts at UNIX word processing, nroff and troff, suffered from that

Re: append method

2012-05-23 Thread Karl Knechtel
On Wed, May 23, 2012 at 8:23 AM, 水静流深 1248283...@qq.com wrote: s=[1,2,3] s.append(5) s [1, 2, 3, 5] s=s.append(5) s print s None why can't  s=s.append(5)  ,what is the reason? For the same reason that you don't see `[1, 2, 3, 5]` immediately after doing `s.append(5)` the first time

Re: append method

2012-05-23 Thread Emile van Sebille
On 5/23/2012 5:23 AM 水静流深 said... s=[1,2,3] s.append(5) s [1, 2, 3, 5] s=s.append(5) s print s None why can't s=s.append(5) It could, but it doesn't. ,what is the reason? A design decision -- there's currently a mix of methods that return themselves and not. Mostly is

Re: append method

2012-05-23 Thread Dave Angel
On 05/23/2012 03:13 PM, Emile van Sebille wrote: On 5/23/2012 5:23 AM 水静流深 said... s=[1,2,3] s.append(5) s [1, 2, 3, 5] s=s.append(5) s print s None why can't s=s.append(5) It could, but it doesn't. ,what is the reason? A design decision -- there's currently a mix of

Re: append method

2012-05-23 Thread Chris Kaynor
On Wed, May 23, 2012 at 12:42 PM, Dave Angel d...@davea.name wrote: On 05/23/2012 03:13 PM, Emile van Sebille wrote: A design decision -- there's currently a mix of methods that return themselves and not.  Mostly is appears to me that mutables modify in place without returning self and

Question about argparse and namespace

2012-05-23 Thread Kevin Anthony
the documentation says argparse.prase_args creates a new empty namespace, but if i pass it a existing namespace, it seems to append the arguments to the existing namespace An example is if it's part of a class, calling parser.parse_args(namespace=self) doesn't seem to have any ill effects. Is this

Re: Install python 2.6 and python 2.7 on Windows

2012-05-23 Thread Andrew Berg
On 5/23/2012 3:25 PM, Gelonida N wrote: So I just install 2.7 and uncheck this box and I'll keep 2.6 right? Different versions are installed in different locations by default, and if you uncheck that box, the installer will leave file associations alone. -- CPython 3.3.0a3 | Windows NT

Re: Install python 2.6 and python 2.7 on Windows

2012-05-23 Thread Mark Lawrence
On 23/05/2012 21:45, Andrew Berg wrote: On 5/23/2012 3:25 PM, Gelonida N wrote: So I just install 2.7 and uncheck this box and I'll keep 2.6 right? Different versions are installed in different locations by default, and if you uncheck that box, the installer will leave file associations alone.

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Mark Lawrence
On 23/05/2012 11:30, Chris Withers wrote: On 23/05/2012 00:34, Dan Stromberg wrote: I find it more than a little disappointing that the Python Job Board doesn't do latitude and longitude. It's a big missed opportunity. Yes, it's not an identical process from nation to nation, but it's still

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Dan Stromberg
On Wed, May 23, 2012 at 2:27 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Dan Stromberg wrote: On Tue, May 22, 2012 at 3:20 PM, Ben Finney ben+pyt...@benfinney.id.aumailto: ben+python@benfinney.**id.au ben%2bpyt...@benfinney.id.au wrote: Python Recruiter ro...@omniumit.com

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Dan Stromberg
On Wed, May 23, 2012 at 3:30 AM, Chris Withers ch...@python.org wrote: On 23/05/2012 00:34, Dan Stromberg wrote: I find it more than a little disappointing that the Python Job Board doesn't do latitude and longitude. It's a big missed opportunity. Yes, it's not an identical process from

Re: Wish: Allow all log Handlers to accept the level argument

2012-05-23 Thread Fayaz Yusuf Khan
Jean-Michel Pichavant wrote: Meanwhile you can shorten the code this way: root.addHandler(FileHandler('debug.log')) root.handlers[-1].setLevel(DEBUG) Eh? Readability was the aim. -- Fayaz Yusuf Khan Cloud architect, Dexetra SS, India fayaz.yusuf.khan_AT_gmail_DOT_com,

problem loading matlab data with ompc and python

2012-05-23 Thread no1
Hi, we're investigating transitioning our company from matlab to python. We found OMPC as a MATLAB m-file-to Python translator, but we're encountering a problem using the translated code to import MATLAB data structures into Python. For example, when we save data within MATLAB this way: x.a =

A better contextlib.contextmanager

2012-05-23 Thread Michele Simionato
Python 3.2 enhanced contextlib.contextmanager so that it is possible to use a context manager as a decorator. For instance, given the contextmanager factory below @contextmanager def before_after(): print(before) yield print(after) it is possibile to use it to generate decorators:

Python Book for a C Programmer?

2012-05-23 Thread hsaziz
I am trying to join an online class that uses python. I need to brush up on the language quickly. Is there a good book or resource that covers it well but does not have to explain what an if..then..else statement is? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Korean fonts on Python 2.6 (MacOsX)

2012-05-23 Thread 20_feet_tall
I have a problem with the visualization of korean fonts on Python. When I try to type in the characters only squares come out. I have tried to install the CJK codec, the hangul 1.0 codec but still no result. Hoep someone can help me out. -- http://mail.python.org/mailman/listinfo/python-list

[issue4755] Add function to get common path prefix

2012-05-23 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4755 ___ ___ Python-bugs-list

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14884 ___ ___ Python-bugs-list

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: Pure-python implementation: if isinstance(o, (list, tuple)): C implementation: if (PyList_Check(obj) || PyTuple_Check(obj)) This make real difference (!) in my code. So, please change pure-python implementation to: if

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14886 ___ ___ Python-bugs-list

[issue14887] pysetup: unfriendly error message for unknown commands

2012-05-23 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The pysetup3 command gives a fairly unfriendly error message with python traceback when you specify an unknown command: pysetup3 instal Unrecognized action instal Traceback (most recent call last): File

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ab94ed2a8012 by Hynek Schlawack in branch 'default': #14885: Make support.skip_unless_xattr check also tempfile http://hg.python.org/cpython/rev/ab94ed2a8012 -- nosy: +python-dev

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Awesome, thank you for your cooperation! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14885

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14886 ___ ___ Python-bugs-list

[issue14886] json C vs pure-python implementation difference

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What difference does it make? Are you using __instancecheck__ perhaps? -- nosy: +pitrou versions: -Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14886

[issue1191964] asynchronous Subprocess

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Personally, I would factor out the code for Popen.communicate() in to a Communicator class which wraps a Popen object and has a method communicate(input, timeout=None) - (bytes_written, output, error) How would this differ from

[issue14884] Windows Build instruction typo

2012-05-23 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: Here's a new patch that I think addresses both issues. Thanks for your insights. -- Added file: http://bugs.python.org/file25678/setup.patch ___ Python tracker rep...@bugs.python.org

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2012-05-23 Thread Holger Mickler
Holger Mickler holger.mick...@tu-dresden.de added the comment: I just stumbled upon the same problem with Python 2.7.3 on SLES 11 SP1 amd64. Obviously, SuSE puts the needed header file into /usr/include/ncurses/, and one can either create a symlink in /usr/include/ or apply a patch to

[issue12014] str.format parses replacement field incorrectly

2012-05-23 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Ben Wolfson wrote: Maybe, but the last time it went to python-dev (in December) there was little discussion at all, and the patches that exist now worked on the codebase as it existed then. Maybe it's pointless to bring it up on python-dev

[issue14879] invalid docs for subprocess exceptions with shell=True

2012-05-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Heh. Maybe what we ought to do is drop the shell argument and make everyone build their own shell invocations :) Actually, an API refactor where a shell call looks like this might be kind of cool: Popen(shell_cmd('echo magic'))

[issue6721] Locks in python standard library should be sanitized on fork

2012-05-23 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: (1) Good catch. I suspect that this could be mitigated even if we cared about LinuxThreads. I haven't looked, but there's got to be a way to determine if we are a thread or a fork child. Using a generation count would probably work just

[issue12271] Python 2.7.x on IA64 running SLES 11 SP1

2012-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: invalid - stage: committed/rejected - versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12271 ___

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This appears to be 2.7-only: $ ./python -m test.regrtest -M5G -v test_hashlib == CPython 2.7.3+ (2.7:086afe7b61f5, May 23 2012, 15:15:34) [GCC 4.5.2] == Linux-2.6.38.8-desktop-10.mga-x86_64-with-mandrake-1-Official little-endian ==

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file25679/md5_huge.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14888

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14888 ___ ___

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: Can the datagramHandler.host change during execution? If so, the address family of the socket can change. So, we should create a socket for every new message. Check my patch #2. Also I extended socket.create_connection to support UDP.

[issue1191964] asynchronous Subprocess

2012-05-23 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: How would this differ from the normal communicate()? It would block until one of the following occurs: * some data has been written to stdin, * some data has been read from stdout or stderr, or * timeout passes (if timeout is not None).

[issue14855] IPv6 support for logging.handlers

2012-05-23 Thread Yuriy Syrovetskiy
Yuriy Syrovetskiy c...@cblp.su added the comment: test_logging is not broken, but just fails. test test_logging failed -- Traceback (most recent call last): File /home/cblp/my/cpython_default/Lib/test/test_logging.py, line 2903, in test_time self.assertEqual(f.formatTime(r), '1993-04-21

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Does this affect other hash modules?. Why is this not affecting python 3? Patch looks good. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14888

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does this affect other hash modules? I don't know, only md5 seems to have tests for large data. . Why is this not affecting python 3? The _md5 module was apparently rewritten in Python 3. -- ___

[issue14887] pysetup: unfriendly error message for unknown commands

2012-05-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Already reported, fixed in distutils2 and to be sideported to packaging soon. -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - Don't print traceback for unrecognized actions,

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: If you pass a valid PyUnicodeObject into PyUnicode_AsObject(), it incref's the original object and returns it. If you pass a valid PyBytesObject into PyBytes_AsObject()... it fails. I assert that in the PyBytes_AsObject() should behave

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14889 ___ ___ Python-bugs-list mailing list

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Nitpicking: the drop down (in both VC++ 2008 2010 express) is named Solution Configurations [note the 's' in the end] But this name does now appear anywhere - only if you hover on the dropbox. I don't mind either way - either leave it what it

[issue14884] Windows Build instruction typo

2012-05-23 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: @ Eli - Sorry about that. I just went with Brian's wording on that. I didn't realize it was plural. My experience with Visual Studio is limited, although I hope to rectify that at some point. Anyway, I corrected the patch and attached

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: LGTM. Brian, any objections to commit? P.S. Michael: I usually like numbering successive versions of a patch (like setup.1.patch, setup.2.patch, or a similar scheme) - this makes it easier to refer to more than one version in a discussion

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: The appropriate four line patch. (Six with whitespace.) -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file25682/larry.pybytes_fromobject.identity.1.diff

[issue14884] Windows Build instruction typo

2012-05-23 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Looks good to me. Feel free to commit it, Eli. -- assignee: brian.curtin - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14884 ___

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I suppose you are referring to PyUnicode_FromObject() and PyBytes_FromObject()... And by it fails did you simply mean it fails to return the same object? -- nosy: +amaury.forgeotdarc ___

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: 1) Yes, whoopsies. It's late. 2) It fails, as in, it returns NULL. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14889 ___

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread stw
stw sil...@googlemail.com added the comment: I had a thought about untracking tuples. If a tuple contains only immutable objects (atomics and tuples of atomics etc), then it should be untracked. Once untracked, it will never need to be tracked again since the tuple is immutable. If a tuple

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: 2) It fails, as in, it returns NULL. It's not my experience. Do you have an example? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14889

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, the patch is nice but the PyObject_CheckBuffer(...) part should have succeeded, so it's a bit mysterious why it doesn't. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I had a thought about untracking tuples. If a tuple contains only immutable objects (atomics and tuples of atomics etc), then it should be untracked. Once untracked, it will never need to be tracked again since the tuple is immutable. If a

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can't reproduce this issue in my 64 bit machines, neither in Solaris neither in Ubuntu. I guess the assertion can be fooled by compiler optimizacions. You should compile in debug mode. -- ___

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I can't reproduce this issue in my 64 bit machines, neither in Solaris neither in Ubuntu. I guess the assertion can be fooled by compiler optimizacions. As a consequence, I can't check other hashes functions. Antoine, can you reproduce it doing

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: FTR a few of us would prefer to kill TESTFN and use only tempfile in tests. It’s cleaner. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14885

[issue14889] PyBytes_FromObject(bytes_object) fails

2012-05-23 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14889 ___ ___ Python-bugs-list mailing list

[issue14890] typo in difflib

2012-05-23 Thread ninsen
Changes by ninsen jcsla...@gmail.com: -- components: Library (Lib) files: mywork.patch keywords: patch nosy: ninsen priority: normal severity: normal status: open title: typo in difflib type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file25683/mywork.patch

[issue14890] typo in difflib

2012-05-23 Thread ninsen
Changes by ninsen jcsla...@gmail.com: -- type: behavior - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14890 ___ ___ Python-bugs-list mailing

[issue14884] Windows Build instruction typo

2012-05-23 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: Thanks for the tip Eli. I'll try to remember to number my patches next time. This is my first time doing this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14884

[issue14890] typo in difflib

2012-05-23 Thread ninsen
New submission from ninsen jcsla...@gmail.com: This is my first patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14890 ___ ___

[issue14885] shutil tests, test_copy2_xattr and test_copyxattr, fail

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: It _does_ seem to me like cruft. Ditching it won’t be easy though: $ grep -PR TESTFN Lib/test | wc -l 1390 But it’s good to know to actively avoid using TESTFN whenever possible. I usually adapted myself to module style till now. --

[issue14891] An error in bindings of closures

2012-05-23 Thread Frederick Ross
New submission from Frederick Ross madhad...@gmail.com: The following code throws an UnboundLocal error: def f(x): def g(): x = x + a return x return g() f(b) -- components: None messages: 161432 nosy: Frederick.Ross priority: normal severity: normal status:

[issue14890] typo in difflib

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Hmmm, iff could be also meant as a abbreviation for “if and only if: http://en.wikipedia.org/wiki/Iff IIRC is the usage of such abbreviations rather frowned upon though. -- nosy: +hynek ___ Python

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread stw
stw sil...@googlemail.com added the comment: I had a thought about untracking tuples. If a tuple contains only immutable objects (atomics and tuples of atomics etc), then it should be untracked. Once untracked, it will never need to be tracked again since the tuple is immutable. If a tuple

[issue14890] typo in difflib

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Yeah, I'm pretty sure it means if and only if. -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14890 ___

[issue14775] Dict untracking can result in quadratic dict build-up

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mercredi 23 mai 2012 à 16:22 +, stw a écrit : So the tuple is linked-in to the garbage collection list before its contents are constructed? It is. It typically happens when you do (in C code): PyObject *my_tuple = PyTuple_New(2); /*

[issue14891] An error in bindings of closures

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is expected behavior: http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: sha1 fails the same way. Same error. Just clone the test to show it. Please, correct sha1 too and add a test for it :). sha224, sha256, sha384 and sha512 seems OK. -- ___ Python tracker

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: sha224, sha256, sha384 and sha512 are not failing because they are missing the Py_SAFE_DOWNCAST safety net completely. So I would tell that we have an issue here :). -- ___ Python tracker

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Same can be said about Python 3 hash modules: they are not using the sanity check, so they work. Maybe the real question should be if the sanity check really makes sense at all. If not, remove everywhere (the calculated md5 with no checks looks

[issue14888] _md5 module crashes on large data

2012-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: sha1 fails the same way. Same error. Just clone the test to show it. Please, correct sha1 too and add a test for it :). Well, do you want to provide an updated patch? -- ___ Python tracker

[issue14891] An error in bindings of closures

2012-05-23 Thread Frederick Ross
Frederick Ross madhad...@gmail.com added the comment: Assignment in Python creates a new binding. Whether the new binding shadows or replaces an old binding should be irrelevant. This behavior is inconsistent with that. Please fix expectations, and then Python interpreter. --

[issue14668] Document the path option in the Windows installer

2012-05-23 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: Looking at 3.3.rst, it looks like we could just add the blurb to the end of the file in the Other issues section. The windows.rst file is potentially more complicated as I assume we need to leave the directions for adding the path for

[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2012-05-23 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Ok. Closing as wontfix then. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13445

[issue14884] Windows Build instruction typo

2012-05-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e55c65fc3cb4 by Eli Bendersky in branch 'default': Issue #14884: fixed a couple of typos in the Windows build instructions. Patch by Michael Driscoll http://hg.python.org/devguide/rev/e55c65fc3cb4 -- nosy:

[issue13934] sqlite3 test typo

2012-05-23 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: poq: I see you have submitted a few other patches to the tracker, too. For us to be able to use your patches, you should sign the PSF Contributor Agreement as described here: http://www.python.org/psf/contrib/. --

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Done (with a tiny fix inserting parens to avoid ambiguity in a sentence). Thanks for the contribution! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___

[issue14862] os.__all__ is missing some names

2012-05-23 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- title: fdopen not listed in __all__ of os.py - os.__all__ is missing some names ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14862 ___

[issue14862] os.__all__ is missing some names

2012-05-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 352147bbefdb by Petri Lehtinen in branch 'default': #14862: Add missing names to os.__all__ http://hg.python.org/cpython/rev/352147bbefdb -- nosy: +python-dev ___ Python

[issue14862] os.__all__ is missing some names

2012-05-23 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14862 ___

[issue14891] An error in bindings of closures

2012-05-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: What fails here is the evaluation of x, not the assignment! You are right concerning the assignment, the outer definition has no effect at all. The very presence of x = in the function code turns x into a local variable for the

[issue14892] 'import readline' fails when launching with ''

2012-05-23 Thread olivier-mattelaer
New submission from olivier-mattelaer olivier.mattel...@uclouvain.be: Hi Everyone, I have found a strange behavior of the import command for the routine readline: The commands (put in the file test.py) is simply: import readline print readline.__doc__ If I run this programs normally (i.e.

[issue14893] Tutorial: Add function annotation example to function tutorial

2012-05-23 Thread Zachary Ware
New submission from Zachary Ware zachary.w...@gmail.com: A couple months ago, I had never before heard of function annotations and came across a function that had them (I don't remember where or what it was). I spent a fair bit of time searching fruitlessly to figure out what the heck that -

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-23 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0be296605165 by Sandro Tosi in branch 'default': Issue #14814: improve docstrings and arguments value handling, as per Terry J. Reedy's comments http://hg.python.org/cpython/rev/0be296605165 --

[issue14894] distutils.LooseVersion fails to compare number and a word

2012-05-23 Thread Natalia
New submission from Natalia natalia.frydr...@gmail.com: $ python2.7 -c 'from distutils.version import LooseVersion as V; print V(a) V(1)' True $ python3.2 -c 'from distutils.version import LooseVersion as V; print(V(a) V(b))' False $ python3.2 -c 'from distutils.version import LooseVersion

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-23 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: A small bikeshed as it’s a new module: - there’s only one free line before _collapse_addresses_recursive, _get_prefix_length and _count_righthand_zero_bits. - class IPv6Address docstring has a \n too much - ip_interface, v4_int_to_packed,

  1   2   >