[issue5569] Issue in transparency in top level tk window(python) on MAC

2009-03-27 Thread Yogendra Mohan
Yogendra Mohan added the comment: Hello Amaury Forgeot, Thanks for reply. As you said 'wm_attributes does not take keyword arguments' I have taken that pach from issue1500773 and updated the same. Still I am not able to run with Python 2.5.1 on MAC 10.5.1. Please let me know if anything else

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2009-03-27 Thread Bob Ippolito
Changes by Bob Ippolito : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5584] json.loads(u'3.14') fails unexpectedly (minor scanner bug)

2009-03-27 Thread Bob Ippolito
New submission from Bob Ippolito : http://code.google.com/p/simplejson/issues/detail?id=43 Need a <= where there's a < in the unicode float scanner. problem only exists when decoding a unicode float that is not in any sort of container (e.g. array or object). -- assignee: bob.ippolito

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: I think it makes sense to leave the socket open in this case. (In general, I think httplib is too aggressive about closing the socket.) I'm checking in a version for py3k, and will get around to backporting it later. Committed revision 70643. -- resol

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-03-27 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch, Victor. I think this is the right thing to do, though I'm still not sure why anyone would care about getting longs instead of ints back from int(x). Comments and questions: (0) Please could you add some tests! (1) Shouldn't the first l

[issue1174606] Reading /dev/zero causes SystemError

2009-03-27 Thread R. David Murray
R. David Murray added the comment: I applied the patch against the trunk, and 'make' failed: File "/home/rdmurray/python/Issue1174606/Lib/platform.py", line 932, in _syscmd_uname output = string.strip(f.read()) OverflowError: requested number of bytes is more than a Python string can

[issue786827] IDLE starts with no menus (Cygwin)

2009-03-27 Thread Guilherme Polo
Guilherme Polo added the comment: I just tried idle here under cygwin and menus are not shown. This cygwin includes python 2.5.2, btw. But I verified what Daniel Joyce said and I see the problem is no longer there, so it has to be tracked down again. -- nosy: +gpolo __

[issue1468223] Hitting CTRL-C while in a loop closes IDLE on cygwin

2009-03-27 Thread Guilherme Polo
Guilherme Polo added the comment: I have just tried it using Python 2.5.2 under cygwin 1.5.25 and that did not happen. This looks like to be an issue with the cygwin you were using, not python or idle. If you (Miki) are still around, please retry with a newer cygwin and report it here, otherwis

[issue5583] Optional extensions in setup.py

2009-03-27 Thread Georg Brandl
New submission from Georg Brandl : Adds a new kwarg to the Extension constructor that does what Python's own /setup.py does to ignore build failure in an extension with a warning. I'm not sure if that's everything that's needed, but it seems to work in a simple test case. -- assignee: t

[issue5035] Compilation --without-threads fails

2009-03-27 Thread STINNER Victor
STINNER Victor added the comment: gpolo> Victor, I have changed your tkinter patch a bit and applied on r70641. Ok, thanks. gpolo> The issue is marking only python 2.7 right now, aren't these changes gpolo> supposed to be applied 26-maint, py3k and 30-maint too ? Since it only fixes warnings,

[issue1562092] IDLE: Dedent with Italian keyboard

2009-03-27 Thread Guilherme Polo
Guilherme Polo added the comment: Shift+Tab does look better to me too. But, one can change the default shortcut like Kurt mentioned. Are IDLE users ready to have the default dedent shortcut changed ? -- nosy: +gpolo ___ Python tracker

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Wow! Old issue. This behavior was present in Greg's original version of the code. -- ___ Python tracker ___ ___

[issue5577] yield in iterators

2009-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: Fine! -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue5577] yield in iterators

2009-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this should just be closed. The original implied claim that 3.0 is not correct is not correct. The change of behavior is a clear side effect of and intended and documented change in the semantics of comprehensions. As near as I can tell, the results o

[issue1517993] IDLE: config-main.def contains windows-specific settings

2009-03-27 Thread Guilherme Polo
Guilherme Polo added the comment: For config-extensions.def: What do you think about moving all shortcuts to config-keys and then always use the name of the shorcut in config-extensions instead of the shorcut ? For config-main.def: For the [Keys] section I believe it would be better to rena

[issue5582] Incorrect DST transition on Windows

2009-03-27 Thread acummings
New submission from acummings : On Windows, the calculation of when DST starts is incorrect. Windows OS seems to be fully patched, and correctly changed to DST on 3-8-2009. However, datetime.now() is 1 hour less then Windows displayed time. I even tried setting the TZ environment variable to

