Re: Is Python really Lisp without parentheses? So would it be easy to *implement* a lot of Python in Scheme/Lisp?

2014-01-04 Thread Chris Seberino
Thanks.. I think your 10% Python idea is the way to go. And you are right that most of Python is not needed in an intro course. -- https://mail.python.org/mailman/listinfo/python-list

Re: On a scrollbar for tkinter

2014-01-04 Thread eneskristo
On Friday, January 3, 2014 12:00:05 PM UTC+1, Vlastimil Brom wrote: 2014/1/3 eneskri...@gmail.com: @Rick I found some solutions for python 2.x, but still, as I am with the future, I need a futuristic solution or 2, so if anyone else could help me, I'd be grateful! -- Hi,

Re: Strange behaviour with a for loop.

2014-01-04 Thread Sean Murphy
Chris, Thanks for the tip on the function. I was not aware of that function, Grin. Creating the function as you mention makes a lot of sense. I am doing a lot of little bits and pieces focusing on things I need to eventually build a script that is going to compile data from a router and

Re: Highest performance HTTP REST microframework?

2014-01-04 Thread Marc Aymerich
On Sat, Jan 4, 2014 at 5:26 AM, Alec Taylor alec.tayl...@gmail.com wrote: What is the highest performance REST microframework? Happy if it's mostly written in C or C++; as long as it provides a simple routes interface in Python. Currently using bottle and utilising its application, @route

Re: Strange behaviour with a for loop.

2014-01-04 Thread Chris Angelico
On Sat, Jan 4, 2014 at 8:52 PM, Sean Murphy mhysnm1...@gmail.com wrote: Thanks for the tip on the function. I was not aware of that function, Grin. Creating the function as you mention makes a lot of sense. I am doing a lot of little bits and pieces focusing on things I need to eventually

On radio buttons in tkinter

2014-01-04 Thread eneskristo
So the issue is like this. I have to make a 2 x N grid like this: o Radio - 1 o Radio - 2 o Radio - 3 o Radio - 4 ... o Radio - N - 1 o Radio - N How to do so with a loop? -- https://mail.python.org/mailman/listinfo/python-list

Re: On radio buttons in tkinter

