[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Why wouldn't they? A standard way to extend the command line options seems 
useful in all environments.
Now the interpretation of these options are subject to variations of course...

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



Re: [issue10089] Add support for arbitrary -X options

2010-10-15 Thread Senthil Kumaran
On Wed, Oct 13, 2010 at 07:01:40PM +, Antoine Pitrou wrote:
> $ ./python -Xa,b=c,d -Xe,f=g=h -c "import sys; print(sys.xoptions)"
> {'a': True, 'b': 'c', 'e': True, 'd': True, 'f': 'g=h'}

Docs should be updated too. I see that the values could either be True
or a string? Would this be perceived as a limitation?
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10098] intermittent failure in test_os

2010-10-15 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

_kill_with_event() does not wait for the subprocess to be ready.
It seems to me that the following test is wrong:
if m[0] == 0:
It should be "if m[0] == 1", since we want to check that the subprocess updated 
the shared memory.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Well, the syntax allows to pass either a string value (because it's a substring 
of the command line), or nothing.

When no value is passed, True seems better than None, because this allows the 
usage of the get() method::
x = sys.xoptions.get('a')
or::
if sys.xoptions.get('a'):
this returns None if the option was not set, True if set to a empty value, and 
a non-empty string if set to an actual value.

--

___
Python tracker 

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



