[issue5639] Support TLS SNI extension in ssl module

2009-04-01 Thread Phil Pennock

New submission from Phil Pennock python-...@spodhuis.org:

With TLS it is possible to have the client use an extension (defined in
RFC 4366, and RFC 3546 before that) to indicate to the server which
hostname it believes it is talking to.  The server can then choose TLS
certificates accordingly.  This makes virtual-hosting possible.  Most
modern GUI web-browsers support making use of this extension, Server
Name Indication (SNI).

OpenSSL 0.9.8f onwards have optional support for this; OpenSSL needs to
have been built with enable-tlsext in EXTRACONFIGURE.  If that is not
present, then there's a guard macro defined to say it's absent.

This patch, against Python 2.6.1, adds to the standard ssl module the
ability to set the extension, using server_hostname as a arg in relevant
places.  This is only set for client connections and will silently be
ignored if the OpenSSL library does not support it.

I have tested this on FreeBSD 7.0/amd64 with OpenSSL 0.9.8k when talking
to Apache 2.2.x with the SNI patches from https://sni.velox.ch/.  Below
is my simple test program, to dump raw HTTP results back.  With this, I
can connect to various local https vhosts and get the correct content back.

I am not a Python core dev and not too enthusiastic at the thought of
grabbing latest svn to port this across; I hope that it's still of use.

=
import socket
import ssl
import sys

def dump_https_page(hostname, uri='/'):

  sock = socket.socket(socket.AF_INET)
  s = ssl.SSLSocket(sock=sock,
ca_certs='/etc/ssl/certs',
server_hostname=hostname)
  print 'have socket'
  s.connect((hostname, 443))
  print 'connected'

  print s, 'GET %s HTTP/1.0\r\nHost: %s\r\nConnection: close\r\n\r\n' % (
  uri, hostname),

  t = s.read()
  while t:
print t,
t = s.read()

if __name__ == '__main__':
  for x in sys.argv[1:]:
dump_https_page(hostname=x)

--
components: Library (Lib)
files: python-2.6.1-tlssni.patch
keywords: patch
messages: 84984
nosy: pdp
severity: normal
status: open
title: Support TLS SNI extension in ssl module
versions: Python 2.6
Added file: http://bugs.python.org/file13534/python-2.6.1-tlssni.patch

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



