[issue4337] Iteration over a map object with list()

2008-11-17 Thread Jean-Michel Fauth
Jean-Michel Fauth <[EMAIL PROTECTED]> added the comment: 2008/11/17 Raymond Hettinger <[EMAIL PROTECTED]> > > Raymond Hettinger <[EMAIL PROTECTED]> added the comment: > > Feature :-) > > You will get the expected result if you skip the step where you ran the > for-loop over r before running list

[issue4317] Buffer overflow in imageop module

2008-11-17 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: When I wrote my patch to fix division by zero (and detection of -n * -n overflow), I also wrote a script to test imageop module. I fixed the limit of the input string to 1024 bytes, and so the rgb crash was not detected. Here is my script w

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Sorry, I reverted r57540 because it caused segfault at IDLE exit. (See issue4313) I reopened this issue. -- nosy: +ocean-city resolution: accepted -> status: closed -> open ___ Python tracker <

[issue4313] IDLE segfault at exit

2008-11-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Fixed in r67256. I heard last RC will be released at this Wed, I think segfault is not good for it. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3248] ScrolledText can't be placed in a PanedWindow

2008-11-17 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I've changed it a bit more now, this includes dropping support for cnf. My wish is to actually remove the cnf usage all over Tkinter :) Added file: http://bugs.python.org/file12037/ScrolledText.diff ___ Py

[issue3248] ScrolledText can't be placed in a PanedWindow

2008-11-17 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: anyone ? -- versions: +Python 2.5.3, Python 2.7, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4342] (Tkinter) Please backport these

2008-11-17 Thread Guilherme Polo
New submission from Guilherme Polo <[EMAIL PROTECTED]>: Please consider backporting r59653 and r59654 to release25-maint branch. It may be of interest to backport r52688 too, also, r63776 together with r63914 (without these last two I get segfault when passing a list as an option value). Finall

[issue2260] conditional jump to a POP_TOP optimization

2008-11-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Applied simplified patch r67253 . -- assignee: georg.brandl -> resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4230] "__getattr__" can't be a descriptor

2008-11-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Backported to 2.4 in r67250 and 2.5 in r67251. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4230] "__getattr__" can't be a descriptor

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Here is another patch, for Python 2.4, which contains only the security fix. Benjamin, will you also commit these backports? Added file: http://bugs.python.org/file12036/getattr_hooks_24.diff ___ Python tr

[issue4338] TypeError (bytes/str) in distutils command "upload"

2008-11-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Encoding of basic auth has a lng story. I keep forgetting the details, but one interpretation is that the it needs to be MIME B or Q encoded first (i.e. through a header encoding), which then needs to be base64 encoded. For B or Q, you ca

[issue3640] test_cpickle crash on AMD64 Windows build

2008-11-17 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- versions: +Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-li

[issue4087] Document the effects of NotImplemented on == and !=

2008-11-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: r67249 -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4090] Documenting set comparisons and operations

2008-11-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: r67249 -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4317] Buffer overflow in imageop module

2008-11-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Looks good. -- keywords: -needs review nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4230] "__getattr__" can't be a descriptor

2008-11-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks for the patch! Fixed in r67246. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4341] Update __hash__ doc

2008-11-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks! Fixed in r67245. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue4338] TypeError (bytes/str) in distutils command "upload"

2008-11-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The username:password string should be encoded, but with which encoding? -- nosy: +amaury.forgeotdarc, tarek ___ Python tracker <[EMAIL PROTECTED]>

[issue4341] Update __hash__ doc

2008-11-17 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Language/data model/special method names/ __hash__ Sentence 1: "Called for the key object for dictionary operations, and by the built-in function hash()." Also called for the members of set and frozenset (and any other hashed based collect

[issue4339] Fix set-like dictview doc

2008-11-17 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks! Fixed in r67244. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue1982] Feature: extend strftime to accept milliseconds

