[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-04-02 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - asmodai nosy: +asmodai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8245 ___

[issue8261] License link for Python 2.6.5 release is broken

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, should be fixed now. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8261 ___

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I applied the first part of the patch in r79580. I don't see that the second part is necessary, the other functions don't have such a note. -- resolution: - fixed status: open - closed ___ Python

[issue8227] Fix C API documentation: Argument parsing

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks good to me. -- assignee: georg.brandl - haypo resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8227 ___

[issue7696] Improve Memoryview/Buffer documentation

2010-04-02 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7696 ___

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- priority: - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8257 ___ ___ Python-bugs-list

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I've fixed the using/cmdline and manpage to describe the current behavior. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8213

[issue2531] float compared to decimal is silently incorrect.

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Float-to-decimal comparisons have been fixed, and the Decimal hash function changed so that numerically equal Decimal and float instances hash equal, in r79583. The idea of raising an exception for float-Decimal comparisons was discarded

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think this patch is not correct: a generator really is the same as generator function. Both generators and genexps return an iterator; I've fixed that in r79587. -- resolution: - fixed status: open - closed

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Raymond, do you want this to go into 2.7 as well? I'm assuming that we're not going to allow mixed-type float+decimal operations in 2.7. Also, if we're doing this, it seems to me that all the reasons you give for the Decimal constructor

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-04-02 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Additional fixes: r79576, r79577, r79578 (idlelib package and some test modules) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7092

[issue8267] Tutorial section on dictionary keys recommends sort instead of sorted

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm not sure about this; what is the advantage? If you already have a list, calling .sort() on it is more efficient since it doesn't have to create a new list. -- ___ Python tracker

[issue7279] decimal.py: == and != comparisons involving NaNs

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Stefan. Applied to trunk in r79588. Still needs to be forward ported to py3k. -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7279

[issue7279] decimal.py: == and != comparisons involving NaNs

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Allowed hashing of Decimal('nan') in r79589; Decimal('snan') continues to raise TypeError. I've also rewritten Decimal.__hash__ a little bit, so that it won't care if float('inf') raises an exception. This will all be much neater if the

[issue7585] difflib should separate filename from timestamp with tab

2010-04-02 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Refreshed patches - feel free to apply in any order you want. Convenience link for reviews: http://codereview.appspot.com/809043/show -- ___ Python tracker rep...@bugs.python.org

[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris

2010-04-02 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: The compile step fails on python-gdb.py on some buildbots. # sparc solaris 10 gcc running build_scripts [51847 refs] ./install-sh -c python-gdb.py ./install-sh: python-gdb.py does not exist *** Error code 1 make: Fatal

[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris

2010-04-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: David, can you please take a look? -- assignee: - dmalcolm nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8287 ___

[issue7585] difflib should separate filename from timestamp with tab

2010-04-02 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file16732/issue7585.difflib-tab-update-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7585 ___

[issue1023290] Conversion of longs to bytes and vice-versa.

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The backport wasn't as straightforward as I'd hoped, and we've pretty much run out of time for 2.7. One issue is that long.from_bytes(b, ...) converts b to bytes type using the equivalent of bytes(b). This doesn't work well in 2.7

[issue7585] difflib should separate filename from timestamp with tab

2010-04-02 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Removed file: http://bugs.python.org/file16732/issue7585.difflib-tab-update-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7585 ___

[issue7585] difflib should separate filename from timestamp with tab

2010-04-02 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file16734/issue7585.difflib-tab-updoc-iso8601.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7585 ___

[issue8235] Support FreeBSD's SO_SETFIB in socketmodule.c

2010-04-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Committed in Python 2.7 as revision r79592 Committed in Python 3.2 as revision r79594 Thanks for the patch! -- assignee: - larry resolution: - accepted status: open - closed versions: +Python 3.2

[issue7994] object.__format__ should reject format strings

2010-04-02 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Committed in trunk in r79596. I'll leave this open until I port to py3k, check the old tests for this usage, and create the issue to make it a DeprecationWarning. -- stage: patch review - committed/rejected

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-02 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: If this doesn't relate to multibyte strings anymore, but just to long strings then I'd open new bug. If even regedit fails to query then maybe its WinAPI flaw? Maybe it will worth to try ctypes. --

[issue7992] Backport capsule object

2010-04-02 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The PendingDeprecationWarning is still spit by the bsddb module. $ ./python -Wd -m test.regrtest test_bsddb test_bsddb ./Lib/importlib/__init__.py:37: PendingDeprecationWarning: The CObject type is marked Pending Deprecation in

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Isn't there an issue around having multiple versions of Python installed? The top level folder should only be removed if the version of Python being uninstalled is the last installed Python. This means executing code on uninstall and

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: The top level should be removed only when it is empty after Python that is being uninstalled removed its own branch. -- ___ Python tracker rep...@bugs.python.org

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: There should be a function to remove key if empty. BTW, what software is used to create (un)installer and where is Python code for it? -- ___ Python tracker rep...@bugs.python.org

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Grigory
New submission from Grigory mat...@gmail.com: Zipfile module documentaion says: The file-like object is read-only and provides the following methods: read(), readline(), readlines(), __iter__(), next() But ZipExtFile class doesn't provide next(), it provides __next__(). -- assignee:

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: See PC/_msi.c, Lib/msilib, and Tools/msi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3778 ___

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-02 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: It was never 100% clear that it ever related to multi-byte strings, so (as the original reporter) I'd prefer to continue using this bug and just update the title to: _winreg.EnumValue sometimes raises WindowsError (More data

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-02 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I just wrote a C program that can read the long key name just fine, so it's not a Windows API bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2010-04-02 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: Currently, when you create a Process, all arguments you pass to its __init__ get pickled. I understood this is done because arguments to __init__ almost always become attributes to the Process. Like this: def

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2010-04-02 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Sorry, I accidentally typed def instead of class in my code sample. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8289 ___

[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris

2010-04-02 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Sorry about this. I believe this is the expansion of these fragments from the Makefile.pre.in (indenting for clarity): gdbhooks: $(BUILDPYTHON)-gdb.py $(BUILDPYTHON)-gdb.py: Tools/gdb/libpython.py $(INSTALL_SCRIPT) $

[issue8290] I HAVE A PROBLEM WITH PYTHON

2010-04-02 Thread LOLLA RADHA KRISHNA MURTHY
New submission from LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com: I HAVE TO PERFORM A TASK THAT IS CALENDER.PY in what way it is easier to me please tell -- files: day.py messages: 102175 nosy: krishnalolla severity: normal status: open title: I HAVE A PROBLEM WITH PYTHON

[issue8290] I HAVE A PROBLEM WITH PYTHON

2010-04-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: HI! This is the wrong place where to ask help, try http://www.python.org/about/help/#got-a-python-problem-or-question -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed

[issue8291] i have a doubt with using __init__ and .self and classes

2010-04-02 Thread LOLLA RADHA KRISHNA MURTHY
New submission from LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com: i have a doubt with __init__ and .self how it is useful to us? are we have to define a class in another class?if it is by what function -- messages: 102177 nosy: krishnalolla, skip.montanaro severity: normal

[issue8291] i have a doubt with using __init__ and .self and classes

2010-04-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Hi! This is the wrong place where to ask help, try http://www.python.org/about/help/#got-a-python-problem-or-question -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed

[issue8292] Incorrect condition test in platform.py

2010-04-02 Thread A.M. Kuchling
New submission from A.M. Kuchling li...@amk.ca: While looking at #4440, I grepped for similar problems and found one in platform.py in the following line: if no_os_uname or not filter(None, (system, node, release, version, machine)) In 3.x, filter() returns an object, not a list, so 'not

[issue4440] sort command doesn't work in pstats if run interactively

2010-04-02 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Thanks for your bug report and patch! The original 2.x version was pretty ugly code with a lambda that used default arguments, so I rewrote the line to be more modern; it now does ' all((x in abbrevs) for x in line.split())'. Committed my version

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Added the requires decorator as requested. Committed in r79602. Will backport to 2.7 this weekend. And yes, I agree that Fraction(somedecimal) should work too. It would be weird to have Fraction(1.1) work but not

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Mark, I do think we should have decimal+float--float in 2.7 also. That's fine with me in principle. But isn't 2.7 in feature freeze from tomorrow? -- ___ Python tracker rep...@bugs.python.org

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And yes, I agree that Fraction(somedecimal) should work too. What about Fraction(1.1)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8257

[issue1220212] os.kill on windows

2010-04-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: After discussion with Brian it seems like it should be possible for os.kill(...) on Windows to support both pids *and* process handles. This seems ideal. -- ___ Python tracker

[issue6647] warnings.catch_warnings is not thread-safe

2010-04-02 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Added a warning to 2.x trunk in r79607, and Gabriel's doc change in r79608. This thread-unsafety seems specialized and rarely of great importance, so I used the note:: directive, not warning::. -- nosy: +akuchling resolution: - fixed

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-04-02 Thread David Andrzejewski
New submission from David Andrzejewski site+python@davidandrzejewski.com: Python 2.6.4, Windows XP. If you run the following code: import httplib http_connection = httplib.HTTPConnection(192.168.192.196) http_connection.request(GET, /) http_connection.sock.settimeout(20) response =

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-04-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8293 ___ ___

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner jjpos...@optimum.net added the comment: Georg, your change (r79587) makes this the main definition: generator A function which returns an iterator. I'm concerned that this definition does not fit well with the occurrence of generator object in the following: Python

[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I made a couple of experimental checkins to the release26-maint branch (I didn't want to do a temporary checkin to the trunk with a release imminent): see r79560 (which didn't work :) and its fix in r79601. Results: MIN =

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: A nitpick: on OS X, the gdb script ends up being called: python.exe-gdb.py Is this intentional? If it is, then I'll add this filename to the svn:ignore property. (And also to make distclean, I guess. Is python-gdb.py currently deleted

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r79615 (only applies to py3k.) -- resolution: - fixed status: open - closed versions: +Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue7992] Backport capsule object

2010-04-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Yes. I was told it was inappropriate for me to change the bsddb module, as it's independently maintained by Jesus Cea. I sent Mr. Cea a patch last night; I hope he chooses to merge it soon. Since CObjects are marked Pending Deprecation,

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-04-02 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: A nitpick: on OS X, the gdb script ends up being called: python.exe-gdb.py Is this intentional? If it is, then I'll add this filename to the svn:ignore property. (And also to make distclean, I guess. Is python- gdb.py currently

[issue7992] Backport capsule object

2010-04-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Oh, and, last night I checked in r79590. This is the checkin that ameliorates the backwards compatibility issues. Specifically, I changed four things: * PyCObject_AsVoidPtr() can now open capsules. This addresses most of the remaining

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Added python.exe-gdb.py to svn:ignore in r79616. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8032 ___

[issue7992] Backport capsule object

2010-04-02 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Ok, I put Jésus in the nosy list. It makes the test___all__ fail on trunk because it checks the warnings raised during import. AFAIU, the patch is something like: -#if (PY_VERSION_HEX 0x0302) +#if (PY_VERSION_HEX 0x0207)

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: To my knowledge, OS X doesn't ship with gdb 7 That sounds right. On my OS X 10.6.3 machine, the system gdb is: Mark-Dickinsons-MacBook-Pro:py3k dickinsm$ gdb --version GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51

[issue8294] Allow Fraction constructor to accept float and decimal instances directly.

2010-04-02 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Here's a patch that allows direct construction of a Fraction instance from a float or Decimal instance, performing an exact conversion in either case. from fractions import Fraction from decimal import Decimal Fraction(1.1)

[issue8294] Allow Fraction constructor to accept float and decimal instances directly.

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: (The patch is against trunk, btw.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8294 ___

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: Removed file: http://bugs.python.org/file16704/issue1220212.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212 ___

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Michael, do you have an example of something which returns a handle? This current patch doesn't work with handles, but it wouldn't be hard to add it. I could make it work with the _handle object of a Popen object, but you could just as easily

[issue8294] Allow Fraction constructor to accept float and decimal instances directly.

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The patch looks like what I expected. In the docstring, it would be nice if we kept the line with the spec for decimal strings: [-+]?[0-9]+((/|.)[0-9]+)? -- assignee: rhettinger - mark.dickinson resolution: -

[issue1220212] os.kill on windows

2010-04-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: According to earlier discussion in this issue os.spawn() return process handles on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212

[issue7992] Backport capsule object

2010-04-02 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: The patch is a bit more involved than that. Capsules didn't exist in 3.0, and the bsddb module published a CObject in 3.1. So bsddb must continue to use CObject for those two releases. Therefore the patch to the line you were addressing

[issue8294] Allow Fraction constructor to accept float and decimal instances directly.

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Unfortunately, that line is wrong (or at least incomplete), since decimals in exponential form are also accepted: Fraction('2.3e4') Fraction(23000, 1) I could try to reinstate a fixed version. Attaching a second version of the patch:

[issue8294] Allow Fraction constructor to accept float and decimal instances directly.

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Being wrong is a good reason to eliminate that line from the docstring :-) So, I'm happy with the patch as-is. -- ___ Python tracker rep...@bugs.python.org

[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates

2010-04-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to trunk in r79620. I'll do the forward port after 2.7b1. -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7347

[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-04-02 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8293 ___ ___ Python-bugs-list mailing

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner jjpos...@optimum.net added the comment: Fair enough, Georg. Case closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8012 ___ ___

[issue2799] Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2010-04-02 Thread John Ehresman
John Ehresman j...@wingware.com added the comment: I'm trying to port an existing C extension to py3k and find myself wanting something like PyUnicode_AsString so I don't need to introduce other objects to do memory management. PyUnicode_AsString is equivalent to PyArg_Parse w/ a 's' format

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-04-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a new patch. Should be complete but I want to test it some more before committing. I decided to follow RFC 3629, putting 0 instead of 5/6 for bytes in range F5-FD (we can always put them back in the unlikely case that the Unicode

[issue8294] Allow Fraction constructor to accept float and decimal instances directly.

2010-04-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Raymond. Committed to trunk in r79629. Will forward port to py3k. -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8294

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-04-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 79632. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8038 ___ ___

[issue8295] add unpack_archive to shutil

2010-04-02 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: unpack_archive is the reverse operation of make_archive and works the same way: it has a registery of function for each archive format. -- assignee: tarek components: Library (Lib) messages: 102212 nosy: tarek priority: normal

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to trunk in r79633 after talking with Michael about it. I'll forward port it after the 2.7 beta goes out. -- assignee: - brian.curtin stage: - committed/rejected type: - feature request ___

[issue1222585] C++ compilation support for distutils

2010-04-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Added file: http://bugs.python.org/file16742/distutils2-C++.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585 ___

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-04-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Further commit revision 79643. Needs tests and documentation. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8038

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-04-02 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8038 ___ ___ Python-bugs-list mailing list

[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover

2010-04-02 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 79643. Needs test and documentation. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7780

[issue1222585] C++ compilation support for distutils

2010-04-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think python-LDCXXSHARED.patch is fine. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585 ___

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-04-02 Thread Clovis Fabricio
Changes by Clovis Fabricio nosklo+pyt...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5712 ___ ___

[issue7337] Add lossy queue to queue library module

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I think it would be better to put this in the ASPN recipes cookbook to let it mature and gather a following. Right now, it is not at all clear that this is the right thing to do. -- resolution: - rejected status:

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Grigory
Grigory mat...@gmail.com added the comment: What about 2.7? I see the issue there too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8288 ___

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_CONST

2010-04-02 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: - low versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6133 ___

[issue7764] Doc for itertools recipe consume is complicated and less efficient

2010-04-02 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7764 ___

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Andrey Vlasovskikh
New submission from Andrey Vlasovskikh andrey.vlasovsk...@gmail.com: multiprocessing.Pool methods map, imap, etc. are said to be able to normally handle exceptions. But it seems that it is true only for synchronous exceptions inside their first func arguments. When (typically during a

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Do you have a test case which can reproduce the issue? -- nosy: +brian.curtin stage: - test needed type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Andrey Vlasovskikh
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com added the comment: Yes, here is my test case. -- Added file: http://bugs.python.org/file16743/test_pool_keyboardinterrupt.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: You might want to take a look here: http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Andrey Vlasovskikh
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com added the comment: Yes, I've come up with the same solution by myself, but it cannot cover all the cases of the bug. It works only for cases when ^C is hit during a call to the users' function:

[issue8297] AttributeError message text should include module name

2010-04-02 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: It would be nice if the error message for an AttributeError could include the module name when getting from a module -- just like it does for getting from a class. This would make the message more helpful. For example, it would

[issue8298] in what way we have to save tha module?

2010-04-02 Thread LOLLA RADHA KRISHNA MURTHY
New submission from LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com: what is the process to save the module in python? -- messages: 102225 nosy: krishnalolla severity: normal status: open title: in what way we have to save tha module? ___

[issue8298] in what way we have to save tha module?

2010-04-02 Thread LOLLA RADHA KRISHNA MURTHY
Changes by LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8298 ___