Re: PyWart: Language missing maximum constant of numeric types!

2012-02-25 Thread Wolfgang Meiners
Am 24.02.12 14:37, schrieb Rick Johnson: I get sick and tired of doing this!!! if maxlength == UNLIMITED: allow_passage() elif len(string) maxlength: deny_passage() What Python needs is some constant that can be compared to ANY numeric type and that constant will ALWAYS be

Python packaging usabilty (distutils) - automatic downloading required packages

2012-02-25 Thread XLiIV
There is many packaging solutions for python. I was confused about that but it's nothing. I had to pick one of them. I picked distutils because it's part of standard python since 3.3, am i right? My goal is to write setup.py with this feature: 'download required package if not installed already,

Re: Python packaging usabilty (distutils) - automatic downloading required packages

2012-02-25 Thread Stefan Behnel
XLiIV, 25.02.2012 15:47: There is many packaging solutions for python. I was confused about that but it's nothing. I had to pick one of them. I picked distutils because it's part of standard python since 3.3, am i right? Distutils has been part of Python's stdlib for ages. My goal is to

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-25 Thread Serhiy Storchaka
25.02.12 02:37, MRAB написав(ла): We already have arbitrarily long ints, so there could be a special infinite int singleton (actually, 2 of them, one positive, the other negative). float('inf') and float('-inf'). -- http://mail.python.org/mailman/listinfo/python-list

importing python modules from java

2012-02-25 Thread Jeffrey Hubbard
Hello, I have written a c++ library which embeds python functions as described in http://docs.python.org/extending/embedding.html. Everything works fine, I can import and use modules such as numpy by calling PyImport_ImportModule(...). Now I wrapped this c++ library for java using SWIG.

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-25 Thread MRAB
On 25/02/2012 08:18, Wolfgang Meiners wrote: Am 24.02.12 14:37, schrieb Rick Johnson: I get sick and tired of doing this!!! if maxlength == UNLIMITED: allow_passage() elif len(string) maxlength: deny_passage() What Python needs is some constant that can be compared to ANY

[RELEASED] Release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3

2012-02-25 Thread Benjamin Peterson
We're pleased to announce the immediate availability of release candidates for Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 . The main impetus for these releases is fixing a security issue in Python's hash based types, dict and set, as described below. Python 2.7.3 and 3.2.3 include the security patch

Re: Python math is off by .000000000000045

2012-02-25 Thread Tobiah
For every floating point number there is a corresponding real number, but 0% of real numbers can be represented exactly by floating point numbers. It seems to me that there are a great many real numbers that can be represented exactly by floating point numbers. The number 1 is an example.

Re: Python math is off by .000000000000045

2012-02-25 Thread Tim Wintle
On Sat, 2012-02-25 at 09:56 -0800, Tobiah wrote: For every floating point number there is a corresponding real number, but 0% of real numbers can be represented exactly by floating point numbers. It seems to me that there are a great many real numbers that can be represented exactly

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-25 Thread Rick Johnson
On Feb 24, 6:35 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: I understand that a Python integer can run to infinity.  Quite how the illustrious rr manages to test for the length of a string that's already used all of the memory on his system has baffled me, When did i ever say that i

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-25 Thread Rick Johnson
On Feb 25, 11:54 am, MRAB pyt...@mrabarnett.plus.com wrote: [...] That should be: if maxlength is not None and len(string) = maxlength: Using imaginary infinity values defiles the intuitive nature of your code. What is more intuitive? def confine_length(string, maxlength=INFINITY): if

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-25 Thread Rick Johnson
On Feb 24, 7:50 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: But it would also be rejected, and rightly so, as unnecessary complexity for the int type. There are already Decimal and float infinities, just use one of them. Sure there are float INFINITIES that work fine for

Re: Python math is off by .000000000000045

2012-02-25 Thread Terry Reedy
On 2/25/2012 12:56 PM, Tobiah wrote: It seems to me that there are a great many real numbers that can be represented exactly by floating point numbers. The number 1 is an example. Binary floats can represent and integer and any fraction with a denominator of 2**n within certain ranges. For

