[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-15 Thread Ethan Furman
New submission from Ethan Furman: IntEnum is advertised as being a drop-in replacement for integer contants; however this fails in the case of unpickling on previous Python versions. This occurs because when a pickle is created the module, class, and value are stored -- but those don't exist

[issue23187] Segmentation fault, possibly asyncio related

2015-03-15 Thread STINNER Victor
STINNER Victor added the comment: Did you see some errors or warnings when running your application with asyncio in debug mode? No, but I'll try. I doubt the problem is in asyncio itself because it's mostly written in Python. This looks like a garbage collection issue. Sorry, you're

[issue23187] Segmentation fault, possibly asyncio related

2015-03-15 Thread STINNER Victor
STINNER Victor added the comment: Bugfixes of asyncio 3.4.3, a lot of them are related to the proactor event loop (and most of them leaded to crashes): https://code.google.com/p/tulip/source/browse/ChangeLog#66 -- ___ Python tracker

[issue23668] Support os.[f]truncate on Windows

2015-03-15 Thread Steve Dower
Steve Dower added the comment: I get a 405 error if I try and upload the patch on http://bugs.python.org/review/23668/ My other patches from last night worked fine, so maybe Rietveld doesn't like this issue for some reason? -- ___ Python tracker

[issue23668] Support os.[f]truncate on Windows

2015-03-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23668 ___ ___ Python-bugs-list

[issue23500] Argument Clinic: multiple macro definition

2015-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this works. Here is combined patch and proceeded sample file. -- Added file: http://bugs.python.org/file38494/clinic_append_2.patch Added file: http://bugs.python.org/file38495/sample.c ___ Python tracker

Re: generator/coroutine terminology

2015-03-15 Thread Steven D'Aprano
Rustom Mody wrote: On Saturday, March 14, 2015 at 11:34:27 AM UTC+5:30, Steven D'Aprano wrote: A generator (function) may be a function which returns an iterator,... I find generator-function misleading in the same way that pineapple misleadingly suggests apple that grows on pines You

Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI

2015-03-15 Thread Chris Angelico
On Sun, Mar 15, 2015 at 11:20 PM, Alan Hicks ahi...@p-o.co.uk wrote: Mailing lists are an issue on many levels, and dmarc has an faq that may help http://dmarc.org/faq/receivers/#r_2 No, they're not; the issue is only with DMARC. I have no problems with mailing lists and SPF records, because

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-15 Thread Liam Marsh
Liam Marsh added the comment: Why run a batch file instead of directly running the .pyw script via pythonw.exe? A batch file is executed by cmd.exe, which is a console application. the strange thing is that it exists -- ___ Python tracker

[issue23187] Segmentation fault, possibly asyncio related

2015-03-15 Thread STINNER Victor
STINNER Victor added the comment: (Since you chose to comment this closed issue instead of opening a new one, I reopen this issue.) -- resolution: not a bug - status: closed - open ___ Python tracker rep...@bugs.python.org

Re: Help me please urgently!

2015-03-15 Thread Chris Angelico
On Mon, Mar 16, 2015 at 2:43 AM, Jenny Hale jhale7...@gmail.com wrote: How would I do this? The teacher wants to keep track of the scores each member of the class obtains in the quiz. There are three classes in the school and the data should be kept separately for each class. Thank you for

Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI

2015-03-15 Thread Alan Hicks
On 13/03/2015 11:58, Chris Angelico wrote: On Mon, Mar 9, 2015 at 9:16 PM, Alan Hicks ahi...@p-o.co.uk wrote: With defending reputations as important as receiving email I'm pleased to announce another beta of django-dmarc 0.1.3 is released to PyPI. https://pypi.python.org/pypi/django-dmarc The

[Fwd: Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI]

2015-03-15 Thread Alan Hicks
Original Message Subject: Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI From:Alan Hicks ahi...@p-o.co.uk Date:Sun, March 15, 2015 2:10 pm To: Chris Angelico ros...@gmail.com

Re: Odd ValueError using float

2015-03-15 Thread Peter Otten
emile wrote: On 03/14/2015 11:24 AM, Peter Otten wrote: emile wrote: On 03/14/2015 09:08 AM, Peter Otten wrote: snip Why are you checking int(decval) because it sure smells like int should work: (Pdb) 3decval5 True That's a normal string comparison when decval is a string. This

[issue20680] Pickle socket enums by names

2015-03-15 Thread Ethan Furman
Ethan Furman added the comment: Serhiy, sorry for taking so long to get back to this -- we spent so much time making sure pickling worked I had no idea that unpickling didn't work in prior versions. -- ___ Python tracker rep...@bugs.python.org

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-15 Thread eryksun
eryksun added the comment: I'd prefer to be able to list them all under the Open With menu, since that also allows users to easily make any of them the default if that's what they'd like. Unfortunately, to do that we need to start shipping an EXE launcher, probably with a unique name

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-15 Thread Steve Dower
Steve Dower added the comment: Setting up a progid is my intent, but it will be linked very closely to the executable. Currently it will show up as pythonw.exe and not idle. I didn't try with the batch file, but I'm fairly sure that's failed in the past too. I like the idea of (approximately)

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2015-03-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22928 ___

[issue23668] Support os.[f]truncate on Windows

2015-03-15 Thread Steve Dower
Steve Dower added the comment: Hmm... doesn't even know that the issue has been changed. Reuploading with a different extension. -- Added file: http://bugs.python.org/file38500/23668_2.patch ___ Python tracker rep...@bugs.python.org

Re: PSF news - BBC launches MicroBit

2015-03-15 Thread MRAB
On 2015-03-15 07:26, Dave Farrance wrote: Mark Lawrence breamore...@yahoo.co.uk wrote: http://pyfound.blogspot.co.uk/2015/03/bbc-launches-microbit.html may be of interest to some of you. Python is one of the three languages that work with the device. That's cool, and the article says that

Re: Help me please urgently!

2015-03-15 Thread Ian Kelly
On Sun, Mar 15, 2015 at 9:43 AM, Jenny Hale jhale7...@gmail.com wrote: Hi How would I do this? The teacher wants to keep track of the scores each member of the class obtains in the quiz. There are three classes in the school and the data should be kept separately for each class. Is this a

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-15 Thread eryksun
eryksun added the comment: the windows packages already include an idle.bat launcher next to the idle.py and idle.pyw files. However, this launcher is (strangely enough) not used in the edit with idle command. Why run a batch file instead of directly running the .pyw script via

[issue23668] Support os.[f]truncate on Windows

2015-03-15 Thread Steve Dower
Steve Dower added the comment: It normally does... I'll regenerate the patch when I get a chance later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23668 ___

[issue23668] Support os.[f]truncate on Windows

2015-03-15 Thread Steve Dower
Steve Dower added the comment: Regenerated the patch file. Rietveld may not have liked that the parent changeset in the previous patch doesn't exist (I pulled this out of my patch queue). -- Added file: http://bugs.python.org/file38499/23668_2.diff

Help me please urgently!

2015-03-15 Thread Jenny Hale
Hi How would I do this? The teacher wants to keep track of the scores each member of the class obtains in the quiz. There are three classes in the school and the data should be kept separately for each class. Here is my code: import random import operator MATHS_OPERATIONS = [

[issue23668] Support os.[f]truncate on Windows

2015-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Rietveld doesn't accept patches in git format. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23668 ___

Re: Pexpect idea - but can I handle curses?

2015-03-15 Thread Thomas 'PointedEars' Lahn
Skip Montanaro wrote: That might have to do with http://www.catb.org/~esr/faqs/smart-questions.html, specifically http://www.catb.org/~esr/faqs/smart-questions.html#prune. Thanks, but not really helpful. I'm well aware of Eric Raymond's contributions to the open source world. I'm also

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-15 Thread Liam Marsh
Liam Marsh added the comment: to do that we need to start shipping an EXE launcher, probably with a unique name (e.g. idle35-32.exe). nope, the windows packages already include an idle.bat launcher next to the idle.py and idle.pyw files. However, this launcher is (strangely enough) not used

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-15 Thread Liam Marsh
Liam Marsh added the comment: (uploaded file: dd.bmp) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23546 ___ ___ Python-bugs-list mailing list

Re: Odd ValueError using float

2015-03-15 Thread random832
On Sat, Mar 14, 2015, at 18:09, Cameron Simpson wrote: So there's still something amiss. Am I missing something obvious here? int() likes only ints, not floats: What you're missing is that when directly examined in pdb, the value appeared to be '4', but then when passed to the int

[issue23670] Modifications to support iOS as a development platform

2015-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Russell, just checking before I change the issue title: do you mean supporting iOS as a cross-compilation target? Development is ambiguous here, as you could mean development *of* CPython, rather than *in* Python, and I assume development *for* iOS largely

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread INADA Naoki
What I want to say is, MySQLdb - PyMySQL conversion is not required for porting from Python 2 to Python 3. mysqlclient is straight upgrade path from MySQLdb. On Sat, Mar 14, 2015 at 8:01 AM, John Nagle na...@animats.com wrote: On 3/13/2015 3:27 PM, INADA Naoki wrote: Hi, John. I'm maintainer

Re: PSF news - BBC launches MicroBit

2015-03-15 Thread Dave Farrance
Mark Lawrence breamore...@yahoo.co.uk wrote: http://pyfound.blogspot.co.uk/2015/03/bbc-launches-microbit.html may be of interest to some of you. Python is one of the three languages that work with the device. That's cool, and the article says that the Raspberry Pi Foundation is involved in

[issue23672] IDLE for osx 10.8.5 won't run

2015-03-15 Thread Ned Deily
Ned Deily added the comment: Try removing IDLE's recently-used file list: rm ~/.idlerc/recent-files.lst -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23672 ___

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-15 Thread Ned Deily
Ned Deily added the comment: Ack, much to consider. Adding doko as I believe he has been most closely following developments with libffi releases. -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23670

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-15 Thread Ned Deily
Ned Deily added the comment: As a cross-compilation target. From a first quick look at it, it appears the patch requires a current Mac OS X system to build for iOS; the necessary standard build tools and SDKs for iOS are only available on OS X. These are the same build tools used for OS X

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-15 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Nick: you are correct - these are changes to support iOS as a cross-compilation target, so you can run your Python code on an iOS device. Apologies for the confusion in nomenclature. Ned: You're correct that the build needs to be run on an OS/X machine,

[issue23187] Segmentation fault, possibly asyncio related

2015-03-15 Thread Michael Goldish
Michael Goldish added the comment: OK, I caught the crash with a debug build of Python 3.4.3. I have a core dump and even the process itself still alive in memory. I can provide any information you need. I can also explain how to debug a core dump with Visual Studio, if necessary. This time

[issue23670] Modifications to support iOS as a development platform

2015-03-15 Thread Russell Keith-Magee
New submission from Russell Keith-Magee: Proposal: iOS should be a supported platform for Python development. The attached patch is a first pass at a patch to achieve this. It is a single patch against Python 3.4.2 sources, and requires no pre- or post-configure modifications. Supporting

[issue23500] Argument Clinic: multiple macro definition

2015-03-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It doesn't fix the issue, because the #ifndef stanza is emitted before second definition. Try to run clinic.py with your patch on sample.c. But may be this idea can be used with my patch. -- ___ Python tracker

[issue23671] string.Template doesn't work with the self keyword argument

2015-03-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: string.Template doesn't allow to specify the self substitute parameter as keyword argument. import string string.Template('the self is $self').substitute(self='bozo') Traceback (most recent call last): File stdin, line 1, in module TypeError:

[issue23672] IDLE for osx 10.8.5 won't run

2015-03-15 Thread Kamisky
New submission from Kamisky: I could run the IDLE in the past time.But today,when I try and launch IDLE, the icon appears on the dock for a second and then disappears and the application doesn't run.Moreover,When I run IDLE3 in Terminal,it says: bogon:~ Kamisky$ idle3 Traceback (most recent

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-15 Thread Ned Deily
Ned Deily added the comment: A thought, primarily as a note to myself for further investigation: the current OS X framework build support and, to a lesser extent, universal build support have added a fair amount of special-case cruft to the build process, primarily in configure.ac and the

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-03-15 Thread Ned Deily
Ned Deily added the comment: At least on some platforms (e.g. OS X), it is easy to create files with legitimate names containing code points above the BMP limit (= U+) currently imposed by Tcl/Tk. For IDLE 3, I suspect _filename_to_unicode() in EditorWindow could be modified to check for

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-03-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +roger.serwy, terry.reedy -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23672 ___ ___

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-15 Thread R. David Murray
R. David Murray added the comment: Also remember that being a supported platform requires buildbots. If I'm reading this right that means two: one for the simulator build, and one that actually runs on the device (once the run-the-test issues is solved). I'm not sure what would need to be

Re: More or less code in python?

2015-03-15 Thread Paul Rubin
jonas.thornv...@gmail.com writes: I though it would be interesting doing comparissons in timing adding massive digits in different bases. Especially in Python. Python has built-in bignums. Try print 2**500. -- https://mail.python.org/mailman/listinfo/python-list

Re: More or less code in python?

2015-03-15 Thread jonas . thornvall
Den söndag 15 mars 2015 kl. 20:01:36 UTC+1 skrev Paul Rubin: jonas.thornv...@gmail.com writes: I though it would be interesting doing comparissons in timing adding massive digits in different bases. Especially in Python. Python has built-in bignums. Try print 2**500. I know. --

Re: More or less code in python?

2015-03-15 Thread Peter Otten
jonas.thornv...@gmail.com wrote: SCRIPT LANGUAGE=Javascript function naiveAdd(base,arrOne,arrTwo) { if (arrOne.length=arrTwo.length) {length=arrOne.length;} else {length=arrTwo.length;} out=; remainder=0; for (i=0;ilength;i++){ one=arrOne[i]; two=arrTwo[i]; one=parseInt(one);

Re: More or less code in python?

2015-03-15 Thread Joel Goldstick
On Sun, Mar 15, 2015 at 2:07 PM, jonas.thornv...@gmail.com wrote: SCRIPT LANGUAGE=Javascript function naiveAdd(base,arrOne,arrTwo) { if (arrOne.length=arrTwo.length) {length=arrOne.length;} else {length=arrTwo.length;} out=; remainder=0; for (i=0;ilength;i++){ one=arrOne[i];

[issue23655] Memory corruption using pickle over pipe to subprocess

2015-03-15 Thread John Nagle
John Nagle added the comment: More info: the problem is on the unpickle side. If I use _Unpickle and Pickle, so the unpickle side is in Python, but the pickle side is in C, no problem. If I use Unpickle and _Pickle, so the unpickle side is C, crashes. --

Re: More or less code in python?

2015-03-15 Thread jonas . thornvall
Den söndag 15 mars 2015 kl. 20:01:36 UTC+1 skrev Paul Rubin: jonas.thornv...@gmail.com writes: I though it would be interesting doing comparissons in timing adding massive digits in different bases. Especially in Python. Python has built-in bignums. Try print 2**500. I will try implement

[issue4896] Faster why variable manipulation in ceval.c

2015-03-15 Thread Mark Lawrence
Mark Lawrence added the comment: I've finally remembered to attach the test output I got a week ago. If you want me to run Antoine's test suite with any specific parameters please feel free to ask. -- Added file: http://bugs.python.org/file38501/unpatched.txt

Re: Django-DMARC making it easier to manage DMARC reports - Beta 0.1.3 on PyPI

2015-03-15 Thread Alan Hicks
On 15/03/2015 15:52, Chris Angelico wrote: On Mon, Mar 16, 2015 at 1:10 AM, Alan Hicks ahi...@p-o.co.uk wrote: If issues are not surfacing it is more likely that both SPF and DKIM are not strong spam indicators rather than there are no issues. SPF is rarely implemented decisively ~all instead

Re: More or less code in python?

2015-03-15 Thread jonas . thornvall
Den söndag 15 mars 2015 kl. 19:32:02 UTC+1 skrev Joel Goldstick: On Sun, Mar 15, 2015 at 2:07 PM, jonas.thornv...@gmail.com wrote: SCRIPT LANGUAGE=Javascript function naiveAdd(base,arrOne,arrTwo) { if (arrOne.length=arrTwo.length) {length=arrOne.length;} else {length=arrTwo.length;}

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mark Lawrence
On 15/03/2015 19:05, John Nagle wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm approaching the end of converting a large system from Python 2 to Python 3. Here's why you don't want to do this. A nice report, thanks. Shows that the slowness of Python 3

[issue23674] super() documentation isn't very clear

2015-03-15 Thread Tapani Kiiskinen
New submission from Tapani Kiiskinen: https://docs.python.org/3/library/functions.html#super There's no mention in the document which __mro__ is used in the case of a super(Type, obj) call. There's this mention 'The __mro__ attribute of the *type* lists the method resolution search order used

[issue23187] Segmentation fault, possibly asyncio related

2015-03-15 Thread Michael Goldish
Michael Goldish added the comment: Sorry, you're wrong: the proactor event loop heavily uses the _overlapped module which is implemented in C. A crash in the garbage collector is more likely a bug in asyncio/your application, than a bug in Python itself. I'm aware of that. I assumed the

More or less code in python?

2015-03-15 Thread jonas . thornvall
SCRIPT LANGUAGE=Javascript function naiveAdd(base,arrOne,arrTwo) { if (arrOne.length=arrTwo.length) {length=arrOne.length;} else {length=arrTwo.length;} out=; remainder=0; for (i=0;ilength;i++){ one=arrOne[i]; two=arrTwo[i]; one=parseInt(one); two=parseInt(two); if (isNaN(one)) one =

Re: More or less code in python?

2015-03-15 Thread jonas . thornvall
Den söndag 15 mars 2015 kl. 19:32:02 UTC+1 skrev Joel Goldstick: On Sun, Mar 15, 2015 at 2:07 PM, jonas.thornv...@gmail.com wrote: SCRIPT LANGUAGE=Javascript function naiveAdd(base,arrOne,arrTwo) { if (arrOne.length=arrTwo.length) {length=arrOne.length;} else {length=arrTwo.length;}

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread John Nagle
On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm approaching the end of converting a large system from Python 2 to Python 3. Here's why you don't want to do this. A nice report, thanks. Shows that the slowness of Python 3 adoption is not only social inertia.

[issue23674] super() documentation isn't very clear

2015-03-15 Thread R. David Murray
R. David Murray added the comment: I agree with Tapani; what you just explained should be made explicit (the type is skipped isn't the same as searching starts from the item after the type in the object's MRO). Also, the docs imply by the phrasing that the getattr docs will explain the

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The full path of a file being edited also ends up in the title bar and the Window menu. I do not know whether the title bar is displayed by tk or the OS (Windows obviously displays the title of taskbar icons) but the Window list is definitely by tk. It

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mario Figueiredo
On Sun, 15 Mar 2015 12:05:21 -0700, John Nagle na...@animats.com wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: Some of the bugs I listed are so easy to hit that I suspect those packages aren't used much. Those bugs should have been found years ago. Fixed, even. I shouldn't be

Setuptools: no module named 'html.entities'

2015-03-15 Thread Jason Friedman
Hello, This is Python 3.3.2 on Linux. I downloaded Setuptools ( https://pypi.python.org/packages/source/s/setuptools/setuptools-14.3.tar.gz), exploded the tarball, and I get: python setup.py build Traceback (most recent call last): File frozen importlib._bootstrap, line 1521, in

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Fetchinson .
On 3/15/15, Mark Lawrence breamore...@yahoo.co.uk wrote: On 15/03/2015 19:05, John Nagle wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm approaching the end of converting a large system from Python 2 to Python 3. Here's why you don't want to do this.

[issue23674] super() documentation isn't very clear

2015-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's this mention 'The __mro__ attribute of the *type* lists the method resolution search order used by both getattr() and super(). I think instead of *type* it should say *object-or-type*. It is the second argument that supplied the MRO. The first

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-03-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thinking more, there are two issue here. One is the fact that Idle stops when fed a filename with astral chars. This *is* a bug and should be fixed in all versions, even if that fix is to display a message box saying that Idle cannot work properly with such

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Chris Angelico
On Mon, Mar 16, 2015 at 10:43 AM, Roy Smith r...@panix.com wrote: The big problem continues to be the legacy projects. People made decisions years ago about what packages to use, and those decisions are hard to get away from. There is a lot of production code out there which still uses

[issue23674] super() documentation isn't very clear

2015-03-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23674 ___

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-03-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23672 ___ ___

[issue23676] Add support of UnicodeTranslateError in standard error handlers

2015-03-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch adds support of UnicodeTranslateError in standard error handlers xmlcharrefreplace, namereplace and surrogatepass. Support in backslashreplace was added in issue22286, support in strict, ignore and replace was always, support in

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Roy Smith
In article am4cga9sn16m74v1952gnfq5u443mkk...@4ax.com, Mario Figueiredo mar...@gmail.com wrote: What makes you think your anedoctal bugs constitute any sort of evidence this programming language isn't ready to be used by the public? There's several levels of ready. I'm sure the core

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mario Figueiredo
On Sun, 15 Mar 2015 19:43:38 -0400, Roy Smith r...@panix.com wrote: The big problem continues to be the legacy projects. People made decisions years ago about what packages to use, and those decisions are hard to get away from. There is a lot of production code out there which still uses

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Steven D'Aprano
Mark Lawrence wrote: On 15/03/2015 20:59, Fetchinson . wrote: On 3/15/15, Mark Lawrence breamore...@yahoo.co.uk wrote: On 15/03/2015 19:05, John Nagle wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm approaching the end of converting a large system

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mark Lawrence
On 16/03/2015 00:25, Steven D'Aprano wrote: Mark Lawrence wrote: On 15/03/2015 20:59, Fetchinson . wrote: On 3/15/15, Mark Lawrence breamore...@yahoo.co.uk wrote: On 15/03/2015 19:05, John Nagle wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm

[issue23624] str.center inconsistent with format ^

2015-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Serhiy] The behavior of Python 2.7 is the same as Python 3.x. str.center() is very old method and changing it will change formatted reports generated by third-party software in all world. At least this will break many tests. And this will add yet one

[issue23675] glossary entry for 'method resolution order' links to something with python 2.3 in the title

2015-03-15 Thread R. David Murray
New submission from R. David Murray: The link is correct; that document describes the new-style class method resolution order, which is what Python3 uses. However, the title is a bit problematic, and either the title should be changed or the link from the Python3 docs should have a gloss

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Chris Angelico
On Mon, Mar 16, 2015 at 11:25 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Some of the bugs I listed are so easy to hit that I suspect those packages aren't used much. Those bugs should have been found years ago. Fixed, even. I shouldn't be discovering them in 2015.

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Mark Lawrence
On 15/03/2015 20:59, Fetchinson . wrote: On 3/15/15, Mark Lawrence breamore...@yahoo.co.uk wrote: On 15/03/2015 19:05, John Nagle wrote: On 3/14/2015 1:00 AM, Marko Rauhamaa wrote: John Nagle na...@animats.com: I'm approaching the end of converting a large system from Python 2 to Python

[issue18814] Add codecs.convert_surrogateescape to clean surrogate escaped strings

2015-03-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Add support of UnicodeTranslateError in standard error handlers ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18814 ___

[issue20962] Rather modest chunk size in gzip.GzipFile

2015-03-15 Thread Martin Panter
Martin Panter added the comment: See also the patch for Issue 23529, which changes over to using BufferedReader for GzipFile, BZ2File and LZMAFile. The current patch there also passes a buffer_size parameter through to BufferedReader, although it currently defaults to io.DEFAULT_BUFFER_SIZE.

[issue23670] Modifications to support iOS as a cross-compilation target

2015-03-15 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Understood that buildbots are required. The subject has come up a couple of times on mobile-sig - however, I haven't got a good answer for exactly what this means in practice. Does build hardware need to be delivered to a specific build farm location, or

Re: generator/coroutine terminology

2015-03-15 Thread Steven D'Aprano
Marko Rauhamaa wrote: Chris Angelico ros...@gmail.com: On Sun, Mar 15, 2015 at 9:15 AM, Marko Rauhamaa ma...@pacujo.net wrote: Is it necessary/useful for a Python application programmer to be conscious of the different types of iterator? What mistaken usage could arise if the application

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2015-03-15 Thread Robert Collins
Robert Collins added the comment: Test looks good to me. Do you want to apply it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21112 ___ ___

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-03-15 Thread Robert Collins
Robert Collins added the comment: Looking at the regression now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911 ___ ___ Python-bugs-list

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23631 ___ ___ Python-bugs-list mailing

[issue8087] Unupdated source file in traceback

2015-03-15 Thread Robert Collins
Robert Collins added the comment: Oh, it may be clear to everyone already but its perhaps worth noting: there are two ways the cache can skew. (older source): We may have a newer file compiled and in use and the older source in the cache. e.g. someone calls linecache.getlines(foo.py), then

[issue8087] Unupdated source file in traceback

2015-03-15 Thread Robert Collins
Robert Collins added the comment: Oh, meant to add - we could just call logging.warning or something. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8087 ___

[issue23585] patchcheck doesn't depend on all

2015-03-15 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23585 ___

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-15 Thread Robert Collins
Robert Collins added the comment: I suspect that this is due to a list being passed in that wasn't created by traceback, in the older tuple-only format. That was meant to work, but possibly is being short circuited somewhere. Shall fix asap. -- ___

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-15 Thread Robert Collins
Robert Collins added the comment: Ah, idle is being somewhat naughty. It's taking the original traceback and then mangling the contents in-place, which is preserving the type information, and throwing off StackSummary.from_list. We can and should make the new code deal with this in case other

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-15 Thread Robert Collins
Robert Collins added the comment: And here is a patch, since this is a regression I'll apply it tomorrow (or sooner if it gets reviews :)) -- keywords: +patch Added file: http://bugs.python.org/file38503/issue-23631-1.patch ___ Python tracker

[issue23631] 3.5 (a2) traceback regression snarls Idle

2015-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea3cc128ce35 by Robert Collins in branch 'default': Issue #23631: Fix traceback.format_list when a traceback has been mutated. https://hg.python.org/cpython/rev/ea3cc128ce35 -- nosy: +python-dev ___

[issue23310] MagicMock constructor configuration fails for magic methods

2015-03-15 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- stage: - needs patch type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23310 ___

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Chris Angelico
On Mon, Mar 16, 2015 at 1:53 PM, Cameron Simpson c...@zip.com.au wrote: I would say that time clearly isn't the issue. Nine years IS enough... if it's a matter of time. But since the bugs are still there, it means that the problem is a lack of usage. Solution: Use it! Do the port to Python 3,

Dict comprehensions - improvement to docs?

2015-03-15 Thread Frank Millman
Hi all I like dict comprehensions, but I don't use them very often, so when I do I need to look up the format. I always struggle to find the information in the Library Reference. The obvious location, Mapping Types, shows various constructors, but not the comprehension.

[issue23585] patchcheck doesn't depend on all

2015-03-15 Thread Nick Coghlan
Nick Coghlan added the comment: Sounds fine to me. This could be particularly useful for docs-only patches, where you may not have done a local make test first. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org

[issue23310] MagicMock constructor configuration fails for magic methods

2015-03-15 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23310 ___ ___

Re: Python 2 to 3 conversion - embrace the pain

2015-03-15 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: Solution: Use it! Do the port to Python 3, and file those upstream bug reports. One should mention that John did all of that. Yep. I'm not saying that John did the wrong thing; what I'm saying is that, sometimes, this kind of pain is the exact thing

  1   2   >