2014-01-04 Thread Chris Angelico
On Sat, Jan 4, 2014 at 9:17 PM, eneskri...@gmail.com wrote: So the issue is like this. I have to make a 2 x N grid like this: o Radio - 1 o Radio - 2 o Radio - 3 o Radio - 4 ... o Radio - N - 1 o Radio - N How to do so with a loop? How far have you managed to get so far? Do you have a

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Wiktor
On Sat, 4 Jan 2014 13:02:37 +1100, Chris Angelico wrote: def check(towers, x=None): column = [] # value added on pos. x for i in range(len(towers)): column.append(towers[i][c]) column = [x for x in column if x != 0] Any

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Chris Angelico
On Sat, Jan 4, 2014 at 10:09 PM, Wiktor look@signature.invalid wrote: On Sat, 4 Jan 2014 13:02:37 +1100, Chris Angelico wrote: And in fact, you might want to turn this whole branch into something that harks to a more functional programming style: return all((check(towers, i) for i in

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Wiktor
On Fri, 03 Jan 2014 20:47:16 -0500, Terry Reedy wrote: [0]*size] is fine for one row towers = [[0]*size] for i in range(size)] should do what you want for a 2-d array instead of the above. Right. Thank you also. -- Best regards, Wiktor Matuszewski 'py{}@wu{}em.pl'.format('wkm',

Re: On radio buttons in tkinter

2014-01-04 Thread Christian Gollwitzer
Am 04.01.14 11:17, schrieb eneskri...@gmail.com: So the issue is like this. I have to make a 2 x N grid like this: o Radio - 1 o Radio - 2 o Radio - 3 o Radio - 4 ... o Radio - N - 1 o Radio - N How to do so with a loop? Create the buttons and append them into a list, so you can later refer

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Wiktor
On Sat, 4 Jan 2014 22:18:09 +1100, Chris Angelico wrote: This is the same as you have at the top of 'if not towers'. Can you be confident that row is None any time towers is None? If so, just move this up above the other check and save the duplication. row is None at start, but later it is

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Wiktor
On Sat, 4 Jan 2014 22:18:09 +1100, Chris Angelico wrote: Thank you for all Your comments. My pleasure! Always happy to help out. I'm aware, that at my point of education there's no sense in optimizing code to squeeze from it every millisecond, but Project Euler gave me habit to compare

Re: Blog about python 3

2014-01-04 Thread wxjmfauth
Le vendredi 3 janvier 2014 12:14:41 UTC+1, Robin Becker a écrit : On 02/01/2014 18:37, Terry Reedy wrote: On 1/2/2014 12:36 PM, Robin Becker wrote: I just spent a large amount of effort porting reportlab to a version which works with both python2.7 and python3.3. I have a large

Re: Blog about python 3

2014-01-04 Thread Roy Smith
In article mailman.4882.1388808283.18130.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: Surely everybody prefers fast but incorrect code in preference to something that is correct but slow? I realize I'm taking this statement out of context, but yes, sometimes fast is

Re: Blog about python 3

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 12:55 AM, Roy Smith r...@panix.com wrote: In article mailman.4882.1388808283.18130.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: Surely everybody prefers fast but incorrect code in preference to something that is correct but slow? I realize I'm

Re: How to make a tkinter GUI work on top of a CUI program?

2014-01-04 Thread Beinan Li
Thank you so much Jerry. I should have read though the man page more carefully. The available online cscope tutorials never mentioned the line-oriented mode. On Sat, Jan 4, 2014 at 1:35 AM, Jerry Hill malaclyp...@gmail.com wrote: On Fri, Jan 3, 2014 at 9:44 PM, Beinan Li li.bei...@gmail.com

Re: How to make a tkinter GUI work on top of a CUI program?

2014-01-04 Thread Beinan Li
... and thanks to Chris too. Now I got the better idea how the subprocess module works. On Sat, Jan 4, 2014 at 11:29 AM, Beinan Li li.bei...@gmail.com wrote: Thank you so much Jerry. I should have read though the man page more carefully. The available online cscope tutorials never mentioned

Re: Blog about python 3

2014-01-04 Thread Ned Batchelder
On 1/4/14 9:17 AM, Chris Angelico wrote: On Sun, Jan 5, 2014 at 12:55 AM, Roy Smith r...@panix.com wrote: In article mailman.4882.1388808283.18130.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: Surely everybody prefers fast but incorrect code in preference to something

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Wiktor
On Sat, 4 Jan 2014 01:16:14 +0100, Wiktor wrote: Hi, OK, another question. This time, I think, closer to the original subject (recursive algorithm). Thanks to Terry's and Chris' advises I refined script. Then I thought, that with some changes and with minimal effort I can force this script

Re: Blog about python 3

2014-01-04 Thread wxjmfauth
Le samedi 4 janvier 2014 15:17:40 UTC+1, Chris Angelico a écrit : On Sun, Jan 5, 2014 at 12:55 AM, Roy Smith r...@panix.com wrote: In article mailman.4882.1388808283.18130.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: Surely everybody prefers fast but

3.4 on Windows ImportError: cannot import name 'IntEnum'

2014-01-04 Thread Mark Lawrence
I first saw this when tring to run the command py -3.4 -m ensurepip which gave me this lot. Traceback (most recent call last): File C:\Python34\lib\runpy.py, line 160, in _run_module_as_main __main__, fname, loader, pkg_name) File C:\Python34\lib\runpy.py, line 73, in _run_code

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Wiktor
On Sat, 4 Jan 2014 20:07:33 +0100, Wiktor wrote: I guess that some kind of you have done this before. ;-) Damn it. This 'kind' shouldn't be there. Now it sounds silly, even offensive. ;-) Normally I would supersede it, but probably attached

Flip a graph

2014-01-04 Thread Jason Friedman
I am teaching Python to a class of six-graders as part of an after-school enrichment. These are average students. We wrote a non-GUI rocket lander program: you have a rocket some distance above the ground, a limited amount of fuel and a limited burn rate, and the goal is to have the rocket

Re: Strange behaviour with a for loop.

2014-01-04 Thread Larry Hudson
On 01/03/2014 08:03 PM, Sean Murphy wrote: Hello all. This is a newly question. But I wish to understand why the below code is providing different results. import os, sys if len(sys.argv) 2: filenames = sys.argv[1:] else print (no parameters provided\n) sys.edit() for filename in

Re: Flip a graph

2014-01-04 Thread Wiktor
On Sat, 4 Jan 2014 09:15:39 -0700, Jason Friedman wrote: My concern is whether the average 11-year-old will be able to follow such logic. Is there a better approach? Basically mine approach is the same, but maybe is easier to explain it to kids. max_height =