Re: Python math is off by .000000000000045

2012-02-25 Thread jmfauth
(2.0).hex() '0x1.0p+1' (4.0).hex() '0x1.0p+2' (1.5).hex() '0x1.8p+0' (1.1).hex() '0x1.1999ap+0' jmf -- http://mail.python.org/mailman/listinfo/python-list

Udacity CS 101

2012-02-25 Thread Josh English
Has anyone here looked at Udacity's open CS101 course (http://www.udacity.com/overview/Course/cs101) that started this week? The goal of the seven week course is to build a web crawler. So far, I'm not impressed with the speed or content of the course. I was wondering what anyone here may

Re: asynchronous downloading

2012-02-25 Thread Richard Baron Penman
I read through the python-dev archives and found the fundamental problem is no one maintains asnycore / asynchat. Well, actually I do/did. ah OK. I had read this comment from a few years back: IIRC, there was a threat to remove asyncore because there were no maintainers, no one was fixing

Re: Python math is off by .000000000000045

2012-02-25 Thread Steven D'Aprano
On Sat, 25 Feb 2012 13:25:37 -0800, jmfauth wrote: (2.0).hex() '0x1.0p+1' (4.0).hex() '0x1.0p+2' (1.5).hex() '0x1.8p+0' (1.1).hex() '0x1.1999ap+0' jmf What's your point? I'm afraid my crystal ball is out of order and I have no idea whether

webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Leo
Hello, On Lion and with its stock python version 2.7.1 r271:86832, webbrowser.open('file://localhost/nonexistingfile') always opens up Safari. Is this a bug? Leo -- http://mail.python.org/mailman/listinfo/python-list

Re: Python math is off by .000000000000045

2012-02-25 Thread Devin Jeanpierre
On Sat, Feb 25, 2012 at 2:08 PM, Tim Wintle tim.win...@teamrubber.com wrote: It seems to me that there  are a great many real numbers that can be represented exactly by floating point numbers.  The number 1 is an example. I suppose that if you divide that count by the infinite count of

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Anthony Nguyen
If Safari is your default browser, Python will open the address in Safari. From the Python docs: webbrowser.open(url[, new=0[, autoraise=True]]) Display url using the default browser. If new is 0, the url is opened in the same browser window if possible. If new is 1, a new browser window is

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Steven D'Aprano
On Sun, 26 Feb 2012 09:33:15 +0800, Leo wrote: Hello, On Lion and with its stock python version 2.7.1 r271:86832, webbrowser.open('file://localhost/nonexistingfile') always opens up Safari. Is this a bug? What part of this do you think is the bug, and why? What part of the behaviour

Re: Python math is off by .000000000000045

2012-02-25 Thread Terry Reedy
On 2/25/2012 9:49 PM, Devin Jeanpierre wrote: What this boils down to is to say that, basically by definition, the set of numbers representable in some finite number of binary digits is countable (just count up in binary value). But the whole of the real numbers are uncountable. The hard part

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Leo
On 2012-02-26 11:36 +0800, Steven D'Aprano wrote: What part of this do you think is the bug, and why? What part of the behaviour actually experienced contradicts the documented behaviour of webbrowser.open()? http://docs.python.org/library/webbrowser.html If you have the default browser

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Cameron Simpson
On 26Feb2012 14:23, Leo sdl@gmail.com wrote: | On 2012-02-26 11:36 +0800, Steven D'Aprano wrote: | What part of this do you think is the bug, and why? What part of the | behaviour actually experienced contradicts the documented behaviour of | webbrowser.open()? | |

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Steven D'Aprano
On Sun, 26 Feb 2012 14:23:43 +0800, Leo wrote: On 2012-02-26 11:36 +0800, Steven D'Aprano wrote: What part of this do you think is the bug, and why? What part of the behaviour actually experienced contradicts the documented behaviour of webbrowser.open()?

Re: webbrowser.open always opens up Safari on Lion

