[issue24220] ast.Call signature changed

2015-05-18 Thread Carol Willing
Carol Willing added the comment: Thanks Berker for pointing out the WIP patch for issue 16544. Issue 16544 seems a better place than this issue for addressing the ast documentation. There does not seem to be any additional action items left on this issue so I recommend closing this issue and

Flask Post returning error

2015-05-18 Thread subhabrata . banerji
Dear Group, I am trying to practice Flask and trying to correspond with it with through requests. I am being able to DELETE, GET. But as I am doing POST it is not posting the data rather returning null. I tried to search Flask and requests tutorials but did not get much. I am newly

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - yselivanov nosy: +Arfrever priority: normal - release blocker type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Stefan Krah
Stefan Krah added the comment: I mean it's clearer to have: result = long_compare(self, other); return Py_cmp_to_bool(result, op); than: result = long_compare(self, other); Py_RETURN_RICHCOMPARE(result, 0, op); This is because in other places, like the proposed use case in

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Just a suggestion: urlencode already has 5 parameters. We can make quote_via a keyword-only parameter. -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Petr Viktorin
Petr Viktorin added the comment: Conceptually there's a distinction between the two cases, but you can implement one in terms of the other, so I don't think it's worth adding two functions/macros here. So let's pick the better API. Py_cmp_to_bool is better if you already have a cmp-style

[issue24227] IndentationError caused by async / await changes in parser

2015-05-18 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24227 ___ ___

[issue24227] IndentationError caused by async / await changes in parser

2015-05-18 Thread Zachary Ware
Zachary Ware added the comment: Duplicate of #24226. -- nosy: +zach.ware resolution: - duplicate stage: - resolved status: open - closed superseder: - [3.5 Regression] unable to byte-compile the attached IN.py ___ Python tracker

[issue24091] Use after free in Element.extend (1)

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34523e53a342 by Serhiy Storchaka in branch '2.7': Issue #24091: Fixed various crashes in corner cases in cElementTree. https://hg.python.org/cpython/rev/34523e53a342 New changeset 157c4afca186 by Serhiy Storchaka in branch '3.4': Issue #24091:

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: Added file: http://bugs.python.org/file39418/IN.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Matthias Klose added the comment: looks like a parser issue: $ for i in $(seq 200); do echo def f$i(x): return (x) foo.py; done $ python3.5 -m py_compile foo.py Sorry: IndentationError: too many levels of indentation (foo.py, line 100) $ for i in $(seq 200); do echo def f$i(x):bar.py; echo

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2015-05-18 Thread Steve Dower
Steve Dower added the comment: Use !='true' rather than =='', but otherwise it's good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20035 ___

[issue16544] Add external link to ast docs

2015-05-18 Thread Carol Willing
Carol Willing added the comment: Matthias, I've added you to the nosy list for this ast doc enhancements issue. Reference: msg243484 on Issue 24220. -- nosy: +mbussonn, willingc versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24227] IndentationError caused by async / await changes in parser

2015-05-18 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Revision eeeb666a5365 causes IndentationError: too many levels of indentation sometimes, e.g. in regenerated IN.py module (e.g. Lib/plat-linux/IN.py). $ ./python -c 'import IN' Traceback (most recent call last): File string, line 1, in

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-05-18 Thread R. David Murray
R. David Murray added the comment: I don't see any particular motivation to make it keyword only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___

[issue24102] Multiple type confusions in unicode error handlers

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 547bc11e3357 by Serhiy Storchaka in branch '2.7': Issue #24102: Fixed exception type checking in standard error handlers. https://hg.python.org/cpython/rev/547bc11e3357 New changeset 68eaa9409818 by Serhiy Storchaka in branch '3.4': Issue #24102:

Re: Python 3: yum is dead, long live dnf!

2015-05-18 Thread Mark Lawrence
On 18/05/2015 12:49, Steven D'Aprano wrote: On Mon, 18 May 2015 08:18 pm, alister wrote: On Mon, 18 May 2015 15:21:05 +1000, Steven D'Aprano wrote: As part of Red Hat's move to Python 3, yum is officially deprecated and replaced by dnf:

Re: Python 3: yum is dead, long live dnf!

2015-05-18 Thread alister
On Mon, 18 May 2015 15:08:07 +0300, Mihamina Rakotomandimby wrote: On 05/18/2015 01:28 PM, alister wrote: Which may be fitting it just waisted 10 min downloading everything before discovering I did not have permission (forgot to sudo) I think if you resume the transaction, downloaded things

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.05.2015 15:46, Stefan Krah wrote: Stefan Krah added the comment: The problem with this macro is that most of the time it takes the standard cmp return value {-1,0,1} and converts that into a bool. For this use case, it might be more

