[issue3859] test_sys.Sizeof fails on win64

2008-09-16 Thread Robert Schuppenies

Robert Schuppenies <[EMAIL PROTECTED]> added the comment:

Fixed in r66480.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2574] Add RFC 3768 SSM Multicast support to "socket"

2008-09-16 Thread T.Morin

Changes by T.Morin <[EMAIL PROTECTED]>:


--
nosy: +tmorin

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1611944] sndhdr.what() does not recognize wav file

2008-09-16 Thread Matthijs Kooijman

Matthijs Kooijman <[EMAIL PROTECTED]> added the comment:

I've written a new patch, which works a bit better. You can find the new
patch attached.

I've restructed the patch to prevent code duplication. Also, it now
works with other chunks than bext (I had a file with a list chunk which
triggered my interest in this bug). This is done with a hardcoded list
of valid chunks. However, it seems that there is no complete list of
valid chunk types, so it might be better to remove the chunk type check
alltogether.

Also, this patch explicitly checks for overflow, since taking a slice of
a sequence does not seem to trigger an IndexError, but just return an
empty sequence.

--
keywords: +patch
nosy: +matthijs
Added file: http://bugs.python.org/file11501/sndhdr.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2008-09-16 Thread Jeffrey C. Jacobs

Jeffrey C. Jacobs <[EMAIL PROTECTED]> added the comment:

Update 16 Sep 2008:

Based on the work for issue #3825, I would like to simply update the
item list as follows:

1) Atomic Grouping / Possessive Qualifiers (See also Issue #433030)
[Complete]

2) Match group names as attributes (e.g. match.foo) [Complete save
issues outlined above]

3) Match group indexing (e.g. match['foo'], match[3])

4) Perl-style back-references (e.g. compile(r'(a)\g{-1}'), and possibly
adding the r'\k' escape sequence for keywords.

5) Parenthesis-Aware Python Comment (e.g. r'(?P#...)') [Complete]

6) Expose support for Template expressions (expressions without repeat
operators), adding test cases and documentation for existing code.

7) Larger compiled Regexp cache (256 vs. 100) and reduced thrashing
risk. [Complete]

8) Character Classes (e.g. r'[:alphanum:]')

9) Proposed Engine redesigns and cleanups (core item only contains
cleanups and comments to the current design but does not modify the design).

9-1) Single-loop Engine redesign that runs 8% slower than current.
[Complete]

9-1-1) 3-loop Engine redesign that runs 10% slower than current. [Complete]

9-2) Matthew Bernett's Engine redesign as per issue #3825

10) Have all C-Python shared constants stored in 1 place
(sre_constants.py) and generated by that into C constants
(sre_constants.h). [Complete AFAICT]

11) Scan Perl 5.10.0 for other potential additions that could be
implemented for Python.

12) Documentation suggestions by Jim J. Jewett [Complete]

13) Add grouptuples method to the Match object (i.e. match.grouptuples()
returns (, , ) ) suitable for iteration.

14) UNICODE match group names, as per PEP-3131.

15) Add __doc__ strings and other Python niceties to the Pattern_Type,
Match_Type and Scanner_Type (experimental).

16) Implement any remaining TODOs and FIXMEs in the Regexp modules.

16-1) Allow for the disassociation of a source string from a Match_Type,
assuming this will still leave the object in a "reasonable" state.

17) Variable-length [Positive and Negative] Look-behind assertions, as
described and implemented in Issue #3825.

---

Now, we have a combination of Items 1, 9-2 and 17 available in issue
#3825, so for now, refer to that issue for the 01+09-02+17 combined
solution.  Eventually, I hope to merge the work between this and that issue.

I sadly admit I have made not progress on this since June because
managing 30 some lines of development, some of which having complex
diamond branching, e.g.:

01 is the child of Issue2636
09 is the child of Issue2636
10 is the child of Issue2636
09-01 is the child of 09
09-01-01 is the child of 09-01
01+09 is the child of 01 and 09
01+10 is the child of 01 and 10
09+10 is the child of 09 and 10
01+09-01 is the child of 01 and 09-01
01+09-01-01 is the child of 01 and 09-01-01
09-01+10 is the child of 09-01 and 10
09-01-01+10 is the child of 09-01-01 and 10

Which all seems rather simple until you wrap your head around:

01+09+10 is the child of 01, 09, 10, 01+09, 01+10 AND 09+10!

