New submission from Erik Sandberg <[EMAIL PROTECTED]>:
When building Python on Solaris, I don't get the os.mknod function. This
seems to be a combination of two errors:
1. The definition of posix_mknod() in posixmodule.c is surrounded by:
#if defined(HAVE_MKNOD) && defined(HAV
New submission from Erik Sandberg <[EMAIL PROTECTED]>:
When an exec statement called from a function f defines a top-level
function g, the body of g cannot access the top-level symbols defined by
the exec statement (which also happen to be the local variables of f).
Example:
x = 2
Erik Sandberg <[EMAIL PROTECTED]> added the comment:
Thanks! Passing an explicit global namespace solves the problem and is
something I wanted to do anyways, when I think about it.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from Erik Sandberg :
On Linux, I get the following:
>>> import os
>>> os.path.normpath(u'/')
'/'
I would expect unicode to be mapped to unicode. os.path.abspath() has
the same problem, see also issue 3426.
This causes problems in my
Erik Sandberg added the comment:
An alternative solution which I would have considered, is to extend
stat/fstat on Windows to set st_dev and st_ino to sensible values (based
on dwVolumeSerialNumber and nFileIndexLow/High), and then use the POSIX
implementations of samefile/sameopenfile.
There
New submission from Erik Sandberg :
When subprocess.call is told to execute a .bat file on Windows, and the
path to the batch file is given as an absolute path, and the path
includes a left parenthesis ('('), then the call fails with a message
similar to the following; it appear
Erik Sandberg added the comment:
I'm using Python 2.5.1, by the way.
--
___
Python tracker
<http://bugs.python.org/issue5484>
___
___
Python-bugs-list m
Erik Sandberg added the comment:
I have narrowed down the problem further: The same error happens with
the following code:
import win32process
win32process.CreateProcess(None, 'f(o.bat', None, None, 1, 0, None,
None, win32process.S
Erik Sandberg added the comment:
argh, it seems that the problem is in how CreateProcess works; exactly
the same error can be provoked from C.
--
Added file: http://bugs.python.org/file13321/parenbug.c
___
Python tracker
<http://bugs.python.
Erik Sandberg added the comment:
I experimented further, the only way to run a .bat file whose name
contains funny characters, seems to be:
subprocess.call('""f(o.bat""', shell=True)
--
___
Python tracker
<
Erik Sandberg added the comment:
Did you test your code? I'm pretty sure I tried almost exactly the code
you suggest, and got an error like "'t' is not recognized as an internal
or external command...' (I cannot test this right now as I don't have
access to Wind
New submission from Erik Sandberg :
It would be nice if samefile / sameopenfile was present on Windows.
Right now I usually work around this by keeping a platform-specific hack
for Windows that approximates samefile by comparing normalized paths;
this is ugly and doesn't handle junc
12 matches
Mail list logo