Re: Flip a graph

2014-01-04 Thread Terry Reedy
On 1/4/2014 11:15 AM, Jason Friedman wrote: I am teaching Python to a class of six-graders as part of an after-school enrichment. Great. I love seeing basic Python used for that sort of thing. These are average students. We wrote a non-GUI rocket lander program: you have a rocket some

Re: Flip a graph

2014-01-04 Thread Terry Reedy
PS to my previous response: please send plain text only, and not the html in addition. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Flip a graph

2014-01-04 Thread Vincent Davis
You might think about using an array to represent the canvas. Starting with it filled with and then for each point change it to X. The print the rows of the array. You can make the array/canvas arbitrarily large and then plot multiple different paths onto the same array. Vincent Davis

Re: Flip a graph

2014-01-04 Thread Vincent Davis
When printing the rows of the array/canvas you might add \n to the end of each row and print the canvas all at once rather than a print statement for each row. Vincent Davis 720-301-3003 On Sat, Jan 4, 2014 at 3:10 PM, Vincent Davis vinc...@vincentdavis.netwrote: You might think about using

Re: Strange behaviour with a for loop.

2014-01-04 Thread Larry Hudson
On 01/03/2014 10:32 PM, Sean Murphy wrote: Hi everyone. [snip] The 2nd part of my original question still stands. I will expand upon this a bit more to give more context. I want to print from the beginning of the paragraph to the end. Each paragraph ends with \n\n\n. If I use \n\n\n in

Re: Blog about python 3

2014-01-04 Thread Terry Reedy
On 1/4/2014 2:10 PM, wxjmfa...@gmail.com wrote: Le samedi 4 janvier 2014 15:17:40 UTC+1, Chris Angelico a écrit : any, and Python has only one, idiot like jmf who completely Chris, I appreciate the many contributions you make to this list, but that does not exempt you from out standard of

[ANN] gg_scrapper -- scrapping of the Google Groups

2014-01-04 Thread Matej Cepl
Did you try to archive email list hosted on the Google Groups? Were you endlessly frustrated by the black hole which is Google Groups, conscpicious by its absence on the Data Liberation Front website? Yes, I was too_ So, I have created a script webscrapping a google group and created

Re: Flip a graph

2014-01-04 Thread David Hutto
I would definitely utilize y axis as an altitudinal derivative of time,x. I'd go with more of a dart type of graphic, so you might be able to show a peak in altitude from take off, and the rotate the graphic in relation to the deceleration . But, you could also depict the velocity, fuel rate, etc