[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-15 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +rhettinger
stage:  -> patch review
versions:  -Python 2.5, Python 2.6, Python 3.3

___
Python tracker 

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



[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-15 Thread Florent Xicluna

Florent Xicluna  added the comment:

+1 to merge simplejson 2.1+ before 3.2 beta 1 (mid-november)

--
nosy: +flox
resolution:  -> accepted
stage:  -> patch review
type:  -> behavior
versions: +Python 3.1, Python 3.2

___
Python tracker 

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



[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

I think, the original docs *is* pretty intuitive. It says "Duplicate the file 
descriptor fd and build a socket object".  No one will think that the this 
method will close the original fd. Person using this method might of course, 
explicitly close the original fd in some other part of the code (as he may use 
it after creating the socket object too).

If at all anything is required, a line may be "The original file descriptor is 
unaffected", but again that seems redundant to me.

--
nosy: +orsenthil

___
Python tracker 

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



[issue10100] fromfd is now available on all platforms

2010-10-15 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Docs changed committed in revision 85514.

--
nosy: +orsenthil
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Nick Coghlan

Nick Coghlan  added the comment:

I suggest using sys._xoptions to make it clearer that this is for CPython 
specific internal implementation runtime tweaks. We're putting it in sys so 
*we* can get at it, not applications.

(It also makes it clear that other implementations aren't obliged to implement 
*any* particular interface to the -X options. Requiring that would go against 
the whole spirit of -X)

--

___
Python tracker 

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



[issue10106] missing packages

2010-10-15 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

I would suggest to OP, to take it with python-help for the problem to be fixed. 
It's raised on python26 as well. Highly unlikely that anything is wrong with 
Python installation here. Marking it invalid and closing it.

--
nosy: +orsenthil
resolution:  -> invalid
stage:  -> committed/rejected
status: pending -> closed

___
Python tracker 

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



[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Gergely Kálmán

Gergely Kálmán  added the comment:

You are perfectly right, the docs are pretty clear. Although fromfd means (or 
at least to me) to "attach object to fd" and not "duplicate then attach to the 
duplicate". If someone forgets this particular behaviour and thinks that the 
function works as the name implies they're in trouble.

Gergely Kalman

--

___
Python tracker 

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



[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

So, I assume that we just leave it as such and close the issue.
I was thinking if anything needs to be updated for function __doc__ but even 
there 'the duplicate' word is explained.

--
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ronald Oussoren

Changes by Ronald Oussoren :


--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-15 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +kbk

___
Python tracker 

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



[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2010-10-15 Thread Jan Kratochvil

New submission from Jan Kratochvil :

FSF GDB (and future Fedora GDBs) became 250KB smaller than before.  Python 
recently disabled this GDB build optimization so GDB is 250KB larger again.

-rwxr-xr-x 1 4524488 gdb-7.1-19.fc13.x86_64/usr/bin/gdb
-rwxr-xr-x 1 4266728 gdb-7.1-19dynamiclist.fc13.x86_64/usr/bin/gdb
-rw-r--r-- 1 2364656 gdb-7.1-19.fc13.x86_64.rpm
-rw-r--r-- 1 2274300 gdb-7.1-19dynamiclist.fc13.x86_64.rpm

Some Python binaries/libraries could probably also benefit from smaller 
pageable code image.

GDB regressed due to /usr/lib*/python*/config/Makefile contains:
  LINKFORSHARED=-Xlinker -export-dynamic

and GDB thus has to use it even for its own link, effectively disabling its:
  -Wl,--dynamic-list=./proc-service.list

AFAIK Python already contains the required exports list but it is used only on 
MS-Windows.  It should be utilized even for GNU/Linux builds.

--
components: Library (Lib)
messages: 118756
nosy: dmalcolm, jankratochvil
priority: normal
severity: normal
status: open
title: Use -Wl,--dynamic-list=x.list, not -Xlinker -export-dynamic
type: resource usage
versions: Python 3.2

___
Python tracker 

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



[issue10089] Add support for arbitrary -X options

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> (It also makes it clear that other implementations aren't obliged to
> implement *any* particular interface to the -X options. Requiring that 
> would go against the whole spirit of -X)

Agreed. I'll update the patch to use sys._xoptions.

--

___
Python tracker 

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



[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread Vladimir Dmitriev

Changes by Vladimir Dmitriev :


--
components: Library (Lib), Windows
files: mime content types.reg
nosy: vldmit
priority: normal
severity: normal
status: open
title: UnicodeDecodeError in mimetypes.guess_type on Windows
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file19242/mime content types.reg

___
Python tracker 

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



[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread Vladimir Dmitriev

New submission from Vladimir Dmitriev :

Windows 7, Python 2.7

Some windows applications (QuickTime) add content-types to Windows registry 
with non-ascii names. mimetypes in unaware of that and fails with 
UnicodeDecodeError:

>>> mimetypes.guess_type('test.js')
Traceback (most recent call last):
  File "", line 1, in 
  File "c:\Python27\lib\mimetypes.py", line 294, in guess_type
init()
  File "c:\Python27\lib\mimetypes.py", line 355, in init
db.read_windows_registry()
  File "c:\Python27\lib\mimetypes.py", line 260, in read_windows_registry
for ctype in enum_types(mimedb):
  File "c:\Python27\lib\mimetypes.py", line 250, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal 
not in range(128)

Example registry leaf is attached to previous message.

I believe the correct behavior would be either to wrap UnicodeDecodeError 
exception and skip those content-typer or use .decode() method for registry 
keys and get encoding using locale.getdefaultlocale()

--

___
Python tracker 

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



[issue8340] bytearray undocumented on trunk

2010-10-15 Thread Paul Bolle

Changes by Paul Bolle :


--
nosy: +pebolle

___
Python tracker 

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



[issue10093] Warn when files are not explicitly closed

2010-10-15 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Please add a similar warning in PC/_subprocess.c::sp_handle_dealloc()
I just got caught by this in PyPy because some pipe handle relies on reference 
counting to be closed.

This ad-hoc fix would suppress the warning:
   http://codespeak.net/pipermail/pypy-svn/2010-October/043746.html

--

___
Python tracker 

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



[issue9980] str(float) failure

2010-10-15 Thread Kiriakos Vlahos

Kiriakos Vlahos  added the comment:

I would like to say that these are two separate issues.  One is about the 
precision flag and the second about the exception masking flags of the FPU 
control words. Both issues affect a wider number of users than Python embedders 
using Delphi. For example C# uses 80 bit precision if I understand 
http://blogs.msdn.com/b/davidnotario/archive/2005/08/08/449092.aspx well.

Also both issues are primarily documentation issues.  If Python libraries make 
certain assumptions about the state of the FPU control word, these assumptions 
should be documented and users can then accommodate them.

--

___
Python tracker 

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



[issue10093] Warn when files are not explicitly closed

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Please add a similar warning in PC/_subprocess.c::sp_handle_dealloc()
> I just got caught by this in PyPy because some pipe handle relies on 
> reference counting to be closed.

Do you want to provide a patch?

--

___
Python tracker 

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



[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-15 Thread STINNER Victor

New submission from STINNER Victor :

Example:

$ ./python
Python 3.2a3+ (py3k, Oct 15 2010, 14:31:59) 
>>> compile('', 'abc\uDC80', 'exec')
...
UnicodeEncodeError: 'utf-8' codec can't encode character '\udc80' in position 
3: surrogates not allowed

Attached patch encodes manually the filename to utf-8 with surrogateescape.

I found this problem while testing Python with an ASCII locale encoding (LANG=C 
./python Lib/test/regrtest.py). Example:

  $ LANG=C ./python -m base64 -e setup.py 
  ...
  UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc3' ...

--
components: Interpreter Core, Unicode
files: compile_surrogates.patch
keywords: patch
messages: 118762
nosy: haypo
priority: normal
severity: normal
status: open
title: compile() doesn't support the PEP 383 (surrogates)
versions: Python 3.2
Added file: http://bugs.python.org/file19243/compile_surrogates.patch

___
Python tracker 

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



[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread R. David Murray

R. David Murray  added the comment:

If I'm reading this thread correctly, this bug should be closed and a new one 
opened about SSL socket close.  Antoine, does that sound correct?

--
nosy: +r.david.murray

___
Python tracker 

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



[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue10113] UnicodeDecodeError in mimetypes.guess_type on Windows

2010-10-15 Thread R. David Murray

R. David Murray  added the comment:

This is a duplicate of #9291.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> mimetypes initialization fails on Windows because of non-Latin 
characters in registry

___
Python tracker 

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



[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-10-15 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +vldmit

___
Python tracker 

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



[issue8293] HTTPSConnection.close() does not immediately close the connection.

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Probably, yes.

--

___
Python tracker 

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



[issue9980] str(float) failure

2010-10-15 Thread Muhammad Alkarouri

Muhammad Alkarouri  added the comment:

On 15 October 2010 06:52, Martin v. Löwis  wrote:
>
> Martin v. Löwis  added the comment:
>
> Interesting. I'd like to propose than that this is resolved as "won't fix", 
> i.e. embedding Python into Delphi is declared as just not supported (or using 
> floating-point operations in such an environment is not supported).

The problem is defining what does "such an environment" mean. It is
not necessarily Delphi, as this can happen whenever the FPU control
word is changed by an embedding application.
Kiriakos makes a good point. The underlying issue is that Python make
certain assumptions about the FPU control words, and there are
probably other global assumptions lurking elsewhere.
As I see it, the easiest solution is to document these assumptions as
and when they are found. Then it becomes the responsibility of the
hosting application to satisfy them.
Delphi already has to accomodate Python C heritage, for example by
defining functions used from Python with the C calling convention.
This would be just one more thing to remember, and in fact can be done
inside the Python4Delphi libraries once the Python behaviour is
defined and documented.

Also, banning floating-point operations is not a solution in my
opinion because Python libraries (standard and external) do not have
such a distinction. So an unknown of unexpected libraries (like json)
would break. And large parts of Python functionality wouldn't be
available.

On 15 October 2010 13:04, Kiriakos Vlahos  wrote:
>
> Kiriakos Vlahos  added the comment:
>
> I would like to say that these are two separate issues.  One is about the 
> precision flag and the second about the exception masking flags of the FPU 
> control words. Both issues affect a wider number of users than Python 
> embedders using Delphi. For example C# uses 80 bit precision if I 
> understand http://blogs.msdn.com/b/davidnotario/archive/2005/08/08/449092.aspx well.

Technically they are, yes. But they are both affected by any solution
that would incorporate preserving or documenting the FPU control word
for embedding applications. May be I should have opened a new issue.

--
nosy: +malkarouri

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou

New submission from Antoine Pitrou :

When a machine has a newer glibc and an old kernel, accept4 can fail and then 
Python accept() is unusable. For example:

Traceback (most recent call last):
  File 
"/home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/threading.py", line 
525, in _bootstrap_inner
self.run()
  File 
"/home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/test/test_asynchat.py",
 line 37, in run
conn, client = self.sock.accept()
  File "/home/pybot/buildarea-sid/3.x.klose-debian-sparc/build/Lib/socket.py", 
line 132, in accept
fd, addr = self._accept()
socket.error: [Errno 90] Function not implemented

(from 
http://www.python.org/dev/buildbot/builders/sparc%20Debian%203.x/builds/147/steps/test/logs/stdio
 )


Improving our configure check wouldn't do a lot of good, since people can reuse 
Python binaries with different kernels. Perhaps we have to use some kind of 
runtime fallback.

(Strangely, errno 90 is EMSGSIZE here, and ENOSYS is 38)

--
components: Extension Modules
messages: 118767
nosy: doko, lekma, nvetoshkin, pitrou
priority: critical
severity: normal
stage: needs patch
status: open
title: accept4 can fail with errno 90
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Or perhaps we should back out the accept4 change and live with the fact that 
SOCK_CLOEXEC and SOCK_NONBLOCK can't be inherited by calling accept().

--

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Vetoshkin Nikita

Vetoshkin Nikita  added the comment:

Falling back on result 90 is not that difficult, I think I can submit a patch 
today. What should be checked ENOSYS or 90?

--

___
Python tracker 

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Kevin Walzer

Kevin Walzer  added the comment:

Try something like this: 

root.createcommand('::tk::mac::Quit', )

This will map whatever function IDLE calls to prompt the user to save data 
before closing, to the Apple quit event.

--
nosy: +wordtech

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Falling back on result 90 is not that difficult, I think I can submit
> a patch today. What should be checked ENOSYS or 90?

That's a rather good question. I will enable some debug printout on the
buildbot.

--

___
Python tracker 

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



[issue10114] compile() doesn't support the PEP 383 (surrogates)

2010-10-15 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue10116] Sporadic failures in test_urllibnet

2010-10-15 Thread Stephen Hansen

New submission from Stephen Hansen :

Ever since running the snow leopard buildslave, I've had sporadic failures in 
test_urllibnet. At first I thought it was just a net glitch on my machine or 
something, as immediately re-running the tests made it go away: but this most 
recent one:

http://www.python.org/dev//buildbot/builders/x86%20Snow%20Leopard%203.1/builds/20/steps/test/logs/stdio

happened while I was very much monitoring and using the network on the machine 
for other purposes, and everything was fine in general.

So, I went and looked into test_urllibnet to try to figure out why, and I 
notice that some of the tests use code to retry on IOErrors, and some don't-- 
and this test that failed in particular is one that doesn't. 

So: anyone have a better idea of what's going wrong, or is it just that hey, 
the active network tests are a bit flaky and all should use _open_with_retry 
instead of just some as is the case now?

[If the latter, I can do a patch]

FWIW, I've only seen this on the 3.1 and 3.x buildslaves, but have seen it on 
both of those more then once. But I don't know that its a 3.x specific issue: 
those builds get run more often then the 2.7 one, so have more chances to run 
into a sporadic issue.

--
components: Tests
messages: 118772
nosy: ixokai
priority: normal
severity: normal
status: open
title: Sporadic failures in test_urllibnet
versions: Python 3.1, Python 3.2

___
Python tracker 

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



[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue9980] str(float) failure

2010-10-15 Thread Mark Dickinson

Mark Dickinson  added the comment:

> For example C# uses 80 bit precision

No, I don't think that's true.  It uses the x87, with its 64-bit internal 
precision, but I'm fairly sure that (as is almost always true in a Windows 
environment, except if you're using Delphi, apparently) the FPU precision is 
still set to 53-bit precision.

> if I understand 
> http://blogs.msdn.com/b/davidnotario/archive/2005/08/08/449092.aspx well.

And that article explicitly confirms the use of 53-bit precision:

"Precision is set by default in VC++ and CLR apps to ‘double precision’, which 
means that if you are operating with operands of type float, results of 
operations done with floats actually exist in the x87 stack as if there were of 
type double. In fact, it’s even weirder than that. They will have the mantissa 
of a double, but the range (exponent) of an extended double (80 bit)."

i.e., it's using the x87 FPU with precision set to 53 bits.

--

___
Python tracker 

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



[issue10116] Sporadic failures in test_urllibnet

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Rather than the hand-made _open_with_retry, I think it would be better to use 
support.transient_internet() (it's already used in other tests). Retrying is 
not very helpful if the other end is down.

Also, EBADF (bad file descriptor) looks like a bug. httplib should not use 
closed/non-existent file descriptors.

--
nosy: +orsenthil, pitrou

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Ok, 90 is ENOSYS on that buildbot :)

--

___
Python tracker 

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



[issue10108] ExpatError not property wrapped

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +d...@python
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue10099] socket.fromfd() documentation problem

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
resolution: invalid -> works for me

___
Python tracker 

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



[issue10111] Minor problems with PyFileObject documentation (Doc/c-api/file.rst)

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +pitrou

___
Python tracker 

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Kevin, 

which versions of Tk does this work with?

IDLE should at least work with the versions of Tk 8.4 and 8.5 that Apple ships 
with OSX 10.4, 10.5 and 10.6 (the last one being the only one with built-in 
support for Tk 8.5)

--

___
Python tracker 

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Kevin Walzer

Kevin Walzer  added the comment:

Ronald--I think it works with both 8.4 and 8.5.

--

___
Python tracker 

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



[issue10109] itertools.product with infinite iterator cause MemoryError.

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue10098] intermittent failure in test_os

2010-10-15 Thread Brian Curtin

Brian Curtin  added the comment:

That works for me locally. Checked in that 0 to 1 change in r85525 - waiting to 
see if it works on the slower buildbots.

--
stage:  -> commit review

___
Python tracker 

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



[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo, pitrou

___
Python tracker 

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



[issue5355] Expat parser error constants are string descriptions

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r85526.

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

___
Python tracker 

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



[issue5355] Expat parser error constants are string descriptions

2010-10-15 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Please, add a tiny unit test for the presence of this feature.
This is the only way for vm implementers to follow CPython development.

--
nosy: +amaury.forgeotdarc
stage:  -> unit test needed
status: closed -> open

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Vetoshkin Nikita

Vetoshkin Nikita  added the comment:

What about exposing accept4() to python level?

--

___
Python tracker 

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



[issue5355] Expat parser error constants are string descriptions

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

You're completely correct, added one in r85528. Thanks!

--
status: open -> closed

___
Python tracker 

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



[issue8340] bytearray undocumented on trunk

2010-10-15 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee: d...@python -> pitrou

___
Python tracker 

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



[issue8267] Tutorial section on dictionary keys recommends sort instead of sorted

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r85529.

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

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> What about exposing accept4() to python level?

That's another possibility, in which case we would first remove the current 
accept4-calling code in order to fix the buildbot failure.

--
nosy: +loewis

___
Python tracker 

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



[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I am attaching an updated patch, issue9308b.diff.  Compared to the "a" patch, I 
added test/encoded_modules to the makefile so that it gets installed and 
removed cookies from some more test and Tools files.

--
Added file: http://bugs.python.org/file19244/issue9308b.diff

___
Python tracker 

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



[issue10110] Queue doesn't recognize it is full after shrinking maxsize

2010-10-15 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger
priority: normal -> low

___
Python tracker 

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



[issue2830] Copy cgi.escape() to html

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Refined and applied the patch in r85531.  Thanks all!

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

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Vetoshkin Nikita

Vetoshkin Nikita  added the comment:

Weekend is coming, so I can lend a hand in implementing whatever you choose.

Summary:
  * remove accept4() as default and expose it as separate method
  * add runtime fallback if accept4() returns ENOSYS

--

___
Python tracker 

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



[issue7771] dict view comparison methods are not documented

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Applied in r85532. Thanks!

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

___
Python tracker 

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



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Ping?

--

___
Python tracker 

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



[issue10115] accept4 can fail with errno 90

2010-10-15 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +exarkun

___
Python tracker 

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



[issue9683] Dead code in py3k inspect module

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed both in r85533.  Thanks!

--
status: open -> closed

___
Python tracker 

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



[issue9344] please add posix.getgrouplist()

2010-10-15 Thread Vetoshkin Nikita

Vetoshkin Nikita  added the comment:

Did a bit of digging and found that getgrouplist signature differs on (at 
least) Linux and Mac OS:
 - http://www.kernel.org/doc/man-pages/online/pages/man3/getgrouplist.3.html
 
-http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/getgrouplist.3.html

--
nosy: +nvetoshkin

___
Python tracker 

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Tal Einat

Tal Einat  added the comment:

Note that some discussion about this issue is taking place on the idle-dev 
mailing list.

Bruce Sherwood found the line "root.bind('<>', 
flist.close_all_callback)", which seems to be an unsuccessful attempt to 
achieve the wanted behavior.

Kevin Walzer mentioned that a grep on the idlelib code doesn't turn up any 
references to "tk::mac::Quit".

I don't have access to OSX for testing. Could someone please replace the 
root.bind call with what Kevin suggested, and see if it solves the problem?

--

___
Python tracker 

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



[issue1699594] shlex fails to parse strings correctly

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

That particular commit can't be the reason, but some other must be.  Closing as 
wfm.

--
dependencies:  -shlex.split() does not tokenize like the shell
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

For now, documented the current behavior in r85534.  If a different solution is 
desired, a new issue can be opened.

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

___
Python tracker 

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



[issue9054] pyexpat configured with "--with-system-expat" is incompatible with expat 2.0.1

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Applied in r85536, will backport to other branches as well.

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

___
Python tracker 

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



[issue9308] Remove redundant coding cookies from 3.x stdlib

2010-10-15 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Committed in r85537.

--
status: open -> closed

___
Python tracker 

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



[issue7303] pkgutil lacks documentation for useful functions

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed markup a bit and committed in r85538.  Thanks!

--
status: open -> closed

___
Python tracker 

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



[issue6798] Argument for sys.settrace() callbacks documented incorrectly

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Should be fixed in r85540.

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

___
Python tracker 

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



[issue8954] wininst regression: errors when building on linux

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Raising priority.

--
priority: normal -> critical

___
Python tracker 

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-15 Thread Ned Deily

Ned Deily  added the comment:

It looks like the '::tk::mac::Quit' callback does not exist in the 
Apple-supplied Tk 8.4.7 in OS X 10.5 and 10.4, although it does work with the 
Apple-supplied Tk 8.4.19(?) and 8.5 in 10.6 and with a current ActiveState 
8.4.19 on 10.4 through 10.6.  However, instead of that, it looks like 
overriding the 'exit' callback will work fine on all of them.  In a simple 
test, I'm able to intercept the Tk app quitting, post a yes/no message, and 
then terminate the Tk app by destroying the root.  Next I'll try integrating 
into IDLE.

--

___
Python tracker 

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



[issue4968] Clarify inspect.is method docs

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Committed suggestions with a few changes in r85541.

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

___
Python tracker 

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



[issue5729] Allows tabs for indenting JSON output

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Bob, any chance you get to that merge before 3.2b1?

--

___
Python tracker 

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



[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky

New submission from Alexander Belopolsky :

Tools/scripts/reindent.py -d Lib/test/encoded_modules/module_koi8_r.py
Traceback (most recent call last):
  File "Tools/scripts/reindent.py", line 310, in 
main()
  File "Tools/scripts/reindent.py", line 93, in main
check(arg)
  File "Tools/scripts/reindent.py", line 114, in check
r = Reindenter(f)
  File "Tools/scripts/reindent.py", line 162, in __init__
self.raw = f.readlines()
  File "Lib/codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf0 in position 59: invalid 
continuation byte

Attached patch fixes this issue.

--
components: Demos and Tools
files: reindent.diff
keywords: needs review, patch
messages: 118804
nosy: belopolsky
priority: normal
severity: normal
status: open
title: Tools/scripts/reindent.py fails on non-UTF-8 encodings
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file19245/reindent.diff

___
Python tracker 

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



[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
nosy: +christian.heimes, flox, tim_one

___
Python tracker 

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



[issue7790] struct_time documentation entry should point to the table defining the tuple

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, moved the table down in r85542.

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

___
Python tracker 

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



[issue4785] json.JSONDecoder() strict argument undocumented and potentially confusing

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, applied in r85543 and r85544.

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

___
Python tracker 

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



[issue7450] document that os.chmod accepts an octal digit mode

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

We now have the S_IXXX constants documented explicitly, so I don't think this 
change is needed.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue5150] IDLE to support reindent.py

2010-10-15 Thread Éric Araujo

Éric Araujo  added the comment:

reindent.py is very much a script: It lacks a nice, full programmatic API, I 
mean standalone functions to check a file object or a filename and functions 
implementing the command-line interface.  As it is now, you see for example 
print calls in the middle of functions, so it’s not usable as a module.

Maybe bring this to python-dev or -ideas?

--

___
Python tracker 

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



[issue5150] IDLE to support reindent.py

2010-10-15 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

There's no need to go to python-dev or python-ideas with this one.  If someone 
wants to figure-out a way to add reindent functionality to IDLE, patches are 
welcome.

--

___
Python tracker 

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



[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Éric Araujo

Éric Araujo  added the comment:

+1.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue10111] Minor problems with PyFileObject documentation (Doc/c-api/file.rst)

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r85545.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue10117] Tools/scripts/reindent.py fails on non-UTF-8 encodings

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

LGTM.

--
nosy: +georg.brandl

___
Python tracker 

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



[issue4086] support %z format in time.strftime and _strptime?

2010-10-15 Thread Georg Brandl

Changes by Georg Brandl :


--
status: open -> closed

___
Python tracker 

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



[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks for the test case, committed the fix and the new test in r85546.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I have verified that the original issue is still present.  I will try to narrow 
it down to a smaller test case.

--

___
Python tracker 

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



[issue6098] xml.dom.minidom incorrectly claims DOM Level 3 conformance

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Applied in r85547.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-15 Thread David Watson

David Watson  added the comment:

> As a further note: I think socket.gethostname() is a special case, since this 
> is just about a local setting (i.e. not related to DNS).

But the hostname *is* commonly intended to be looked up in the
DNS or whatever name resolution mechanisms are used locally -
socket.getfqdn(), for instance, works by looking up the result
using gethostbyaddr() (actually the C function getaddrinfo(),
followed by gethostbyaddr()).  So I don't see the rationale for
treating it differently from the results of gethostbyaddr(),
getnameinfo(), etc.

POSIX says of the name lookup functions that "in many cases" they
are implemented by the Domain Name System, not that they always
are, so a name intended for lookup need not be ASCII-only either.

> We should then assume that it is encoded in the locale encoding (in 
> particular, that it is encoded in mbcs on Windows).

I can see the point of returning the characters that were
intended, but code that looked up the returned name would then
have to be changed to re-encode it to bytes to avoid the
round-tripping issue when non-ASCII characters are returned.

--

___
Python tracker 

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



[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-10-15 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

I'm afraid this can't be fixed in 2.6.

--
versions:  -3rd party, Python 2.6

___
Python tracker 

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



[issue9317] Incorrect coverage file from trace test_pickle.py

2010-10-15 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I have found the cause of at least part of the issue.  Apparently, module level 
statements for some of the modules such as pickle do not show up in trace 
because they are imported by trace itself.  In other words, by the time traced 
script gets executed, pickle is already in sys.module and the code therein does 
not run.

Maybe we should consider clearing sys.modules in Trace.run, but this can cause 
problems if not done carefully.

--

___
Python tracker 

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



[issue7140] imp.new_module does not function correctly if the module is returned from a function and used directly

2010-10-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Since that revision only touched py3k, I am guessing that it only broke 3.2.

--
nosy: +terry.reedy
versions: +Python 3.2 -Python 2.5, Python 2.6

___
Python tracker 

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



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-15 Thread Skip Montanaro

Skip Montanaro  added the comment:

Not that anybody needs my input on this, but...

Given the range of people advocating for this change, this looks to me
like it should be a release blocker for 3.2.  Raymond's comment about
performance seems especially important, and since the world seems to
be moving toward 64-bit operating systems (certainly should happen in
a big way during the lifetime of Python 3) it seems worthwhile to hold
up further 3.2 releases until this is solved.

--
nosy: +skip.montanaro

___
Python tracker 

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



[issue10058] Unclear PyString_AsStringAndSize return value

2010-10-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am not much familiar with the C api but I presume that all functions return 
-1 on error and that this is documented somewhere in the beginning. I also 
presume that functions that return values thru passed in pointers and that are 
documented as returning an integer type return 0 on success. And ditto on some 
general note somewhere. I do not think that such should be repeated for each 
function. So without further justification, I would be inclined to close this.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-15 Thread Terry J. Reedy

Changes by Terry J. Reedy :


Removed file: http://bugs.python.org/file19192/unnamed

___
Python tracker 

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



[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2010-10-15 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

The unnamed quasi-html file loaded with msg118397 was a unless, essentially 
unreadable duplicate of that message, hence removed.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-15 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Given the range of people advocating for this change, this looks to me
> like it should be a release blocker for 3.2.  Raymond's comment about
> performance seems especially important, and since the world seems to
> be moving toward 64-bit operating systems (certainly should happen in
> a big way during the lifetime of Python 3) it seems worthwhile to hold
> up further 3.2 releases until this is solved.

I think this is a bit exagerated. The performance issues will only
appear if you have huge dicts and sets.
The issue Raymond raised is the potential impossibility of making the
change /after/ we settle on a stable ABI. The question is whether the
ABI will be enforced starting from 3.2, or from a later date.

--

___
Python tracker 

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



[issue10058] Unclear PyString_AsStringAndSize return value

2010-10-15 Thread Georg Brandl

Georg Brandl  added the comment:

Same here.  There is only ever one return value on error unless documented 
otherwise, since the type of error is already contained in the exception that 
is set on return.

--
nosy: +georg.brandl
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



  1   2   >