Re: Rule of order for dot operators?

2015-05-18 Thread Thomas Rachel
Am 16.05.2015 um 21:20 schrieb C.D. Reimer: Does python perform the dot operators from left to right or according to a rule of order (i.e., multiplication/division before add/subtract)? In this case, it does the only thing it can do: title = slug.replace('-',' ').title() is performed as *

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
New submission from Matthias Klose: seen while byte-compiling the attached IN.py on x86_64-linux-gnu. $ python3.5 -m py_compile IN.py Sorry: IndentationError: too many levels of indentation (IN.py, line 806) the very same IN.py is accepted by 3.4. -- components: Library (Lib)

[issue24102] Multiple type confusions in unicode error handlers

2015-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24102 ___ ___

[issue24102] Multiple type confusions in unicode error handlers

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Greg Ewing suggested to use PyObject_TypeCheck (http://permalink.gmane.org/gmane.comp.python.devel/153216). -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker

[issue16544] Add external link to ast docs

2015-05-18 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16544 ___ ___

Re: Survey -- Move To Trash function in Python?

2015-05-18 Thread Mark Lawrence
On 18/05/2015 11:31, iMath wrote: 在 2015年5月14日星期四 UTC+8下午11:45:38,Steven D'Aprano写道: I'd like to do a little survey, and get a quick show of hands. How many people have written GUI or text-based applications or scripts where a Move file to trash function would be useful? Would you like to see

Re: Python 3: yum is dead, long live dnf!

2015-05-18 Thread Mihamina Rakotomandimby
On 05/18/2015 01:28 PM, alister wrote: Which may be fitting it just waisted 10 min downloading everything before discovering I did not have permission (forgot to sudo) I think if you resume the transaction, downloaded things are locally cached: aren't they? --

[issue24220] ast.Call signature changed

2015-05-18 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: There is an open issue for that: issue 16544. I've talked to Thomas about merging greentreesnakes to the AST documentation last year and already have a WIP patch Ah, Thanks for the link, I see if I can rotate my chair 120deg clockwise and give a

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Stefan Krah
Stefan Krah added the comment: The problem with this macro is that most of the time it takes the standard cmp return value {-1,0,1} and converts that into a bool. For this use case, it might be more appropriate to use a static inline function Py_cmp_to_bool(). To put it differently, the macro

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: I'm not sure. This is why I'm proposing asking on python-dev -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___

[issue24220] ast.Call signature changed

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Matthias. I can talk to Thomas Kluyver tomorrow about merging green tree snake into the devguide, devguide isn't the correct place for such documentation. or maybe into ast docs. Would that be useful/more acceptable than linking to

Re: Python 3: yum is dead, long live dnf!

2015-05-18 Thread Mihamina Rakotomandimby
On 05/18/2015 03:08 PM, alister wrote: On Mon, 18 May 2015 15:08:07 +0300, Mihamina Rakotomandimby wrote: On 05/18/2015 01:28 PM, alister wrote: Which may be fitting it just waisted 10 min downloading everything before discovering I did not have permission (forgot to sudo) I think if you

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Matthias Klose added the comment: this seems to be caused by the PEP 492 merge in r95969. -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- components: +Interpreter Core -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___

[issue24221] Clean-up and optimization for heapq siftup() and siftdown()

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps the code will look simpler if introduce the macro _PyList_SWAP_ITEMS(list, i, j). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24221

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Zachary for fixing this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23488 ___ ___

[issue10685] trace does not ignore --ignore-module

2015-05-18 Thread Tom Hines
Tom Hines added the comment: Done. On Sun, May 17, 2015 at 8:42 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the comment: Tom, please sign the PSF Contributor Agreement https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/

[issue24225] IDLE test filenames don't match script filenames.

2015-05-18 Thread Al Sweigart
New submission from Al Sweigart: From the idlelib/idle_test/README.txt file: The idle_test subdirectory should contain a test_xyz.py for each, where 'xyz' is lowercased even if xyz.py is not. However, this means the test file names are inconsistent with the scripts they test. Of the 20

Re: Rule of order for dot operators?

2015-05-18 Thread Chris Angelico
On Mon, May 18, 2015 at 3:50 AM, C.D. Reimer ch...@cdreimer.com wrote: On 5/16/2015 6:45 PM, Steven D'Aprano wrote: On Sun, 17 May 2015 05:40 am, Thomas 'PointedEars' Lahn wrote: C.D. Reimer wrote: Who? Don't be a dick, Thomas. Lots of people use their initials. You use your

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed simplified version. Thank you Vajrasky for your patch. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then what to do with the discrepancy between Python and C implementations (msg238783)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Augie Fackler
New submission from Augie Fackler: Many things in the OS module work with bytestrings for paths in Python 3, but tempfile isn't so happy. It'd be very useful to be able to have the same bytes-in-bytes-out behavior in tempfile as for the os.path.* methods. This is something we're working

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread R. David Murray
R. David Murray added the comment: This should (in theory at least) be something we test in our test suite, so I'm surprised by this result. If you run the test suite do you get any failures? -- nosy: +r.david.murray ___ Python tracker

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Matt Mackall
Matt Mackall added the comment: Another way of putting it is: os.listdir(bytes) - [bytes,...] os.listdir(unicode) - [unicode,...] is the usual pattern, and tempfile isn't following it. -- nosy: +Matt.Mackall ___ Python tracker

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks! Closing the issue. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: I understand now. The problem is that this would be a backward incompatible change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Would you care to supply a patch? The beta deadline is this coming weekend. -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230

[issue10685] trace does not ignore --ignore-module

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: (When replying by email to an email, please remove any quotation, except possibly for a specific line or two. The message already appears about yours on the tracker.) Good. It will take about a week for the * to appear after your name. As the diff is

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Matthew Wedgwood
New submission from Matthew Wedgwood: On Darwin, os.mkdir('/') raises IsADirectory. On Linux, the same call raises FileExistsError. The implementation for os.makedirs() in Python 3.2+ checks only for the latter when evaluating the exists_ok parameter. This causes os.makedirs('/',

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: This change works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: I'm sorry, hit send before I finished thinking. You are saying bytes input are rejected, so yes this could be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Can you explain what you are looking for in more detail? It isn't obvious to me what bytes in bytes out means in the context of the tempfile API. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue16544] Add external link to ast docs

2015-05-18 Thread Thomas Kluyver
Thomas Kluyver added the comment: Here's a simple patch that links to Green Tree Snakes from the ast module docs, using the 'sidebar' directive (that's what the logging module uses to link to tutorials, which seemed analogous). I'm still happy to contribute these docs to CPython if people

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Augie Fackler
Augie Fackler added the comment: Today we're doing something like this: tmpdir = tempfile.mkdtemp('', 'hgtests.', d and d.decode('utf-8')).encode('utf-8') but would rather have tmpdir = tempfile.mkdtemp(b'', b'hgtests.', d) # and now tmpdir is a bytestring containing the path to the tmpdir