Keep in mind the reason for all this complex numbering is because many
issues cannot be implemented in a vacuum: If you want Atomic Grouping,
that's 1 implementation, if you want Shared Constants, that's a
different implementation. but if you want BOTH Atomic Grouping and
Shared Constants, that is a wholly other implementation because each
implementation affects the other.  Thus, I end up with a plethora of
branches and a nightmare when it comes to merging which is why I've been
so slow in making progress.  Bazaar seems to be very confused when it
comes to a merge in 6 parts between, for example 01, 09, 10, 01+09,
01+10 and 09+10, as above.  It gets confused when it sees the same
changes applied in a previous merge applied again, instead of simply
realizing that the change in one since last merge is EXACTLY the same
change in the other since last merge so effectively there is nothing to
do; instead, Bazaar gets confused and starts treating code that did NOT
change since last merge as if it was changed and thus tries to role back
the 01+09+10-specific changes rather than doing nothing and generates a
conflict.  Oh, that I could only have a version control system that
understood the kind of complex branching that I require!

Anyway, that's the state of things; this is me, signing out!

--
title: Regexp 2.6 (modifications to current re 2.2.2) -> Regexp 2.7 
(modifications to current re 2.2.2)
versions: +Python 2.7 -Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3878] urllib2 is not working with proxy for HTTPS

2008-09-16 Thread anupam

New submission from anupam <[EMAIL PROTECTED]>:

urllib2.openurl is not working with proxy for HHTPS. Please provide me 
solution for this.

--
components: Library (Lib)
messages: 73296
nosy: anupam
severity: normal
status: open
title: urllib2 is not working with proxy for HTTPS
type: feature request
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3774] tkinter Menu.delete bug

2008-09-16 Thread Dan OD

Dan OD <[EMAIL PROTECTED]> added the comment:

It may be because I'm calling delete incorrectly (I don't think so - see 
below) but I'm getting an error

  File "C:\CCPN\ccpn\python\memops\gui\Menu.py", line 127, in 
deleteMenuItems
self.delete(0, Tkinter.END)
  File "C:\Python-2.6_svn\lib\lib-tk\Tkinter.py", line 2670, in delete
if c in self._tclCommands:
TypeError: argument of type 'NoneType' is not iterable

Which can easily be fixed with 

- if c in self._tclCommands:
+ if c and c in self._tclCommands:

line 2670 Tkinter.py

Should I create a patch or have I missed something? Thanks.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-16 Thread vila

New submission from vila <[EMAIL PROTECTED]>:

With or without this patch, running:

./python.exe -E -tt ./Lib/test/regrtest.py -l -u network 
test_urllib2net test_urllibnet test_socketserver test_SimpleHTTPServer 

succeeds

Since this is a regression from 2.5, can this patch be applied to 2.6
final ?

--
files: bug-no-proxy.patch
keywords: patch
messages: 73298
nosy: vila
severity: normal
status: open
title: 2.6 regression in urllib.getproxies_environment
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file11502/bug-no-proxy.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-16 Thread jan matejek

Changes by jan matejek <[EMAIL PROTECTED]>:


--
nosy: +matejcik

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3862] test_array fails on FreeBSD7 amd64

2008-09-16 Thread Mark Dickinson

Mark Dickinson <[EMAIL PROTECTED]> added the comment:

Does the attached patch help fix this at all?  I encountered possibly the 
same problem on a 64-bit Mac build of Python, and this patch fixed the 
problem for me.

--
keywords: +patch
nosy: +marketdickinson
Added file: http://bugs.python.org/file11503/64bit_2.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3880] _tkinter._flatten() doesn't check PySequence_Size() error code

2008-09-16 Thread STINNER Victor

New submission from STINNER Victor <[EMAIL PROTECTED]>:

PySequence_Size() returns -1 on TypeError (object has no size), but 
_tkinter._flatten() ignores this error. Here is a patch with a 
testcase for _tkinter.

--
components: Library (Lib)
files: _tkinter_flatten.patch
keywords: patch
messages: 73300
nosy: haypo
severity: normal
status: open
title: _tkinter._flatten() doesn't check PySequence_Size() error code
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11504/_tkinter_flatten.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3881] IDLE won't start in custom directory.

2008-09-16 Thread Jacob

New submission from Jacob <[EMAIL PROTECTED]>:

Hello.

I run Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) on Windows Vista
Home Premium.
IDLE won't start if not installed in the default directory.
When insalled in a custom directory, running idle.py
(\Lib\idlelib\idle.py) produces this error:

"Traceback (most recent call last):
File "C:\Programmer\Python\lib\idlelib\idle.py", line 21, in 
idlelib.PyShell.main()
File "C:\Programmer\Python\lib\idlelib\PyShell.py", line 1390, in main
root= Tk(className="Idle")
File "C:\Programmer\Python\lib\idlelib\Tkinter.py", line 1636, in
__init__ self.tk = _tkinter.create(screenName, baseName, className,
interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following
directories: {C:\Programmer\Python\tcl\tcl8.4}
{C:\Programmer\Python\tcl\tcl8.4} C:/Programmer/Python/tcl/tcl8.4
C:/Programmer/Python/lib/tcl8.4 C:/Programmer/Python/lib/tcl8.4
C:/lib/tcl8.4 C:/library C:/tcl8.4/library


This probable means that Tcl wasn't installed properly."

--
components: IDLE, Library (Lib), Windows
messages: 73301
nosy: kimsey0
severity: normal
status: open
title: IDLE won't start in custom directory.
type: crash
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Just reproduced the issue under python-trunk with tcl/tk 8.5.4 and 8.5.3

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

But it happens only if you don't build tcl/tk with --enable-threads =)

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-16 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

If you remove the widget.config calls in GUI.ready you will notice the
problem "goes away", but note that this method is called from another
thread while you have a non-thread-safe tcl/tk lib (I'm assuming you
didn't compile it with --enable-threads). So.. using multiple threads in
Python while Tcl is compiled without --enable-threads isn't supported at
all.

To reproduce the problem try this (change Tkinter to tkinter if py3k):


import threading
import Tkinter

lbl = Tkinter.Label(text="hi")
threading.Thread(target=lambda: lbl.configure(text="hi there")).start()
lbl.mainloop()


If your tcl/tk libs weren't compiled with --enable-threads this should
get you an "TclError: out of stack space (infinite loop?)". A
documentation note may be added somewhere, but nothing much else is
going to happen (that is what I believe at least).

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3878] urllib2 is not working with proxy for HTTPS

2008-09-16 Thread Senthil

Senthil <[EMAIL PROTECTED]> added the comment:

Anupam, if you are in a hurry, please patch your installation with
patches uploaded to this Issue1424152.
Otherwise, you got to wait for 2.6.1 or 3.0.1 for the above fix to come
as a release.

This is a duplicate issue, can be closed.

Thanks.

--
nosy: +orsenthil

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2887] bsddb3 needs to be ported to Python 3.0

2008-09-16 Thread Jesús Cea Avión

Jesús Cea Avión <[EMAIL PROTECTED]> added the comment:

bsddb is officially dropped in Python 3.0. Too bad :(. I close this issue.

bsddb supports Python 3.0 via a separate project, downloadable from PYPI.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3720] segfault in for loop with evil iterator

2008-09-16 Thread Jesús Cea Avión

Changes by Jesús Cea Avión <[EMAIL PROTECTED]>:


--
nosy: +jcea

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3878] urllib2 is not working with proxy for HTTPS

2008-09-16 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>:


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> urllib/urllib2: HTTPS over (Squid) Proxy fails

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-16 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

It would be nice to have a test for the patch.

--
nosy: +benjamin.peterson

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1611944] sndhdr.what() does not recognize wav file

2008-09-16 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
versions: +Python 2.7, Python 3.1 -Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3549] Missing IDLE Preferences on Mac

2008-09-16 Thread Mitchell Model

Mitchell Model <[EMAIL PROTECTED]> added the comment:

Compiling with configure --enable-framework, from updated SVN sources
today plus the change suggested in issue 3628, IDLE works with both
2.6rc1 and 3.0b3.  There is still no options menu, but there is now a
Preferences item on the IDLE menu, where this more appropriately belongs
on the Mac.  However, IDLE Help still refers to the Options menu; on the
Mac, the Help information should refer to the Preferences item on the
IDLE menu instead of Options item, or at least add a comment that that's
where the functionality of Options appears on the Mac.

--
nosy: +MLModel

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3882] Bottom buttons of IDLE Preferences Pane on Mac not wide enough for their text.

2008-09-16 Thread Mitchell Model

New submission from Mitchell Model <[EMAIL PROTECTED]>:

The text of the buttons on the bottom of the Mac IDLE Preferences pane
is cut off in 2.6rc1 and 3.0b3 (framework builds).  This was not true in
2.5.1.

