[issue8245] email examples don't actually work (SMTP.connect is not called)
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - asmodai nosy: +asmodai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8261] License link for Python 2.6.5 release is broken
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor
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 tracker rep...@bugs.python.org http://bugs.python.org/issue2768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8227] Fix C API documentation: Argument parsing
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7696] Improve Memoryview/Buffer documentation
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7696 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8257] Decimal constructor to accept float
Changes by Mark Dickinson dicki...@gmail.com: -- priority: - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8257 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2531] float compared to decimal is silently incorrect.
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 partly for backwards compatibility reasons, and partly because having __eq__ raise an exception causes difficulties for sets and dicts: for example, if equality checks between floats and Decimals raised an exception then '{-1.0, Decimal(-3)}' would give a valid set (the two values have different hashes, so the Decimal.__eq__ method is never invoked), but '{-1.0, Decimal(-2)}' would raise an exception (because the two set elements have equal hashes, so Decimal.__eq__ is invoked in order to determine whether the two elements are equal or not). (General principle: if x and y are hashable, x == y should never raise an exception.) This is still only a partial fix: comparisons between Decimal and Fraction instances still behave oddly. This seems less likely to cause problems in real-life code, though. The changes needed to make Decimal - Fraction comparisons correct are too intrusive and not yet well tested enough to make it into 2.7. (See issue 8188). As discussed on python-dev, I'll forward port this to py3k; with any luck, py3k will also grow valid comparisons for Decimal - Fraction. -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8012] Revise generator-related Glossary entries
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8257] Decimal constructor to accept float
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 accepting floats also apply to the Fraction constructor. The patch looks fine to me. The new testcase is specific to IEEE 754 binary64 floating-point format, so I'll slap a 'requires_IEEE_754' decorator on it (copying the definition from test_math.py), if that's okay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8257 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8267] Tutorial section on dictionary keys recommends sort instead of sorted
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 rep...@bugs.python.org http://bugs.python.org/issue8267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7279] decimal.py: == and != comparisons involving NaNs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7279] decimal.py: == and != comparisons involving NaNs
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 unified numeric hash is applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7585] difflib should separate filename from timestamp with tab
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 http://bugs.python.org/issue7585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris
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 error: Command failed for target `python-gdb.py' # x86 FreeBSD running build_scripts [53576 refs] /usr/bin/install -c python-gdb.py usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... *** Error code 64 -- components: Build keywords: buildbot messages: 102155 nosy: doko, flox, loewis priority: high severity: normal stage: needs patch status: open title: python-gdb.py triggers compile errors on FreeBSD and Solaris type: compile error versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7585] difflib should separate filename from timestamp with tab
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1023290] Conversion of longs to bytes and vice-versa.
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 (consider bytes([255, 0, 0]) for example. So different code is needed in 2.7 when interpreting an arbitrary Python object as a sequence of bytes. Perhaps the 2.7 version could just iterate over the given object, and raise an exception if any of the iterates are not integers in the range [0, 256). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1023290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7585] difflib should separate filename from timestamp with tab
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7585] difflib should separate filename from timestamp with tab
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8235] Support FreeBSD's SO_SETFIB in socketmodule.c
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8235 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7994] object.__format__ should reject format strings
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7994 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7992] Backport capsule object
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 Python 2.7. Please use capsule objects instead. __import__(name)h 1 test OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3778] python uninstaller leave registry entries
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 doesn't seem worth the effort. If I'm correct in this then I would suggest closing as wontfix. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3778 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3778] python uninstaller leave registry entries
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 http://bugs.python.org/issue3778 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3778] python uninstaller leave registry entries
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 http://bugs.python.org/issue3778 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8288] zipfile module documentation misprint
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: georg.brandl components: Documentation messages: 102168 nosy: georg.brandl, matpuk severity: normal status: open title: zipfile module documentation misprint versions: Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3778] python uninstaller leave registry entries
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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 is available). The patch I have planned will fix the problem regardless of the cause, (except for impossible-to-fix causes, such as if there really is an API flaw). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8289] multiprocessing.Process.__init__ pickles all arguments
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 MyProcess(multiprocessing.Process): def __init__(self, whatever): self.whatever = whatever Of course, attributes must be pickled so they can be accessed from the separate process (on Windows). And indeed in most cases all arguments to __init__ become attributes, so this makes sense. But, in some cases you pass in arguments to __init__ that do not become attributes. In my case, __init__ takes an object, and takes some attributes of this object as attributes to itself. The object is unpicklable, but the attributes are. So I had to make some ugly workaround to make the program run. So I think it would be better if Process would be smart enough to pickle only the arguments that get set as attributes. -- components: Library (Lib) messages: 102172 nosy: cool-RR severity: normal status: open title: multiprocessing.Process.__init__ pickles all arguments type: feature request versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8289] multiprocessing.Process.__init__ pickles all arguments
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8287] python-gdb.py triggers compile errors on FreeBSD and Solaris
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) $ $(BUILDPYTHON)-gdb.py It looks like the second of these is being invoked in both cases with $ as the empty string, rather than Tools/gdb/libpython.py (and each with their own expansion of INSTALL_SCRIPT). I'm guessing that the $ is a GNU Make-ism that isn't available on all implementations of make. If so, the quick fix is probably to replace $ with Tools/gdb/libpython.py in Makefile.pre.in I'm attaching a patch which introduces a variable for the path and uses this, rather than $. I only have access to Linux machines; I've tested it on one, and it works. I don't have commit rights, so I can't fix this directly myself. $ make -v GNU Make 3.81 From info make: `$' The name of the first prerequisite. If the target got its commands from an implicit rule, this will be the first prerequisite added by the implicit rule (*note Implicit Rules::). (In my defence, $ appeared to be used already in the Some make's put the object file in the current directory rule). Sorry again from breaking the build on those configurations. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file16735/introduce-var-for-gdb-hooks.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8290] I HAVE A PROBLEM WITH PYTHON
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 type: performance Added file: http://bugs.python.org/file16736/day.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8290] I HAVE A PROBLEM WITH PYTHON
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8290 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8291] i have a doubt with using __init__ and .self and classes
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 status: open title: i have a doubt with using __init__ and .self and classes type: feature request versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8291] i have a doubt with using __init__ and .self and classes
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8291 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8292] Incorrect condition test in platform.py
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 filter()' will always be false. One fix is to either convert filter's output by adding list() or tuple(). Another fix could be 'not any ((system, node, release, version, machine))', but I don't know if platform.py is trying to stay compatible with versions of Python that lack any(). -- assignee: lemburg keywords: easy messages: 102179 nosy: akuchling, lemburg severity: normal status: open title: Incorrect condition test in platform.py versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4440] sort command doesn't work in pstats if run interactively
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 to trunk to r79603, and to 3.x trunk in r79604. (A lot of pstats.py is pretty old-looking and could be tied up.) -- assignee: - akuchling nosy: +akuchling resolution: - fixed status: open - closed Added file: http://bugs.python.org/file16737/pstats-simplify.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4440 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8257] Decimal constructor to accept float
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 Fraction(Decimal(1.1)). Mark, I do think we should have decimal+float--float in 2.7 also. I don't see any reason to have the two versions diverge on this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8257 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8257] Decimal constructor to accept float
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 http://bugs.python.org/issue8257 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8257] Decimal constructor to accept float
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1220212] os.kill on windows
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 rep...@bugs.python.org http://bugs.python.org/issue1220212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6647] warnings.catch_warnings is not thread-safe
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 status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8293] HTTPSConnection.close() does not immediately close the connection.
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 = http_connection.getresponse() data = response.read() http_connection.close() And then run a netstat -a, you'll see that the connection is no longer established (it'll have a status of TIME_WAIT or something along those lines). However, if you run the following code: import httplib http_connection = httplib.HTTPSConnection(192.168.192.196) http_connection.request(GET, /) http_connection.sock.settimeout(20) response = http_connection.getresponse() data = response.read() http_connection.close() And run a netstat, the connection will still be in the ESTABLISHED state. The connection does not end for several minutes (or when you terminate the program). I can get the connection to end when I want it by doing a del on the connection object and then manually running garbage collection - although that seems a bit wonky. I'm not really sure what all the differences are between HTTPConnection and HTTPSConnection, but it seems like they should both behave the same way in this regard. -- components: Library (Lib) messages: 102186 nosy: dandrzejewski severity: normal status: open title: HTTPSConnection.close() does not immediately close the connection. type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8293] HTTPSConnection.close() does not immediately close the connection.
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8293 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8012] Revise generator-related Glossary entries
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 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. obj1 = (x for x in [1,2]) def gfunc(): ... count = 0 ... while True: ... count += 1 ... yield count ... obj2 = gfunc() obj1 generator object genexpr at 0x00CC6378 obj2 generator object gfunc at 0x00CC6328 My patch attempted to make generator be the same as generator object in the above. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8265] test_float fails on ARM Linux EABI with soft floating point
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 = 2.2250738585072014e-308 TINY = 4.9406564584124654e-324 3*TINY = 1.4821969375237396e-323 MIN - 3*TINY = 2.2250738585071984e-308 ldexp(1.0, -1074) = 4.9406564584124654e-324 The values for MIN, TINY and 3*TINY are correct; the value for MIN - 3*TINY (which should be an exact operation) is not: it's giving something equal to MIN - 6*TINY instead. This should be easily reproducible at the C level, since the Python subtraction is just a thin wrapper around the corresponding C operation. So it looks as though the float emulation is buggy on this platform, and this bug should be reported upstream. Matthias, can you take care of this? For Python, I'm not sure what the appropriate action is, but I'd rather not skip the test, or otherwise completely silence the error. Maybe some sort of expected failure due to platform floating-point bug output? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8032] Add gdb7 hooks to make it easier to debug Python
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 by a 'make distclean'?) -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8288] zipfile module documentation misprint
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 http://bugs.python.org/issue8288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7992] Backport capsule object
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, and bsddb is using a CObject, this is correct behavior. Were you mentioning it simply to bring it my attention, or am I missing something important? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8032] Add gdb7 hooks to make it easier to debug Python
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 deleted by a 'make distclean'?) That was unexpected, but re-reading Makefile.pre.in I see where it's coming from. Please do add it to svn:ignore. Looks like I forgot to add the removal of the file to the distclean target. Sorry about that. Presumably adding: -rm -f python*-gdb.py should do the trick (as I understand it, if the glob fails to match, it will happily fail to rm the non-existant file named python*-gdb.py). Another nit I spotted: the buildbot is unexpectedly skipping test_gdb on Win32 (with gdb not found in path). Looking at _expectations in Lib/test/regrtest.py it strikes me that test_gdb is likely to be skipped on every configuration other than on linux2) - should I wire that in with a decorator within test_gdb.py? To my knowledge, OS X doesn't ship with gdb 7 - though presumably someone could build their own copy, linking with the system Python, and if so, the python.exe-gdb.py file would then be of use in debugging the freshly-built ./python.exe -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7992] Backport capsule object
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 backwards-compatibility concerns about the conversion of Python 2.7 from CObjects to capsules. * CObjects were marked Pending Deprecation. * Documentation about this pending deprecation was added to cobject.h. * The capsule source files were added to the legacy PC build processes. (Someone had already added them to the current PC build process, a day or two after I committed the previous checkin.) Sorry for forgetting to update the issue last night, but I was in a bit of a hurry to get this done before Benjamin cut 2.7b1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8032] Add gdb7 hooks to make it easier to debug Python
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7992] Backport capsule object
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) -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8032] Add gdb7 hooks to make it easier to debug Python
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 UTC 2009) I have the impression that few people have got gdb 7 working on OS X yet, but I might be wrong. Certainly macports doesn't seem to offer it yet. I expect that'll change, though. [About make distclean] Presumably adding: -rm -f python*-gdb.py should do the trick Yes, that seems to work. Thanks! Added in r79617. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8294] Allow Fraction constructor to accept float and decimal instances directly.
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) Fraction(2476979795053773, 2251799813685248) Fraction(Decimal('1.1')) Fraction(11, 10) Fraction(Decimal(1.1)) Fraction(2476979795053773, 2251799813685248) -- assignee: rhettinger components: Library (Lib) files: fraction_from_float.patch keywords: patch messages: 102198 nosy: mark.dickinson, rhettinger severity: normal status: open title: Allow Fraction constructor to accept float and decimal instances directly. type: feature request versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file16738/fraction_from_float.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8294] Allow Fraction constructor to accept float and decimal instances directly.
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1220212] os.kill on windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1220212] os.kill on windows
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 call os.kill on the pid of the Popen object. I don't know of any Python-wide handle object...I know subprocess has it's own, and don't really know what other functions are returning handles. Anyways, this patch includes an additional test script which uses ctypes to setup a console control handler, and CTRL_BREAK_EVENT is tested successfully. However, CTRL_C_EVENT is not. See http://msdn.microsoft.com/en-us/library/ms686016%28v=VS.85%29.aspx for details, but I'm not able to get the subprocess to work with CTRL+C. Calling SetConsoleCtrlHandler(NULL, FALSE) either in the script, test_os, or in _subprocess.c does not change anything, although it seems that it should. The CTRL_C_EVENT test is currently skipped in the patch until I can figure that out. -- nosy: +dino.viehland Added file: http://bugs.python.org/file16739/issue1220212.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8294] Allow Fraction constructor to accept float and decimal instances directly.
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: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1220212] os.kill on windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7992] Backport capsule object
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 looks like this: -#if (PY_VERSION_HEX 0x0302) +#if (PY_VERSION_HEX ((PY_MAJOR_VERSION 3) ? 0x0207 : 0x0302)) However, Jesus's use of capsules has a bug. The capsule API requires that the string passed in to PyCapsule_New() must outlive the capsule; he's passing in a stack buffer. So my patch also fixes that. Finally my bsddb patch adds the appropriate text to the header file where it describes how to import the _bsddb C API object (CObject vs capsule). FWIW, I want to close this issue soon. How about I close it after 2.7b1 has been out for a week or so--assuming there aren't any new concerns regarding the capsule backport. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8294] Allow Fraction constructor to accept float and decimal instances directly.
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: same as the first, except for some doc tweaks. (Rewording, markup fixes.) -- Added file: http://bugs.python.org/file16740/fraction_from_float2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8294] Allow Fraction constructor to accept float and decimal instances directly.
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 http://bugs.python.org/issue8294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8293] HTTPSConnection.close() does not immediately close the connection.
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 list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8012] Revise generator-related Glossary entries
John Posner jjpos...@optimum.net added the comment: Fair enough, Georg. Case closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2799] Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()
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 code, which I find hard to believe will be removed. Another bug proposes changing the name and passing in a default value, which may be a good idea. -- nosy: +jpe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2799 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0
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 Consortium changed its mind) and also for other invalid ranges (e.g. C0-C1). This lead to some simplification in the code. I also found out that, according to RFC 3629, surrogates are considered invalid and they can't be encoded/decoded, but the UTF-8 codec actually does it. I included tests and fix but I left them commented out because this is out of the scope of this patch, and it probably need a discussion on python-dev. -- stage: test needed - patch review versions: +Python 2.6 Added file: http://bugs.python.org/file16741/issue8271v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8294] Allow Fraction constructor to accept float and decimal instances directly.
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8038] Provide unittest.TestCase.assertNotRegexpMatches
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 79632. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8295] add unpack_archive to shutil
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 severity: normal status: open title: add unpack_archive to shutil type: feature request versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1220212] os.kill on windows
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1222585] C++ compilation support for distutils
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8038] Provide unittest.TestCase.assertNotRegexpMatches
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8038] Provide unittest.TestCase.assertNotRegexpMatches
Changes by Michael Foord mich...@voidspace.org.uk: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8038 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7780] unittest: allow an 'import_path' as an alternative to 'top_level_dir' in test discover
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1222585] C++ compilation support for distutils
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release
Changes by Clovis Fabricio nosklo+pyt...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7337] Add lossy queue to queue library module
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: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8288] zipfile module documentation misprint
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_CONST
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7764] Doc for itertools recipe consume is complicated and less efficient
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt
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 long-running parallel map) a user hits ^C, an asynchronous KeyboardInterrupt isn't handled properly and leads to the interpreter hangup. More precisely, children processes become defunct (on Linux), so the only way to terminate the whole program is to issue the KILL signal. As stopping a program with ^C while running potentially long parallel computations is probably quite a common scenario, the interpreter should not hang up in such a case. I'm using Python 2.6.5 (r265:79063, Mar 23 2010, 04:44:21) [GCC 4.4.3] on linux2. I've also tried to use the current multiprocessing.pool module from the current (2.7) trunk with my 2.6.5 installation, but the bug persists. -- components: Library (Lib) messages: 102219 nosy: vlasovskikh severity: normal status: open title: multiprocessing.Pool hangs when issuing KeyboardInterrupt type: crash versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt
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: http://stackoverflow.com/questions/1408356/keyboard-interrupts-with-pythons-multiprocessing-pool/2561809#2561809 If the user is lucky, he may hit ^C during getting or putting data into the queues in multiprocessing.pool.worker. To reproduce such a case, you may insert `sleep(10)` before `task = get()` or `put((job, i, result))`, for example. I've encountered such cases just by running test examples several times. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8297] AttributeError message text should include module name
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 help in diagnosing issues like the ones mentioned in this report: http://bugs.python.org/issue7559 EXAMPLE (using latest from trunk Python 2.7a4+): import sys class TestClass(object): pass m = sys c = TestClass print CLASS: %s % c try: c.asdf except AttributeError, err: print err print \nMODULE: %s % m try: m.adsf except AttributeError, err: print err *** OUTPUT: CLASS: class '__main__.TestClass' type object 'TestClass' has no attribute 'asdf' MODULE: module 'sys' (built-in) 'module' object has no attribute 'adsf' *** The latter message could instead be (paralleling the text in the case of a class)-- module object 'sys' has no attribute 'adsf' -- components: Library (Lib) messages: 102224 nosy: cjerdonek severity: normal status: open title: AttributeError message text should include module name type: feature request versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8298] in what way we have to save tha module?
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? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8298] in what way we have to save tha module?
Changes by LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8298 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com