[issue5542] Socket is closed prematurely in httplib, if server sends response before request body has been sent

2009-03-27 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- assignee: -> jhylton nosy: +jhylton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-27 Thread Guilherme Polo
Guilherme Polo added the comment: Maybe we can agree on the feature being added ? I don't see much use for controlling how much time the insertion cursor is on and how much time it is off, but maybe just choosing between blink and no-blink would be good to have. I would prefer to just get an opt

[issue5571] new "TestCase.skip" method causes all tests to skip under trial (Twisted's test runner)

2009-03-27 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: I went to the trouble of tracking it down and then I forgot to attach a comment: I'm pretty sure Benjamin meant r70616. -- ___ Python tracker _

[issue5571] new "TestCase.skip" method causes all tests to skip under trial (Twisted's test runner)

2009-03-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Hi Benjamin, Thanks for this fix. :) I noticed the revision in your comment doesn't seem to be the one that contains the fix though. -- nosy: +exarkun ___ Python tracker ___

[issue5035] Compilation --without-threads fails

2009-03-27 Thread Guilherme Polo
Guilherme Polo added the comment: Victor, I have changed your tkinter patch a bit and applied on r70641. The issue is marking only python 2.7 right now, aren't these changes supposed to be applied 26-maint, py3k and 30-maint too ? -- ___ Python trac

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-03-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5314] http client error

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Committed revision 70638. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue4958] email/header.py ecre regular expression issue

2009-03-27 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> duplicate status: open -> closed superseder: -> decode_header does not follow RFC 2047 ___ Python tracker ___ ___

[issue5035] Compilation --without-threads fails

2009-03-27 Thread Guilherme Polo
Changes by Guilherme Polo : -- nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5314] http client error

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Ok. Discovered that RFC 2616 says that iso-8859-1 is the default charset, so I will use that to encode strings instead of ascii. If you want utf-8, you could encode the string yourself before calling request(). Presumably, you should also add a content-type th

[issue5314] http client error

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: The documentation is pretty vague on this point. If you send something other than plain ascii, it gets a bit tricky to figure out what other headers need to be added. It would be safer for the client to pick an encoding (e.g. utf-8) and encode the string before

[issue5577] yield in iterators

2009-03-27 Thread Guido van Rossum
Guido van Rossum added the comment: Can anyone think of a *reason* to put a yield inside a generator expression? ISTM we could just forbid this syntactically. It seems insane and hard to read so if someone has a reason they should write it out using an explicit for-statement. -- nosy:

[issue5581] abc.abstractproperty() docs list fget as required; fget is not required by abc.abstractproperty()

2009-03-27 Thread Devin Jeanpierre
New submission from Devin Jeanpierre : The documentation uses the function signature `abc.abstractproperty(fget[, fset[, fdel[, doc]]])`, implying that fget is mandatory, and all other arguments are optional. The correct version would be `abc.abstractproperty([fget[, fset[, fdel[, doc)`,

[issue4629] getopt should not accept no_argument that ends with '='

2009-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch is good. -- nosy: +amaury.forgeotdarc resolution: -> accepted ___ Python tracker ___ __

[issue5577] yield in iterators

2009-03-27 Thread qwjqwj
qwjqwj added the comment: Ok, I see. Thanks. However, I don't think yield should be consumed at the iterator's level. It may be more useful for the outside function to consume the yield. For example, some function want to change some data with another "thread". def f(): ...fetch data...

[issue5577] yield in iterators

2009-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > More experiments: > The tuple pair (10,20) don't correspond to (i,i*i) This is normal, since it corresponds to ((yield i), (yield i*i)). The value of a yield expression is what the caller puts into send(), not what is yielded to the caller. And since you sent

[issue5577] yield in iterators

2009-03-27 Thread qwjqwj
qwjqwj added the comment: More experiments: The tuple pair (10,20) don't correspond to (i,i*i) The yield order is distorted >>> x = (((yield i),(yield i*i)) for i in range(3)) >>> x.__next__() 0 >>> x.send(10) 0 >>> x.send(20) (10, 20) >>> x.send(30) 1 >>> x.send(40) 1 >>> x.send(60) (40, 60) >

[issue5577] yield in iterators

2009-03-27 Thread qwjqwj
qwjqwj added the comment: >>> x = {(yield i) for i in range(10)} >>> x at 0x02A453F0> >>> list(x) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, {None}] -- ___ Python tracker ___ __

[issue5577] yield in iterators

