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

2010-04-02 Thread Eric Smith
Eric Smith added the comment: Hi. Please don't use the bug tracker to ask Python questions. You've already been asked twice to refer to http://www.python.org/about/help/#got-a-python-problem-or-question . Please read and follow those instructions. Your questions have not been about bugs in

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Georg Brandl
Georg Brandl added the comment: In 2.x, the method is really called next(). -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2010-04-02 Thread LOLLA RADHA KRISHNA MURTHY
Changes by LOLLA RADHA KRISHNA MURTHY : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[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 : 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

[issue8297] AttributeError message text should include module name

2010-04-02 Thread Chris Jerdonek
New submission from Chris Jerdonek : 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 l

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Andrey Vlasovskikh
Andrey Vlasovskikh 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-mult

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Brian Curtin
Brian Curtin added the comment: You might want to take a look here: http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/ -- ___ Python tracker ___ __

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

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

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Brian Curtin
Brian Curtin 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 __

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-04-02 Thread Andrey Vlasovskikh
New submission from Andrey Vlasovskikh : 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 hi

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

2010-04-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[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 : -- priority: -> low versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Grigory
Grigory added the comment: What about 2.7? I see the issue there too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7337] Add lossy queue to queue library module

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger 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: -Pytho

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

2010-04-02 Thread Clovis Fabricio
Changes by Clovis Fabricio : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1222585] C++ compilation support for distutils

2010-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think python-LDCXXSHARED.patch is fine. -- nosy: +benjamin.peterson ___ Python tracker ___ _

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

2010-04-02 Thread Michael Foord
Michael Foord added the comment: Committed revision 79643. Needs test and documentation. -- resolution: -> accepted ___ Python tracker ___ __

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-04-02 Thread Michael Foord
Changes by Michael Foord : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opt

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-04-02 Thread Michael Foord
Michael Foord added the comment: Further commit revision 79643. Needs tests and documentation. -- resolution: -> accepted ___ Python tracker ___

[issue1222585] C++ compilation support for distutils

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

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Brian Curtin 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 trac

[issue8295] add unpack_archive to shutil

2010-04-02 Thread Tarek Ziadé
New submission from Tarek Ziadé : 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: o

[issue8038] Provide unittest.TestCase.assertNotRegexpMatches

2010-04-02 Thread Michael Foord
Michael Foord added the comment: Committed revision 79632. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Raymond. Committed to trunk in r79629. Will forward port to py3k. -- versions: -Python 2.7 ___ Python tracker ___ ___

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

2010-04-02 Thread Ezio Melotti
Ezio Melotti 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 m

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

2010-04-02 Thread John Ehresman
John Ehresman 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

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner added the comment: Fair enough, Georg. Case closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2010-04-02 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-04-02 Thread Brian Curtin
Brian Curtin added the comment: Committed to trunk in r79620. I'll do the forward port after 2.7b1. -- stage: patch review -> committed/rejected ___ Python tracker ___ __

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

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger 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 ___

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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,

[issue7992] Backport capsule object

2010-04-02 Thread Larry Hastings
Larry Hastings 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: -#

[issue1220212] os.kill on windows

2010-04-02 Thread Michael Foord
Michael Foord added the comment: According to earlier discussion in this issue os.spawn() return process handles on Windows. -- ___ Python tracker ___ ___

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

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger 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 _

[issue1220212] os.kill on windows

2010-04-02 Thread Brian Curtin
Brian Curtin 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 th

[issue1220212] os.kill on windows

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

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: (The patch is against trunk, btw.) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2010-04-02 Thread Mark Dickinson
New submission from Mark Dickinson : 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(2476979795053

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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 t

[issue7992] Backport capsule object

2010-04-02 Thread Florent Xicluna
Florent Xicluna 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

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: Added python.exe-gdb.py to svn:ignore in r79616. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue7992] Backport capsule object

2010-04-02 Thread Larry Hastings
Larry Hastings 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-compatibil

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

2010-04-02 Thread Dave Malcolm
Dave Malcolm 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 'mak

[issue7992] Backport capsule object

2010-04-02 Thread Larry Hastings
Larry Hastings 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

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Georg Brandl
Georg Brandl 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 _

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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 distclea

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread Georg Brandl
Georg Brandl added the comment: Well, the object returned is "just" an iterator (which happens to be implemented by a generator-iterator). I wouldn't be so concerned about the repr() of the it. If you look at the generator PEP, number 255, it says: """Note that when the intent is clear from

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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 =

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner 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

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

2010-04-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2010-04-02 Thread David Andrzejewski
New submission from David Andrzejewski : 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 = r

[issue6647] warnings.catch_warnings is not thread-safe

2010-04-02 Thread A.M. Kuchling
A.M. Kuchling 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 ->

[issue1220212] os.kill on windows

2010-04-02 Thread Michael Foord
Michael Foord 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

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: > And yes, I agree that Fraction(somedecimal) should work too. What about Fraction(1.1)? -- ___ Python tracker ___

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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 _

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Raymond Hettinger
Raymond Hettinger 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 th

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

