[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-22 Thread Dmitry Shachnev
Dmitry Shachnev mity...@gmail.com added the comment: Then, which types of argument should encode_* functions take (I think str should be supported, and it's not a case here as encode_quopri will only accept bytes)? I meant which types of *payload* should they accept. Here's an illustration

[issue14357] Distutils2 does not work with virtualenv

2012-03-22 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: Kubuntu 11.10, 64-bit. No ~/.pydistutils.cfg. What other info do you need? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14357

[issue9528] Add pure Python implementation of time module to CPython

2012-03-22 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528 ___ ___ Python-bugs-list

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
New submission from Jeff Robbins je...@livedata.com: Windows.h includes RpcNdr.h which does this: #define small char accu.h in Python\Include (Python 3.2.3rc2) has this in it: typedef struct { PyObject *large; /* A list of previously accumulated large strings */ PyObject *small; /*

[issue4024] float(0.0) singleton

2012-03-22 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- superseder: - Intern certain integral floats for memory savings and performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4024

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I suggest to remove accu.h from Python.h: all functions are private anyway, and it's only used by couple of files. -- assignee: - pitrou nosy: +amaury.forgeotdarc, pitrou ___ Python tracker

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f57cbcefde34 by Benjamin Peterson in branch '3.2': check by equality for __future__ not identity (closes #14378) http://hg.python.org/cpython/rev/f57cbcefde34 New changeset 9d793be3b4eb by Benjamin Peterson in

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: email in python3 doesn't necessarily work with binary payloads. (Obviously here you've found the opposite problem, but it is in methods that aren't used by the package itself.) There aren't any tests of binary payloads in the test

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-03-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +needs review stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14078 ___

[issue14386] Expose dictproxy as a public type

2012-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 2: - add tests and documentation - dictproxy code moved to dictproxyobject.c - dict_proxy replaced with dictproxy in repr(dictproxy) - key in dictproxy now handles correctly dict subclasses - dictproxy constructor

[issue14386] Expose dictproxy as a public type

2012-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: The dictproxy is useful to implement a Python sandbox: see the related issue #14385. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14386

[issue14385] Support other types than dict for __builtins__

2012-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Note: this protection is not enough to secure Python, but it is an important part of a Python sandbox. Oh, and by the way, I workaround the lack of read-only mapping in pysandbox by removing dict methods: dict.__init__(),

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the report and patch. However, in general we prefer not to mask exceptions (doing that can hide bugs in programs). It would probably be reasonable to fix this in pydoc, however. Alternatively there might be a specific

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, georg.brandl priority: normal - release blocker versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14387

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: After this commit the buildbots are dying randomly with segfaults. -- nosy: +r.david.murray priority: normal - release blocker status: closed - open ___ Python tracker rep...@bugs.python.org

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1729ec440bb6 by Benjamin Peterson in branch '2.7': check by equality for __future__ not identity (closes #14378) http://hg.python.org/cpython/rev/1729ec440bb6 -- status: open - closed

[issue14378] __future__ imports fail when compiling from python ast

2012-03-22 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 1b467efb9b27 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14378 ___ ___

[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This should be fixable using the attached patch. -- keywords: +patch nosy: +vinay.sajip stage: needs patch - patch review type: - behavior Added file: http://bugs.python.org/file24992/Makefile.pre.in.diff

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-03-22 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Hi Leon, Thanks for the patch. I suggest to start by raising this to the python-ideas mailing list, to see if anyone has objections / different idea about doing this. Next, keep in mind that starting with 3.3, the default ElementTree

[issue14388] configparser.py traceback

2012-03-22 Thread Sol Jerome
New submission from Sol Jerome solj+...@soljerome.com: This seems like it could be user error, but the traceback doesn't provide useful information on where the problem could be. The relevant class is at the following URL.

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f34ac2e9d5cf by Antoine Pitrou in branch '3.2': Issue #14387: Do not include accu.h from Python.h. http://hg.python.org/cpython/rev/f34ac2e9d5cf New changeset 5fe7d19ec49a by Antoine Pitrou in branch 'default':

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed according to Amaury's suggestion. Georg, Benjamin, I think this should probably go into the final releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14387

[issue14388] configparser.py traceback

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Looking at the traceback and your code, configparser is calling 'get', expecting to call its own get method (that takes a 'raw' keyword), but instead is calling the get on your subclass, which doesn't take a 'raw' keyword. Since this

[issue13325] no address in the representation of asyncore dispatcher after connection established

2012-03-22 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closing as duplicate of issue 13694. -- resolution: - duplicate status: open - closed versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13325

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Yes, there is a measurable performance decrease in pybench arithmetic tests. Integers don't fall out of arithmetic that often, true. But integral floats are incredibly common in tabular data. In a game such as Eve Online,

[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Thanks vinay (and ned). I thought that was the cause of the problem - but glad you diagnosed and fixed it before I had to look into it. Patch looks good to apply. -- ___ Python tracker

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Integers don't fall out of arithmetic that often, true. But integral floats are incredibly common in tabular data. In a game such as Eve Online, configuration data contains a lot of 0.0, 1.0, -1.0 and so on. This patch saved us many

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8c19c9914c22 by Giampaolo Rodola' in branch '2.7': fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: The -10..11 range was determined empirically. As you see from the values, only -10 shows up as significant... In fact, just storing 0 to 5 would capture the bulk of the savings. Right, I'll do some test with the hardcoded

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Right, I'll do some test with the hardcoded values you mentioned. Btw, I don't think -0.0 is worth it, that value is a typical arithmetic result and not something you typically get from input data. I was suggesting -0.0 in the hope that it

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e2cddb3f4526 by Giampaolo Rodola' in branch '3.2': fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Try moving your changes from PyFloat_FromDouble to PyFloat_FromString. Look at memory and perfomance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14381

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8c1fd9276b25 by Giampaolo Rodola' in branch '3.2': issue 10340 - forgot to update Misc/NEWS http://hg.python.org/cpython/rev/8c1fd9276b25 -- ___ Python tracker

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 13cefcbcc7da by Giampaolo Rodola' in branch 'default': fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-22 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: It seems not even using -S fixes the problem: [16:25] brief:python-traceback-test% head -n 2 caller.py #!/usr/bin/python3 -S [16:25] brief:python-traceback-test% ./caller.py Indirect child being called Indirect child being

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola priority: high - normal resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-22 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: I think setting up SIGINT after importing site is a good solution: It will kill the program as expected and as soon as the user takes over control, she can decide what todo. In which stage/part is the python interpreter when I

[issue14389] Mishandling of large numbers

2012-03-22 Thread Practicing Zazen
New submission from Practicing Zazen itisgenerallyagr...@gmail.com: Please let me know if this is accepted behavior or not. 9*999 8991 9*999+0.1 8990.0 9*999+1 8992 -- messages: 156576 nosy: Practicing.Zazen

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread Dave Burton
Dave Burton ncdave4l...@gmail.com added the comment: Well, the exception is NotImplementedError. It's raised explicitly in pygame\__init__.py I uncommented my commented-out print statement in inspect.py, and added a traceback print, and ran pydoc like this: c:\python32\python.exe

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: PyFloat_FromString() is very restrictive. In our case, for example, the floats in question don't come from text files. I'm adding a new file with changes suggested by Antoine. only 0.0 and 1.0 are interned. It turns out that

[issue14389] Mishandling of large numbers

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: See http://docs.python.org/dev/faq/design.html#why-are-floating-point-calculations-so-inaccurate -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14389

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-22 Thread poq
poq p...@gmx.com added the comment: It seems not even using -S fixes the problem That's because you try to use re and os in your except block, and the KeyboardInterrupt is raised before they are imported. -- nosy: +poq ___ Python tracker

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Michael, I thought you might be interested in this one since it looks like it might involve inspect executing code unexpectedly, and I know you worked on ways of not doing that... -- nosy: +michael.foord

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Adding a patch here. -- keywords: +patch Added file: http://bugs.python.org/file24995/#10538.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10538

[issue14389] Mishandling of large numbers

2012-03-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14389 ___

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-22 Thread telmich
telmich nico-bugs.python@schottelius.org added the comment: Oh yes, you are right. Sorry for the confusion. When modifying caller.py to only print(), everything works. But then I've a different problem: If I want to exit(1), in case I get a SIGINT, I'd like to try to import sys. But trying

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: What's wrong with making functionality overridable, Antoine? By all means, let's keep the select() but allow subclasses to elect not to use it. As for the wakeup fd, there isn't such a thing. Why object on the basis of a

[issue14389] Mishandling of large numbers

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You might want to take a look at the Decimal module. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14389 ___

[issue10340] asyncore doesn't properly handle EINVAL on OSX

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This appears to be causing buildbot failures: http://www.python.org/dev/buildbot/all/builders/x86%20debian%20parallel%203.x/builds/4077 http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/builds/3520 --

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10538 ___ ___ Python-bugs-list

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Sounds reasonable to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14387 ___ ___

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Hmm, I still get the error in 13cefcbcc7da: c:\Users\stefan\pydev\cpython\Include\accu.h(21) : error C2059: syntax error : 'type' c:\Users\stefan\pydev\cpython\Include\accu.h(22) : error C2059: syntax error : '}'

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: We can of course also rename small. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14387 ___

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 17c671529f7e by Kristján Valur Jónsson in branch '2.7': Issue #10538. Put a reference to the source object in the Py_buffer when http://hg.python.org/cpython/rev/17c671529f7e -- nosy: +python-dev

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10538 ___

[issue14384] Add default kw argument to operator.itemgetter and operator.attrgetter

2012-03-22 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com added the comment: python-ideas post at https://groups.google.com/d/msg/python-ideas/lc_hkpKNvAg/ledftgY0mFUJ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14384

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-22 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: All errors are fixed. All tests are passed. Unfortunately, the patch was more than expected. This is necessary for correct and effective work with large bzip2 buffers (for other codecs can also be a profit). -- Added file:

[issue14384] Add default kw argument to operator.itemgetter and operator.attrgetter

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Great. I'm going to close the issue, but it's only for now: if you get a good response and a design agreement on python-ideas please reopen the issue. Of course, we'd need a patch, too; and I believe there would need to be close to

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, I still get the error in 13cefcbcc7da: Can you try to find a fix? I don't have anything to test here. -- assignee: pitrou - ___ Python tracker rep...@bugs.python.org

[issue14371] Add support for bzip2 compression to the zipfile module

2012-03-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +nadeem.vawda stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14371 ___

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: You should mention your change in Misc/NEWS. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10538 ___

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: The easiest fix would be to rename the small field in accu.h (and of course in any file that references that field.) I have no idea who uses this file. Perhaps the 2nd easiest fix would be to put this after the #include of Windows.h #ifdef

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2012-03-22 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Let's close this issue as very old and obsolete. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1676 ___

[issue14361] No link to issue tracker on Python home page

2012-03-22 Thread Daniel Swanson
Daniel Swanson popcorn.tomato.d...@gmail.com added the comment: I agree that the link to the bug tracker should be more obvious (yesterday it took me almost an hour to find it) -- nosy: +weirdink13 ___ Python tracker rep...@bugs.python.org

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The code is *already* triggering execution through the use of hasattr. It could be switched to use getattr_static instead, but the try...except in the patch looks reasonable whether or not that change is made. --

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, the exception shouldn't be silenced. As David said, I think it would be better to silence the exception in pydoc. Besides, it would be nice to come with a standalone test case, because it's not clear exactly why pygame triggers this.

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Patch to default character set to utf8 if non-ascii characters are found in the input string. Please let me know if this is what you had in mind. -- nosy: +Jeff.Knupp ___ Python tracker

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread Jeff Knupp
Changes by Jeff Knupp jkn...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file24997/mailutf8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14380 ___

[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What's wrong with making functionality overridable, Antoine? By all means, let's keep the select() but allow subclasses to elect not to use it. It's making the implementation more complex for no obvious point. Using select() is not a bug in

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Pretty close. I'd do the check for us_ascii first, and only do the encode test/switch to utf-8 if that's the charset. The reason is that that if a charset has been specified, we don't waste time doing an unnecessary encoding (and the

[issue1222721] tk + setlocale problems...

2012-03-22 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I have no problems with executing demo. I used Russian locale with LC_NUMERIC, utf-8 and cp1251 (Russian Windows encoding). Looks like the problem cannot be reproduced. -- nosy: +asvetlov

[issue14384] Add default kw argument to operator.itemgetter and operator.attrgetter

2012-03-22 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14384 ___ ___

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Jeff's #undef suggestion works here (see patch). But I have a question: Where is Windows.h pulled in anyway? A grep only shows signalmodule.c: $ find . -name \.hg -prune -o -type f -print0 | xargs -0 grep -n 'Windows\.h'

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: re Stefan Krah's posting: I am sorry if I've caused any confusion. I am building a Python extension (APSW), and it includes the sqlite amalgamation and also includes Python.h. Sqlite includes Windows.h. Which then causes the problem when

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Understood. Please take a look at the updated patch. Also, removed the unrelated diffs that somehow were hanging around in my hg mq. -- Added file: http://bugs.python.org/file24999/mimeutf8.patch ___

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Jeff Robbins rep...@bugs.python.org wrote: I am sorry if I've caused any confusion. I am building a Python extension (APSW), and it includes the sqlite amalgamation and also includes Python.h. The Python build itself failed here, too,

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That looks good. -- stage: test needed - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14380 ___

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: To prevent further confusion. :) db154e62ac03 - OK 5fe7d19ec49a - failure 5fe7d19ec49a with #undef patch - OK So I don't know if it is better to revert to db154e62ac03 or to use the #undef patch. Jeff, you originally said: 'An

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2012-03-22 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Yes, whatever the initial problem, it doesn't seem to be an issue anymore. -- nosy: +ned.deily resolution: - out of date stage: test needed - committed/rejected status: open - closed ___ Python tracker

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8efe88c0f14e by krisvale in branch '2.7': Issue #10538 - Update Misc/NEWS http://hg.python.org/cpython/rev/8efe88c0f14e -- ___ Python tracker rep...@bugs.python.org

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-22 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: David Murray, I used to think what deprecation process in Python have to go trough PendingDeprectaionWarning to DeprecationWarning and removing in next next release at end. Is it right? Also I thought what that trivial patch does not

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: Stefan asked 'Did you include Python.h before or after Windows.h? Extensions are supposed to include Python.h before anything else. ' I downloaded http://code.google.com/p/apsw/ to test it out on the latest sqlite release. I followed the

[issue11077] Tkinter is not thread safe

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11077 ___ ___

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5527 ___ ___ Python-bugs-list

[issue1447222] tkinter Dialog fails when more than four buttons are used

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1447222 ___ ___

[issue10538] PyArg_ParseTuple(s*) does not always incref object

2012-03-22 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Thanks :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10538 ___ ___

[issue1252236] Simplying Tkinter's event loop

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1252236 ___ ___

[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1ec74eeda4e8 by Ned Deily in branch 'default': Issue #14382: Ensure new unittest.test.testmock is installed. http://hg.python.org/cpython/rev/1ec74eeda4e8 -- nosy: +python-dev

[issue14382] test_unittest crashes loading 'unittest.test.testmock' when run from installed Python

2012-03-22 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14382 ___

[issue14390] Tkinter single-threaded deadlock

2012-03-22 Thread John Bollinger
New submission from John Bollinger john.bollin...@stjude.org: This is the same as issue 452973, created as a new issue pursuant to the instruction given when 452973 was closed as out of date. In a nutshell, in a program using combining Tkinter with Tcl callbacks written in C, it is possible

[issue3035] Removing apparently unwanted functions from Tkinter

2012-03-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are theoretically right about not posting trivial patches, but as you can see, sometimes even a trivial patch elicits unexpected insights. So I like to always post my patches, even the seemingly trivial ones. Then if I don't get

[issue3367] Uninitialized value read in parsetok.c

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Victor, could you check out the last patch here for sysmodule? I gather that you are familiar with it. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue1222721] tk + setlocale problems...

2012-03-22 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thanks for retesting. Closing until there is a clear problem with current releases. -- resolution: - out of date status: open - closed versions: -Python 2.4 ___ Python tracker

[issue6270] Menu deletecommand fails if command is already deleted

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6270 ___ ___ Python-bugs-list

[issue3015] tkinter with wantobjects=False has been broken for some time

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3015 ___ ___ Python-bugs-list

[issue14381] Intern certain integral floats for memory savings and performance

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok. In the current state it doesn't look detrimental, although I'm not convinced it's that useful either. That said, the implementation needs a bit of work, I don't think it's ok for float_is_positive_zero() to use the Py_LONG_LONG casting

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Now unicodedata.c does not compile with VS2010, because somewhere, small is defined. Do you mind if I change the _PyAccu.small member to 'smalls'? -- nosy: +krisvale ___ Python tracker

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now unicodedata.c does not compile with VS2010, because somewhere, small is defined. Do you mind if I change the _PyAccu.small member to 'smalls'? How about the #undef suggested somewhere? -- ___

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Sure, that's simpler. I'll submit a fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14387 ___

[issue1524639] Fix Tkinter Tcl-commands memory-leaks

2012-03-22 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- assignee: - asvetlov nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1524639 ___

  1   2   >