[issue10537] IDLE crashes when you paste something.

2010-11-25 Thread Richard
New submission from Richard vanchagr...@gmail.com: Whenever I paste anything into the IDLE shell, the program freezes, and then crashes. I'm using Python 2.7.1rcl with a Version 10.6.4 Mac OSX -- components: IDLE messages: 122441 nosy: 5ragar5 priority: normal severity: normal status

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2010-08-07 Thread Richard
Richard pub...@careaga.net added the comment: I'm thinking that the Snow Leopard abort trap when invoking IDLE from the command line is a permissions problem somewhere because it works ok when invoked with sudo. The console displays an odd message 2010-08-07 20:38:23.375 Python[25858:170b

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2010-10-20 Thread Richard
Richard pub...@careaga.net added the comment: Sorry to be obscure, Ronald. I mistook my configuration problem, described below for the original problem. But I can reproduce the problem with opening an existing file under IDLE, which is a segmentation fault. When opening a new window, I get

[issue3961] Arrows key do not browse in the IDLE

2008-09-25 Thread Richard
New submission from Richard [EMAIL PROTECTED]: I open python3.0 (rc1) IDLE from command line and it works fine, but when i press the arrows key they writes: ^[[A ^[[B ^[[C ^[[D also pagUP and pagDOWN writes: ^[[5~ ^[[6~ so I'm not able to browse the history and the all things with arrows key

[issue27493] logging module fails with unclear error when supplied a (Posix)Path

2016-07-12 Thread Richard
Richard added the comment: Yeah, figured as much. But thanks:) I'm kind of new to Python and was having some problems determining whether this is as it should be, or if it should be improved. After all, I could not find any documentation that states what the permitted variable-types

[issue27493] logging module fails with unclear error when supplied a (Posix)Path

2016-07-12 Thread Richard
New submission from Richard: No idea if I should be reporting this here, but it came with the default installation, so here goes: On a mac, I supplied a basicConfig object to the logging class that contains a PosixPath instance for the "filename" attribute. consequently

[issue27882] Python docs on 9.52 Math module lists math.log2 as function but it does not exist

2016-08-27 Thread Richard
Changes by Richard <john3...@protonmail.com>: -- title: Python docs on 3.52 Math module lists math.log2 as function but it does not exist -> Python docs on 9.52 Math module lists math.log2 as function but it does not exist ___ Python tra

[issue27882] Python docs on 9.2 Math module lists math.log2 as function but it does not exist

2016-08-27 Thread Richard
Changes by Richard <john3...@protonmail.com>: -- title: Python docs on 9.52 Math module lists math.log2 as function but it does not exist -> Python docs on 9.2 Math module lists math.log2 as function but it does not exist ___ Python tra

[issue27882] Python docs on 9.2 Math module lists math.log2 as function but it does not exist

2016-08-27 Thread Richard
Changes by Richard <john3...@protonmail.com>: Added file: https://bugs.python.org/file44244/docbugmathlog2.jpg ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue27882] Python docs on 3.52 Math module lists math.log2 as function but it does not exist

2016-08-27 Thread Richard
Changes by Richard <john3...@protonmail.com>: -- assignee: docs@python components: Documentation nosy: PyRW, docs@python priority: normal severity: normal status: open title: Python docs on 3.52 Math module lists math.log2 as function but it does not exist versions: Pyth

[issue31290] segfault on missing library symbol

2017-08-28 Thread Richard
New submission from Richard: I'm building a Python library with a C++ component composed of a number of source .cpp files. After some changes today, compiling and loading in Python3 resulted in a segfault: Python 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170118] on linux Type

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2020-12-06 Thread Richard
Richard added the comment: Sorry for reviving a 9 months old issue, but IMO there was no good reason to reject this especially when a patch was provided. Even if the context manager can be replaced with 3 lines of code, I still don't consider that very user-friendly. My use case would

[issue44401] const kwlist for PyArg_ParseTupleAndKeywords and PyArg_VaParseTupleAndKeywords

2021-06-11 Thread Richard
Change by Richard : -- keywords: +patch nosy: +immortalplants nosy_count: 1.0 -> 2.0 pull_requests: +25274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26686 ___ Python tracker <https://bugs.python.org/i

[issue45130] shlex.join() does not accept pathlib.Path objects

2021-09-07 Thread Richard
New submission from Richard : When one of the items in the iterable passed to shlex.join() is a pathlib.Path object, it throws an exception saying it must be str or bytes. I believe it should accept Path objects just like other parts of the standard library such as subprocess.run() already

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Richard
Richard added the comment: Sorry, that should have been: log_dir = Path('logs/{date}') -- ___ Python tracker <https://bugs.python.org/issue38222> ___ ___ Pytho

[issue38222] pathlib Path objects should support __format__

2021-09-13 Thread Richard
Richard added the comment: I would like for this to be reconsidered. Yes, you can use str(), but converting back and forth becomes really clunky: log_dir = 'logs/{date}' log_file = Path(str(path).format(time.strftime('%Y-%m-%d')) / 'log.txt' -- nosy: +nyuszika7h

[issue45130] shlex.join() does not accept pathlib.Path objects

2021-09-07 Thread Richard
Richard added the comment: While it may be primarily intended to combine output from shlex.split() again, IMO it's useful for manually constructed command lines as well, for example displaying instructions to a user where a path may contain spaces and special characters and needs

[issue45130] shlex.join() does not accept pathlib.Path objects

2021-09-07 Thread Richard
Richard added the comment: IMO comparing shlex.join() to str.join() is a mistake. Comparing it to subprocess.run() is more appropriate. What do you mean by "proposal"? subprocess.run() already converts Path arguments to str since Python 3.6 (though IIRC this was broken on Windows

[issue24132] Direct sub-classing of pathlib.Path

2021-09-16 Thread Richard
Richard added the comment: I agree this would be nice. For now, I'm doing this as a hack: class Path(type(pathlib.Path())): ... -- nosy: +nyuszika7h ___ Python tracker <https://bugs.python.org/issue24

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard
New submission from Richard : Starting in Python 3.10, TLS connections to certain servers (e.g. websocket-cs.vudu.com:443) are failing when it worked fine on Python 3.9 and earlier on the same system. Minimal working example: ``` #!/usr/bin/env python3 import socket import ssl HOST

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard
Richard added the comment: Sorry, I mean it works fine with Python 3.9.2 from apt as well as Python 3.9.7 from pyenv. But 3.10.0 and 3.11-dev from pyenv are broken. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-15 Thread Richard
Richard added the comment: Note that the same happens with pyenv-compiled Python 3.9.7 (same way as I compiled 3.10 and 3.11), to rule out issues with different installation methods: ``` ❯ python3.9 -VV Python 3.9.7 (default, Oct 8 2021, 10:30:22) [GCC 10.2.1 20210110

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-22 Thread Richard
Richard added the comment: Never mind, I found the root cause after some debugging. Adding AES256-GCM-SHA384 to the cipher string resolved the issue. And now I see that the release notes say this: > The ssl module now has more secure default settings. Ciphers without forward > s

[issue1101] Is there just no PRINT statement any more? Or it just doesn't work.

2007-09-04 Thread Richard Katz
New submission from Richard Katz: Is there supposed to be a way to do for x in 1,2,3: print x, If so, it's appears to be not working. Is it just not in this release? If not, I would think that leaving out the print statement (just because there is a print function) would represent

[issue1101] Is there just no PRINT statement any more? Or it just doesn't work.

2007-09-05 Thread Richard Katz
Richard Katz added the comment: What's wrong with py for x in 1,2,3:print(x,end= ) - I'd like to suggest (for those of us just now focusing on Python 3.0) replacing the last 3 bullet points of the paragraph Common Stumbling Blocks? http://docs.python.org/dev/3.0

[issue10919] Environment variables are not expanded in _winreg when using REG_EXPAND_SZ.

2011-01-16 Thread Richard Nienaber
New submission from Richard Nienaber rjniena...@gmail.com: According to Microsoft documentation (http://msdn.microsoft.com/en-us/library/ms724884(v=vs.85).aspx) when using the REG_EXPAND_SZ value type, environment variables (e.g. %programfiles%) should be expanded to their values (e.g. 'C

[issue10919] Environment variables are not expanded in _winreg when using REG_EXPAND_SZ.

2011-01-16 Thread Richard Nienaber
Richard Nienaber rjniena...@gmail.com added the comment: Further documentation on the RegEnumValue function (used by the _winreg module): http://msdn.microsoft.com/en-us/library/ms724865(v=vs.85).aspx. The documentation doesn't say whether the string is expanded or not on retrieval. Given

[issue1702] Word alias used in confusing way to compare open() and file()

2007-12-26 Thread Richard Cohen
Changes by Richard Cohen: -- nosy: +vmlinuz __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1702 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1389051] imaplib causes excessive fragmentation for large documents

2008-01-24 Thread Richard Cooper
Richard Cooper added the comment: I think I was just bitten by the non-SSL version of this bug on Python 2.5.1 (r251:54863) on Mac OS 10.5. It manifested itself as a malloc error: can't allocate region while downloading a message using imaplib. As suggested by effbot I changed data = self

[issue2038] win32pdh.EnumObjects fails on Windows Server 2003 R2

2008-02-07 Thread Richard Mason
New submission from Richard Mason: The following test script works OK on all windows platforms apart from Windows Server 2003 R2: import win32pdh win32pdh.EnumObjects(None, None, 0, 1) When I run on Windows Server 2003 R2 get the following dump: E:\fusiondx\libtest.py Traceback (most recent

[issue8841] GetoptError strings should be localized

2010-05-27 Thread Richard Lowe
New submission from Richard Lowe richl...@richlowe.net: The GetoptError exception raised by getopt.getopt() to indicate errors in provided arguments seems intended to be displayed to the user[1], but is not localized and doesn't contain enough information, short of interpreting the error

[issue4184] Remove use of private attributes in smtpd

2010-07-08 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Giampaolo, I think I can see where you're coming from: assuming that someone else must have also had to resort to the name-mangling hack to extend the class? In that case yes, my patch would break their code. I'll look at re

[issue4184] Remove use of private attributes in smtpd

2010-07-23 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: After discussing with core devs at the EuroPython sprint I will implement a different approach: new attributes with the old, private attributes implemented as properties over the new attributes. The properties responsible

[issue4184] Remove use of private attributes in smtpd

2010-07-24 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Committed in revision 83125. -- assignee: - richard resolution: - fixed stage: - committed/rejected status: open - closed type: - feature request ___ Python tracker rep

[issue1767933] Badly formed XML using etree and utf-16

2010-07-26 Thread Richard Urwin
Richard Urwin soron...@googlemail.com added the comment: I can't produce an automated test, for want of time, but here is a demonstrator. Grab the example XHTML from http://docs.python.org/library/xml.etree.elementtree.html#elementtree-objects or use some tiny ASCII-encoded xml file. Save

[issue1767933] Badly formed XML using etree and utf-16

2010-07-26 Thread Richard Urwin
Richard Urwin soron...@googlemail.com added the comment: Execute bug-test.xml I meant bug-test.py, of course -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1767933

[issue1767933] Badly formed XML using etree and utf-16

2010-07-26 Thread Richard Urwin
Richard Urwin soron...@googlemail.com added the comment: As an example, here is the first two lines of output when I use Python 2.6.3: 60 63 120 109 108 32 118 101 114 115 105 111 110 61 39 49 46 48 39 32 101 110 99 111 100 105 110 103 61 39 85 84 70 45 49 54 39 63 62 10 60 255 254 104 0 116 0

[issue9412] test_smtpd leaks references

2010-07-29 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: That's odd. I didn't run the refcount tests because I was only adding Python code. I'll look into compiling a debug build and running the tests locally with a view to tracking down the problem

[issue2423] test_smtplib.py no longer butt slow

2010-08-02 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: The patch to test_smtplib.py no longer applies since trunk is now py3k. I'm looking into it - and seeing whether the mock socket work I implemented for test_smtpd.py will have any common code. I'm hitting some fun areas of py3k

[issue2423] test_smtplib.py no longer butt slow

2010-08-03 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Merged mock socket from test_smtpd.py and committed. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2423

[issue8739] Update to smtpd.py to RFC 5321

2010-08-03 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: The smtpd module now has a test suite. Please add your unit tests to test_smtpd.py -- nosy: +richard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739

[issue9619] test_ssl freezes

2010-08-15 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Thanks for the investigation Antoine. In r84088 I've added a call to asyncore.close_all in the smtpd test tearDown methods. -- resolution: - fixed status: open - closed ___ Python

[issue10378] Typo in results of help(divmod)

2010-11-09 Thread Richard Fuhr
New submission from Richard Fuhr richard.f...@gmail.com: When running Python 2.7 if you invoke help(divmod) the first line of the resulting help displays Help on built-in function divmod in module __builtin__: but I believe that the name of the module is __builtins__ so the line should say

[issue10378] Typo in results of help(divmod)

2010-11-09 Thread Richard Fuhr
Richard Fuhr richard.f...@gmail.com added the comment: I had a typo in my own bug report that was reporting a typo; what I intended to say was the following ( the q should not have been there at the end ) When running Python 2.7 if you invoke help(divmod) the first line of the resulting

[issue10378] Typo in results of help(divmod)

2010-11-09 Thread Richard Fuhr
Richard Fuhr richard.f...@gmail.com added the comment: OK, thanks for the clarification. I am new to Python. Sent from my iPod On Nov 9, 2010, at 3:54 PM, Andreas Stührk rep...@bugs.python.org wrote: Andreas Stührk andy-pyt...@hammerhartes.de added the comment: __builtin__

[issue4184] Remove use of private attributes in smtpd

2008-10-22 Thread Richard Jones
New submission from Richard Jones [EMAIL PROTECTED]: Executive summary of the patch: The attached patch removes the use of __private attributes in the smtpd module allowing it to be extensible without needing to use the _classname__attributename hack. Summary of the patch's changes: 1

[issue1767933] Badly formed XML using etree and utf-16

2008-11-14 Thread Richard urwin
Richard urwin [EMAIL PROTECTED] added the comment: Here is a patch of my quick hack, more for interest than any suggestion it gets used. Although it does produce good output so long as you avoid the BOM. The full solution is beyond my (very weak) Python skills. The character encoding is tied

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-01-13 Thread Richard Philips
New submission from Richard Philips rphil...@users.sourceforge.net: On Solaris 10 (Solaris 10 5/08 s10x_u5wos_10 X86), with python 2.5 (Python 2.5.2 (r252:60911, Sep 8 2008, 16:53:36) [C] on sunos5), tempfile.NamedTemporaryFile creates - as advertised - a temporary file. After closing

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-01-13 Thread Richard Philips
Richard Philips rphil...@users.sourceforge.net added the comment: [Replaces msg 79727] On Solaris 10 (Solaris 10 5/08 s10x_u5wos_10 X86), with python 2.5 (Python 2.5.2 (r252:60911, Sep 8 2008, 16:53:36) [C] on sunos5), tempfile.NamedTemporaryFile creates - as advertised - a temporary file

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15729/unicode_escape_single_and_double_quotes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15771/unicode_escape_reorg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15774/unicode_escape_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15775/raw_unicode_escape_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching updated unit tests. The tests now check to make sure that single and double quotes are escaped. -- Added file: http://bugs.python.org/file15809/unicode_escape_tests.patch ___ Python

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching a minimal patch: * unicode_escape now backslash-escapes single and double quotes * raw_unicode_escape now unicode-escapes single and double quotes * raw_unicode_escape now unicode-escapes backslashes * removes pickle's escaping

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching a patch for an issue discovered while looking at the code: * The UTF-16 decode logic in the Unicode escape encoders no longer reads past the end of the provided Py_UNICODE buffer if the last character's value is between 0xD800

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching a patch for another issue discovered while looking at the code: * The Unicode escape encoders now check to make sure that the provided size is nonnegative. * C API documentation updated to make it clear that size must

[issue7615] unicode_escape codec does not escape quotes

2010-01-09 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching a patch that eliminates duplicate code: * Merge unicodeescape_string(), PyUnicode_EncodeRawUnicodeEscape(), and modified_EncodeRawUnicodeEscape() into one function called _PyUnicode_EncodeCustomUnicodeEscape(). This patch is meant

[issue7615] unicode_escape codec does not escape quotes

2010-01-24 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Any comments on the patches? I'd love to see at least patches 1-3 make it into Python 2.7. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-04-07 Thread Richard King
New submission from Richard King [EMAIL PROTECTED]: The module global value use_rawinput is initialized to 1 but not reset when stdin is replaced with a passed-in value. -- components: Extension Modules messages: 65094 nosy: rickbking severity: normal status: open title: cmd.py always

[issue2577] cmd.py should track input file objects so macros with submacros can be easily written

2008-04-07 Thread Richard King
New submission from Richard King [EMAIL PROTECTED]: Add an input method or property that saves the current input file object and resets the input file object; when input results in an EOF, the input file object stack is popped and reading continues from there. A modified cmd.py is attached

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-04-08 Thread Richard King
Richard King [EMAIL PROTECTED] added the comment: (this is really 2 mails because my home email address was not registered so they were rejected at first) Right - I wasn't too clear. The module stashes stdin, whether from sys or passed in, in self.stdin. When it reads input it uses a flag

[issue2647] XML munges apos entity in tag content

2008-04-16 Thread Richard Esplin
New submission from Richard Esplin [EMAIL PROTECTED]: I would like it to leave my apos; alone, just like it does with my lt; and gt; Python 2.5.1 (r251:54863, Sep 21 2007, 22:46:31) [GCC 4.2.1 (SUSE Linux)] on linux2 Type help, copyright, credits or license for more information. from xml.dom

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-06-18 Thread Richard King
Richard King [EMAIL PROTECTED] added the comment: There were some other things I wanted too so I just made my own cmd.py. -Rick Raghuram Devarakonda wrote: Raghuram Devarakonda [EMAIL PROTECTED] added the comment: Richard, I see the following very clearly mentioned in the doc: If you want

[issue3441] Regression in module as a script command-line option

2008-07-24 Thread Richard Jones
New submission from Richard Jones [EMAIL PROTECTED]: The Python 2.5 -m command-line option allowed execution of a package directly, by invoking the __init__.py module. Python 2.6 no longer allows this. This is a quite unfortunate regression, and I would urge the decision to hobble

[issue3441] Regression in module as a script command-line option

2008-07-24 Thread Richard Jones
Changes by Richard Jones [EMAIL PROTECTED]: -- type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3441 ___ ___ Python-bugs-list mailing

[issue3441] Regression in module as a script command-line option

2008-07-26 Thread Richard Jones
Richard Jones [EMAIL PROTECTED] added the comment: I'm afraid it's all a bit opaque to an outsider like me. I've no idea what subtle breakage the feature was causing. I just saw it working quite nicely for me in 2.5 :) ___ Python tracker [EMAIL PROTECTED

[issue3208] function annotation for builtin and C function

2008-07-30 Thread Richard Boulton
Richard Boulton [EMAIL PROTECTED] added the comment: I don't think it's reasonable not to support multiple interpreters in a single process - they're quite widely used by mod_python and mod_wsgi, and probably by others. I'm not sure whether that's a problem here or not, though. If we need

[issue6823] time.strftime does unnecessary range check

2009-09-02 Thread Richard Shapiro
New submission from Richard Shapiro rashapir...@gmail.com: in Modules/timemodule.c, in the routine time_strftime, there is a range check on the tm_isdst field: if (buf.tm_isdst -1 || buf.tm_isdst 1) { PyErr_SetString(PyExc_ValueError, daylight

[issue6823] time.strftime does unnecessary range check

2009-09-08 Thread Richard Shapiro
Richard Shapiro rashapir...@gmail.com added the comment: Here's a patch to normalize the results of the various system calls which return time information. This was against the source for Python 2.5.1. *** timemodule.cTue Sep 8 10:28:31 2009 --- /home/rshapiro/216/redist/Python-2.5.1

[issue7184] build failures on Snow Leopard

2009-10-21 Thread Richard Jones
New submission from Richard Jones richardjo...@optushome.com.au: I'm using python 2.6 maint SVN r75588 and get the attached build log when I run: configure --enable-framework make Failed to build these modules: _curses_curses_panel _tkinter readline

[issue7615] unicode_escape codec does not escape quotes

2009-12-31 Thread Richard Hansen
New submission from Richard Hansen rhan...@bbn.com: The description of the unicode_escape codec says that it produces a string that is suitable as Unicode literal in Python source code. [1] Unfortunately, this is not true as it does not escape quotes. For example: print u'a\'bc\'\'\'de

[issue7615] unicode_escape codec does not escape quotes

2010-01-03 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: If we change this, the encoder should quote both single and double quotes - simply because it is not known whether the literal will use single or double quotes. Or document that single quotes are always escaped so that the user knows he/she

[issue7615] unicode_escape codec does not escape quotes

2010-01-04 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: I thought about raw_unicode_escape more, and there's a way to escape quotes: use unicode escape sequences (e.g., ur'\u0027'). I've attached a new patch that does the following: * backslash-escapes single quotes when encoding

[issue7615] unicode_escape codec does not escape quotes

2010-01-05 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attached is a patch to the unicode unit tests. It adds tests for the following: * unicode_escape escapes single quotes * raw_unicode_escape escapes single quotes * raw_unicode_escape escapes backslashes -- Added file: http

[issue7615] unicode_escape codec does not escape quotes

2010-01-05 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15742/unicode_escape_reorg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-05 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching updated unicode_escape_reorg.patch. This fixes two additional issues: * don't call _PyString_Resize() on an empty string because there is only one empty string instance, and that instance is returned when creating an empty string

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15748/unicode_escape_reorg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching updated unicode_escape_reorg.patch. This addresses two additional issues: * removes pickle's workaround of raw-unicode-escape's broken escaping * eliminates duplicated code (the raw escape encode function was copied with only

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: I believe this issue is ready to be bumped to the patch review stage. Thoughts? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Does the last patch obsolete the first two? If so please delete the obsolete ones. Yes and no -- it depends on what the core Python developers want and are comfortable with: * unicode_escape_single_quotes.patch: Only escapes single

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15746/unicode_escape_tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching updated unit tests for the unicode_escape codec. I removed the raw_unicode_escape tests and will attach a separate patch for those. -- Added file: http://bugs.python.org/file15774/unicode_escape_tests.patch

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: Attaching updated unit tests for the raw_unicode_escape codec. -- Added file: http://bugs.python.org/file15775/raw_unicode_escape_tests.patch ___ Python tracker rep...@bugs.python.org http

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Richard Hansen rhan...@bbn.com added the comment: We'll need a patch that implements single and double quote escaping for unicode_escape and a \u style escaping of quotes for the raw_unicode_escape encoder. OK, I'll remove unicode_escape_single_quotes.patch and update

[issue7615] unicode_escape codec does not escape quotes

2010-01-07 Thread Richard Hansen
Changes by Richard Hansen rhan...@bbn.com: Removed file: http://bugs.python.org/file15716/unicode_escape_single_quotes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7615

[issue11362] image/webp missing from mimetypes.py

2011-03-01 Thread Richard Rabbat
New submission from Richard Rabbat rab...@google.com: image/webp is missing from the mimetypes.py list of valid mimetypes. webp is an open-source image format and uses vp8 as a codec. -- components: Library (Lib) messages: 129786 nosy: Richard.Rabbat priority: normal severity: normal

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Richard Lowe
Richard Lowe richl...@richlowe.net added the comment: I don't find anything lacking about the error messages, I meant that there were no more specific exceptions, or fields in GetoptError to allow the caller to tell what was specifically wrong and provide its own localized messages. So while

[issue8841] GetoptError strings should be localized

2011-03-01 Thread Richard Lowe
Richard Lowe richl...@richlowe.net added the comment: Sure, just localizing them in the getopt implementation would be fine. I suggested subclassing to solve the more general problem of the caller being able to tell one getopt error from another, for which it is a pretty common solution

[issue13279] Add memcmp into unicode_compare for optimizing compares

2011-10-27 Thread Richard Saunders
New submission from Richard Saunders richismyn...@mac.com: In discussions of memcmp performance, (http://www.picklingtools.com/study.pdf) it was noted how well Python 2.7 can take advantage of faster memcmps (indeed, the rich comparisons are all memcmp calls). There have been some discussion

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-27 Thread Richard Saunders
Richard Saunders richismyn...@mac.com added the comment: This is a potential patch: I believe it follows the C-style of PEP 7 There is a test as well, testing 1 and 2 byte kinds. I have run it through the python tests and have added no new breakages (there were some tests that failed

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Richard Saunders
Richard Saunders richismyn...@mac.com added the comment: Here's a test demonstrating the memcmp optimization effect: --- more ~/PickTest5/Python/string_test3.py a = [] b = [] c = [] d = [] for x in range(0,1000) : a.append(the quick

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Richard Saunders
Richard Saunders richismyn...@mac.com added the comment: Added branches for specializing for UCS2 and UCS4 types -- Added file: http://bugs.python.org/file23574/unicode_with_memcmp_and_ucs_specialization.patch ___ Python tracker rep

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Richard Saunders
Richard Saunders richismyn...@mac.com added the comment: Some more information: Bob Arendt and I have been playing with the Fedora Core .spec file for python on Fedora Core 15: the compile options we found seem to automatically (as we did non invoke this option) invoke '-fno-builtin-memcmp

[issue16507] Patch selectmodule.c to support WSAPoll on Windows

2012-12-07 Thread Richard Oudkerk
Richard Oudkerk added the comment: It seems that the return code of WSAPoll() does not include the count of array items with revents == POLLNVAL. In the case where all of them are POLLNVAL, instead of returning 0 (which usually indicates a timeout) it returns -1 and WSAGetLastError

[issue16616] test_poll.PollTests.poll_unit_tests() is dead code

2012-12-10 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16616 ___ ___ Python-bugs

[issue15526] test_startfile crash on Windows 7 AMD64

2012-12-10 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15526 ___ ___ Python-bugs

[issue16507] Patch selectmodule.c to support WSAPoll on Windows

2012-12-16 Thread Richard Oudkerk
Richard Oudkerk added the comment: Here is a new version with tests and docs. Note that the docs do not mention the bug mentioned in http://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/ Maybe they should? Note that that bug makes it a bit difficult to use poll with tulip on Windows

[issue16718] Mysterious atexit fail

2012-12-18 Thread Richard Oudkerk
Richard Oudkerk added the comment: When you run wy.py the wow module gets partially imported, and then garbage collected because it fails to import successfully. The destructor for the module replaces values in the module's __dict__ with None. So when the cleanup function runs you get

[issue16718] Mysterious atexit fail

2012-12-19 Thread Richard Oudkerk
Richard Oudkerk added the comment: Things should be better in the future, when modules are cleared with true garbage collection. When is this future of which you speak? I am not sure whether it would affect performance, but a weakrefable subclass of dict could be used for module dicts

  1   2   3   4   5   6   7   8   9   10   >