2010-04-02 Thread A.M. Kuchling
A.M. Kuchling 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

[issue8292] Incorrect condition test in platform.py

2010-04-02 Thread A.M. Kuchling
New submission from A.M. Kuchling : 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 alw

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

2010-04-02 Thread Ezio Melotti
Ezio Melotti 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 : 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 do

[issue8290] I HAVE A PROBLEM WITH PYTHON

2010-04-02 Thread Ezio Melotti
Ezio Melotti 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 ___

[issue8290] I HAVE A PROBLEM WITH PYTHON

2010-04-02 Thread LOLLA RADHA KRISHNA MURTHY
New submission from LOLLA RADHA KRISHNA MURTHY : 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: ht

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

2010-04-02 Thread Dave Malcolm
Dave Malcolm 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

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2010-04-02 Thread Ram Rachum
Ram Rachum added the comment: Sorry, I accidentally typed "def" instead of "class" in my code sample. -- ___ Python tracker ___ ___ Py

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2010-04-02 Thread Ram Rachum
New submission from Ram Rachum : 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__

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

2010-04-02 Thread Daniel Stutzbach
Daniel Stutzbach 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 ___

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

2010-04-02 Thread Daniel Stutzbach
Daniel Stutzbach 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 ha

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread Brian Curtin
Brian Curtin added the comment: See PC/_msi.c, Lib/msilib, and Tools/msi -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8288] zipfile module documentation misprint

2010-04-02 Thread Grigory
New submission from Grigory : 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.bran

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread anatoly techtonik
anatoly techtonik 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

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread anatoly techtonik
anatoly techtonik 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 _

[issue3778] python uninstaller leave registry entries

2010-04-02 Thread Michael Foord
Michael Foord 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 eff

[issue7992] Backport capsule object

2010-04-02 Thread Florent Xicluna
Florent Xicluna 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

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

2010-04-02 Thread anatoly techtonik
anatoly techtonik 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 t

[issue7994] object.__format__ should reject format strings

2010-04-02 Thread Eric Smith
Eric Smith 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

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

2010-04-02 Thread Larry Hastings
Larry Hastings 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 tra

[issue7585] difflib should separate filename from timestamp with tab

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

[issue7585] difflib should separate filename from timestamp with tab

2010-04-02 Thread anatoly techtonik
anatoly techtonik added the comment: These patches are incrementally add features. Feel free to apply one that suits most. Codereview provides more convenient way to review differences between these. attaching optional patch that removes recommendation to use ctime format for timestamps ---

[issue7585] difflib should separate filename from timestamp with tab

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

[issue8259] left shift operator doesn't accepts long as second argument

2010-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: The original error, for a 32-bit machine, looks like expected behaviour to me; at worst, it's a doc bug. If the right-hand argument doesn't fit into a Py_ssize_t, then I think it's reasonable to refuse to do the shift. But Antoine's 'outrageous left shift c

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

2010-04-02 Thread Kent Engström
Kent Engström added the comment: Is should have mentioned that we're discussion a section of the tutorial concerned with dictionaries. It is not a section on lists, sequences or sorting as such. My colleague, who asked me for help after getting confused by sort, was trying to loop over the keys

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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

[issue7585] difflib should separate filename from timestamp with tab

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

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

2010-04-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: David, can you please take a look? -- assignee: -> dmalcolm nosy: +dmalcolm ___ Python tracker ___ ___

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

2010-04-02 Thread Florent Xicluna
New submission from Florent Xicluna : 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 fo

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2010-04-02 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> amaury.forgeotdarc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7585] difflib should separate filename from timestamp with tab

2010-04-02 Thread anatoly techtonik
anatoly techtonik 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

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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 has

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

2010-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Stefan. Applied to trunk in r79588. Still needs to be forward ported to py3k. -- versions: +Python 3.2 ___ Python tracker ___ ___

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

2010-04-02 Thread Georg Brandl
Georg Brandl 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

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

2010-04-02 Thread Florent Xicluna
Florent Xicluna added the comment: Additional fixes: r79576, r79577, r79578 (idlelib package and some test modules) -- ___ Python tracker ___

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread Georg Brandl
Georg Brandl 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 ___

[issue2531] float compared to decimal is silently incorrect.

2010-04-02 Thread Mark Dickinson
Mark Dickinson 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 backwar

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-04-02 Thread Georg Brandl
Georg Brandl added the comment: I've fixed the using/cmdline and manpage to describe the current behavior. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8257] Decimal constructor to accept float

2010-04-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7696] Improve Memoryview/Buffer documentation

2010-04-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8227] Fix C API documentation: Argument parsing

2010-04-02 Thread Georg Brandl
Georg Brandl added the comment: Looks good to me. -- assignee: georg.brandl -> haypo resolution: -> accepted ___ Python tracker ___ _

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

2010-04-02 Thread Georg Brandl
Georg Brandl 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

[issue8261] License link for Python 2.6.5 release is broken

2010-04-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, should be fixed now. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

  1   2   >