2009-03-27 Thread qwjqwj
qwjqwj added the comment: >>> x = ((yield i) for i in range(10)) >>> list(x) [0, None, 1, None, 2, None, 3, None, 4, None, 5, None, 6, None, 7, None, 8, None, 9, None] -- ___ Python tracker

[issue5577] yield in iterators

2009-03-27 Thread qwjqwj
qwjqwj added the comment: Why should yield can be put inside the iterator? The behavior here is very weired. >>> x = [(yield i) for i in range(10)] >>> print(list(x)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, [None, None, None, None, None, None, None, None, None, None]] -- __

[issue3138] Hang when calling get() on an empty queue in the queue module

2009-03-27 Thread Tuure Laurinolli
Tuure Laurinolli added the comment: Is it also intended that Queue.get() eats SIGINTs, requiring one to kill the process with something heavier? -- nosy: +tazle ___ Python tracker __

[issue5577] yield in iterators

2009-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's true, however, that there is a difference in behaviour between 2.x and 3.x here. In 2.x, the function containing the list comprehension is a generator. In 3.x, it's the list comprehension itself which becomes a generator. I'm not sure which one is more usef

[issue5577] yield in iterators

2009-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps you forgot to return the value. In 3.1: >>> def f(): ... return [(yield i) for i in range(10)] ... >>> f() at 0x7f9bcc2257d0> -- nosy: +pitrou ___ Python tracker __

[issue5090] import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++

2009-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The issue seems fixed now. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs

[issue5569] Issue in transparency in top level tk window(python) on MAC

2009-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: wm_attributes does not take keyword arguments. See issue1500773. something like this should work, though: self.top=Toplevel(master=self.parent) self.top.wm_attributes('-alpha', 0.8) -- nosy: +amaury.forgeotdarc resolution: -> dup

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2009-03-27 Thread dchud
Changes by dchud : -- nosy: +dchud ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue5580] Strange error message in Python/getargs.c

2009-03-27 Thread Andrii V. Mishkovskyi
New submission from Andrii V. Mishkovskyi : I think the following message is a little bit confusing: Python 2.7a0 (trunk, Mar 17 2009, 12:06:19) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> open('abc\x00') Traceback (most recent call last): Fi

[issue5568] self.writer.closed() extraneous parens in BufferedRWPair of io module

2009-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The wrong closed() call was corrected with r67923. Then, the io module is by design very picky about the distinction between bytes and unicode. This is different from the philosophy of other parts of the library, but io comes from python 3.0... StringIO

[issue5578] unqualified exec in class body

2009-03-27 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Why should this code fail? I cannot see the problem you try to solve. -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue5579] Display for OrderedDict

2009-03-27 Thread Todd Weiler
New submission from Todd Weiler : Now that python has an ordered dictionary it would be great to have a display sytax for creating them. To create a dict I just use the dict display syntax: newdict = {'fred':'flintstone', 'barney':'rubble', 'dino':'thedinosaur'} I'd like to be able to create an

[issue5468] urlencode does not handle "bytes", and could easily handle alternate encodings

2009-03-27 Thread Jeremy Hylton
Jeremy Hylton added the comment: Indeed, I think I confused some other character encoding issues related to HTTP with the URI issue. The discussion in RFC 3986 is length and only occasionally clarifying for this issue. That is, it doesn't say anything definitive like applications are free to u

[issue5578] unqualified exec in class body

2009-03-27 Thread Maciek Fijalkowski
New submission from Maciek Fijalkowski : A patch and a test. The problem is a bit broader - what about import * etc? Patch fixes that, but without a test. -- components: Interpreter Core files: out.diff keywords: patch messages: 84259 nosy: fijal severity: normal status: open title: unq

[issue5463] Remove deprecated features from struct module

2009-03-27 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the patch. A couple of questions and comments: (1) at line 300-ish of test_struct, should (struct.error, TypeError) be (struct.error, OverflowError)? I don't think out-of-range values should be raising TypeError. If they are, perhaps we should c

[issue5577] yield in iterators

2009-03-27 Thread qwjqwj
New submission from qwjqwj : In Python 3.0,3.1a1: >>> def f(): [(yield i) for i in range(10)] >>> f() >>> f() is None True >>> def f(): ((yield i) for i in range(10)) >>> f() >>> f() is None True However it is correct in Python 2.5,2.6 >>> def f(): ... [(yield i) for i in

[issue5214] Add KOI8-RU as a known encoding

2009-03-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Viktor, I found this reference which has some background information regarding koi8-ru and other cyrillic encodings: http://segfault.kiev.ua/cyrillic-encodings/ "This charset wasn't supported by Ukrainian Internet community due to political reasons; KOI8-U