2008-11-17 Thread Andreas Balogh
Andreas Balogh <[EMAIL PROTECTED]> added the comment: Some typos corrected. Sorry for any inconvenience. a_datetime = datetime.now() a_datetime.replace(microsecond = 1) iso_str = a_datetime.isoformat() b_datetime = datetime.strptime(iso_str, "%Y-%m-%dT%H:%M:%S.%f") assert(a_datetime = b_dateti

[issue1982] Feature: extend strftime to accept milliseconds

2008-11-17 Thread Andreas Balogh
Andreas Balogh <[EMAIL PROTECTED]> added the comment: Yes, microsecond support is fine. Elaborating on my initial comment. The following should assert: a_datetime = datetime.now() a_datetime.replace(microsecond = 1) iso_str = adatetime.isoformat() b_datetime = datetime.strptime(iso_str, "%Y%m%

[issue4340] xmlrpc.client - default 'SlowParser' not defined

2008-11-17 Thread Mike Watkins
New submission from Mike Watkins <[EMAIL PROTECTED]>: Running example code from docs: http://docs.python.org/dev/3.0/library/xmlrpc.client.html#example-of- client-usage z% python Python 3.0rc2+ (py3k:67152, Nov 7 2008, 16:48:55) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 Type "help", "copyri

[issue4339] Fix set-like dictview doc

2008-11-17 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: I see two problems with the current (.rc2) doc on "Dictionary view objects" that are set-like. 1. The first paragraph of the section ends with the fragment "The keys and items views have a set-like character since their entries" This is n

[issue4326] type of UserList instance returns class instead of instance

2008-11-17 Thread chafporte
chafporte <[EMAIL PROTECTED]> added the comment: but in python 2.5 you may do this: if type(lInstance) == types.InstanceType: ... else: ... and I don't see an easy way to do this with python 2.6 (feel free to propose a solution if you have one) ___ P

[issue4293] Thread Safe Py_AddPendingCall

2008-11-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson <[EMAIL PROTECTED]> added the comment: I turns out that for SIGINT, windows creates a new thread. So, the assumption that signals are delivered on the main thread are not valid in general. Therefore, we must initialize the lock pending_lock independently of PyEval_Init

[issue1982] Feature: extend strftime to accept milliseconds

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Do you require millisecond support or would microsecond support be enough? r61402, which is included in Python 2.6, added support for %f format to datetime.strftime() and datetime.strptime(). See also #1158. -- nosy: +zseil _

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-17 Thread Guido van Rossum
Changes by Guido van Rossum <[EMAIL PROTECTED]>: -- resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4338] TypeError (bytes/str) in distutils command "upload"

2008-11-17 Thread Hagen Fürstenau
New submission from Hagen Fürstenau <[EMAIL PROTECTED]>: "python3.0 setup.py upload" (on an otherwise sane setup script) results in the following: Traceback (most recent call last): File "setup.py", line 5, in import py3setup File "/home/MP/hagenf/src/pyskein/py3setup.py", line 22, in

[issue3640] test_cpickle crash on AMD64 Windows build

2008-11-17 Thread Tal Einat
Tal Einat <[EMAIL PROTECTED]> added the comment: Will this be back-ported to 2.5.3? (please say yes...) -- nosy: +taleinat ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue706263] print raises exception when no console available

2008-11-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Python 3.0 already discards the output in this case (see issue1415): it sets sys.stdout=None and silently ignores prints to the None file. I think this is the correct behavior, but I'm not sure this can be backported to 2.7, because of

[issue973507] sys.stdout problems with pythonw.exe

2008-11-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: -- resolution: -> duplicate status: open -> closed superseder: -> print raises exception when no console available ___ Python tracker <[EMAIL PROTECTED]> _

[issue4230] "__getattr__" can't be a descriptor

2008-11-17 Thread Ziga Seilnacht
Changes by Ziga Seilnacht <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12034/getattr_hooks_trunk.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3327] NULL member in modules_by_index

2008-11-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Thanks for the patch. Committed as r67242 -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue4230] "__getattr__" can't be a descriptor

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Here is a patch for trunk and 2.5 version. It also contains a fix for another crasher (see the tests). I only tested the 2.5 patch, because I don't have the tools for the trunk installed. -- keywords: +patch nosy: +zseil Added file: h

[issue4293] Thread Safe Py_AddPendingCall

2008-11-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson <[EMAIL PROTECTED]> added the comment: I had forgotten that locks aren't initialized until PyEval_InitThreads () is called. Now we check for this case. Also reinitialize when fork () is called. Is there any suggested place where I should add documentation to this? Added

[issue4337] Iteration over a map object with list()

2008-11-17 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Feature :-) You will get the expected result if you skip the step where you ran the for-loop over r before running list(). Either listing or for-looping will exhaust the iterator. This is how iterators work. -- nosy: +rhettinger