--
messages: 73309
nosy: MLModel
severity: normal
status: open
title: Bottom buttons of IDLE Preferences Pane on Mac not wide enough for their 
text.
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3883] Bottom buttons of IDLE Preferences Pane on Mac not wide enough for their text.

2008-09-16 Thread Mitchell Model

New submission from Mitchell Model <[EMAIL PROTECTED]>:

The text of the buttons on the bottom of the Mac IDLE Preferences pane
is cut off in 2.6rc1 and 3.0b3 (framework builds).  This was not true in
2.5.1.

--
components: IDLE
messages: 73310
nosy: MLModel
severity: normal
status: open
title: Bottom buttons of IDLE Preferences Pane on Mac not wide enough for their 
text.
versions: Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3882] Bottom buttons of IDLE Preferences Pane on Mac not wide enough for their text.

2008-09-16 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
resolution:  -> duplicate
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3884] turtle in the tkinter package?

2008-09-16 Thread Kirill Simonov

New submission from Kirill Simonov <[EMAIL PROTECTED]>:

I wonder why the module 'turtle' was moved to the 'tkinter' package.  It
is not a part of Tk, it does not provide new or extend existing tkinter
API.  While it uses tkinter, so do pydoc or idle; this is just an
implementation detail.  If some day a new GUI library replaces tkinter
in the standard Python library, turtle's interface will not have to be
changed, only the implementation.  Moreover this change unnecessarily
breaks all existing demos and tutorials that use turtle.  Why do this if
it does not give any substantial benefits?  Finally, 'import turtle' is
easier than 'from tkinter import turtle' for complete newbies in
programming, who are the primary users of this module.

So I propose to keep turtle a top-level module as it was in Python 1 and 2.

--
components: Library (Lib)
messages: 73311
nosy: kirill_simonov
severity: normal
status: open
title: turtle in the tkinter package?
type: feature request
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3885] errors on _bsddb creation and dealloc

2008-09-16 Thread STINNER Victor

New submission from STINNER Victor <[EMAIL PROTECTED]>:

I found two differents bugs using Fusil the fuzzer.

(1) On db_env_create() error in newDBEnvObject(), self->db_env is not 
set and so use of this pointer may crashs.

(2) DBEnv_dealloc() may raise an exception (DBEnv_close_internal() 
calls makeDBError()) but the garbage collector dislike exceptions!

Example of (2):

$ python
>>> import gc, _bsddb; env=_bsddb.DBEnv(3); del env
>>> gc.collect(); gc.collect()
Exception bsddb.db.DBNoServerError: (-30992, 'DB_NOSERVER: Fatal 
error, no RPC server -- No Berkeley DB RPC server environment') 
in 'garbage collection' ignored
Fatal Python error: unexpected exception during garbage collection


--
components: Library (Lib)
files: _bsddb.patch
keywords: patch
messages: 73312
nosy: haypo
severity: normal
status: open
title: errors on _bsddb creation and dealloc
versions: Python 2.6
Added file: http://bugs.python.org/file11505/_bsddb.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3885] errors on _bsddb creation and dealloc

2008-09-16 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
assignee:  -> jcea
nosy: +jcea

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3885] errors on _bsddb creation and dealloc

2008-09-16 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

About the bug (1): it also occurs in DBEnv_dealloc() but 
DBEnv_dealloc() is directly called from newDBEnvObject() with 
Py_DECREF(self);. The two bugs can be reproduces with dummy DBenv() 
arguments, eg. "DBEnv(92)".

Backtrace using gdb:
-
$ gdb ./python
...
>>> import _bsddb; _bsddb.DBenv(92)
...
Program received signal SIGSEGV, Segmentation fault.

0xb7cc8f5e in DBEnv_close_internal (self=0x83385f0, flags=0) 
at ../Modules/_bsddb.c:3989
3989err = self->db_env->close(self->db_env, flags);
(gdb) print self->db_env
$1 = (DB_ENV *) 0xfffe
-

There db_env value is not set.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3884] turtle in the tkinter package?

2008-09-16 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Unfortunately, as we are approaching 3.0rc1, it is too late to make a
change like this. I'm assigning this to Brett if he has an opinion, but
I don't expect this change to be able to happen.

--
assignee:  -> brett.cannon
nosy: +benjamin.peterson, brett.cannon
resolution:  -> rejected
status: open -> pending

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3881] IDLE won't start in custom directory.

2008-09-16 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

Do you have TCL_DIR or TK_DIR environment variables set?