Green Tree Snakes - the missing Python AST docs

2015-05-18 Thread Mark Lawrence
I wondered what on earth Green Tree Snakes was referring to until I caught on to the AST part. So for those of you who like diving under the bonnet and don't care about possibly, or even probably, very dirty hands, here's a link. https://greentreesnakes.readthedocs.org/en/latest/nodes.html

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ismail Donmez
Ismail Donmez added the comment: Still a problem with mingw-w64 gcc 5.1 and Python 3.4.3, time to fix this? -- nosy: +cartman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___

Trac 1.1.5 Released

2015-05-18 Thread Ryan Ollos
Trac 1.1.5 Released === Trac 1.1.5 continues the 1.1.x development line leading to 1.2 with some new features and a few not-so-disruptive changes. Note that the 1.1.x releases are stable and tested snapshots of the trunk. They can be seen as sub-milestones on the road towards

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-18 Thread Ethan Furman
Ethan Furman added the comment: I'd rather see an `Executor.filter()` myself, but it's Brian Quinlan's call. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Josh Holland
New submission from Josh Holland: Path objects already have rename() and replace() methods; it would be useful for them also to have a copy() method to simplify that operation. I'll look into putting a patch together this evening. -- components: Library (Lib) messages: 243494 nosy:

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Arfrever, Matthias, Thanks for reporting this issue. It should now be fixed. Please verify that it works for your usecase. -- nosy: +gvanrossum, ncoghlan ___ Python tracker rep...@bugs.python.org

ANN: Bokeh 0.9.0 released

2015-05-18 Thread Damian Avila
Hi all, We are excited to announce the release of version *0.9.0* of Bokeh, an interactive web plotting library for Python... and other languages! This release was focused into allow sophisticated interactions in static plots, a complete rewrite of the User guide and big BokehJS refactoring

[issue24228] Interpreter triggers segmentation fault at the starting

2015-05-18 Thread doz
doz added the comment: I already try to apply patches from http://bugs.python.org/issue22653 . It don't solve problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24228 ___

[issue24228] Interpreter triggers segmentation fault at the starting

