[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-06-26 Thread David Edelsohn
David Edelsohn added the comment: The current arguments to checkRecvmsgAddress() are the sockaddrs, so it does not know the protocol family. One potential patch to infer the family and apply the correct test is: diff -r 035d8fed07ad Lib/test/test_socket.py --- a/Lib/test/test_socket.py Tue

[issue11185] test_wait4 error on AIX

2013-07-03 Thread David Edelsohn
David Edelsohn added the comment: The patch in msg128727 is correct for AIX and should be applied. -- ___ Python tracker <http://bugs.python.org/issue11

[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-07-03 Thread David Edelsohn
David Edelsohn added the comment: The patch in msg192259 probably will work on the particular AIX system runnnig the buildbot, but I do not believe that the patch is the correct solution for the problem. scope_id 1 is not necessarily the correct link for IPv6 address ::1. The scope_id values

[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)

2013-07-06 Thread David Edelsohn
David Edelsohn added the comment: The patch in msg192405 works and fixes that error on AIX. That is exactly what I had in mind, but I incorrectly had been looking higher up the class hierarchy to override the method. Thanks! -- ___ Python tracker

[issue18400] Minor increase to Pickle test coverage

2013-07-07 Thread David Sackett
New submission from David Sackett: Tests to provide unit test coverage of _Pickler.__init__ protocol version checks. -- components: Tests files: mywork.patch keywords: patch messages: 192613 nosy: davidsackett priority: normal severity: normal status: open title: Minor increase to

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-07-31 Thread David Edelsohn
Changes by David Edelsohn : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue18609> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-07-31 Thread David Edelsohn
New submission from David Edelsohn: test_ctypes now crashes on AIX after the ceval change to PyEval_CallObjectWithKeywords to check PyErr_Occurred(). #5 0x100ff0c8 in PyEval_CallObjectWithKeywords (func=0x300a4c3c, arg=0x3062bb24, kw=0x0) at Python/ceval.c:4066 #6 0x10166bfc in

[issue18609] test_ctypes failure on AIX in PyEval_CallObjectWithKeywords

2013-08-02 Thread David Edelsohn
David Edelsohn added the comment: Thanks. The patch seems to return the tests to the expected failures and Python does not crash. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18718] datetime documentation contradictory on leap second support

2013-08-12 Thread David Wolever
New submission from David Wolever: The documentation for the `%S` formatter suggests that it supports leap seconds, but the footnote contradicts that: > The range really is 0 to 61; according to the Posix standard this > accounts for leap seconds and the (very rare) double leap seconds.

[issue18718] datetime documentation contradictory on leap second support

2013-08-12 Thread David Wolever
David Wolever added the comment: Here's the relevant diff. Will commit on a +1. diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1664,7 +1664,7 @@ | ``%M``| Minute as a zero-padded| 00, 01, ..

[issue17701] Improving strftime documentation

2013-08-12 Thread David Wolever
David Wolever added the comment: Done, pushed to 2.7, 3.3, default. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread David Wolever
Changes by David Wolever : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue18680> ___ ___ Python-bugs-list

[issue18718] datetime documentation contradictory on leap second support

2013-08-16 Thread David Wolever
David Wolever added the comment: D'oh, yes, it can (and I've closed it now). -- status: pending -> closed ___ Python tracker <http://bugs.pytho

[issue18786] test_multiprocessing_spawn crashes under PowerLinux

2013-08-20 Thread David Edelsohn
David Edelsohn added the comment: I am not certain what is going on. Only 3.x appears to be affected, but the problems seem somewhat intermittent. There were some strange processes of another user running on the buildslave, which was driving the load up very high. I have killed the processes

[issue18786] test_multiprocessing_spawn crashes under PowerLinux

2013-08-20 Thread David Edelsohn
David Edelsohn added the comment: The crash seems to have been due to another user abusing the buildslave system. The remaining failure is a mis-match in the expected GDB output. AssertionError: "{, 'b'}" != "{'b'}" - {, 'b'} + {'b'}