2012-02-25 Thread Leo
On 2012-02-26 15:04 +0800, Cameron Simpson wrote: On the suppostion that the default browser is actually multiple settings, one for each of several URL (URI?) schemes, what do these two shell commands do for you? From a shell prompt in a Terminal: open file://localhost/nonexistingfile and

[issue14097] Improve the introduction page of the tutorial

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Be careful with whitespace changes. Here I agree with you and disagree with the PEP 8 (specifically where it says that hypot2 = x*x + y*y and c = (a+b) * (a-b) are wrong). In -3+1j*3 +3 + 1j * 3 I intentionally added spaces

[issue12119] distutils and python -B

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I thought about this and am not sure about my position. I am 100% convinced that what packaging does is the right thing. Modules like py_compile, compileall (in 3.2+) and packaging are able to compile with or without optimization depending on

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Hi Éric, some questions: 1)if test_tools is going to be the test for all the Tools (at least until it grows to much), shoudn't be be module doc something like “””Tests for scripts in Tools/**“”” 2)is the SkipTest “reindent”

[issue14112] tutorial intro talks of shallow copy concept without explanation

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Even if they know the meaning of shallow (which is not a really common word AFAICT), they might not know what it means in this context. Adding an entry to glossary might be a better solution. In this context I think the best solution

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: There are some minor errors in your v3 patch. I've attached a v4 that fixes them (as usual, tested on Windows and Linux): - s/special/sep/ in glob_to_re() - Add missing l(.) to filenames in test_process_template under 'graft d' -

[issue13340] list.index does not accept None as start or stop

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- priority: high - normal stage: committed/rejected - commit review versions: -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13340

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2012-02-25 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: ZSH can just present it in a prettier way, and also includes slightly more info (the short explanations, ordering). could print out enough information for both systems. Exactly. ZSH can use bash completion, but then it doesn't display the

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: - test_glob_to_re() was doing two levels of escaping (r'\' - r'') for its expected output when it should only do one (r'\' - r'\\'). Fix merged. I don’t fully understand why one place needs two escapes and the others just one. I

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks a bunch. I’ll offer you cookies when we meet :) Fix merged. I don’t fully understand why one place needs two escapes and the others just one. The places that use one level of escaping are the ones that deal with the regex string

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: [Éric] New docstring: Tests for scripts in the Tools directory. This file contains regression tests for some of the scripts found in the Tools directory of a Python checkout or tarball, such as reindent.py. When I commit I’ll

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: if test_tools is going to be the test for all the Tools (at least until it grows to much), Seriously, we don’t care about the size of test files. test_argparse.py is 4777 lines long :) shoudn't be be module doc something like “””Tests for

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Fix merged. I don’t fully understand why one place needs two escapes and the others just one. The places that use one level of escaping are the ones that deal with the regex string directly. In glob_to_re() itself, the string you're

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Sorry, my fault: I meant Test for Tools instead of Tests for reindent.py. (Im not talking about the skip message but the test documentation or the first line 0,0...) -- ___ Python

[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll look into this when I get to set up a Windows VM and learn more about wininst. -- assignee: tarek - eric.araujo components: +Distutils2 nosy: +alexis, eric.araujo stage: patch review - test needed versions: +3rd party, Python 3.3

[issue14102] argparse: add ability to create a man page

2012-02-25 Thread Andi Albrecht
Changes by Andi Albrecht albrecht.a...@gmail.com: -- nosy: +andialbrecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Martin, Mark, can either of you comment on this? -- nosy: +eric.araujo, loewis, mhammond -terry.reedy versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8171 ___ ___ Python-bugs-list

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: The ARM Ubuntu 3.x buildbot often fails test_dbm: http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.x/builds/364/steps/test/logs/stdio

[issue14076] sqlite3 module ignores placeholers in CREATE TRIGGER code

2012-02-25 Thread Christian Schilling
Changes by Christian Schilling initcr...@googlemail.com: -- nosy: +Christian.Schilling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14076 ___ ___

[issue14102] argparse: add ability to create a man page

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Andi, the author of the blog post, will work on a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___

[issue14121] add a convenience C-API function for unpacking iterables

2012-02-25 Thread Stefan Behnel
New submission from Stefan Behnel sco...@users.sourceforge.net: In the context of better interfacing of PyPy with Cython, it appears that simple looking things like PyTuple_GET_ITEM() are often rather involved in PyPy's C-API implementation. However, since functions/macros like these are used

[issue14112] tutorial intro talks of shallow copy concept without explanation

2012-02-25 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: On 25/02/2012 08:09, Ezio Melotti wrote: Even if they know the meaning of shallow (which is not a really common word AFAICT) FWIW it's pretty much the only way of saying what it means. I've no idea how many people used it last year or

[issue14112] tutorial intro talks of shallow copy concept without explanation

2012-02-25 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: +1 for Éric Araujo's idea. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14112 ___

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For the record: this issue blocks 3.2 as well. -- nosy: +benjamin.peterson, georg.brandl versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue14081] Allow maxsplit argument to str.split() to be passed as a keyword argument