2015-05-18 Thread doz
New submission from doz: Hello, Python 3.4.2 triggers a segmentation fault at the starting on my ARM9 platform. Crash occurs also with 3.3. The version 2.7 don't crash and seems to work correctly System is built with buildroot-2015.02 and gcc 4.2.1. Fault is always reproducible.

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb5fcae0cf1f by Yury Selivanov in branch 'default': Issue 24226: Fix parsing of many sequential one-line 'def' statements. https://hg.python.org/cpython/rev/fb5fcae0cf1f -- nosy: +python-dev ___ Python

[issue16991] Add OrderedDict written in C

2015-05-18 Thread Eric Snow
Eric Snow added the comment: Thanks for taking a look, Yury. I'll follow up on the ref leak soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Path objects are immutable, so the copy method is not needed. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24229 ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Paul Moore
Paul Moore added the comment: I presume the copy method is intended as a file copy, not for copying the object. But calling the method copy() is likely to be confusing, precisely as happened here :-) -- nosy: +paul.moore ___ Python tracker

[issue23377] HTTPResponse may drop buffer holding next response

2015-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is this pending a review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23377 ___ ___ Python-bugs-list

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: If copy() has a mandatory argument, it can't really be mixed up with an object-cloning method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24229 ___

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: What's the status on this one? It looks like some review comments need addressing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319 ___

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Ned Deily
Ned Deily added the comment: This appears to be a BSD-ism: I get the same result on FreeBSD 10 as with OS X 10.10. For whatever reason, mkdir('/') returns IsADirectoryError while mkdir('/other/existing/directory') returns FileExistsError. -- nosy: +ned.deily stage: - needs patch

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ralf Schmitt
Ralf Schmitt added the comment: Well, the time to fix this would have been six years ago. The python core developers have shown a disinterest to fix problems with gcc on windows for a rather long time. I wouldn't expect this issue to be fixed. --

[issue22107] tempfile module misinterprets access denied error on Windows

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added os.path.isdir(). Could anybody please run tests on Windows? -- Added file: http://bugs.python.org/file39421/tempfile_bad_tempdir_3.patch ___ Python tracker rep...@bugs.python.org

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Hi David, Please see the attached patch. It doesn't make Signature.bind() exceptions look exactly like system messages, but it's now much closer. -- keywords: +patch Added file: http://bugs.python.org/file39422/sig_exc.patch

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24205 ___ ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: File renaming is simple and usually atomic operation. File copying is complex operation. What memory buffer should be used for copying? What to do with growing files or reading with errors? Should file space be preallocated before copyiong to decrease

[issue24228] Interpreter triggers segmentation fault at the starting

2015-05-18 Thread Ned Deily
Ned Deily added the comment: Try building python with debug on: ./configure --with-pydebug [...] Also, 3.4.2 has been replaced by 3.4.3 which includes the fixes from Issue22653. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue15027] Faster UTF-32 encoding

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. That was copy-pasted old typo. Fixed in 3d5bf6174c4b and bc6ed8360312. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___

Slices time complexity

2015-05-18 Thread Mario Figueiredo
I'd like to understand what I'm being told about slices in https://wiki.python.org/moin/TimeComplexity Particularly, what's a 'del slice' and a 'set slice' and whether this information pertains to both CPython 2.7 and 3.4. From the above link it seems slices work in linear time on all cases. And

[issue24222] Idle 2.7 -c, -r compile with print as function.

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added from __future__ import print_function to 2.7 PyShell when I backported the bugfix of #22420. The use of print rather than write is part of the fix as print is more fault tolerant. -- resolution: - fixed stage: needs patch - resolved status:

[issue24222] Idle 2.7 -c, -r compile with print as function.

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset cebd51686565 by Terry Jan Reedy in branch '2.7': Issue #24222: Fix regression introduced with idlelib/PyShell.py future print https://hg.python.org/cpython/rev/cebd51686565 -- nosy: +python-dev ___

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Ah! That's why our tests don't catch it. Is it limited to '/', or is it any (mounted) mount point? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24231

[issue15027] Faster UTF-32 encoding

2015-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: In Objects/stringlib/codecs.h in 2 comments U+DC800 should be changed into U+D800 (from definition of Py_UNICODE_IS_SURROGATE) or U+DC80 (from result of b\x80.decode(errors=surrogateescape)). --

Re: Slices time complexity