Re: [newbie] Recursive algorithm - review

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 6:07 AM, Wiktor look@signature.invalid wrote: On Sat, 4 Jan 2014 01:16:14 +0100, Wiktor wrote: Idea is still the same. I start with 2d array And then I fill it up one number by one (exception: first row). At every step checking if current column is unique (0's not

Re: Blog about python 3

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 9:46 AM, Terry Reedy tjre...@udel.edu wrote: On 1/4/2014 2:10 PM, wxjmfa...@gmail.com wrote: Le samedi 4 janvier 2014 15:17:40 UTC+1, Chris Angelico a écrit : any, and Python has only one, idiot like jmf who completely Chris, I appreciate the many contributions you

django question

2014-01-04 Thread Igor Korot
Hi, ALL, Does anybody here use django? I have a very basic question about it. Is it possible to display a data grid table with django? Basically I am looking for displaying a data from the db table on the web interface thru django or some other web interface. My main application is in Python,

Re: django question

2014-01-04 Thread Joel Goldstick
On Sat, Jan 4, 2014 at 6:30 PM, Igor Korot ikoro...@gmail.com wrote: Hi, ALL, Does anybody here use django? I have a very basic question about it. Is it possible to display a data grid table with django? Yes, using the django template language. If you learn django (perhaps 2 days of

Re: django question

2014-01-04 Thread Tim Chase
On 2014-01-04 15:30, Igor Korot wrote: Does anybody here use django? Yes. However there's also a Django-users mailing list[1] for Django-specific questions. Folks there are friendly helpful. Is it possible to display a data grid table with django? The short answer is yes. Basically I am

Update image in same window with, say, PIL

2014-01-04 Thread John O'Hagan
I'm using something like the following to display an image and refresh it in the same window each time the image file is updated: import cv def display(filename): Display scores as they are created cv.NamedWindow(filename) while 1: ... #wait for signal that filename has been

Re: Blog about python 3

2014-01-04 Thread Steven D'Aprano
Roy Smith wrote: In article mailman.4882.1388808283.18130.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: Surely everybody prefers fast but incorrect code in preference to something that is correct but slow? I realize I'm taking this statement out of context, but

Re: Blog about python 3

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 1:27 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: But regardless of how fast your path-finder algorithm might become, you're unlikely to be satisfied with a solution that travels around in a circle from A to B a million times then shoots off straight to

Re: Blog about python 3

2014-01-04 Thread MRAB
On 2014-01-05 02:32, Chris Angelico wrote: On Sun, Jan 5, 2014 at 1:27 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: But regardless of how fast your path-finder algorithm might become, you're unlikely to be satisfied with a solution that travels around in a circle from A to B

Re: Blog about python 3

2014-01-04 Thread Steven D'Aprano
wxjmfa...@gmail.com wrote: The very interesting aspect in the way you are holding unicodes (strings). By comparing Python 2 with Python 3.3, you are comparing utf-8 with the the internal representation of Python 3.3 (the flexible string represenation). This is incorrect. Python 2 has never

Re: Blog about python 3

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 1:41 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: wxjmfa...@gmail.com wrote: The very interesting aspect in the way you are holding unicodes (strings). By comparing Python 2 with Python 3.3, you are comparing utf-8 with the the internal representation

Re: Blog about python 3

2014-01-04 Thread Roy Smith
I wrote: I realize I'm taking this statement out of context, but yes, sometimes fast is more important than correct. In article 52c8c301$0$29998$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Fast is never more important than correct. Sure

Re: Suggest an open-source log analyser?

2014-01-04 Thread Alec Taylor
Because I'm thinking that something with a much less expressive query interface would serve me better in the long run... e.g.: Redis or maybe Hadoop On Sat, Jan 4, 2014 at 5:35 PM, Walter Hurry walterhu...@lavabit.com wrote: On Thu, 02 Jan 2014 16:40:19 +1100, Alec Taylor wrote: I use the

Using multiple ORMs? - And SQLalchemy vs Pony vs Peewee vs stdnet vs …

2014-01-04 Thread Alec Taylor
Investigating possible using multiple ORMs in my project. Toy project, want to make it as generic as humanly possible; whilst still exposing abstract pythonic interfaces. E.g.: support most number of backends, including SQL ones like: Postgres, SQLite, MySQL, … and NoSQL ones such as Redis

Re: Blog about python 3

2014-01-04 Thread Rustom Mody
On Sun, Jan 5, 2014 at 8:50 AM, Roy Smith r...@panix.com wrote: I wrote: I realize I'm taking this statement out of context, but yes, sometimes fast is more important than correct. In article 52c8c301$0$29998$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano

Re: Blog about python 3

2014-01-04 Thread Roy Smith
In article mailman.4929.1388896998.18130.python-l...@python.org, Rustom Mody rustompm...@gmail.com wrote: On Sun, Jan 5, 2014 at 8:50 AM, Roy Smith r...@panix.com wrote: I wrote: I realize I'm taking this statement out of context, but yes, sometimes fast is more important than correct.

Re: Blog about python 3

2014-01-04 Thread Steven D'Aprano
Roy Smith wrote: I wrote: I realize I'm taking this statement out of context, but yes, sometimes fast is more important than correct. In article 52c8c301$0$29998$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Fast is never more important

Re: Blog about python 3

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 2:20 PM, Roy Smith r...@panix.com wrote: I've got a new sorting algorithm which is guaranteed to cut 10 seconds off the sorting time (i.e. $0.10 per package). The problem is, it makes a mistake 1% of the time. That's a valid line of argument in big business, these days,

print range in python3.3

2014-01-04 Thread luofeiyu
range(1,10) range(1, 10) print(range(1,10)) range(1, 10) how can i get 1,2,3,4,5,6,7,8,9 in python3.3 ? -- https://mail.python.org/mailman/listinfo/python-list

Re: print range in python3.3

2014-01-04 Thread Chris Angelico
On Sun, Jan 5, 2014 at 6:38 PM, luofeiyu elearn2...@gmail.com wrote: range(1,10) range(1, 10) print(range(1,10)) range(1, 10) how can i get 1,2,3,4,5,6,7,8,9 in python3.3 ? Are you looking for a list? That's what Python 2 returned. In Python 3, you can get that like this:

[issue19697] refactor pythonrun.c to make use of specs (__main__.__spec__)

2014-01-04 Thread Eric Snow
Eric Snow added the comment: I'm fine with leaving __spec__ as None for those remaining cases. It definitely simplifies this ticket. :) Do you see any reason to not close this one at this point? -- ___ Python tracker rep...@bugs.python.org

[issue19697] Document the possible values for __main__.__spec__

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: I think we need to document this somewhere. Not exactly sure where though - a new subsection in the import reference, perhaps? -- title: refactor pythonrun.c to make use of specs (__main__.__spec__) - Document the possible values for __main__.__spec__

[issue18960] First line can be executed twice

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I had not compiled the code after last change, so first patch is wrong. Here is fixed patch. -- Added file: http://bugs.python.org/file33307/source_encoding_second_line_2.patch ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
New submission from Thomas Levine: This works fine in Python 2.7, but it fails in Python 3.3. [tlevine@wildebeest mailfest-scoreboard]$ python3 --version Python 3.3.3 [tlevine@wildebeest mailfest-scoreboard]$ python3 setup.py register sdist running register Traceback (most recent call last):

[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea0aa3e32ab5 by Martin v. Löwis in branch '3.3': Issue #17432: Drop UCS2 from names of Unicode functions in python3.def. http://hg.python.org/cpython/rev/ea0aa3e32ab5 New changeset 0ea09c824d9b by Martin v. Löwis in branch 'default': Merge with

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
Thomas Levine added the comment: The relevant section distutils/config.py seems no different in Python 2.7, so now I see this as a bug in configparser. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20120

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
Thomas Levine added the comment: Hmm now it looks to me like this is the intended behavior. http://hg.python.org/cpython/file/ea0aa3e32ab5/Lib/test/test_configparser.py#l1541 Switching the single percent sign (%) to two (%%) in .pypirc makes it work. Maybe we can make a nicer error message

[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is now fixed for 3.3 and 3.4. Sorry it took so long. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17432 ___

[issue19526] Review additions to the stable ABI of Python 3.4

2014-01-04 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19526 ___

[issue13115] tp_as_{number, sequence, mapping} can't be set using PyType_FromSpec

2014-01-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Since 3.2 has seen its last bugfix release, this won't be added to 3.2 anymore. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13115

[issue20115] NUL bytes in commented lines

2014-01-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch type: compile error - behavior versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20115 ___

[issue20121] quopri_codec newline handling

2014-01-04 Thread Fred Stober
New submission from Fred Stober: While trying to encode some binary data, I encountered this behaviour of the quopri_codec: '\r\n\n'.encode('quopri_codec').decode('quopri_codec') '\r\n\r\n' '\n\r\n'.encode('quopri_codec').decode('quopri_codec') '\n\n' If this behaviour is really intended,

[issue20115] NUL bytes in commented lines

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. CPython parser reads first line '#\x00\n' and save it in the buffer. But because C strings are used here (result of decode_str()), the line is truncated to '#'. As far as this data is not ended by '\n', it considered incomplete and next line is

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Docstrings for new codecs mention bytes.transform() and bytes.untransform() which are nonexistent. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475

[issue2226] Small _abcoll Bugs / Oddities

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond, will you have a chance to look at this before 3.4rc1? Otherwise I'd like to take it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2226 ___

[issue8743] set() operators don't work with collections.Set instances

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: Raymond, will you have a chance to look at this before 3.4rc1? Otherwise I'd like to take it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743 ___

[issue5131] pprint doesn't know how to print a defaultdict

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: Closing this as a duplicate of issue 7434 (which is about redesigning pprint to make it easier to add support for new types) -- nosy: +ncoghlan resolution: accepted - duplicate stage: patch review - committed/rejected status: open - closed superseder: -

[issue7434] general pprint rewrite

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: With PEP 443 added for Python 3.4, I believe Łukasz intended to pursue a new pprint implementation based on functools.singledispatch. That has obviously missed feature freeze for Python 3.4, but it's still a reasonable idea to pursue for 3.5. In addition to

[issue20114] Sporadic failure of test_semaphore_tracker() of test_multiprocessing_forkserver on FreeBSD 9 buildbot

2014-01-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: It is probably harmless then. I don't think increasing the timeout is necessary -- the multiprocessing tests already take a long time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20114

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread R. David Murray
R. David Murray added the comment: It could be an issue of which configparser is/was used. -- nosy: +lukasz.langa, r.david.murray versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20120

[issue20121] quopri_codec newline handling

2014-01-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20121 ___ ___

[issue20115] NUL bytes in commented lines

2014-01-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: I guess NULL bytes should just be banned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20115 ___ ___

[issue20122] Move CallTips tests to idle_tests

2014-01-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch moves CallTips tests from Lib/idlelib/CallTips.py to Lib/idlelib/idle_test/test_calltips.py and converts them to unittests. Private keyword-only parameter _namespace was added to fetch_tip() and get_entity(). -- components: IDLE,

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Move CallTips tests to idle_tests versions: +Python 2.7 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16630 ___

[issue19903] Idle: Use inspect.signature for calltips

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Move CallTips tests to idle_tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19903 ___

[issue16655] IDLE list.append calltips test failures

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Move CallTips tests to idle_tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16655 ___

[issue7883] CallTips.py _find_constructor does not work

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Move CallTips tests to idle_tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7883 ___

[issue16638] support multi-line docstring signatures in IDLE calltips

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Move CallTips tests to idle_tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16638 ___

[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b72c5573c5e7 by Serhiy Storchaka in branch 'default': Issue #15027: Rewrite the UTF-32 encoder. It is now 1.6x to 3.5x faster. http://hg.python.org/cpython/rev/b72c5573c5e7 -- nosy: +python-dev ___

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have doubts about this issue, so I have unassigned it from myself. -- assignee: serhiy.storchaka - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17576

[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Gregory for your review. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: In 3.x, the ConfigParser class is 2.x's SafeConfigParser, and the parsing rules are different (stricter, it seems). It's probably a won't fix, I'd say. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue19977] Use surrogateescape error handler for sys.stdin and sys.stdout on UNIX for the C locale

2014-01-04 Thread Larry Hastings
Larry Hastings added the comment: Yeah, unless there was a *huge* amount of support for changing this, it's way too late for 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19977 ___

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2014-01-04 Thread Larry Hastings
Larry Hastings added the comment: So, not to yank your chain, but... I'm okay with checking this in. Yes, we're already in beta, but ModuleSpec is brand new, and the sense I get is that this use case is obscure even for ModuleSpec. The only installed base is beta 1 users, and given that

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread R. David Murray
R. David Murray added the comment: More rational is probably closer to the truth :). Yeah, it's probably a won't fix, but it would be nice to have Łukasz's input. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20120

[issue7434] general pprint rewrite

2014-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ideally, we'd also have a standard lazy import mechanism in 3.5, so these definitions could go in the collections module, but only installed if pprint was also imported. That sounds more like an on-import hook than a lazy import mechanism, no? --

[issue7434] general pprint rewrite

2014-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops... no, it's not easy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list

[issue7434] general pprint rewrite

2014-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so why did Roundup add the easy keyword and doesn't want to remove it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___

[issue7434] general pprint rewrite

2014-01-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list

[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Larry Hastings
Larry Hastings added the comment: Isn't this a new feature? -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___ ___

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-01-04 Thread Larry Hastings
Larry Hastings added the comment: I'm willing to risk it in 3.4. Can you check it in in the next twelve hours? (Sorry for the short notice, it slipped my mind until just now.) -- ___ Python tracker rep...@bugs.python.org

[issue19976] Argument Clinic: generate second arg for METH_NOARGS

2014-01-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4ababa110a2 by Larry Hastings in branch 'default': Issue #19976: Argument Clinic METH_NOARGS functions now always http://hg.python.org/cpython/rev/c4ababa110a2 -- nosy: +python-dev ___ Python tracker

[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry if I have missed. Should I revert changeset b72c5573c5e7? This patch doesn't introduce new functions and doesn't change behavior. Without this patch the UTF-32 encoder is up to 2.5x slower in 3.4 than in 3.3 (due to issue12892). --

[issue15027] Faster UTF-32 encoding

2014-01-04 Thread Larry Hastings
Larry Hastings added the comment: Would you describe it as a bug fix or a security fix? If it's neither of those things, then you need special permission to add it during beta. And given that this patch has the possibility of causing bugs, I'd prefer to not accept it for 3.4. Please revert

[issue20119] pdb c(ont(inue)) optional one-time-only breakpoint (like perl debugger)

2014-01-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20119 ___ ___ Python-bugs-list mailing

[issue20078] zipfile - ZipExtFile.read goes into 100% CPU infinite loop on maliciously binary edited zips

2014-01-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with tests for all supported compression types. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file33309/zipfile_eof.patch ___ Python tracker

  1   2   >