2012-02-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ezio: I spotted an extraneous '[' hanging around in the updated doc signature for split, but otherwise looked fine. Éric: you're probably right, but I was sending them a note to suggest a simpler alternative, only to discover that the obvious

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: 18bbfed9aafa is the changeset that introduced the copy button. Maybe the part in the extrahead (in Doc/tools/sphinxext/layout.html, see also first chunk of the diff) block shouldn't be included in chm? --

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I'd tend to always copy xattrs – it seems that's what the user would expect to happen. A new parameter to _forbid_ it might make sense. However, I feel that there are already enough parameters in place. :-/ --

[issue14116] Lock.__enter__() method returns True instead of self

2012-02-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: with Lock() as lock: doesn't make any sense - you need to share the lock with other threads or code for it be useful, which means you can't create it inline in the with statement header. Instead, you have to store it somewhere else (usually

[issue14112] tutorial intro talks of shallow copy concept without explanation

2012-02-25 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: On Sat, Feb 25, 2012 at 09:35, Éric Araujo rep...@bugs.python.org wrote: What about this:  All slice operations return a new list containing the requested elements.   This -means that the following slice returns a shallow copy of

[issue14112] tutorial intro talks of shallow copy concept without explanation

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW it's pretty much the only way of saying what it means. However, even using not deep here would still be ambiguous. What's a deep copy? What's a non-deep copy? Using shallow might be a problem, but the real problem is that

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: JQuery and the other scripts (like sidebar.js) are part of Sphinx, whereas the copy button is something that was added to our instances only, by changing the template. -- ___ Python tracker

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2012-02-25 Thread Thomas Leonard
Thomas Leonard tal...@gmail.com added the comment: Just to add a couple of data points to argue in favour of a secure-by-default behaviour: 0install.net: http://secunia.com/advisories/47935 (spoofing attack due to certificate names not being validated) Mozilla is recommending people avoid

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'm also in favor of adding extended attributes to copy2: Similar to shutil.copy(), but metadata is copied as well extended attributes are metadata. And there are already too many copy functions... --

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: If nobody objects, I'd cook up a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14082 ___

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm -1 on splitting the file. This is C, splitting it up will make it *harder* to understand, as you have to search across multiple files to find anything. If you want to make it more readable, I propose that you a) put a comment in the top

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2012-02-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yes, this is a known bug (Issue 11874). Patches welcome. -- resolution: - duplicate superseder: - argparse assertion failure with brackets in metavars ___ Python tracker

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Be sure to notify me when you have committed a fix, as changes made now in the 3.2 branch will *not* show up in the final release. -- ___ Python tracker rep...@bugs.python.org

[issue14074] argparse allows nargs1 for positional arguments but doesn't allow metavar to be a tuple

2012-02-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Looks like the problem is that _format_action_invocation is not being as careful with the different possibilities for metavar as _format_args is. Patches welcome! -- ___ Python tracker

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com added the comment: See https://bitbucket.org/valhallasw/cpython/src/ee0d2beaf6a4/Modules/_pickle.c for a rough structure overview - which maybe also explains why I thought restructuring made sense in the first place. However, I'm not the person who has to

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev

[issue5231] Change format of a memoryview

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev

[issue8305] memoview[0] creates an invalid view if ndim != 1

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2012-02-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: +1 to Antoine’s proposal of removal. Agreed. Here's a patch. Do note, however, that it's a behavior change: the address_string() method is documented to return a resolved hostname (when possible). -- keywords: +needs review

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Also failing on 3.2: http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.2/builds/227/steps/test/logs/stdio -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue13491] Fixes for sqlite3 doc

2012-02-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Both patches look good to me. The text_factory example is OK on 2.7 because the OptimizedUnicode flag works correctly there. -- ___ Python tracker rep...@bugs.python.org

[issue12801] C realpath not used by os.path.realpath

2012-02-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: - os.realpath() uses canonicalize_file_name() if available, or use realpath() with a buffer of MAXPATHLEN bytes MAXPATHLEN is not necessarily defined (e.g. on the Hurd): if it's not defined, it is set either to MAX_PATH (if it's

[issue14113] Failure in test_strptime on Windows

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Also failing on the Windows 7 bot: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/4453/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue14113] Failure in test_strptime on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d5aa731bae5e by Nadeem Vawda in branch 'default': Use assertEqual in test_strptime for better failure messages (cf. issue #14113). http://hg.python.org/cpython/rev/d5aa731bae5e -- nosy: +python-dev

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I've trouble debugging this: Is the new version of importlib already being used? I'm stepping through the offending pep3147 import, which should correspond to this line in test_dot.py: m = __import__('pep3147') Until here

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14080 ___ ___

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sounds good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14082 ___ ___ Python-bugs-list

[issue13491] Fixes for sqlite3 doc

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13491 ___ ___

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll commit the 2.7 patch, see how buildbots fare, then commit the 3.2 version (also attached in case someone wants to test it). -- Added file: http://bugs.python.org/file24638/filelist-regex-bugs-3.2.diff

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is this expected? Looks rather strange to me, it means we have importlib importers on sys.path_importer_cache. Still, the fact that path == '.' above (in _FileFinder as well as find_module_path) makes it difficult to understand the later

[issue14112] tutorial intro talks of shallow copy concept without explanation

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A link to a glossary may be better than a link to the top of the copy module. I wonder if we could use glossary markup in the copy module docs instead of adding terms to the global glossary. Tim: I like “undeep”, it’s used to describe a

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: 3.2 patch looks good on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6884 ___

[issue9691] sdist includes files that are not in MANIFEST.in

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- nosy: +python-dev

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- ___

[issue14004] Distutils filelist selects too many files on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- nosy: +python-dev

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- nosy: +python-dev

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 020364d3e359 by Éric Araujo in branch '2.7': Add test file for scripts in Tools (#13447). http://hg.python.org/cpython/rev/020364d3e359 -- nosy: +python-dev ___ Python

[issue14004] Distutils filelist selects too many files on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___

[issue9691] sdist includes files that are not in MANIFEST.in

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___

[issue13637] binascii.a2b_* functions could accept unicode strings

2012-02-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Discussion resolved in favor of patch. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13637 ___

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641 ___ ___

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1531415 ___ ___ Python-bugs-list

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Mark. You’re the author of Tools/parser/test_unparse.py; any objection if I move it to the new Lib/test/test_tools.py file, so that all tests for Tools are in one place? -- nosy: +mark.dickinson

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: OK, I stepped in parallel through the non-failing and the failing versions. The first divergence is when _path_mtime is compared. The comparison in the good version returns 'False', the one in the bad version returns 'True': Good version

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: So I think the good version proceeds to refresh the _path_cache: _FileFinder(_relaxed_path_cache={'pep3147'}, packages=[('.py', type at remote 0xaaff60), ('.pyc', type at remote 0xab02e0)], _path_mtime=float at remote 0xa66120,

  1   2   >