[issue4312] Unicode in distutils meta-data?

2008-11-17 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Thanks for the report. Fixed in r67241. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue453489] Using deiconify() hangs on exit

2008-11-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Closing as suggested -- nosy: +amaury.forgeotdarc resolution: -> wont fix status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue4337] Iteration over a map object with list()

2008-11-17 Thread Jean-Michel Fauth
New submission from Jean-Michel Fauth <[EMAIL PROTECTED]>: win XP sp2, Py3.0c2 I had to face an annoying problem when iterating over a map object. With a range class, this works >>> r = range(5) >>> list(r) [0, 1, 2, 3, 4] With dict_keys/values/items objects, the following works >>> d = {1:

[issue4293] Thread Safe Py_AddPendingCall

2008-11-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Two comments about the patch: - typo in a comment: "...change chat a signal..." - PyThread_acquire_lock should not be called with a NULL lock: on win32 this does not matter (there is a test in thread_nt.h), but Unix segfaults in thread

[issue1173134] improvement of the script adaptation for the win32 platform

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: The idea with "-x" option and renaming .py to .bat is nice, but if I want to execute the script with another version of Python or manually without -x option I may become confused. Would it be better to provide separated .bat files to launc

[issue4293] Thread Safe Py_AddPendingCall

2008-11-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson <[EMAIL PROTECTED]> added the comment: Small refinement: Deadlock avoidance is only needed on the main thread since we only install signal handlers for the main thread. Added file: http://bugs.python.org/file12031/pendingalls.patch __

[issue4336] Fix performance issues in xmlrpclib

2008-11-17 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson <[EMAIL PROTECTED]>: There are two performance problems in xmlrpclib.py: POST requests use two send() calls, one to send the headers and one to send the data. This can invoke the Nagle/Delayed ACK performance problem. On many socket implementations (

[issue3327] NULL member in modules_by_index

2008-11-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson <[EMAIL PROTECTED]> added the comment: bump. Is there any interest in this fix? ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue453489] Using deiconify() hangs on exit

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: With Python 2.6 the support for Windows 95, 98, ME and NT4 has been dropped. But it is not only that - I would advise closing as "won't fix" for same reason as listed in aforementioned bug #216289 comment http://bugs.python.org/msg1951 ---

[issue973507] sys.stdout problems with pythonw.exe

2008-11-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bug

[issue973507] sys.stdout problems with pythonw.exe

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: Duplicate of #706263 -- nosy: +techtonik ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4022] 2.6 dependent on c:\python26\ on windows

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: flomana: Have you tried installing Python in c:\python26\ ? If that didn't help then it is better start a new issue. -- nosy: +techtonik ___ Python tracker <[EMAIL PROTECTED]>

[issue1694663] Overloading int.__pow__ does not work

2008-11-17 Thread Ziga Seilnacht
Changes by Ziga Seilnacht <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12029/time_slot_inheritance.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1694663] Overloading int.__pow__ does not work

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Hi Raymond, The signature matters because the current code in update_one_slot() forgets to set the use_generic flag when slots have different wrappers. This causes that the slot from the base class is left in the new type. Slots have differen

[issue4252] some missing links in html help index pane

2008-11-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12027/sphinx_index.patch ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4252] some missing links in html help index pane

2008-11-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Even if two bugs are solved, one weird problem remains. See binary_index.png. "unicode, built-in function" should go under "unicode" node, but it goes under "Unicode" node. This happens because sitemap format (hhk file) is *case insensitiv

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Sorry for the long silence. I think that this patch is not relevant anymore. The code that uses exception pickling already had to be adapted to changes in Python 2.5, so there is no need to change the pickling again and risk breaking user code

[issue4252] some missing links in html help index pane

2008-11-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Sorry, I found another problem on html help about case sensitivity. Pleas e pend my patch... ___ Python tracker <[EMAIL PROTECTED]>

[issue4335] inspect.getsourcelines ignores last line in module

2008-11-17 Thread Rafe Sacks
New submission from Rafe Sacks <[EMAIL PROTECTED]>: Hi, If the last line of the function is also the last line of the module, it is ignored. To repro: 1) Create module 'repro' def test(): module_line_2 = None module_line_3 = None module_line_4 = None module_line_5 = None 2) R