[issue18928] Remove misleading documentation for random.shuffle

2013-09-04 Thread David Benbennick
New submission from David Benbennick: Since Python 2.1 [1], when random.shuffle was added, the documentation has said: """Note that for even rather small len(x), the total number of permutations of x is larger than the period of most random number generators; this imp

[issue18928] Remove misleading documentation for random.shuffle

2013-09-04 Thread David Benbennick
David Benbennick added the comment: Okay, I see what the comment is saying now. I was mistaken. It might make the statement clearer if it is made more precise. "rather small" is vague. That vagueness is intentional, but it makes it more confusing. -- status: open

[issue19002] ``dir`` function does not work correctly with classes.

2013-09-10 Thread David Halter
New submission from David Halter: I recently stumbled over the ``dir`` function not working correctly with classes. This means that ``dir(object)`` won't list ``object.__bases__`` or ``object.__subclasses`` (and many other useful methods). I think that we should change that. The C fun

[issue14810] Bug in tarfile

2012-05-24 Thread David Ibarra
David Ibarra added the comment: I too cannot reproduce this, tarfile seems to recognizes that it isn't a valid tar file (tested on OS X): Davids-MacBook-Air:Workspace dibarra$ ls -l total 8 -rw-r--r-- 1 dibarra staff 0 May 30 1956 testfile Davids-MacBook-Air:Workspace dibarra$ tar

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-29 Thread David Beck
New submission from David Beck : I am working on an iMac running OS 10.7, TK 8.5.11. I built a simple app containing a Notebook widget, and with Listboxes and linked tkk.Scrollbars on each of three tabs. All of the Scrollbars work the first time I manipulate them, but once the Scrollbar on

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread David Beck
David Beck added the comment: After playing around with this a bit more, I've found that if the Scrollbars on the different tabs are not aligned (that is, they don't occupy the same EW position in the frame) the effect disappears. I thought that might mean that the last Scrollbar

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-06-03 Thread David Beck
David Beck added the comment: That's a shame, though I guess it means I can stop struggling with the installation of Tix. Since that's another extension of Tk, the same issue will probably be lurking in there as well. Maybe I'll give wxPyton or QT a shot. Thank

[issue11880] add a {dist-info} category to distutils2

2012-06-14 Thread David Barnett
David Barnett added the comment: Is this ready and just waiting to be merged now? -- nosy: +mu_mind ___ Python tracker <http://bugs.python.org/issue11

[issue11176] give more meaningful argument names in argparse documentation

2012-07-08 Thread David Lam
David Lam added the comment: haha wow, I was working on this bug too! maybe we can work on the final patch together I got through about 2/3's of the docs, so I thought it might help to upload what I got so far. I basically just made stuff up so I'm totally winning to change an

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-07-15 Thread David Lam
David Lam added the comment: hi hi, found this bug after clicking the "Easy issues" link i basically just took Ray's hint to look at the __reduce__ method, and applied it to the __repr__ method in this patch also updated is the test_repr() unittest -- keywords: +pa

[issue15171] Fix 64-bit building for buildbot scripts (3.2)

2012-07-16 Thread David Bolen
David Bolen added the comment: It seems really unlikely to be related to this issue since I'm pretty sure build-amd64 doesn't get used on XP-4. >From the log it looks like it couldn't clean out and reuse the VS temporary >build directory. Manually cleaning it out an

[issue11176] give more meaningful argument names in argparse documentation

2012-07-17 Thread David Lam
David Lam added the comment: yup yup, go for it -- ___ Python tracker <http://bugs.python.org/issue11176> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15384] pkgutil.get_importer("") was returning None on Windows buildbots

2012-07-18 Thread David Bolen
David Bolen added the comment: With a local build on my buildbot of the tip of the default branch, pkgutil.get_importer('') returns FileFilter('.'). The tests also passed. However, after checking here and realizing the offending code had been removed from the test, I p

[issue15546] Iteration breaks with bz2.open(filename,'rt')

2012-08-03 Thread David Beazley
New submission from David Beazley: The bz2 library in Python3.3b1 doesn't support iteration for text-mode properly. Example: >>> f = bz2.open('access-log-0108.bz2') >>> next(f) # Works b'140.180.132.213 - - [24/Feb/2008:00:08:59 -0600] "GET /

[issue15546] Iteration breaks with bz2.open(filename,'rt')

2012-08-03 Thread David Beazley
David Beazley added the comment: File attached.The file can be read in its entirety in binary mode. -- Added file: http://bugs.python.org/file26673/access-log-0108.bz2 ___ Python tracker <http://bugs.python.org/issue15

[issue11176] give more meaningful argument names in argparse documentation

2012-08-28 Thread David Lam
David Lam added the comment: here's a patch that covers all but one of the foo/bar/baz examples it also has fixes for the sample code near the beginning from the review Ezio did the one example I didn't do was the "Arguments containing -" part. I guess it felt like c

[issue15811] ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string

2012-08-29 Thread David Buxton
New submission from David Buxton: The problem is an inconsistency between the ElementTree.write() method on Python 2 and 3 when xml_declaration is True. For Python 2.7 the encoding argument MUST NOT be a unicode string. For Python 3.2 the encoding argument MUST be a unicode string. On Python

[issue15811] ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string

2012-08-29 Thread David Buxton
David Buxton added the comment: A patch against the current default branch to add tests for the xml_declaration keyword argument. This passes when applied to the 2.7 branch too. This does NOT test whether one can use both bytes/unicode for the encoding argument. It just uses the native string

[issue15811] ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string

2012-08-29 Thread David Buxton
David Buxton added the comment: Only a problem because I am using unicode_literals and it didn't occur to me to use `str('utf-8')` to get a native string on both 2+3. Much the best solution, thank you. But that is still a little smelly - I think what I want ideally is for

[issue15816] pydoc.py uses a hack that depends on implementation details and breaks help() when __builtin__.__import__ is overwritten.

2012-08-29 Thread David Kreuter
New submission from David Kreuter: help("compile") # this works import __builtin__ real_import = __import__ __builtin__.__import__ = lambda *a: real_import(*a) help("compile") # this fails The line responsible for this is in pydoc.py around line 300: ... elif exc is Import

[issue15846] literal_eval raises SystemError instead of SyntaxError, because of illegal escape sequence

2012-09-02 Thread David Halter
New submission from David Halter: Hi! I'm the developer of Jedi: https://github.com/davidhalter/jedi, which is an auto-completion library. I try to support Python 2.5-3.2. The bug just appears in Python 3.2. Parsing string literals with literal_eval works normally without a problem, bu

[issue15853] Idle "quit unexpectedly" w/ attempted edit of preferences

2012-09-02 Thread David Pietz
New submission from David Pietz: Currently I am trying to edit idle preferences so I can edit a script which appends a log of Idle activity that I may review for study purposes. I could not really interpret much of the crash logs in console but there seem to be two types of memory errors. I

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread David Pietz
David Pietz added the comment: r.david.murray- Thank You for your inquiry. My recipe for this crash is (1) simply to start IDLE 3.2.3 in either Snow Leopard or Mountain Lion (2) click on the Bold "IDLE" menu in the menu bar and (3) click on menu item "preferences". At

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread David Pietz
David Pietz added the comment: ned, That is exactly the output I received when I reverted to the ActiveState version, it failed and I ran your grep. Thank You for your interest. djp -- ___ Python tracker <http://bugs.python.org/issue15

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-09-02 Thread David Pietz
David Pietz added the comment: I thank you, gentlemen, for your kind attention to my issue. I hope it helps everyone in the long run. I, myself, became underwhelmed with these results of successfully opening preferences. I had been expecting to have a "|Startup|-|Shells open with co

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
New submission from David Beazley: I've been playing with the interaction of ctypes and memoryviews and am curious about intended behavior. Consider the following: >>> import ctypes >>> d = ctypes.c_double() >>> m = memoryview(d) >>> m.ndim 0 >>&

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
David Beazley added the comment: I don't want to read the representation by copying it into a bytes object. I want direct access to the underlying memory--including the ability to modify it. As it stands now, it's complete

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
David Beazley added the comment: Even with the <http://bugs.python.org/issue15944> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
David Beazley added the comment: I don't think memoryviews should be imposing any casting restrictions at all. It's low level. Get out of the way. -- ___ Python tracker <http://bugs.python.o

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
David Beazley added the comment: No, I want to be able to access the raw bytes sitting behind a memoryview as bytes without all of this casting and reinterpretation. Just show me the raw bytes. Not doubles, not ints, not structure packing, not copying into byte strings, or whatever. Is

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
David Beazley added the comment: Just to be specific, why is something like this not possible? >>> d = ctypes.c_double() >>> m = memoryview(d) >>> m[0:8] = b'abcdefgh' >>> d.value 8.540883223036124e+194 >>> (Doesn't have to be exac

[issue15944] memoryviews and ctypes

2012-09-14 Thread David Beazley
David Beazley added the comment: I should add that 0-dim indexing doesn't work as described either: >>> import ctypes >>> d = ctypes.c_double() >>> m = memoryview(d) >>> m[()] Traceback (most recent call last): File "", line 1, in

[issue15944] memoryviews and ctypes

2012-09-20 Thread David Beazley
David Beazley added the comment: There's probably a bigger discussion about memoryviews for a rainy day. However, the number one thing that would save all of this in my book would be to make sure cast('B') is universally supported regardless of format including endianness--es

[issue15944] memoryviews and ctypes

2012-09-20 Thread David Beazley
David Beazley added the comment: One followup note---I think it's fine to punt on cast('B') if the memoryview is non-contiguous. That's a rare case that's probably not as common. -- ___ Python tracker <http:

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-02 Thread David Benjamin
New submission from David Benjamin: The implementation of platform.architecture shells out to the file command. It tries to escape quotes by replacing " with \", but that's not sufficient. $ python3.2 -c 'import platform; platform.architecture("foo\\\";

[issue16132] ctypes incorrectly encodes .format attribute of memory views

2012-10-04 Thread David Beazley
New submission from David Beazley: This is somewhat related to an earlier bug report concerning memory views, but as far as I can tell, ctypes is not encoding the '.format' attribute correctly in most cases. Consider this example: First, create a ctypes array: >>> a = (

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-04 Thread David Benjamin
David Benjamin added the comment: Well, the theoretical deadlock's just if stdin is also a pipe, right? I think there isn't be a difference between communicate and stdout.read if only stdout is a pipe. Though it might be worth passing DEVNULL to stdin instead of inheriting, just

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-04 Thread David Benjamin
David Benjamin added the comment: Yes, communicate is needed if you have multiple pipes and need to be careful about both ends doing a blocking reads/writes on different ones. There's only one pipe here. Eh, whatever. If you guys really want to use communicate, I don't r

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-08 Thread David Pietz
David Pietz added the comment: It wasn't right on that page anymore but I poked around and fount the 8.5.11.1 and IDLE is no longer crashing when I go to preferences or when I cut and paste in the edit window (I didn't tell you about that did I ?- well it fixed that, too)!! thanks

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
New submission from David Beazley: The PyUnicode_AsWideCharString() function is described as creating a new buffer of type wchar_t allocated by PyMem_Alloc() (which must be freed by the user). However, if you use this function, it causes the size of the original string object to permanently

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
David Beazley added the comment: I should quickly add, is there any way to simply have this function not keep the wchar_t buffer around afterwards? That would be great. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
David Beazley added the comment: Maybe it's not a bug, but I still think it's undesirable. Basically, you have a function that allocates a buffer, fills it with data, and allows the buffer to be destroyed. Yet, as a side effect, it allocates a second buffer, fills it, and p

[issue16254] PyUnicode_AsWideCharString() increases string size

2012-10-16 Thread David Beazley
David Beazley added the comment: Another note: the PyUnicode_AsUTF8String() doesn't leave the UTF-8 encoded byte string behind on the original string object. I got into this thinking that PyUnicode_AsWideCharString() might have similar beh

[issue16278] os.rename documentation slightly inaccurate

2012-10-18 Thread David Benjamin
New submission from David Benjamin: This is somewhat of a nitpick. os.rename's documentation says "If dst is a directory, OSError will be raised". On Unix, this isn't completely true. If the source is a directory and the destination is an empty directory, it'll over

[issue900092] hotshot.stats.load fails with AssertionError

2014-03-19 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue900092> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-23 Thread David Watson
David Watson added the comment: On Tue 18 Mar 2014, A.M. Kuchling wrote: > I suggest we apply the fix for #1, and for #2 just discard and > update the ToC when we lock the mailbox, ignoring other > possible routes to corruption (so no detecting the problem and > raising an E

[issue21051] incorrect utf-8 conversion with c api

2014-03-24 Thread David Zámek
New submission from David Zámek: I use python 2.7.6 on win32. If I enter u'\u010d'.encode('utf-8') to console, I get '\xc4\x8d' as response. That's correct. But it I use C API for the same, I get incorrect '\xc3\xa8' as response. I was te

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-30 Thread David Watson
David Watson added the comment: On Sun 23 Mar 2014, David Watson wrote: > There actually isn't a test for the original locking issue, as > the tests all use the mailbox API, which doesn't provide a way to > turn off dot-locking. ... On second thought, the underlying error do

[issue21132] Failure to import win32api

2014-04-02 Thread David Woakes
New submission from David Woakes: I've seen issue 21050 and tried a complete uninstall, delete c:\python34 and install of python 3.4. I can't get win32api to load unless I copy pythoncom34.dll and psywintypes34.dll to C:\Python34\Lib\site-packages\win32 from C:\Python34\Lib\sit

[issue1043134] Add preferred extensions for MIME types

2014-04-04 Thread David Lindquist
David Lindquist added the comment: Anyone interested in picking this up, or at least commenting on the approach I suggested in the patch? Seems like an easy fix for a long-standing bug. -- ___ Python tracker <http://bugs.python.org/issue1043

[issue5845] rlcompleter should be enabled automatically

2014-04-08 Thread David Beazley
David Beazley added the comment: Funny thing, this feature breaks the interactive interpreter in the most basic way on OS X systems. For example, the tab key won't even work to indent. You can't even type the most basic programs into the interactive interpreter. For example: &g

[issue21248] BROWSER env var described inaccurately in webbrowser docs

2014-04-15 Thread David Turner
New submission from David Turner: https://docs.python.org/2/library/webbrowser.html says "If the environment variable BROWSER exists, it is interpreted to override the platform default list of browsers, as a os.pathsep-separated list of browsers to try in order." This is not act

[issue5904] strftime docs do not explain locale effect on result string

2014-04-16 Thread David Wolever
David Wolever added the comment: It may also be worth noting that the strftime formatters table now includes examples from different locales: https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior This change was introduced about a year ago

[issue17861] put opcode information in one place

2014-04-28 Thread David Bolen
David Bolen added the comment: This generator script breaks the daily OSX DMG builds on my bolen-dmg buildslave for the 3.x branch. The issue is with the use of "with" as the slave uses Python 2.5 to build the installer. Now, that's old, and I'm not even sure how necessa

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-05-01 Thread David Watson
David Watson added the comment: On Mon 28 Apr 2014, Jim Jewett wrote: > pinging David Watson: What is the status? If I understand correctly, (and I > may well not), you have already opened other issues for parts of this, and > (only) the final patch is ready for patch (and hopefull

[issue21132] Failure to import win32api

2014-05-05 Thread David Woakes
David Woakes added the comment: This issue is not related to anything in the Python 3.4 release. It's a problem with the installer not asking to be installed as administrator. Running C:\Python34\Scripts\pywin32_postinstall.py as administrator after installing fixes

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-22 Thread David Harrigan
David Harrigan added the comment: I've added the example and modified the final comment. -- keywords: +patch nosy: +David.Harrigan Added file: http://bugs.python.org/file35311/datastructures.patch ___ Python tracker <http://bugs.py

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread David Harrigan
Changes by David Harrigan : -- keywords: +patch Added file: http://bugs.python.org/file35318/stdlib.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-23 Thread David Harrigan
David Harrigan added the comment: Thanks for the info, I've signed the agreement. -- ___ Python tracker <http://bugs.python.org/issue21545> ___ ___ Pytho

[issue21720] "TypeError: Item in ``from list'' not a string" message

2014-06-11 Thread David Szotten
New submission from David Szotten: ``` >>> __import__('fabric.', fromlist=[u'api']) Traceback (most recent call last): File "", line 1, in ``` accidentally ended up with something like this via some module that was using `unicode_literals`. stumped m

[issue21748] glob.glob does not sort its results

2014-06-13 Thread David Jones
New submission from David Jones: ``` for f in glob.glob('input/*/*.dat'): print f ``` outputs: ``` input/ghcnm.v3.2.2.20140611/ghcnm.tavg.v3.2.2.20140611.qca.dat input/ghcnm.v3.2.2.20140506/ghcnm.tavg.v3.2.2.20140506.qca.dat ``` Note that these are not in the right order. Compare

[issue1065986] Fix pydoc crashing on unicode strings

2012-11-10 Thread David Barnett
Changes by David Barnett : -- nosy: +mu_mind ___ Python tracker <http://bugs.python.org/issue1065986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1065986] Fix pydoc crashing on unicode strings

2012-11-10 Thread David Barnett
David Barnett added the comment: I just ran into this, and I'd like to communicate how unfortunate it is that it's not a priority to fix this fairly trivial (?) bug. It means there's no way to define a unicode string literal with non-ascii characters that won't cra

[issue1065986] Fix pydoc crashing on unicode strings

2012-11-10 Thread David Barnett
David Barnett added the comment: Also, the resolution is still marked as "fixed", which is not correct... -- ___ Python tracker <http://bugs.python.org

[issue1065986] Fix pydoc crashing on unicode strings

2012-11-11 Thread David Barnett
David Barnett added the comment: I guess it must be more complicated than it looks, because I thought checking for unicode strings and doing .encode('utf-8') would help at least some cases without making anything worse. Anyways, if it's too hard or not worth fixing "correc

[issue16691] How to use ctypes.windll.user32.MessageBoxW

2012-12-14 Thread David Wolf
New submission from David Wolf: import ctypes ctypes.windll.user32.MessageBoxW(0,"Time's up!","Message",0) My quention is that I want to set my message box topmost. It's said I just need to change the first parameter, but I don't know how I should change it.

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread David Pritchard
New submission from David Pritchard: In importlib/_bootstrap.py, there is a function _fill_cache which crashes when you try to run Python in any environment that is so restricted that write permissions are not allowed. You get a trace like: Traceback (most recent call last): In line

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread David Pritchard
David Pritchard added the comment: Sorry, in the main text of my message, "write permissions" should say directory execute permissions (permission to list contents of a directory) -- ___ Python tracker <http://bugs.python.o

[issue16791] itertools.chain.from_iterable doesn't stop

2012-12-27 Thread David Halter
New submission from David Halter: The following lines run infinitely: b = [1] import itertools b += itertools.chain.from_iterable([c] for c in b) In my opinion this is a bug. Clearly you could say that this is an implementation detail. But afaik this is not documented and very misleading

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-03 Thread David Pritchard
David Pritchard added the comment: Here's an example where Python 3.3.0 crashes, but where the patched code works. I have only been able to trigger the bug when PYTHONPATH is set (even if to an empty value). (1) create a directory (2) chmod a-rw+x on that directory (3) export PYTHO

[issue14965] super() and property inheritance behavior

2013-01-06 Thread David Beazley
David Beazley added the comment: Just as a note, there is a distinct possibility that a "property" in a superclass could be some other kind of descriptor object that's not a property. To handle that case, the solution of super(self.__class__, self.__class__).x.fset(self

[issue8489] Support UTF8SMTP as part of RFC 5336 in smptlib

2013-01-08 Thread David Lam
Changes by David Lam : -- nosy: +dlam ___ Python tracker <http://bugs.python.org/issue8489> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-08 Thread David Beazley
New submission from David Beazley: Suppose you subclass a dictionary: class mdict(dict): def __getitem__(self, index): print('Getting:', index) return super().__getitem__(index) Now, suppose you define a function and perform these steps that reassign the

[issue16954] Add docstrings for ElementTree module

2013-01-14 Thread David Lam
Changes by David Lam : -- nosy: +dlam ___ Python tracker <http://bugs.python.org/issue16954> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2013-01-15 Thread David Beazley
David Beazley added the comment: I have run into this bug myself. Agree that a file-like object should never report itself as closed unless .close() has been explicitly called on it. HTTPResponse should not return itself as closed after the end-of-file has been reached. I think there is

[issue16994] collections.Counter.least_common

2013-01-18 Thread David Coallier
New submission from David Coallier: The `collections.Counter` library contains very useful methods for playing with dicts and sets (mainly the most_common()) function. Even though it is fairly trivial to retrieve the least common elements in a Counter() by doing Counter(...).most_common(n

[issue16994] collections.Counter.least_common

2013-01-18 Thread David Coallier
David Coallier added the comment: Latest patch after code review round #1 -- Added file: http://bugs.python.org/file28773/collections.Counter.least_common.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16994] collections.Counter.least_common

2013-01-18 Thread David Coallier
Changes by David Coallier : Removed file: http://bugs.python.org/file28773/collections.Counter.least_common.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16994] collections.Counter.least_common

2013-01-18 Thread David Coallier
David Coallier added the comment: Hi there @serhiy.storchaka, Consider the case where one would calculate the k-combination of set S. When the set has `n` elements, the number of k-combination is equal to its binomial coefficient. e.g. ( n!/( (k!(n-k)! ). One method of statistically

[issue16994] collections.Counter.least_common

2013-01-18 Thread David Coallier
Changes by David Coallier : Added file: http://bugs.python.org/file28774/16994.patch ___ Python tracker <http://bugs.python.org/issue16994> ___ ___ Python-bugs-list mailin

[issue16954] Add docstrings for ElementTree module

2013-01-24 Thread David Lam
David Lam added the comment: I had an innocent question about the format to use when listing function arguments in docstrings. In the PEP 257 doc, there's a single example: def complex(real=0.0, imag=0.0): """Form a complex number. Keyword arguments:

[issue17084] nntplib.NNTP.xover does not always return results as documented

2013-01-30 Thread David Holm
New submission from David Holm: The response from NNTP.xover doesn't always match the format described in the documentation. It is supposed to return a (result, list) where the list contains entries of the format (article number, subject, poster, date, id, references, size, lines). Howev

[issue19055] Regular expressions: * does not match as many repetitions as possible.

2013-09-19 Thread David Benbennick
Changes by David Benbennick : -- nosy: +dbenbenn ___ Python tracker <http://bugs.python.org/issue19055> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19175] Erroneous reference to "integer" in format string grammar

2013-10-05 Thread David Chambers
New submission from David Chambers: I first raised this issue on Stack Overflow: http://stackoverflow.com/questions/19203194 The [replacement field grammar][1] states that an [integer][2] is a valid field_name, but this is inaccurate: >>> '{0}'.format('zero&#x

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-12 Thread David Chambers
New submission from David Chambers: >From http://docs.python.org/3/library/string.html#formatspec: > The presence of a fill character is signaled by the character > following it, which must be one of the alignment options. If the > second character of format_spec is not a valid alig

<    9   10   11   12   13   14   15   16   17   18   >