[issue12287] ossaudiodev: stack corruption with FD = FD_SETSIZE
Charles-François Natali neolo...@free.fr added the comment: Brian, any comment about the Windows part (see Victor's message, http://bugs.python.org/issue12287#msg138137) ? -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12551] Provide data for TLS channel binding
Jacek Konieczny jaj...@jajcus.net added the comment: Thanks for the quick review. Most of the problems are my oversights. I am not sure about that: And I think get_channel_binding() should raise NotImplementedError in that case. As the method is supposed to be extensible and 'tls-unique' may be just one of possible channel-binding types, then I think the same exception should be raised in case 'tls-unique' is requested and not implemented and when other, currently not implemented, channel binding type is requested. The get_channel_binding() method itself is always implemented, that is why I wonder if 'ValueError' is no better. Or 'NotImplementedError' for both 'tls-unique not implemented' and 'unknown channel binding'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12551 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12548] Add suport native Functor
yuriy_levchenko levchenko.yuriy.vladimirov...@gmail.com added the comment: http://www.python.org/dev/peps/pep-0309/#note Abandoned Syntax Proposal I originally suggested the syntax fn@(*args, **kw), meaning the same as partial(fn, *args, **kw). The @ sign is used in some assembly languages to imply register indirection, and the use here is also a kind of indirection. f@(x) is not f(x), but a thing that becomes f(x) when you call it. It was not well-received, so I have withdrawn this part of the proposal. In any case, @ has been taken for the new decorator syntax Maybe change '@' - '%' -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5505] sys.stdin.read() doesn't return after first EOF on Windows
STINNER Victor victor.stin...@haypocalc.com added the comment: I get this on Linux with ^D With which Python version? Did you try Python 3.3 (development version)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12548] Add suport native Functor
Ezio Melotti ezio.melo...@gmail.com added the comment: Using the func%(args) syntax is not possible because fab = foo%(1,2) is equivalent to fab = foo.__mod__((1,2)) It might actually be possible to overload the % operator to make something that looks like your proposed syntax (without changing the actual Python syntax), but it still look hackish to me. (We are also moving away from the % overload used by strings for the formatting in favor of the .format() method.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6942] email.generator.Generator memory consumption
Changes by Srikanth S sriks...@gmail.com: -- nosy: +srikanths ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6942 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7559] TestLoader.loadTestsFromName swallows import errors
Michael Foord mich...@voidspace.org.uk added the comment: My thinking on this has evolved a bit. Changing an import error into an attribute error is just a bad api. We should just fix the bad api. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1670765] email.Generator: no header wrapping for multipart/signed
Changes by Srikanth S sriks...@gmail.com: -- nosy: +srikanths ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1670765 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue968430] error flattening complex smime signed message
Changes by Srikanth S sriks...@gmail.com: -- nosy: +srikanths ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue968430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12548] Add suport native Functor
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12551] Provide data for TLS channel binding
Jacek Konieczny jaj...@jajcus.net added the comment: This is patch updated according to your suggestions, including raising NotImplementedError when 'tls-unique' is not available and with the ssl.HAS_TLS_UNIQUE constant added. It also includes an important fix to the data retrieval logic (one condition had to be reverted). Now the code is proven to work, by testing with another implementation (SCRAM-SHA-1-PLUS authentication in Isode M-Link 15.1a0). A alternative patch version will follow. -- Added file: http://bugs.python.org/file22651/tls_channel_binding.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12551 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12556] Disable size checks in mmap.mmap()
New submission from Sergei Lebedev superbo...@gmail.com: Current `mmap` implementation raises a ValueError if a sum of offset and length exceeds file size, as reported by `fstat`. While perfectly valid for most use-cases, it doesn't work for special files, for example: with open(/proc/sys/debug/exception-trace, r+b) as f: ... mmap.mmap(f.fileno(), 0) ... Traceback (most recent call last): File stdin, line 2, in module ValueError: mmap offset is greater than file size Same goes for almost any other /proc file, because most of them have S_ISREG() == True and st_size = 0. How about adding a keyword argument to `mmap.mmap()`, which disables fstat-based size checks? -- components: Library (Lib) messages: 140330 nosy: superbobry priority: normal severity: normal status: open title: Disable size checks in mmap.mmap() type: feature request versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12556 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12551] Provide data for TLS channel binding
Jacek Konieczny jaj...@jajcus.net added the comment: This patch is functionally equivalent, but advertises 'tls-unique' support in a bit different way. HAS_TLS_UNIQUE is not exposed in the python 'ssl' module, instead a list 'CHANNEL_BINDING_TYPES' is provided (empty when 'tls-unique' is not supported). get_channel_binding raises ValueError if the argument is not on this list. This way the API can be extended to other channel binding types without adding new constants or functions. Adding a new channel binding type would not need any modifications in the API client code (if it is designed to use arbitrary cb types). -- Added file: http://bugs.python.org/file22652/tls_channel_binding_alt.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12551 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10403] Use member consistently
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12250] regrtest: make --timeout explicit
Roundup Robot devnull@devnull added the comment: New changeset d3cebbd500aa by Victor Stinner in branch '2.7': Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20 http://hg.python.org/cpython/rev/d3cebbd500aa New changeset 05dfed82457a by Victor Stinner in branch '3.2': Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20 http://hg.python.org/cpython/rev/05dfed82457a New changeset a609b2a44f92 by Victor Stinner in branch 'default': (merge 3.2) Issue #12250: test_socketserver uses a timeout of 60 seconds http://hg.python.org/cpython/rev/a609b2a44f92 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12550] regrtest: register SIGALRM signal using faulthandler
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, I specified the wrong issue number if the commits: New changeset d3cebbd500aa by Victor Stinner in branch '2.7': Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20 http://hg.python.org/cpython/rev/d3cebbd500aa New changeset 05dfed82457a by Victor Stinner in branch '3.2': Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20 http://hg.python.org/cpython/rev/05dfed82457a New changeset a609b2a44f92 by Victor Stinner in branch 'default': (merge 3.2) Issue #12250: test_socketserver uses a timeout of 60 seconds http://hg.python.org/cpython/rev/a609b2a44f92 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12550 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12250] regrtest: make --timeout explicit
Changes by STINNER Victor victor.stin...@haypocalc.com: -- Removed message: http://bugs.python.org/msg140332 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12250] regrtest: make --timeout explicit
STINNER Victor victor.stin...@haypocalc.com added the comment: (I commited fixes for issue #12550 but specified issue #12250 in the changlog, I removed the related comment from python-dev from this issue) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12550] regrtest: register SIGALRM signal using faulthandler
Georg Brandl ge...@python.org added the comment: Can this be closed? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12550 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10403] Use member consistently
Senthil Kumaran sent...@uthcode.com added the comment: Hello Eric, I missed noticing Alexander's comments in the reitveld, I looked only at tracker then. I see that some of them can be addressed. Like using members (components) of the field, instead of attributes when it is not an attribute. Shall correct it. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12557] Crash idle on mac
New submission from Arsouze georges.arso...@gmail.com: Hi Sorry for my poor english I'am working on mac os snow leopard with Pyton 3.1 I want to use widgets Tix ot ttk I have a error message : require Tile Can you tell me step by step what i must do regards -- messages: 140337 nosy: georgesarsouze priority: normal severity: normal status: open title: Crash idle on mac type: crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor
New submission from Hans Bering hans.ber...@arcor.de: The attached script will crash on a current Ubuntu with Python 3.2 + tcl/tk when using a locale which uses a comma as a decimal separator (e.g., German). It will not crash when using a locale which uses a dot as the decimal separator (e.g., English). In case of the crash, the output and stacktrace are as follows: locale = ('de_DE', 'UTF8') Traceback (most recent call last): File tkinterCrash.py, line 20, in module tkcanvas = Canvas(master=master, width=w, height=2, borderwidth=4) File /usr/lib/python3.2/tkinter/__init__.py, line 2101, in __init__ Widget.__init__(self, master, 'canvas', cnf, kw) File /usr/lib/python3.2/tkinter/__init__.py, line 1961, in __init__ (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError: bad screen distance 10.0 Originally, we stumbled over this problem when using matplotlib, which passes/passed down float types as width arguments on occasions. It has been fixed there since (see https://github.com/matplotlib/matplotlib/pull/387). The locale dependency can make this problem difficult to debug when it occurs. In our setup, we had a program work on one machine, but it crashed on the next machine, which we believed to have an identical setup; it took us a day to figure out what the difference was. We would expect the constructor to either always work with float arguments, or to always reject them, regardless of locale. We have been able to reproduce this issue both with Python 2.7.2 and Python 3.2, both under a current Ubuntu and Windows 7. -- components: Tkinter files: badScreenSizeTk.py messages: 140338 nosy: hans.bering priority: normal severity: normal status: open title: Locale-dependent crash for float width argument to Tkinter widget constructor type: crash versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file22653/badScreenSizeTk.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12557] Crash idle on mac
R. David Murray rdmur...@bitdance.com added the comment: The tracker is a place to report bugs not get help. (We don't have the manpower to provide help services here.) Please try the python-list mailing list (gatewayed to comp.lang.python) or the python-tutor mailing list. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed type: crash - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12556] Disable size checks in mmap.mmap()
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix, rosslagerwall versions: +Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12556 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor
R. David Murray rdmur...@bitdance.com added the comment: FYI 'crash' is for segfault. A traceback is just a bug :) I'm not sure that this it is worth having this as a separate bug from #10647, but I'll let someone with tk knowledge decide that. -- nosy: +kbk, r.david.murray, terry.reedy superseder: - scrollbar crash in non-US locale format settings type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor
Changes by R. David Murray rdmur...@bitdance.com: -- superseder: scrollbar crash in non-US locale format settings - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12559] gzip.open() needs an optional encoding argument
New submission from Raymond Hettinger raymond.hettin...@gmail.com: gzip.open() should parallel file.open() so that that zipped files can be read in the same way as regular files: for line in gzip.open('notes.txt', 'r', encoding='latin-1'): print(line.rstrip()) -- components: Library (Lib) messages: 140341 nosy: rhettinger priority: normal severity: normal status: open title: gzip.open() needs an optional encoding argument type: feature request versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor
Guilherme Polo ggp...@gmail.com added the comment: Why is this a bug ? You passed something that is not supposed to work with tk and tk said so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12560] libpython.so not built on OpenBSD
New submission from Stefan Sperling s...@apache.org: In Python-2.7.2 (I have not checked other versions, sorry), the configure script doesn't not define LDLIBRARY on OpenBSD. Because of this libpython.so does not get built. -- components: Build files: python-2.7.2-configure.diff keywords: patch messages: 140343 nosy: stsp priority: normal severity: normal status: open title: libpython.so not built on OpenBSD type: compile error versions: Python 2.7 Added file: http://bugs.python.org/file22654/python-2.7.2-configure.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12560 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Jim Schneider jim.schnei...@dataflux.com added the comment: Martin - sys/_mbstate_t.h provides a definition for mbstate_t only (at least on HP/UX 11i V2.0). I can verify that the problem still exists for Python 3.2.1. I am working on a workaround for this issue, and I will attach a patch once I get it to build. -- nosy: +jschneid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Roundup Robot devnull@devnull added the comment: New changeset 16bc59d37866 by Charles-François Natali in branch '2.7': Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. http://hg.python.org/cpython/rev/16bc59d37866 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Roundup Robot devnull@devnull added the comment: New changeset 42ec507815d2 by Charles-François Natali in branch '3.1': Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. http://hg.python.org/cpython/rev/42ec507815d2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Roundup Robot devnull@devnull added the comment: New changeset ed90c1c8ee62 by Charles-François Natali in branch '3.2': Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. http://hg.python.org/cpython/rev/ed90c1c8ee62 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)
New submission from Jim Schneider jim.schnei...@dataflux.com: In Modules/getpath.c, the following line (#138) causes problems with some compilers (HP/UX 11, in particular - there could be others): static wchar_t *lib_python = Llib/python VERSION; Similarly, line #644: module_search_path = L PYTHONPATH; The default HP/UX compiler fails to compile this file with the error Cannot concatenate character string literal and wide string literal. The attached patch converts these two string literals to wide string literals that the HP/UX compiler can understand. Very limited testing indicates that the patch is benign (it does not affect the build on Linux running on x86_64). -- components: Build files: getpath.patch keywords: patch messages: 140348 nosy: jschneid priority: normal severity: normal status: open title: Compiler workaround for wide string constants in Modules/getpath.c (patch) type: compile error versions: Python 3.2 Added file: http://bugs.python.org/file22655/getpath.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
New submission from Piotr Zolnierczuk piotr.zolnierc...@gmail.com: Hi, I am trying to migrate from Python 2.5 to Python 2.7 I found though the mmap behaves differently on Windows XP between the two versions. It boils down to the following code: import mmap map1 = mmap.mmap(fileno=0, tagname='MyData', length=4096) map2 = mmap.mmap(fileno=0, tagname='MyData', length=8192) It runs fine (so I can resize shared memory) on XP with 2.5.4, but when running on 2.7.2 I get the following error Traceback (most recent call last): File D:\Workspace\memmap_test.py, line 3, in module map2 = mmap.mmap(fileno=0, tagname='MyData', length=8192) WindowsError: [Error 5] Access is denied -- messages: 140349 nosy: zolnie priority: normal severity: normal status: open title: calling mmap twice fails on Windows versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12562] calling mmap twice fails on Windows
Changes by Piotr Zolnierczuk piotr.zolnierc...@gmail.com: -- components: +Windows type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12562 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Roundup Robot devnull@devnull added the comment: New changeset ca077f2672e3 by Charles-François Natali in branch 'default': Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. http://hg.python.org/cpython/rev/ca077f2672e3 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12430] Pip fails to fetch from mirror if PyPi checksum times out
Martin v. Löwis mar...@v.loewis.de added the comment: In any case, mirrors *do* mirror the checksums. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Jim Schneider jim.schnei...@dataflux.com added the comment: I got it to build on HP-UX 11. However, there are a lot of compiler warnings about type mismatches, the _ctypes, _multiprocessing and termios modules failed to build, and make test died after not finding a usable binascii module. To get it to build, I did the following: 1) Applied the patch I attached to issue 12561 2) Created a directory sys, and copied /usr/include/sys/stdsyms.h into it. 3) Did chmod 644 on sys/stdsyms.h and applied the patch stdsyms.patch that I've attached to this issue to it. 4) Ran configure with the argument CPPFLAGS=-I. At this point, make ran to completion, and produced a python binary. However, make test dies within seconds of starting up. -- keywords: +patch Added file: http://bugs.python.org/file22656/stdsyms.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Martin v. Löwis mar...@v.loewis.de added the comment: Jim, the question remains why it fails to compile then. If the type is defined, why does it give an error message but has not been defined as a type??? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Jim Schneider jim.schnei...@dataflux.com added the comment: Martin - sys/_mbstate.h is only included if _INCLUDE__STDC_A1_SOURCE is defined. The only way this gets defined in the vendor-provided include files is if _XOPEN_SOURCE is defined and is equal to 500, or __STDC_VERSION__ is defined and is greater than or equal to 199901. I've attached a patch to broaden the _XOPEN_SOURCE case (as the test should clearly have been =, not ==). Defining __STDC_VERSION__ to 199901 or greater will also do the job, but it feels more like a hack than just fixing what's broken in the vendor include files. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)
Martin v. Löwis mar...@v.loewis.de added the comment: Why is the __W macro needed? Please don't call it WCHAR: - it conflicts with a same-named macro on Windows - you are applying it to strings, not characters FWIW, the compiler doesn't conform to standard C if it rejects this code. 6.4.5p4 says [#4] In translation phase 6, the multibyte character sequences specified by any sequence of adjacent character and wide string literal tokens are concatenated into a single multibyte character sequence. If any of the tokens are wide string literal tokens, the resulting multibyte character sequence is treated as a wide string literal; otherwise, it is treated as a character string literal. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Martin v. Löwis mar...@v.loewis.de added the comment: That's a patch to HP-UX, right? Not one to Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12563] Check out my about.me profile!
New submission from gungor gungorb...@gmail.com: Hi Python, I set up my about.me splash page and want to share it with you: http://about.me/gungorbasa?promo=share_1856_378462. If you don't have an about.me splash page, you can get one for free at http://about.me?promo=share_1856_378462. Names are going fast so you might want to get yours now. GüngörIf you would like to unsubscribe and stop receiving these emails click here: http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Du=pALbODzFR4KGDIyxaHqpmw%2Fut -- files: unnamed messages: 140357 nosy: gungorbasa priority: normal severity: normal status: open title: Check out my about.me profile! Added file: http://bugs.python.org/file22657/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12563 ___Hi Python,brbrI set up my about.me splash page and want to share it with you: a href=http://about.me/gungorbasa?promo=share_1856_378462;http://about.me/gungorbasa/a.brbrIf you don't have an about.me splash page, you can get one for free at a href=http://about.me?promo=share_1856_378462;http://about.me/a. Names are going fast so you might want to get yours now.brbrGüngörp If you would like to unsubscribe and stop receiving these emails a href=http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=pALbODzFR4KGDIyxaHqpmw%2Fuh;click here/a./p img src=http://email.about.me/wf/open?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=pALbODzFR4KGDIyxaHqpmw%2Foo0.gif; alt= ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12564] Check out my about.me profile!
New submission from gungor gungorb...@gmail.com: Hi Python, I set up my about.me splash page and want to share it with you: http://about.me/gungorbasa?promo=share_1857_378462. If you don't have an about.me splash page, you can get one for free at http://about.me?promo=share_1857_378462. Names are going fast so you might want to get yours now. GüngörIf you would like to unsubscribe and stop receiving these emails click here: http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Du=TNIvc_YfTw6bmZBeA3uDMA%2Fut -- files: unnamed messages: 140358 nosy: gungorbasa priority: normal severity: normal status: open title: Check out my about.me profile! Added file: http://bugs.python.org/file22658/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12564 ___Hi Python,brbrI set up my about.me splash page and want to share it with you: a href=http://about.me/gungorbasa?promo=share_1857_378462;http://about.me/gungorbasa/a.brbrIf you don't have an about.me splash page, you can get one for free at a href=http://about.me?promo=share_1857_378462;http://about.me/a. Names are going fast so you might want to get yours now.brbrGüngörp If you would like to unsubscribe and stop receiving these emails a href=http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=TNIvc_YfTw6bmZBeA3uDMA%2Fuh;click here/a./p img src=http://email.about.me/wf/open?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=TNIvc_YfTw6bmZBeA3uDMA%2Foo0.gif; alt= ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)
Jim Schneider jim.schnei...@dataflux.com added the comment: The __W macro is needed because the token-pasting operator binds to the macro's argument immediately; Having WCHAR(y) expand to __W(y) means that __W is passed WCHAR's argument after it's been macro-expanded. Without the intermediate step, WCHAR(VERSION) becomes LVERSION. As for the name - I have no objection to reasonable name changes. I picked WCHAR because it converts its argument to a wchar_t *. Finally - I am aware that the HP/UX C compiler is broken. Unfortunately, I am required to work with it, and can neither replace it nor ignore it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12565] Check out my about.me profile!
New submission from gungor gungorb...@gmail.com: Hi Python, I set up my about.me splash page and want to share it with you: http://about.me/gungorbasa?promo=share_1858_378462. If you don't have an about.me splash page, you can get one for free at http://about.me?promo=share_1858_378462. Names are going fast so you might want to get yours now. GüngörIf you would like to unsubscribe and stop receiving these emails click here: http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Du=sKR-vgz5SBKaB5LfWMBuDg%2Fut -- files: unnamed messages: 140360 nosy: gungorbasa priority: normal severity: normal status: open title: Check out my about.me profile! Added file: http://bugs.python.org/file22659/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12565 ___Hi Python,brbrI set up my about.me splash page and want to share it with you: a href=http://about.me/gungorbasa?promo=share_1858_378462;http://about.me/gungorbasa/a.brbrIf you don't have an about.me splash page, you can get one for free at a href=http://about.me?promo=share_1858_378462;http://about.me/a. Names are going fast so you might want to get yours now.brbrGüngörp If you would like to unsubscribe and stop receiving these emails a href=http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=sKR-vgz5SBKaB5LfWMBuDg%2Fuh;click here/a./p img src=http://email.about.me/wf/open?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=sKR-vgz5SBKaB5LfWMBuDg%2Foo0.gif; alt= ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Jim Schneider jim.schnei...@dataflux.com added the comment: Yes, it is a patch to an HP-provided C compiler system header file. I cannot provide the actual file it patches, due to copyright limitations. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12566] Check out my about.me profile!
New submission from gungor gungorb...@gmail.com: Hi Python, I set up my about.me splash page and want to share it with you: http://about.me/gungorbasa?promo=share_1859_378462. If you don't have an about.me splash page, you can get one for free at http://about.me?promo=share_1859_378462. Names are going fast so you might want to get yours now. GüngörIf you would like to unsubscribe and stop receiving these emails click here: http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Du=O-EGT9YnTHaZ2hKIsi8xlw%2Fut -- files: unnamed messages: 140362 nosy: gungorbasa priority: normal severity: normal status: open title: Check out my about.me profile! Added file: http://bugs.python.org/file22660/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12566 ___Hi Python,brbrI set up my about.me splash page and want to share it with you: a href=http://about.me/gungorbasa?promo=share_1859_378462;http://about.me/gungorbasa/a.brbrIf you don't have an about.me splash page, you can get one for free at a href=http://about.me?promo=share_1859_378462;http://about.me/a. Names are going fast so you might want to get yours now.brbrGüngörp If you would like to unsubscribe and stop receiving these emails a href=http://email.about.me/wf/unsubscribe?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=O-EGT9YnTHaZ2hKIsi8xlw%2Fuh;click here/a./p img src=http://email.about.me/wf/open?rp=Er%2BBdZSP6nTkZci6SREkGqX5gSZJ4%2F0QZJ4Ffae3DStZkB4kgwyA2ibIRCSN5vDKSXYX2zIEziWyMTT%2Faa5x7A%3D%3Damp;u=O-EGT9YnTHaZ2hKIsi8xlw%2Foo0.gif; alt= ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12563] Check out my about.me profile!
R. David Murray rdmur...@bitdance.com added the comment: spam -- nosy: +r.david.murray status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12566] Check out my about.me profile!
R. David Murray rdmur...@bitdance.com added the comment: spam -- nosy: +r.david.murray status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12565] Check out my about.me profile!
R. David Murray rdmur...@bitdance.com added the comment: spam -- nosy: +r.david.murray status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12565 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12564] Check out my about.me profile!
R. David Murray rdmur...@bitdance.com added the comment: spam -- nosy: +r.david.murray status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12564 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12558] Locale-dependent crash for float width argument to Tkinter widget constructor
Hans Bering hans.ber...@arcor.de added the comment: Sorry for the misclassification, and thanks for correcting that. I agree, this issue is most likely related to issue 10647; but at some level I think they must be different, because issue 10647 seems to be specific to Python 3.1 under Windows; I could not reproduce that issue neither under Ubuntu nor with Python 3.2 in Windows. This behaviour on the other hand I could reproduce with Python 2.7 and Python 3.2 in both Ubuntu and Windows. The underlying problem in both cases, I believe, is similar: That int/float arguments are somewhere turned into locale-dependent string representations and later parsed back using a potentially different locale. Which brings me to why I consider this to be a bug - sorry for not having made that point clearer: The handling of the float argument depends on the system locale. If you change the example script to run with an English locale, you do not get an error; instead, the float is implicitly used as an int, and everything is fine. Only if you use German or a similar locale, will the float trigger an error. So the behaviour is at the very least inconsistent. If treating a float argument as an error is deemed acceptable, then this error should not be locale-dependent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12558 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12550] regrtest: register SIGALRM signal using faulthandler
STINNER Victor victor.stin...@haypocalc.com added the comment: Can this be closed? I think (hope) that the initial issue (test_socketserver) failure is fixed, thanks to my second commit. I'm not complelty satisfied because the traceback was not printed on a SIGALRM when i tried -m test -F test_socketserver. But if I raise manually the signal, using signal.alarm(10) for example, the traceback was printed on FreeBSD 6.4 and let close this issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12550 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12559] gzip.open() needs an optional encoding argument
Daniel Urban urban.dani...@gmail.com added the comment: Here is a patch. If the code changes are acceptable I can also make a documentation patch. (I'm surprised to see 3.2 in Versions. I thought 3.2 only gets bugfixes...) -- keywords: +patch nosy: +durban Added file: http://bugs.python.org/file22661/issue12559.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12555] PEP 3151 implementation
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10647] scrollbar crash in non-US locale format settings
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg139566 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10647] scrollbar crash in non-US locale format settings
Changes by Terry J. Reedy tjre...@udel.edu: -- Removed message: http://bugs.python.org/msg139876 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10647] scrollbar crash in non-US locale format settings
Terry J. Reedy tjre...@udel.edu added the comment: Two messages deleted at Hans' request since he opened #12558 Hans says there that he could not reproduce *this* issue with 3.2. Herm, please retry with 3.2 as 3.1.4 is last bugfix for 3.1 series. If this works on 3.2, this should be closed. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)
Nicholas Cole nicholas.c...@gmail.com added the comment: The bug is marked Test Needed. I am very keen to see this issue fixed, and would be very willing to help, but I don't really know what is still required. As far as I can see there is a patch waiting - what is the hold up? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6755 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10647] scrollbar crash in non-US locale format settings
Herm Fischer fisc...@markv.com added the comment: Yes, I can confirmm that this issue is gone on 3.2. Closed. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10647 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12559] gzip.open() needs an optional encoding argument
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: There remains a difference between open() and gzip.open(): open(filename, 'r', encoding=None) is a text file (with a default encoding), gzip.open() with the same arguments returns a binary file. Don't know how to fix this though. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)
Roundup Robot devnull@devnull added the comment: New changeset dec10ad41b2a by Victor Stinner in branch 'default': Close #6755: Add get_wch() method to curses.window class http://hg.python.org/cpython/rev/dec10ad41b2a -- nosy: +python-dev resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6755 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'
Changes by John Doe gainmax...@gmail.com: -- nosy: +John.Doe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8728 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12555] PEP 3151 implementation
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12567] curses implementation of Unicode is wrong in Python 3
New submission from STINNER Victor victor.stin...@haypocalc.com: curses functions accepting strings encode implicitly character strings to UTF-8. This is wrong. We should add a function to set the encoding (see issue #6745) or use the wide character C functions. I don't think that UTF-8 is the right default encoding, I suppose that the locale encoding is a better choice. Accepting characters (and character strings) but calling byte functions is wrong. For example, addch('é') doesn't work with UTF-8 locale encoding. It calls waddch(0xE9) (é is U+00E9), whereas waddch(0xC3)+waddch(0xA9) should be called. Workaround in Python: for byte in 'é'.encode('utf-8'): win.addch(byte) I see two possible solutions: A) Add a new functions only accepting characters, and not accept characters in the existing functions B) The function should be fixed to call the right C function depending on the input type. For example, Python addch(10) and addch(b'\n') would call waddch(10), whereas addch('é') would call wadd_wch(233). I prefer solution (B) because addch('é') would just work as expected. -- components: Library (Lib) messages: 140375 nosy: Nicholas.Cole, akuchling, cben, gpolo, haypo, inigoserna, python-dev, r.david.murray, schodet, zeha priority: normal severity: normal status: open title: curses implementation of Unicode is wrong in Python 3 versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12567 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12568] Add functions to get the width in columns of a character
New submission from STINNER Victor victor.stin...@haypocalc.com: Some characters take more than one column in a terminal, especially CJK (chinese, japanese, korean) characters. If you use such character in a terminal without taking care of the width in columns of each character, the text alignment can be broken. Issue #2382 is an example of this problem. #2382 and #6755 have patches implementing such function: - unicode_width.patch of #2382 adds unicode.width() method - ucs2w.c of #6755 creates a new ucs2w module with two functions: unichr2w() (width of a character) and ucs2w() (width of a string) Use test_ucs2w.py of #6755 to test these new functions/methods. -- components: Unicode messages: 140376 nosy: haypo, inigoserna priority: normal severity: normal status: open title: Add functions to get the width in columns of a character versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12568 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.
STINNER Victor victor.stin...@haypocalc.com added the comment: I just created the issue #12568 for unicode_width.patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't really know what is still required _cursesmodule.311.get_wch.patch doesn't apply correctly on Python 3.3 and use PyInt_FromLong() function, function removed from Python 3.0. Indeed, Iñigo wrote that the patch was not tested. what is the hold up? Nobody wanted to take the responsability of the choice for get_wch(): add a new method or patch getch() ;-) -- I commited Iñigo's patch to add window.get_wch() method with minor changes: - add :versionadded: 3.3 in the doc - document the new method What's new in Python 3.3 document - fix an error message: getch = get_wch - change error message (if ch==ERROR): get_wch failed = no input (message copied from the getch function) -- I think that the Unicode support of curses in Python 3 is just completly broken: I opened a new issue for that, issue #12567. I also create the issue #12568 to add a function to get the width of a character. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6755 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12567] curses implementation of Unicode is wrong in Python 3
STINNER Victor victor.stin...@haypocalc.com added the comment: getkey.patch fixes window.getkey(): use get_wch() instead of getch() to handle correctly non-ASCII characters. I tested with the key é (U+00E9) with ISO-8859-1 and UTF-8 locale encoding: getkey() gives the expected result (but addstr is unable to display it, because addstr encodes the string to UTF-8 instead of the locale encoding). -- keywords: +patch Added file: http://bugs.python.org/file22662/getkey.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12567 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12560] libpython.so not built on OpenBSD
Changes by Stefan Krah stefan-use...@bytereef.org: -- assignee: - skrah nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12560 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6745] (curses) addstr() takes str in Python 3
STINNER Victor victor.stin...@haypocalc.com added the comment: I created issue #12567 to fix the Unicode support of the curses module in Python 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6745 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries
New submission from Jeremy Banks jer...@jeremybanks.ca: I was experimenting with the sqlite3 library and noticed that using certain strings as identifiers cause bus errors or segfaults. I'm not very familiar with unicode, but after some Googling I'm pretty sure this happens when I use non-characters or surrogate characters incorrectly. This causes a bus error: import sqlite3 c = sqlite3.connect(:memory:) table_name = '' + chr(0xD800) + '' c.execute(create table + table_name + (bar)) The equivalent Python 2 (replacing chr with unichr) works properly. -- components: Library (Lib) messages: 140381 nosy: jeremybanks priority: normal severity: normal status: open title: sqlite3 segfaults and bus errors when given certain unicode strings as queries type: crash versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9878] Avoid parsing pyconfig.h and Makefile by autogenerating extension module
Changes by Alexander Slesarev alex.slesa...@gmail.com: -- nosy: +nuald ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12570] BaseHTTPServer.shutdown() locks if the last request 404'd
New submission from Philip Horger campadrena...@gmail.com: I haven't yet checked to see if other errors mess it up, but it refuses to exit the serve_forever() loop if the last request had a 404 error. -- components: Library (Lib) messages: 140382 nosy: Philip.Horger priority: normal severity: normal status: open title: BaseHTTPServer.shutdown() locks if the last request 404'd type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12570] BaseHTTPServer.shutdown() locks if the last request 404'd
Senthil Kumaran sent...@uthcode.com added the comment: Can you please provide an example snippet with your expectation of the behavior? -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12559] gzip.open() needs an optional encoding argument
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries
Ned Deily n...@acm.org added the comment: What operating system platform and version are you seeing this behavior? Also can you report the versions of sqlite3 adapter and the sqlite3 library by executing the following in the interpreter? sqlite3.version '2.6.0' sqlite3.sqlite_version '3.6.12' On Linux and OS X systems I've tested, rather than a segfault your test case causes an exception to be raised. For Python 3.1.4: sqlite3.Warning: SQL is of wrong type. Must be string or unicode. For Python 3.2.1 UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 14: surrogates not allowed -- nosy: +ghaering, ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries
Jeremy Banks jer...@jeremybanks.ca added the comment: I'm using OS X 10.6.7. The bus error is occurring with my Python 3.1 installation: path: /Library/Frameworks/Python.framework/Versions/3.1/bin/python3 sqlite3.version == 2.4.1 sqlite3.sqlite_version = 3.6.11. But now that you mention it, my MacPorts installations of Python 3.0 and 3.1 just get an exception like you do: paths: /opt/local/bin/python3.0 / python3.1 sqlite3.version == 2.4.1 sqlite3.sqlite_version == 3.7.7.1 A Python 2.7 installation where it works without any error: path: /Library/Frameworks/Python.framework/Versions/2.7/bin/python sqlite3.version == 2.6.0 sqlite3.sqlite_version == 3.6.12 A MacPorts Python 2.6 installation where it works without any error: path: /opt/local/bin/python2.6 sqlite3.version == 2.4.1 sqlite3.sqlite_version == 3.7.7.1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12567] curses implementation of Unicode is wrong in Python 3
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12567 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries
Ned Deily n...@acm.org added the comment: Sorry, I cannot reproduce on Mac OS X 10.6.8 the crash behavior you report using various Python 3.1.x installed from the python.org Python OS X installers, in particular, 3.1 and 3.1.4 (the first and the most recent 3.1 releases). If this Python instance was not installed from a python.org installer, I suggest contacting the distributor that supplied it. If you built it from source, suggest checking what ./configure options you used and which copy of the sqlite3 library was used. You might want to take this opportunity to update to Python 3.2.1 since no further bug fixes (other than security fixes) are expected to be released for 3.1.x. -- resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries
Jeremy Banks jer...@jeremybanks.ca added the comment: I'll try that, thank you. If it works without exception in Python 2, isn't the behaviour in Python 3 a regression bug, even if it doesn't crash? If so, should I create a new/separate issue for the behaviour? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com