--
nosy: +loewis

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3881] IDLE won't start in custom directory.

2008-09-16 Thread Jacob

Jacob <[EMAIL PROTECTED]> added the comment:

No, nothing.
It's just a standart clean installation.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1757072] Zipfile robustness

2008-09-16 Thread Mark Hirota

Mark Hirota <[EMAIL PROTECTED]> added the comment:

I'd like to piggyback on this issue if okay :D

I have some zipfiles I'm working with that contain junk in the extra 
fields. The ZipFile object croaks at the call to the 
ZipInfo._decodeExtra() call when it could really just ignore the error.

Example of traceback:

>>> zf = zipfile.ZipFile('bad.zip', 'r')
Traceback (most recent call last):
  File "", line 1, in 
  File "zipfile.py", line 346, in __init__
self._GetContents()
  File "zipfile.py", line 366, in _GetContents
self._RealGetContents()
  File "zipfile.py", line 424, in _RealGetContents
x._decodeExtra()
  File "zipfile.py", line 267, in _decodeExtra
tp, ln = unpack('

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3884] turtle in the tkinter package?

2008-09-16 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

As Benjamin said, it's too late in the release cycle to change this.

Plus turtle is entirely Tk-dependent so putting in the package makes
sense to me. It also isn't important enough to be a top-level package.
Finally, I disagree that telling a newbie to type ``from tkinter import
turtle`` is any more difficult than to tell them to type ``import
tkinter``; if they don't know about importing then either form won't
make sense to them.

--
status: pending -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3885] errors on _bsddb creation and dealloc

2008-09-16 Thread Jesús Cea Avión

Jesús Cea Avión <[EMAIL PROTECTED]> added the comment:

Good catch. I've patched my private branch. Following 2.6 patches, if
anybody can provide a review, since we are in RC status.

I was wondering if we must protect other objects from raising exceptions
in GC. For example, DB objects.

What do you think?.

(I have broken my left wrist ten days ago. If you can write a testcase
showing the issue and a patch for it, would be very nice).

--
keywords: +needs review
priority:  -> high

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3885] errors on _bsddb creation and dealloc

2008-09-16 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

Here is a test to reproduce the crash. I don't know db_env_create() 
function, so I don't know what are "invalid arguments". So I used 
~DB_RPCCLIENT. "gc.collect()" is to detect the bug (2).

About other objects dealloc method...

DBEnv_dealloc()
  `-> DBEnv_close_internal(): RETURN_IF_ERR()
DB_dealloc()
  `-> DB_close_internal(): RETURN_IF_ERR()
DBC_dealloc() 
  `-> DBC_close_internal(): RETURN_IF_ERR()
DBSequence_dealloc()
  `-> DBSequence_close_internal(): RETURN_IF_ERR()
DBTxn_dealloc()
  `-> DBTxn_abort_discard_internal(): RETURN_IF_ERR()

DBLock_dealloc() looks ok.

Added file: http://bugs.python.org/file11506/_bsddb_test.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-16 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

CVE-2008-2316
(http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2316) notes that
_hashopenssl.c has a potential integer overflow. Attached is the patch
sent to PSRT.

--
components: Extension Modules
files: CVE-2008-2316-trunk.diff
keywords: patch, patch
messages: 73321
nosy: brett.cannon
priority: release blocker
severity: normal
status: open
title: Integer overflow in _hashopenssl.c (CVE-2008-2316)
type: security
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11507/CVE-2008-2316-trunk.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2620] Multiple buffer overflows in unicode processing

2008-09-16 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
resolution:  -> fixed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3887] Python 2.6 doesn't run after installation on amd64

2008-09-16 Thread John Ehresman

New submission from John Ehresman <[EMAIL PROTECTED]>:

The amd64 python 2.6rc1 won't run after installation on Vista.  It fails
with the error (from the event log) of 

Activation context generation failed for "C:\Python26\python.exe".Error
in manifest or policy file "C:\Python26\Microsoft.VC90.CRT.MANIFEST" on
line 11. Component identity found in manifest does not match the
identity of the component requested. Reference is
Microsoft.VC90.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
Definition is
Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
Please use sxstrace.exe for detailed diagnosis.

Looking at the C:\Python26\Microsoft.VC90.CRT.MANIFEST file, the
processorArchitecture is set to x86

--
components: Windows
messages: 73322
nosy: jpe
severity: normal
status: open
title: Python 2.6 doesn't run after installation on amd64
type: behavior
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com