[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Atsuo Ishimoto

New submission from Atsuo Ishimoto ishim...@gembook.org:

In Python 3(both 3.0.1 and SVN repo), if I set 
PYTHONIOENCODING=ShiftJIS:backslashreplace, print()
outputs wrong result.

 print(\xff)
\xff\xff

Obviously, '\xff' should be printed instead of '\xff\xff'.

Following is what io module does to print string.

 import codecs
 e=codecs.getincrementalencoder(ShiftJIS)(backslashreplace)
 e.encode(\xff)
b'\\xff'
 e.encode(\n)
b'\\xff\n'

io module never supply final=True to the encoder.

--
components: Unicode
messages: 84987
nosy: ishimoto
severity: normal
status: open
title: Wrong print() result when unicode error handler is not 'strict'
type: behavior
versions: Python 3.0, Python 3.1

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



[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-04-01 Thread Atsuo Ishimoto

Atsuo Ishimoto ishim...@gembook.org added the comment:

My proposal to make backslashreplace a default error handler 
for interactive session was rejected by Guido [1].

Does something like
  PYTHONIOENCODING=ascii:backslashreplace
work for you? With PYTHONIOENCODING, you can effectively make
backslashreplace a default error handler for your environment.


[1]: http://mail.python.org/pipermail/python-3000/2008-May/013928.html

--
nosy: +ishimoto

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



[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

The point is not in generating .bat files. The point is to make scripts
executable with exactly the same version of Python the script was
installed. It works well on POSIX, but doesn't work on windows at all.

There is no other way to fix this on windows than generating separate
.exe or .bat launcher. The patch for .bat is ready.

Embedding python code inside of .bat is not a good idea, because runner
script may be complicated, and additional code in header adds probems
with patch submissions and debugging. Not all editors know about magic
-x option. KISS, you know. =)

--

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



[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-01 Thread Glin

New submission from Glin g...@seznam.cz:

Situation:
You have a while cycle. inside of it a try-except block and in this
try-except block calling a function. Inside of this function raises an
exception, with is caught in the try-except block.

What happens:
Local variables of the function are not freed. (OK, they are freed when
the program leaves a function inside of which is the while cycle, or
when another exception raises and is caught, but it's not helpful when
you have some server program based on infinite while loop or working
with a large amount of data).

Example:
Example program is attached.

Output of the example program:

While start
job() start
Creating 1
Catched AttributeError
While end
While start
job() start
Creating 2
job() end
Deleting 2
While end
While start
job() start
Creating 3
job() end
Deleting 3
While end
...

As you can see, a variable 'a' created in the first call (which throws
an exception) of the 'job' function will never get freed. 

Imagine that in 'job' function you create a large amount of data, or
worse you create a database connection, which will be opened forever.

Tested on Python 2.5.2 and 2.7(svn). On the contrary, Python 3.0 does
not have this issue (it frees variables of the 'job' function at the end
of except: block.)

As Python 2.X will be another long time with us, I think it should be
fixed to behave correctly (that is as in Python 3.)

--
components: Interpreter Core
files: notfreed.py
messages: 84989
nosy: Glin
severity: normal
status: open
title: Local variables not freed when Exception raises in function called from 
cycle
type: resource usage
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7
Added file: http://bugs.python.org/file13535/notfreed.py

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



[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-04-01 Thread Attila Soki

Attila Soki atiw...@gmx.net added the comment:

no luck.
output for t.py:

Traceback (most recent call last):
  File t.py, line 3, in module
f = urllib.urlopen(http://www.musi-cal.com/cgi-bin/query;, params)
  File /var/root/pytest/python/lib/python2.6/urllib.py, line 82, in
urlopen
opener = FancyURLopener()
  File /var/root/pytest/python/lib/python2.6/urllib.py, line 611, in
__init__
URLopener.__init__(self, *args, **kwargs)
  File /var/root/pytest/python/lib/python2.6/urllib.py, line 129, in
__init__
proxies = getproxies()
  File /var/root/pytest/python/lib/python2.6/urllib.py, line 1558, in
getproxies
return getproxies_environment() or getproxies_macosx_sysconf()
  File /var/root/pytest/python/lib/python2.6/urllib.py, line 1452, in
getproxies_macosx_sysconf
_CFSetup(sc)
TypeError: _CFSetup() takes exactly 2 arguments (1 given)
Exception AttributeError: FancyURLopener instance has no attribute
'tempcache' in bound method FancyURLopener.__del__ of
urllib.FancyURLopener instance at 0x372288 ignored


output for tt.py:

Traceback (most recent call last):
  File tt.py, line 4, in module
x = sc.CFStringCreateWithCString(0, HTTPEnable, 0)
  File /var/root/pytest/python/lib/python2.6/ctypes/__init__.py, line
366, in __getattr__
func = self.__getitem__(name)
  File /var/root/pytest/python/lib/python2.6/ctypes/__init__.py, line
371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(RTLD_DEFAULT, CFStringCreateWithCString): symbol
not found

notes:
t.py fails on both with the same error
tt.py runs on Intel/Mac OS X and fails on PPC/Mac OS X Server

--

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



[issue5642] multiprocessing.Pool.map() docs slightly misleading

2009-04-01 Thread James McDermott

New submission from James McDermott jamesmichaelmcderm...@gmail.com:

I found the documentation for the multiprocessing.Pool.map() method to 
be a little misleading, because it claims to be equivalent to the built-
in map(), but it's not quite. 

When the function to be applied takes just one argument, both map()s 
behave the same. But built-in map() allows the function to take multiple 
arguments (taking them from multiple iterables) whereas 
multiprocessing.Pool.map() requires it to have only a single argument, 
and if necessary its iterable argument must be composed of tuples to be 
unpacked inside the function.

From 
http://docs.python.org/library/multiprocessing.html#multiprocessing.pool
.multiprocessing.Pool.map 

map(func, iterable[, chunksize])
A parallel equivalent of the map() builtin function. 

From http://docs.python.org/library/functions.html#map

map(function, iterable, ...)
Apply function to every item of iterable and return a list of the 
results. If additional iterable arguments are passed, function must take 
that many arguments and is applied to the items from all iterables in 
parallel.

--
assignee: georg.brandl
components: Documentation
messages: 84991
nosy: georg.brandl, jmmcd
severity: normal
status: open
title: multiprocessing.Pool.map() docs slightly misleading
type: feature request
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Jean-Michel Fauth

Jean-Michel Fauth wxjmfa...@gmail.com added the comment:

It is true, that on Windows the mime types, .py, .pyw point to a
specific version of Python.

Having Python 2.4, 2.5, 2.6, 3.0, 3.1 installed on my hd and
applications using these (different) versions, I am *very glad* on that
system, all versions, including \site-packages, are isolated from each
other.

Technically, one can argue a Python developer/user should be able to
write a one line batch file if necessary.

Compared to *x systems, I have always found the Windows way as being
very clean and flexible.

--
nosy: +jmfauth

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



[issue992389] attribute error after non-from import

2009-04-01 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

No argument from me that my suggestion is a mere glimmering of an idea,
rather than a fully worked out definitely viable solution.

It was just an angle of attack I hadn't seen suggested before, so I
figured it was worth mentioning - the fact that a module is allowed to
exist in sys.modules while only half constructed is the reason import
a.b.c can work while from a.b import c or an explicit relative import
will fail - the first approach gets a hit in sys.modules and succeeds,
while the latter two approaches fail because the a.b package doesn't
have a 'c' attribute yet.

Figuring out a way to set the attribute in the parent package and then
roll it back later if the import fails is still likely to be the more
robust approach.

--

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



[issue5311] bdist_msi generates version number for pure Python packages

2009-04-01 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

Thanks for the link. I did play around with that code for quite a while,
and while I'm convinced there's a way to get it to work, I'm still
struggling with it. I believe the attached .vbs file does about what we
need to do, but I think I'm attaching it at the wrong location in the
.msi file because things seem to die at the Session.Database.OpenView
line with an error saying the object doesn't have that method (or no
error message but still at that line, depending on how I've attached the
action.)

Anyway, I'll probably keep playing around with this, but some food for
thought on why we may not want to implement this as a .vbs:
  http://blogs.msdn.com/robmen/archive/2004/05/20/136530.aspx
In particular, some anti-virus products will silently keep them from
working. That said, I probably need to figure out how to write the .vbs
code in order to (eventually) write the C or whatever else code.

--
Added file: http://bugs.python.org/file13536/PythonVersions.vbs

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



[issue5631] Distutils upload command does not show up in--help-commands output.

2009-04-01 Thread Maksim Kozyarchuk

Maksim Kozyarchuk maksim_kozyarc...@yahoo.com added the comment:

Thanks georg.  Do you mind adding my name to the contrib file? 
Sent via BlackBerry by ATT

--
title: Distutils upload command does not show up in --help-commands output. 
- Distutils upload command does not show up in--help-commands output.

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



[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

 on Windows the mime types, .py, .pyw point to a 
 specific version of Python.

It could also point to a python launcher, which reads the first line
of the file and starts the corresponding version of the interpreter.
Visual Studio does this for .sln files. It even displays different icons
depending on the file contents.

--

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



[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Mark Hammond

Mark Hammond mhamm...@users.sourceforge.net added the comment:

 It could also point to a python launcher, which reads the first line

What would that first line look like on Windows? 
o:\src\python-2.6-svn\PCBuild\python.exe would be appropriate for my
machine, but I wouldn't really be happy with installed scripts embedding
this in their first line - if for no better reason than depending on the
Virtual Machine I am using at the time, that exact same directory will
be seen as being on a completely different device, and potentially under
a different 'root' directory too.

--

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



[issue5311] bdist_msi generates version number for pure Python packages

2009-04-01 Thread Steven Bethard

Steven Bethard steven.beth...@gmail.com added the comment:

My OpenView bug was just a missing Set. The CustomAction does seem to
be correctly gathering the Python paths from the registry and filling
the ListView now. I've still got a couple of errors showing up later in
the process, but I expect I'll probably have a patch within a week or two.

--
assignee: tarek - bethard

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



[issue5620] The attribute's action of an object is not correct.

2009-04-01 Thread edmundy

edmundy yong.su...@163.com added the comment:

Thanks a lot!
Kozyarchuk.

I have thought the self.myurl should be the object variable, not class 
variable.
The class variable really is confusing.

Why do they like that?

--
status: open - closed

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



[issue5413] urllib ctypes error on Mac OS X Server 10.5

2009-04-01 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I'll install 10.5 server on my PPC test machine when I'm back from PyCon, 
this seem to need some serious debugging.

--

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



[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-04-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

I found a correction using the _msize() function, which returns the size
of a malloc'ed block. It is used to compute sizeof(ioinfo) at runtime.

The exact definition of the structure is no longer important; only the
first two fields are needed, which is a good thing IMO.
Now the code seems really independent from changes in the CRT.

Patch is attached.
The test (info-osfhnd == _get_osfhandle(fd)) is not really needed, I
left it outside an assert() because I wanted to test it on release builds.

Tested (only) with VS2005, sizeof_ioinfo is correctly computed when
presented to different versions of MSVCR80.dll.

--
keywords: +patch
Added file: http://bugs.python.org/file13537/verify_fd.patch

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



[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Matteo Dell'Amico

New submission from Matteo Dell'Amico de...@linux.it:

The current MutableSet.__iand__ implementation calls self.discard while
iterating on self. This creates strange problems while implementing
MutableSet with simple choices. For example, consider the attached file
which implements set by delegating either to a set or a list. In the
first cases, an exception is raised; in the second, the result is not
what is expected.

Python 2.6+ (r26:66714, Oct 22 2008, 09:21:39) 
[GCC 4.3.2] on linux2
Type help, copyright, credits or license for more information.
 from simpleset import WithSet, WithList
 s = WithSet([1,2])
 s = ()
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.6/_abcoll.py, line 290, in __iand__
for value in self:
RuntimeError: Set changed size during iteration
 s = WithList([1,2])
 s = ()
 list(s)
[2]

--
components: Library (Lib)
files: simpleset.py
messages: 85006
nosy: della
severity: normal
status: open
title: MutableSet.__iand__ implementation calls self.discard while iterating on 
self
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13538/simpleset.py

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



[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Walter Dörwald

Walter Dörwald wal...@livinglogic.de added the comment:

I can confirm this problem in the current version in the py3k branch.

This seems to be a problem in the CJK codecs. Assigning to Hye Shik Chang.

--
assignee:  - hyeshik.chang
nosy: +doerwalter, hyeshik.chang
stage:  - needs patch

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



[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Matteo Dell'Amico

Matteo Dell'Amico de...@linux.it added the comment:

I suggest solving the problem by changing the implementation to:

def __iand__(self, c):
self -= self - c:

or to

def __iand__(self, c):
for item in self - c:
self.discard(item)

--

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



[issue5578] unqualified exec in class body

2009-04-01 Thread Jeremy Hylton

Jeremy Hylton jer...@alum.mit.edu added the comment:

Why did it change from 2.5 to 2.6?  I'm not sure that the change makes
any sense.  (Dreading the answer that I changed it...)

--

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



[issue1544102] ctypes unit test fails (test_macholib.py) under MacOS 10.4.7

2009-04-01 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Setting issue back to open. I'm going to install a 10.4 PPC test machine 
over the weekend to try to reproduce the problem there.  

Issue5413 might be related to this one, that one also seems to be about 
some ctypes code that doesn't work on a PPC system (10.5 server in that 
case).

--
status: pending - open

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



[issue5631] Distutils upload command does not show up in--help-commands output.

2009-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Done!

--

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



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

2009-04-01 Thread Kurt B. Kaiser

Kurt B. Kaiser k...@shore.net added the comment:

The hooks for the IP address will be needed if we add remote debugging 
to IDLE, so I'd like to keep them. Otherwise, David Scherer's idea re 
using an ephemeral port assignment looks very promising.  I'll check 
something in.

--
assignee: rhettinger - kbk
status: open - pending
versions: +Python 2.7, Python 3.1

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



[issue5647] MutableSet.__iand__ implementation calls self.discard while iterating on self

2009-04-01 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue5601] webbrowser doesn't just open browsers

2009-04-01 Thread Mitchell Model

Mitchell Model m...@acm.org added the comment:

Never mind about the garbage -- I was looking at weird HTML in the 
copy of the message I received but it didn't make it into the entry 
on this page. I should have looked first.
-- 
-- 

 --- Mitchell

--
Added file: http://bugs.python.org/file13539/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5601
___!doctype html public -//W3C//DTD W3 HTML//EN
htmlheadstyle type=text/css!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --/styletitleRe: [issue5601] webbrowser doesn't just open
browsers/title/headbody
divNever mind about the garbage -- I was looking at weird HTML in
the copy of the message I received but it didn't make it into the
entry on this page. I should have looked first./div
divtt-- /tt/div

div-- br
br
nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; --- Mitchell/div
/body
/html___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1664] nntplib is not IPv6-capable

2009-04-01 Thread Chris Morrow

Chris Morrow ch...@as701.net added the comment:

This is a little silly and painful... it's utterly broken to hardcode
the AF type in this way, could we please apply a patch (something like
the proposed seems to work fine) and get this rolled into the next release? 

It seems really lame to not be able to support normal internet protocols
in a tools language.

--

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



[issue5648] OS X Installer: do not install obsolete documentation within Python.app bundle

2009-04-01 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

Prevent hidden obsolete and unused MacPython documentation
files from being installed within framework Python.app bundle.
(The current documentation continues to be installed elsewhere.)

--
components: Build
files: patch-nad0010-py3k-30.txt
messages: 85016
nosy: nad, ronaldoussoren
severity: normal
status: open
title: OS X Installer: do not install obsolete documentation within Python.app 
bundle
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13540/patch-nad0010-py3k-30.txt

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



[issue5648] OS X Installer: do not install obsolete documentation within Python.app bundle

2009-04-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Added file: http://bugs.python.org/file13541/patch-nad0010-trunk-26.txt

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



[issue5637] 2to3 does not convert urllib.urlopen to urllib.request.urlopen

2009-04-01 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee:  - benjamin.peterson
nosy: +benjamin.peterson

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



[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

I agree.
In any case, double-clicking on a .py file should start an installed
interpreter, that is one listed in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\X.Y\InstallPath

Today starting a .py file only open the last installed Python interpreter.
With this proposal, the launcher choose the best installed interpreter
for the given script, and falls back to the last installed one.

There may be different definitions of best. The algorithm could look
like this:
- if the first line is
#! c:/some/path/to/python.exe
  and the registry contains an installation with 
InstallPath=c:/some/path/to
  choose this one.
- if the first line matches
#! c:/python/([1-9])([0-9])/python.exe
  and if the following registry key exists:
HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/\1.\2/InstallPath
  choose this one.
- else, use the last installed interpreter.

--

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



[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-04-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Oops, that's right.
This second patch removes the check with _get_osfhandle(). 
It was not really necessary: when the trick does not work, python will
tell it loudly enough.

--
Added file: http://bugs.python.org/file13542/verify_fd-2.patch

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



[issue1161031] Neverending warnings from asyncore

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
nosy:  -brett.cannon

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



[issue5613] test_posix.py and test_wait4.py having missing import on win32

2009-04-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Fixed in trunk as part of the change to the way regrtest handles
ImportErrors.

--
nosy: +r.david.murray
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue1664] nntplib is not IPv6-capable

2009-04-01 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Assuming the patch does work, +1 for applying it.

--

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



[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Maybe also let's look on setuptools solution.It can make windows 
executable for 'entry point scripts'.

Also there are family scripts for single entry point:
* easy_install.exe
* easy_install-2.5.exe
* easy_install-2.5-script.py
* easy_install-script.py

I like it. Exe files executes specific python version. If you are 
installed library in python 2.6 - python 2.6 interpreter will be used, 
not looking in 'default' interpreter etc.

I use setuptools and for me it gives good 'executive python scripts'.  

BTW, double click executes 'default' interpreter, not last installed.

--

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



[issue5649] OS X Installer: only include PythonSystemFixes package if target includes 10.3

2009-04-01 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

The PythonSystemFixes package of the OS X installer fixes a specific 
compatibility problem with the Apple-supplied Python 2.3 on OS X 10.3. The 
attached patches changes the build installer script to include that 
package in the installer only if the installer image includes 10.3 as a 
targeted system.

--
components: Installation
files: patch-nad0008-py3k-30.txt
messages: 85022
nosy: nad, ronaldoussoren
severity: normal
status: open
title: OS X Installer: only include PythonSystemFixes package if target 
includes 10.3
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13543/patch-nad0008-py3k-30.txt

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



[issue5649] OS X Installer: only include PythonSystemFixes package if target includes 10.3

2009-04-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Added file: http://bugs.python.org/file13544/patch-nad0008-trunk-26.txt

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



[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

This is not a question of correct behavior, but of documented
semantics.  We can't change that semantics in 2.x, like we did for 3.x,
because many people rely on the exception variable being available after
the except clause finishes.

Closing as won't fix.

--
nosy: +georg.brandl
resolution:  - wont fix
status: open - closed

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



[issue5636] csv.reader next() method missing

2009-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Fixed docs in r70955.

--
resolution:  - fixed
status: open - closed

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Jesse Noller

Changes by Jesse Noller jnol...@gmail.com:


--
nosy: +ocean-city

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Note Hiro added r70953 as well to wrap the include in an ifdef

--

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

I'll reopen, but I am going to defer to Martin on this

--
resolution: fixed - 
status: closed - open

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



[issue5650] Obsolete RFC's should be removed from doc of urllib.urlparse

2009-04-01 Thread Mitchell Model

New submission from Mitchell Model m...@acm.org:

The documentation of urlparse in Python2 and urllib.urlparse in Python3 
refers to three RFC's, the last of which (RFC 2396) says that it 
supersedes the other two and, in fact, clicking on the links to the other 
two doesn't work; the link and description for the two obsolete RFCs 
should be removed.

--
assignee: georg.brandl
components: Documentation
messages: 85032
nosy: MLModel, georg.brandl
severity: normal
status: open
title: Obsolete RFC's should be removed from doc of urllib.urlparse
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1

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



[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2009-04-01 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

Because OS X 10.4 and 10.5 ship with an old 8.4 version of Aqua Tcl and 
Tk frameworks, current practice is to build the installer image on a 
machine with user-installed newer 8.4 Tcl/Tk frameworks in /Library.  
This ensures the correct dylib search sequence is built into the Python 
image so that users can install a newer 8.4 on their own systems and, if 
not, Python will fallback to the Apple-supplied versions in 
/System/Library.  It is easy to overlook this step in the build process, 
however, and some installer images in the past inadvertently did not 
include this capability.

This patch adds checks to the build-installer script to ensure that the 
newer frameworks are installed on the build machine so that the magic 
happens.

Note, Python tkinter currently only supports linking with one 
major/minor version of Tcl and Tk so this magic does not allow the 
Python installer image to use a major/minor version other than the 
current system version.

--
components: Build
files: patch-nad0012.txt
messages: 85033
nosy: nad, ronaldoussoren
severity: normal
status: open
title: OS X Installer: add checks to ensure proper Tcl configuration during 
build
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13545/patch-nad0012.txt

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



[issue5623] test_fdopen fails with vs2005, release build on Windows 2000

2009-04-01 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Sorry, but for the moment the only internet access I have is behind a
firewall and I cannot use SVN. Could you do it instead?

--

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



[issue1360221] telnetlib expect() and read_until() do not time out properly

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

We absolutely must turn off GUI notifications if this runs on the 
buildbot. If this means to turn off GUI notications for non-buildbot usage 
also, so be it.

--

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



[issue1252001] Issue with telnetlib read_until not timing out

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue708007] TelnetPopen3, TelnetBase, Expect split

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue1049450] Solaris: EINTR exception in select/socket calls in telnetlib

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue1678077] improve telnetlib.Telnet so option negotiation becomes easie

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue1772788] chr(128) in u'only ascii' - TypeError with misleading msg

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
nosy: +jackdied

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



[issue1737737] telnetlib.Telnet does not process DATA MARK (DM)

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue1772794] Telnetlib dosn't accept u'only ascii'

2009-04-01 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

assigning all open telnetlib items to myself

--
assignee:  - jackdied
nosy: +jackdied

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



[issue1741130] struct.pack(I, foo); struct.pack(L, foo) should fail

2009-04-01 Thread Virgil Dupras

Virgil Dupras hs...@hardcoded.net added the comment:

While the behavior cannot be reproduced in the trunk, in can be 
reproduced in the 2.6 release:

$ python -W ignore
Python 2.6.1 (r261:67515, Dec  6 2008, 16:42:21) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type help, copyright, credits or license for more information.
 import struct
 struct.pack('L', 'foobar')
'\x00\x00\x00\x00'
 struct.pack('I', 'foobar')
'\x00\x00\x00\x00'
 struct.pack('i', 'foobar')
Traceback (most recent call last):
  File stdin, line 1, in module
struct.error: required argument is not an integer


--
nosy: +vdupras

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



[issue5652] OS X Installer: remove references to Mac/Tools which no longer exists

2009-04-01 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

The OS X Installer postflight script still tries to compileall scripts in 
the framework Mac/Tools directory even though it no longer exists.

--
components: Installation
files: patch-nad0009-trunk-26.txt
messages: 85044
nosy: nad, ronaldoussoren
severity: normal
status: open
title: OS X Installer: remove references to Mac/Tools which no longer exists
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13546/patch-nad0009-trunk-26.txt

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



[issue5652] OS X Installer: remove references to Mac/Tools which no longer exists

2009-04-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Added file: http://bugs.python.org/file13547/patch-nad0009-py3k-30.txt

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



[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-04-01 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

I've been thinking about this a bit, and I think raising an exception and 
returning the amount of bytes read makes more sense then just hiding 
it/eating the errors. Explicit  Implicit in this case, at lease doing 
this gives the controller a method of reacting.

--

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



[issue3270] test_multiprocessing: test_listener_client flakiness

2009-04-01 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

documented in r70960

--
resolution:  - fixed
status: open - closed

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



[issue2578] additional unittest type equality methods

2009-04-01 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

sounds good.  This is done for 2.7.

I will make sure it gets merged into 3.1 properly before closing.

--
versions:  -Python 2.7

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



[issue4847] csv fails when file is opened in binary mode

2009-04-01 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I think it's good if it allowed passing in a binary file and an
encoding, but I think it would be crazy if it wouldn't also take a text
file.  After all the primary purpose of a CSV file, edge cases
notwithstanding, is to look like text to the end user in a text editor
(as opposed to Excel spreadsheets, which look like binary gobbledygook
unless opened with Excel).

Are there any use cases for returning bytes strings instead of text
strings?  If so that should probably be another flag.

--
nosy: +gvanrossum

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



[issue5653] OS X Installer: by default install versioned-only links in /usr/local/bin for 3.x

2009-04-01 Thread Ned Deily

New submission from Ned Deily n...@acm.org:

For 3.0, the OS X installer was changed to disable the default 
installation of the Unix Command Line Tools package, the package that 
installs links in /usr/local/bin to the corresponding entries in the 
framework bin directory.  The intent was to follow the practice of other 
Python 3.x installers to ensure that python 2.x and python 3.x could co-
exist.  However, with the framework structure of OS X python, each 
python version has its own bin directory and the lack of 3.x links in 
/usr/local/bin has led to some user confusion.

This patch modifies the OS X installer for 3.x to again re-enable the 
Unix Command Line Tools package by default but to only install versioned 
links into /usr/local/bin (i.e. /usr/local/bin/python3.1) but not 
disturbed any unversioned links (i.e. /usr/local/bin/python will 
continue to point to an installed python2.x).  The only exception is 
that 3.x will install a /usr/local/bin link to its 2to3, which is 
currently not versioned.  The framework bin directory is unchanged and 
contains both versioned and unversioned links.

--
components: Installation
files: patch-nad0022-py3k.txt
messages: 85049
nosy: nad, ronaldoussoren
severity: normal
status: open
title: OS X Installer: by default install versioned-only links in 
/usr/local/bin for 3.x
versions: Python 3.1
Added file: http://bugs.python.org/file13548/patch-nad0022-py3k.txt

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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman

New submission from John Ehresman j...@wingware.com:

I'm interested in adding support for debugger watchpoint's in the core.
 A watchpoint would cause the debugger to stop when a value in a
namespace changes.  This hook would be called when PyDict_SetItem 
PyDict_DelItem is invoked.  I realize that this does not cover function
local variables, but I'm more interested in instance attributes and globals.

This is a proof of concept patch; I wanted to see if it would work and
get some initial feedback.  I think the performance implications are
minimal in the case where nothing is watched, though the performance of
sample callback in _debuggerhooks can be improved.  An issue may be if
this is used outside a debugger implementation to implement an observer
pattern -- I'd like to discourage it, but worry that it will be used
since it's there, rather like how the settrace tracer gets used.

If there's interest in this, I will clean this up and add watchpoints to
pdb.

--
components: Interpreter Core
files: dicthook.diff
keywords: patch
messages: 85051
nosy: jpe
severity: normal
status: open
title: Add C hook in PyDict_SetItem for debuggers
versions: Python 2.7
Added file: http://bugs.python.org/file13549/dicthook.diff

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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman

Changes by John Ehresman j...@wingware.com:


Added file: http://bugs.python.org/file13550/testhook.py

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Josiah Carlson

Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:

IIRC, there was a threat to remove asyncore because there were no 
maintainers, no one was fixing bugs, no one was improving it, and no one 
was really using it (I believe the claim was that people were just using 
Twisted).  The patches that were ultimately committed to 2.6 and 3.0 
were committed 3 months prior to 2.6 release, after having languished 
for over a year because no one would review them.  If people care about 
where asyncore/asynchat are going, then it is *their* responsibility to 
at least make an effort in paying attention at least once every few 
months or so.

The delayed calls feature discussed in the current bug doesn't alter the 
behavior of previously existing code, except there are additional checks 
for pending tasks to be executed.  If people never use the call_later() 
API, it is unlikely they will experience any difference in behavior.

If you are concerned about the sched module, I'd be happy to do a search 
for it's use to verify that people aren't relying on it's internal 
implementation, only the features of it's external API.

--

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Andrew Svetlov

Andrew Svetlov andrew.svet...@gmail.com added the comment:

Problem in _multiprocessing is:
FILE* fp = _fdopen(...);
int fd = _fileno(fp);
_close(fd);
_fclose(fp); // raises assertion

At process exit system tries to close all opened FILE* by _fcloseall,
but file closed by descriptor _close has invalid state and _fclose
raises assertion.
Real problem not in win32_ExitProcess function but in outer
finalization code. At exit time is impossible to point on real source
of problem.

This patch is just supressing error messages on exit of child process
(we sure what we don't want to see anything related to this one, at
least in buildbot test session). For particular problem in
multiprocessing only (all other test passed with regrtest -n without
assertion message boxes).

In general maybe will helpful to add os.close check for opened FILE*
for this descriptor and report about this problem (interesting
question, it should be exception or stderr output?). Of course it have
to be applied only to debug build.

--

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



[issue5655] fix glob.iglob docstring

2009-04-01 Thread DSM

New submission from DSM dsm...@users.sourceforge.net:

glob.iglob's docstring claims it returns a list, but as the name
suggests it returns an iterator.  Looks like a cut 'n paste oversight. 
glob.rst is correct.

Patch attached against mainline trunk r70961.  Should also apply cleanly
to py3k trunk.

--
assignee: georg.brandl
components: Documentation
files: iglob_main.patch
keywords: patch
messages: 85054
nosy: dsm001, georg.brandl
severity: normal
status: open
title: fix glob.iglob docstring
versions: Python 2.7
Added file: http://bugs.python.org/file13551/iglob_main.patch

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I guess the Zope developers aren't that tuned in to core Python
developement.  They were sorely bitten.  I don't think you can claim
that users should be tuned in to python-dev just to assure their
favorite module isn't removed or broken.  It behooves you to request
their feedback now that you know there still are asyncore users, not to
hijack the module for your own purposes.

IIRC one option discussed at the summit was to restore asyncore to its
pre-2.5 state and to slowly end-of-life it, giving Zope and other users
plenty of time to start maintaining their own copy (which they've
half-done already with all the monkey-patching that goes on :-), and
create a new module with a better specified API that won't require users
to use undocumented internals.  Part of this (even if we don't actually
roll it back to the 2.5 version, which is controversial) would be not
adding new features.

--

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



[issue1621111] IDLE crashes on OS X 10.4 when Preferences selected

2009-04-01 Thread Kurt B. Kaiser

Kurt B. Kaiser k...@shore.net added the comment:

Status should not be pending unless issue is assigned and a resolution 
is in progress.  Issue only reported on 2.5 as far as I can tell, let's 
see if it gets reported again for a later version of Python/Tk.  We 
appear to have a workaround for Windows, at least - remove config-
main.cfg and let IDLE recreate it.  Note that IDLE can't 'crash', it's 
pure Python - any crash would be in Python or Tcl/Tk. However, IDLE can 
raise an exception and exit.  If it's an IDLE failure, the traceback 
will be written to the console, so you have to start IDLE from the 
console to see it.

Also, it does sound like the Mac and XP issues are separate problems, 
so please reopen this bug and include a traceback if the failure is seen 
again.

--
assignee:  - kbk
nosy: +kbk
priority: low - normal
resolution:  - postponed
status: pending - closed
type: behavior - crash
versions: +Python 2.5 -Python 2.6, Python 3.0

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



[issue5655] fix glob.iglob docstring

2009-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Committed in r70963, thanks!

--
resolution:  - fixed
status: open - closed

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 I suggest that with the issue fixed, we remove those lines again, since 
 they go against the spirit of defect http://bugs.python.org/issue4804

I'm opposed, for the very same reasons I stated over and over again.

--

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



[issue4937] Mac DMG install missing version.plist required by bundlebuilder.py

2009-04-01 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
assignee:  - ronaldoussoren
nosy: +ronaldoussoren

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



[issue3646] MacOS X framework install to non-standard directory fails

2009-04-01 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
assignee:  - ronaldoussoren
nosy: +ronaldoussoren

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



[issue5267] Subversion problem with PythonLauncher after building 3.0 or 3.1 on Mac

2009-04-01 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
assignee:  - ronaldoussoren

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 But what is so special about the win32_ExitProcess() function, the 
 changes apply only for the actual ExitProcess() call (not the duration 
 of the rest of the forked job.

Two things: a) it's not really likely that it uncovers an application
bug that people would run into, and b) there is no other way to suppress
the problem.

 That looks like a forced fix to a specific problem, not a generic 
 buildbot-friendly feature.

In case such a bug comes up again, it is important that no popup
will trigger again

 SetErrorMode(), btw, is inherited by child processes:

Correct. With -n restored to test.bat, that can be taken out.

 For _CrtSetReportMode, don't we want to channel the output to stderr, 
 rather than the debugger output?

That would work as well (and perhaps better)

 Also, let's not forget, that parameter validation will throw up 
 dialogue boxes in a release mode too() (in DEBUG an assert is thrown in 
 to the mix as well, which is what you are silencing)

Yes - because I know you want these error boxes, we only added it
in debug mode (because that's what the buildbots use)

 If we are doing this for the benefit of buildbot, then why don't we do 
 it in python.exe?  We could add an --unattended flag or something 
 similar which would silence or redirect any interactive notifications 
 we can think of.

There is the -n flag for regrtest already. Unfortunately, there is
no easy way to pass it to the subprocess. I'm opposed to a new command
line flag, because there are already so many of them.

I would hope that multiprocessing could pass the CRT flags to
subprocesses (see the subject of this report). Somebody would
have to implement it, though.

--

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



[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread Stephan R.A. Deibel

Stephan R.A. Deibel sdei...@wingware.com added the comment:

Here is a patch against Python 2.6.1 that restores errno after the
sanity check in lock_PyThread_release_lock in Modules/threadmodule.c.

A potential controversy is whether it should be done here or in
thread_pthread.h but I believe that we should protect errno from
spurious change by _any_ threading model that objects to this internal 
attempt to acquire an already acquired lock.

--
keywords: +patch
Added file: http://bugs.python.org/file13552/errno-fix.diff

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



[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-01 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 Problem in _multiprocessing is:
 FILE* fp = _fdopen(...);
 int fd = _fileno(fp);
 _close(fd);
 _fclose(fp); // raises assertion

Actually, Kristjan fixed the *real* bug, which was more like

FILE* f2=fdopen(fileno(f1));
fclose(f1);
fclose(f2);

--

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



[issue1621111] IDLE crashes on OS X 10.4 when Preferences selected

2009-04-01 Thread Kurt B. Kaiser

Kurt B. Kaiser k...@shore.net added the comment:

My error, I was thinking of Debian's use of 'pending'.  On Sourceforge, 
setting an issue to pending would cause it to automatically close after 
awhile if there was not further response.  On this Tracker, we would use 
that status the same way, but I believe we have to close it manually 
after awhile?

--

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



[issue1665206] Hangup when using cgitb in a thread while still in import

2009-04-01 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

So this issue -- as seems to happen to me at PyCon -- was deeper than I
thought. cgitb was importing in functions so that was fixed (r70956 for
2.x, r70957 for 3.x). But I also found out that _warnings.c was also
importing (r70965 for 2.x, r70966 for 3.x).

But the example still locks up thanks to re doing imports. Basically,
don't launch threads during an import, but I have done all that is
reasonable to rectify the situation.

--
resolution:  - wont fix
status: open - closed

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



[issue5428] Pyshell history management error

2009-04-01 Thread Kurt B. Kaiser

Kurt B. Kaiser k...@shore.net added the comment:

Apparently this can be closed.

--
assignee:  - kbk
nosy: +kbk
status: pending - closed

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



[issue5656] Coverage execution fails for files not encoded with utf-8

2009-04-01 Thread Maru Newby

New submission from Maru Newby mne...@thesprawl.net:

Running the tests with coverage against files using non-utf8 encoding
was raising an exception that prevented coverage output from being
displayed (patch is attached).

The coverage output was also being polluted with failed attempts to
display modules that were created during the testing in temporary paths.
 A patch is attached that prevents coverage output from being attempted
for such files.

--
components: Tests
files: trace_detect_encoding.patch
keywords: patch
messages: 85065
nosy: maru
severity: normal
status: open
title: Coverage execution fails for files not encoded with utf-8
type: crash
versions: Python 3.1
Added file: http://bugs.python.org/file13553/trace_detect_encoding.patch

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



[issue5656] Coverage execution fails for files not encoded with utf-8

2009-04-01 Thread Maru Newby

Changes by Maru Newby mne...@thesprawl.net:


Added file: http://bugs.python.org/file13554/trace_ignore_temp_path.patch

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Josiah Carlson

Josiah Carlson josiahcarl...@users.sourceforge.net added the comment:

I'm happy to let them know proposed changes now that I know issues 
exist, but you have to admit that they were pretty under-the-radar until 
4-5 months *after* 2.6 was released.  If there is a mailing address that 
I can send proposed changes to asyncore so that they can have a say, I'd 
be happy to talk to them.

Generally, what you are saying is that I'm damned if I do, damned if I 
don't.  By taking ownership and attempting to fix and improve the module 
for 2.6 (because there were a bunch of outstanding issues), people are 
pissed (generally those who use Zope and/or medusa).  Despite this, 
other people have continued to use it, and have been pushing for new 
features; event scheduling being one of the major parts.

Pulling asyncore out of Python is silly.  Not improving the module 
because of fear of breakage is silly.  I'm happy to hear suggestions 
from the Zope crew, but I'm only going to put as much effort in 
communicating with them as they do me.

--

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



[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread John Ehresman

John Ehresman j...@wingware.com added the comment:

Any possibility of a test case?

--
nosy: +jpe

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



[issue5205] String Formatting with namedtuple

2009-04-01 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue1590864] import deadlocks when using PyObjC threads

2009-04-01 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

It seems the import lock is being triggered because of an import being
made in a function call by something else being imported. And because it
is the os module one can't pull out the function-level imports without
causing problems.

Closing as won't fix.

--
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue992389] attribute error after non-from import

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee: brett.cannon - 

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



[issue1552880] Unicode Imports

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee: brett.cannon - 

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



[issue2953] _zip_directory_cache untested and undocumented

2009-04-01 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Actually importlib does not test this; that is an old thing from an old
sandbox version of importlib that I no longer use.

I am assigning to Tarek as the better solution is for distutils to stop
using this private attribute.

--
assignee: brett.cannon - tarek
stage:  - needs patch

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

Josiah, you need an attitude adjustment. The breakage of asyncore in 2.6
was real and is now harming adoption of 2.6 by those folks (who are by
nature not early adopters -- their customers are typical enterprise users).

Talk to Tres Seaver and Jim Fulton. They occasionally post to python-dev
but that doesn't mean they read all of it.

--

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



[issue1644818] Allow importing built-in submodules

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee: brett.cannon - 

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



[issue4438] Given a module hierarchy string 'a.b.c', add an easy way to import tail module 'c'

2009-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

This feature is implemented as importlib.import_modules() in 2.7 and
3.1; for earlier versions there is also a backport on PyPI.

--
nosy: +georg.brandl
resolution:  - out of date
status: open - closed

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



[issue1548687] C modules reloaded on certain failed imports

2009-04-01 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Trunk has this printing AttributeError as Josiah suggests should happen,
so closing as out of date.

--
resolution:  - out of date
status: open - closed

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



[issue4573] zsh-style subpattern matching for fnmatch/glob

2009-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

This can't go in like this, since suddenly accepting braces is a subtle
change of semantics.  I could imagine adding another function though,
that has extended zsh-like globbing abilities.

--
nosy: +georg.brandl

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



[issue5630] Update CObject API so it is safe and regular

2009-04-01 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

dalcinl:

I made the destructor the first argument because APIs where arguments
move around irritate me.  In the existing CObject API, the destructor is
always the last argument--which means in practice it is either the
second or third argument, depending on which one you call.  I also think
that the destructor is a different kind of argument from the rest; the
others are data attributes for the object, and the destructor is a
callback.  I wanted to group the data attributes together.

We don't really need two different calls for providing a context
pointer, and if folks thought the shorter call should go we can get rid
of it.  But 90% of the time all you'll need .  Also, the new API grew
out of the existing API, which had a similar two calls
(PyCObject_FromVoidPtr, and PyCObject_FromVoidPtrAndDesc).

As for your comment, I see CObject as a lightweight way of making a
generic handle type to represent C data structures without going to
the trouble of a real PyTypeObject.  I think the storing functions in a
vtable then hiding it in the Python symbol table for other modules use
case is a misuse of the API.  While I'm not going to actively prevent
it, I certainly wouldn't do anything to support it.

--

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



[issue5630] Update CObject API so it is safe and regular

2009-04-01 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Sorry, in editing I forgot to finish my sentence.  In the middle of the
second paragraph, the sentence should read:

But 90% of the time all you'll need is PyCObject_FromVoidPtr().

My other editing mistakes will just have to stand.

--

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



[issue5040] Bug of CGIXMLRPCRequestHandler

2009-04-01 Thread Senthil

Senthil orsent...@gmail.com added the comment:

CGIXMLRPCRequestHandler was fixed with changes 70954.
Modified the patches for Python trunk. Added the Content-Length tests to
handle_request

--
assignee:  - orsenthil
nosy: +orsenthil
resolution:  - fixed
Added file: http://bugs.python.org/file13555/issue5040-py3k.diff

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



[issue5040] Bug of CGIXMLRPCRequestHandler

2009-04-01 Thread Senthil

Changes by Senthil orsent...@gmail.com:


Added file: http://bugs.python.org/file13556/issue5040-py27.diff

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



  1   2   3   >