[issue1759845] subprocess.call fails with unicode strings in command line

2008-03-01 Thread Hirokazu Yamamoto

Hirokazu Yamamoto added the comment:

I tried to fix this problem using CreateProcessW.
(environment variables are still ANSI)

I don't know Python C API well, maybe I'm doing
something wrong. (I confirmed test_subprocess.py
passes)

--
keywords: +patch
nosy: +ocean-city
Added file: http://bugs.python.org/file9580/CreateProcessW.patch

_
Tracker <[EMAIL PROTECTED]>

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



[issue2215] test_sqlite fails in 2.6a1 on MacOS X

2008-03-01 Thread Christian Heimes

Changes by Christian Heimes:


--
assignee:  -> ghaering
components: +Macintosh
nosy: +ghaering
priority:  -> normal
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2215] test_sqlite fails in 2.6a1 on MacOS X

2008-03-01 Thread Jean Brouwers

New submission from Jean Brouwers:

One test fails on MacOS X 10.4.11 (Intel) after building 2.6a1 from 
source.

test_sqlite
test test_sqlite failed -- Traceback (most recent call last):
  File "/Users/jean/Tools/Python-2.6a1/Lib/sqlite3/test/regression.py", 
line 118, in CheckWorkaroundForBuggySqliteTransfer
Bindings
self.con.execute("create table if not exists foo(bar)")
OperationalError: near "not": syntax error


29 tests are skipped (as expected) and 312 pass.

--
components: Tests
messages: 63175
nosy: MrJean1
severity: normal
status: open
title: test_sqlite fails in 2.6a1 on MacOS X
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

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



[issue1012468] Rational.py various bugfixes

2008-03-01 Thread Jeffrey Yasskin

Jeffrey Yasskin added the comment:

Yep. Removed in r61162.

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

_
Tracker <[EMAIL PROTECTED]>

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



[issue2214] make htmlhelp raises non-reproducable exception

2008-03-01 Thread Martin v. Löwis

Martin v. Löwis added the comment:

After upgrading the tools, this problem is apparently gone.

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

__
Tracker <[EMAIL PROTECTED]>

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



[issue1193577] add server.shutdown() method to SocketServer

2008-03-01 Thread Jeffrey Yasskin

Jeffrey Yasskin added the comment:

Also, Pedro's argument against a daemon_threads argument to TCPServer
convinces me. I think we can add it in ThreadingMixIn.__init__ once this
whole hierarchy is switched over to new-style classes. That's already
done in 3.0, but I don't know what it would affect in 2.6. If anyone
wants to keep pushing it, would you open a new bug?

--
title: add server.shutdown() method and daemon arg to SocketServer -> add 
server.shutdown() method to SocketServer

_
Tracker <[EMAIL PROTECTED]>

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



[issue2214] make htmlhelp raises non-reproducable exception

2008-03-01 Thread Martin v. Löwis

New submission from Martin v. Löwis:

Sometimes, when I run "make htmlhelp", I get a traceback of

writing additional files...

Traceback (most recent call last):

  File "tools/sphinx-build.py", line 24, in 

sys.exit(main(sys.argv))

  File "/cygdrive/c/loewis/3k/python/Doc/tools/sphinx/__init__.py", line
141, in

 main

builderobj.build_update()

  File "/cygdrive/c/loewis/3k/python/Doc/tools/sphinx/builder.py", line
202, in

build_update

summary='%d source files that are out of date' % len(to_build))

  File "/cygdrive/c/loewis/3k/python/Doc/tools/sphinx/builder.py", line
235, in

build

self.finish()

  File "/cygdrive/c/loewis/3k/python/Doc/tools/sphinx/builder.py", line
449, in

finish

download_base_url = self.config['download_base_url'],

KeyError: 'download_base_url'

make: *** [build] Fehler 1

When redoing "make htmlhelp", it immediately completes without error.

--
assignee: georg.brandl
components: Documentation tools (Sphinx)
messages: 63171
nosy: georg.brandl, loewis
severity: normal
status: open
title: make htmlhelp raises non-reproducable exception

__
Tracker <[EMAIL PROTECTED]>

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



[issue1193577] add server.shutdown() method and daemon arg to SocketServer