2015-05-18 Thread Chris Angelico
On Tue, May 19, 2015 at 5:23 AM, Mario Figueiredo mar...@gmail.com wrote: From the above link it seems slices work in linear time on all cases. And this really has a big impact on certain operations. For instance, the code below may surprise some people when they realize it doesn't run in

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Ned Deily
Ned Deily added the comment: It doesn't seem to be true for other mount points; the ones I tried raise FileExistsError. I suppose one could dig into the OS sources. I see that none of the FreeBSD or OS X mkdir man pages nor the POSIX 2013 spec document EISDIR as an expected error from

[issue18576] Document test.support.script_helper

2015-05-18 Thread Christie
Christie added the comment: I'm going to take a look at bringing these docs up to date and including the changes from issue24033. -- nosy: +bobcatfish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18576

Re: Slices time complexity

2015-05-18 Thread Mario Figueiredo
On Tue, 19 May 2015 05:36:44 +1000, Chris Angelico ros...@gmail.com wrote: What's the point of optimizing slicing to allow you to use a poor algorithm, instead of fixing your algorithm? Chris, thank you for your input. But the code isn't really the question, is it? It's just an example. It was

Re: Slices time complexity

2015-05-18 Thread Todd
On May 18, 2015 9:26 PM, Mario Figueiredo mar...@gmail.com wrote: I'd like to understand what I'm being told about slices in https://wiki.python.org/moin/TimeComplexity Particularly, what's a 'del slice' and a 'set slice' and whether this information pertains to both CPython 2.7 and 3.4.

[issue24222] Idle 2.7 -c, -r compile with print as function.

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: This trivial patch fixes a regression I introduced in 2.7.9. It would be nice if you could pull it into the .10 release. (I would not ask if it were not a recent regression.) -- nosy: +benjamin.peterson ___

Re: Slices time complexity

2015-05-18 Thread Ian Kelly
On Mon, May 18, 2015 at 1:23 PM, Mario Figueiredo mar...@gmail.com wrote: I'd like to understand what I'm being told about slices in https://wiki.python.org/moin/TimeComplexity Particularly, what's a 'del slice' and a 'set slice' and whether this information pertains to both CPython 2.7 and

Re: Slices time complexity

2015-05-18 Thread Fabien
On 05/18/2015 09:49 PM, Ian Kelly wrote: It may be possible that lists in CPython could be made to share their internal arrays with other lists on a copy-on-write basis, which could allow slicing to be O(1) as long as neither list is modified while the array is being shared. I expect this would

Re: Slices time complexity

2015-05-18 Thread Chris Angelico
On Tue, May 19, 2015 at 5:49 AM, Mario Figueiredo mar...@gmail.com wrote: On Tue, 19 May 2015 05:36:44 +1000, Chris Angelico ros...@gmail.com wrote: What's the point of optimizing slicing to allow you to use a poor algorithm, instead of fixing your algorithm? Chris, thank you for your input.

[issue15376] Refactor the test_runpy walk_package support code into a common location

2015-05-18 Thread Christie
Christie added the comment: @BreamoreBoy, it looks like the next step would be to revisit issue15403 and go through the steps outlined by @ncoghlan. -- nosy: +bobcatfish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15376

Re: Slices time complexity

2015-05-18 Thread Todd
On May 18, 2015 9:56 PM, Fabien fabien.mauss...@gmail.com wrote: On 05/18/2015 09:49 PM, Ian Kelly wrote: It may be possible that lists in CPython could be made to share their internal arrays with other lists on a copy-on-write basis, which could allow slicing to be O(1) as long as neither

[issue24233] Link to getfqdn rather than see above

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Ville. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2015-05-18 Thread Guido van Rossum
New submission from Guido van Rossum: The special methods __complex__ and __bytes__ are not present on the corresponding builtin types. Compare this to __int__ and __float__, which do exist on int and float, respectively. Should we add the eponymous methods to complex and bytes? (This came

[issue22893] Idle: __future__ does not work in startup code.

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Easy test case using -c: \python_d.exe -m idlelib.idle -c from __future__ import division; print(1/2) 0.5 1/2 0 division _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192) Replace -m idlelib.idle with -i to get interactive interpreter and 1/2 is

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: -schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Paul Moore
Paul Moore added the comment: Not at all. Mingw support is important for the scientific community, as I understand it, and I'm willing to help there if I can. That won't be at the cost of other areas I can contribute to, but I consider packaging as much my area of expertise as Windows - and

[issue24232] Speling fixes

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd7ef3972215 by Berker Peksag in branch '3.4': Issue #24232: Fix typos. Patch by Ville Skyttä. https://hg.python.org/cpython/rev/fd7ef3972215 New changeset fc2eed9fc2d0 by Berker Peksag in branch 'default': Issue #24232: Fix typos. Patch by Ville

[issue24232] Speling fixes

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Ville. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

  1   2   >