[issue22273] abort when passing certain structs by value using ctypes

2014-08-28 Thread Weeble
Weeble added the comment: I had a closer look at the cif object in gdb. The ffi_type of the argument in question has size 16, alignment 1, type FFI_TYPE_STRUCT and elements contains a single nested ffi_type, of size 8, alignment 8, type FFI_TYPE_POINTER. I think this pointer type is wrong

[issue22273] abort when passing certain structs by value using ctypes

2014-08-25 Thread Weeble
New submission from Weeble: I'm not 100% certain this is a bug yet, but I'm beginning to think it's likely. On 64-bit Linux, I can't pass a struct like this: struct S { uint8_t data[16]; }; ...to a function declared like this: void f(struct S); >From exper

[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-11 Thread Weeble
Weeble added the comment: Ah, sorry for the confusion. -- ___ Python tracker <http://bugs.python.org/issue21194> ___ ___ Python-bugs-list mailing list Unsub

[issue21194] json.dumps with ensure_ascii=False doesn't escape control characters

2014-04-10 Thread Weeble
New submission from Weeble: The JSON spec (http://www.json.org/) does not allow unescaped control characters. (See the railroad diagram for strings and the grammar on the right.) If json.dumps is called with ensure_ascii=False, it fails to escape control codes in the range U+007F to U+009F

[issue444582] Finding programs in PATH, adding shutil.which

2011-11-28 Thread Weeble
Weeble added the comment: I'm not sure what rules are used by Windows to process the PATH string, but I think they are similar to the rules used to parse the command-line into argv in a C/C++ program: http://msdn.microsoft.com/en-us/library/17w5ykft.aspx I have tested various arrangemen

[issue1665333] Documentation missing for OptionGroup class in optparse

2011-03-28 Thread Weeble
Weeble added the comment: I think the documentation for get_option_group is not right. I've created a new bug: http://bugs.python.org/issue11699 -- nosy: +weeble ___ Python tracker <http://bugs.python.org/issu

[issue11699] Documentation for get_option_group is wrong

2011-03-28 Thread Weeble
New submission from Weeble : The docs for optparse say this: OptionParser.get_option_group(opt_str) Return, if defined, the OptionGroup that has the title or the long description equals to opt_str After failing to get this to work at all, I looked at the implementation, and the

[issue2304] subprocess under windows fails to quote properly when shell=True

2010-11-08 Thread Weeble
Weeble added the comment: Is there any way to write code that's safe with or without this fix? If I have code that currently does this: subprocess.check_call('""c:\some path with spaces" arg1 arg2 "a quoted arg""', shell=True) ...will it break

[issue5124] IDLE - pasting text doesn't delete selection

2009-02-01 Thread Weeble
New submission from Weeble : Steps to reproduce: 1. Start IDLE. 2. Enter some text: spam eggs 3. Select the first line ("spam") and press control+c to copy. 4. Select the second line ("eggs") and press control+v to paste. Expected result: spam spam (With the caret at t

[issue4676] python3 closes + home keys

2009-01-29 Thread Weeble
Weeble added the comment: I can't see any useful reason to go to the absolute start of the line in the interactive shell. However, it does make sense in the source editor, and it is consistent with, for example, Visual Studio. The first use- case off the top of my head is when you wa

[issue4676] python3 closes + home keys

2009-01-29 Thread Weeble
Weeble added the comment: You're right: we should find a solution that's safe and supported. I *think* the primary reason for overriding the home key behaviour was not for the interactive shell, but to make it easier to edit code. Most programmer's editors that do automatic i

[issue4676] python3 closes + home keys

2009-01-29 Thread Weeble
Weeble added the comment: I posted a question on comp.lang.tcl here: http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/aab17806f6fa837f# By the way, which versions of Tk must Python support? Where do I find out things like that? ___ Python

[issue4676] python3 closes + home keys

2009-01-29 Thread Weeble
Weeble added the comment: Well, the status quo depends on an unsupported field - "anchor". As far as I can tell, the only other option that allows any customisation of cursor behaviour is to re-implement the entire selection system from the ground up. Would it be acceptable to det

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-01-26 Thread Weeble
Weeble added the comment: A thought occurs to me: would this patch make it harder to cope with awkward firewalls that block the connection? Are they more or less likely to intervene when passing a port of 0 and letting it pick a port automatically? And if they do intervene, would users be

[issue4676] python3 closes + home keys

2009-01-26 Thread Weeble
Weeble added the comment: Just got a chance to test this on a Windows desktop with a proper keyboard. (My laptop does weird things with num-lock and scroll-lock.) I got it to crash once, but I have no idea what was special about that time. Otherwise I can reproduce the exception traceback

[issue3068] IDLE - Add an extension configuration dialog

2009-01-25 Thread Weeble
Changes by Weeble : -- nosy: +weeble ___ Python tracker <http://bugs.python.org/issue3068> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4676] python3 closes + home keys

2009-01-24 Thread Weeble
Weeble added the comment: Another complication. On Windows, this line doesn't do what it claims: if (event.state & 12) != 0 and event.keysym == "Home": # state&1==shift, state&4==control, state&8==alt return # ; fall back to class binding The comment

[issue4676] python3 closes + home keys

2009-01-24 Thread Weeble
Weeble added the comment: I have experienced similar problems in Python 2.6.1 on Windows, and found them to be due to Tk 8.5. I posted my findings here: http://mail.python.org/pipermail/idle-dev/2009-January/002738.html In summary, Tk 8.5 changed the name of the "anchor" mark to be

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-01-24 Thread Weeble
Weeble added the comment: I installed Ubuntu on a laptop at the beginning of January and have applied the patch I submitted above to IDLE. I've been using it regularly for the last few weeks and have had no problems with it. ___ Python tracker

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-12-01 Thread Weeble
Weeble <[EMAIL PROTECTED]> added the comment: Okay, I've uploaded a patch. As suggested, it passes 0 for the port number and the port is automatically assigned. It then extracts the port from the socket and passes it to the subprocess. Note that this means the subprocess i

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-12-01 Thread Weeble
Changes by Weeble <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12180/IDLE_automatic_ports.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-11-27 Thread Weeble
Weeble <[EMAIL PROTECTED]> added the comment: Is this ever likely to make it into IDLE? Running without a subprocess in Windows appears to interact badly with the multiprocessing library (attempting to spawn a process just creates a new IDLE window). I couldn't figure out how t

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2008-11-20 Thread Weeble
Changes by Weeble <[EMAIL PROTECTED]>: -- nosy: +weeble ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1529142> ___ ___ Python-bugs