2008-03-01 Thread Jeffrey Yasskin

Jeffrey Yasskin added the comment:

Polling isn't a great way to handle shutdown, since it wastes CPU time
and decreases responsiveness, but it's also easy and my attempt to avoid
it isn't getting anywhere, so I'm planning to fix up your patch a bit
and commit it. Thanks!

I've merged your patch with my conflicting change in the trunk and
re-attached it.

Two things:
1) This patch may interfere with the existing timeout in await_request.
We may be able to re-use that instead of having two select statements.

2) I believe it's important to provide a way to block until the server
isn't accepting any more requests and to block until all active requests
are finished running. If the active requests depend on other bits of the
system, blocking until they're done would help them terminate
gracefully. It would also be useful to give users a more proactive way
to kill active requests, perhaps by listing the handler objects
associated with them (or their PIDs for forking servers). It's
surprisingly complicated to avoid race conditions in these
implementations, especially without support from the Server object.

Added file: http://bugs.python.org/file9579/polling_shutdown.patch

_
Tracker <[EMAIL PROTECTED]>

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



[issue2121] complex constructor doesn't accept string with nan and inf

2008-03-01 Thread Mark Dickinson

Mark Dickinson added the comment:

Signed zeros cause difficulties with round-tripping, too:

>>> z = complex(-0.0, -0.0); w = complex(repr(z))
>>> z
-0j
>>> w
-0j
>>> z.real
-0.0
>>> w.real
0.0

--
nosy: +marketdickinson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2008-03-01 Thread Raghuram Devarakonda

Raghuram Devarakonda added the comment:

>  The function is just a one liner in 2.6 and it's used in one place only.
>  Let's move it into move().

Isn't it clear from this issue's original description that there is a
bug in the one liner that needs fix ?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2179] with should be as fast as try/finally

2008-03-01 Thread Nick Coghlan

Nick Coghlan added the comment:

Scratch the parentheses on that first line of sample code in my previous
comment (isn't copy and paste wonderful?)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2008-03-01 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Here's a patch that moves destinsrc into move.

Added file: http://bugs.python.org/file9578/shutil_remove_destinsrc.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2179] with should be as fast as try/finally

2008-03-01 Thread Nick Coghlan

Nick Coghlan added the comment:

A closer approximation of what the with statement is doing would be:

exit = lock.release()
lock.acquire()
try:
pass
finally:
exit()

The problem with trying to store the result of the retrieval of __exit__
on the stack is that we need to leave the context manager itself on top
of the stack for the next LOAD_ATTR opcode (when we're retrieving the
__enter__ method).

However, changing WITH_CLEANUP to take an argument indicating which
local variable holds the bound __exit__ method sounds like it might work.

--
nosy: +ncoghlan

__
Tracker <[EMAIL PROTECTED]>

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



[issue2200] find_executable fails to find .bat files on win32

2008-03-01 Thread Christian Heimes

Christian Heimes added the comment:

Can you provide a patch which uses PATHEXT and falls back to .com, .exe
and .bat?

--
nosy: +tiran
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2008-03-01 Thread Christian Heimes

Christian Heimes added the comment:

The function is just a one liner in 2.6 and it's used in one place only.
Let's move it into move().

--
priority: normal -> low

__
Tracker <[EMAIL PROTECTED]>

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



[issue1672853] Error reading files larger than 4GB

2008-03-01 Thread Christian Heimes

Christian Heimes added the comment:

How about Python 2.5? Have you tested the latest release as well?

--
type:  -> behavior

_
Tracker <[EMAIL PROTECTED]>

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



[issue2213] build_tkinter.py does not handle paths with spaces

2008-03-01 Thread Christian Heimes

Christian Heimes added the comment:

Go ahead if you like to work on a patch. I'm +0.

--
priority:  -> low
resolution:  -> accepted
versions: +Python 3.0

__
Tracker <[EMAIL PROTECTED]>

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



[issue2065] trunk version does not compile with vs8 and vc6

2008-03-01 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto:


--
keywords: +patch
Added file: http://bugs.python.org/file9577/ocean.patch

__
Tracker <[EMAIL PROTECTED]>

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