[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Merely from a Windows point-of-view, you could get the full command line fairly easily: code import ctypes pstring = ctypes.windll.kernel32.GetCommandLineW () print (ctypes.c_wchar_p (pstring).value) /code TJG -- nosy: +tim.golden

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I'm afraid I don't know; might be worth asking that on the main python mailing list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2972

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-30 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Suggest you raise a separate feature-request issue for that, Geoff, perhaps offering the two implementations described. Perhaps raise it it on python-ideas first to gauge reactions. I'm +0 myself since it's so easy to do anyway and I don't

[issue10092] calendar does not restore locale properly

2010-10-20 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: BoĊĦtjan, the code segment you quote is the *fallback* if the C module hasn't been built for some reason. The module simply calls through to the underlying C Library. I notice you're running on Windows, so this is a useful MS page: http

[issue10162] mimetypes read_windows_registry should tolerate permissions errors

2010-10-21 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I've only read the patch and not applied it, yet. But in principle I'm +1 on this. If Brian doesn't get there first, I'll try to apply later. -- ___ Python tracker rep...@bugs.python.org http

[issue10092] calendar does not restore locale properly

2010-10-21 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I'm afraid this falls outside my particular area of knowledge, and also outside the remit of the bug tracker. Perhaps you could post to python-list to see if anyone there can help? -- ___ Python

[issue10165] char overwrite mode is by default on in Python console under Vista

2010-10-21 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: If you don't often use the console, then I expect your console settings have Insert mode off. (Alt-Space Properties Options Insert Mode [x]) -- nosy: +tim.golden ___ Python tracker rep

[issue10165] char overwrite mode is by default on in Python console under Vista

2010-10-21 Thread Tim Golden
Agree that it's not really up to us; and that it's trivial to change once for all future python processes. As to the left-click blocking, I think that's Quick Edit mode you're thinking of, not Insert TJG ___ Python-bugs-list mailing list

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Removing docs unless this actually becomes a doc issue -- nosy: +tim.golden -d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10190

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: d...@python - bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10190 ___ ___ Python

[issue10452] Unhelpful diagnostic 'cannot find the path specified'

2010-11-18 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: It's almost certainly coming straight back from the O/S, where Python is doing its usual thing of channelling an O/S error directly. Obviously we could special-case this or any other specific error; but we usually don't -- nosy

[issue4488] Python Documentation not Newb Friendly

2008-12-02 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: What would be helpful would be a specific suggestion from the OP (or, better still, a doc patch) as to exactly what should change or at least what kind of words should go where. As it stands, this report highlights a real but quite general issue

[issue4723] os.path.basename error on directory names with numbers

2008-12-22 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: You need to use raw strings or to use forward-slashes in your pathnames: rc:\downloads\hacking\0812logcompress or c:/downloads/hacking/0812logcompress The sequence \0 has a special meaning in strings, introducing an octal escape, I think

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-02-08 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 6] The handle is invalid I suspect that .iterkeys / .itervalues would be more acceptable spellings as those mirror the dict methods. Whether the idea

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-02-08 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Sorry; the email interface messed that up. The code which triggered the error was: import _winreg list ( _winreg.IterValue ( _winreg.OpenKey (_winreg.HKEY_CURRENT_USER, Console

[issue7910] immutability w/r to tuple.__add__

2010-02-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Just think about it for a minute: t = (1, 2) print id (t), t t += (1, 2, 3) print id (t), t Not mutating, merely creating a new new object and giving it the same name -- nosy: +tim.golden

[issue8273] move test_support into the unittest package

2010-03-31 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: On 31/03/2010 14:20, Michael Foord wrote: - TESTFN This is a global for setting the directory temporary files are created in? Don't think I like the global approach. Which functions is it used by? It's used *all over the place*. I started

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Seeing the same thing on 32-bit WinXP on x86 On 07/04/2010 14:34, Stefan Krah wrote: New submission from Stefan Krahstefan-use...@bytereef.org: On Windows/amd64, I get loads of pickling errors in test_multiprocessing. Type 1 error

[issue7443] test.support.unlink issue on Windows platform

2010-04-09 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: This is basically a rerun of this discussion a couple of years ago: http://mail.python.org/pipermail/python-dev/2008-April/078333.html The problem certainly still happens against trunk -- I have a semi-aggressive test-harness which can

[issue7443] test.support.unlink issue on Windows platform

2010-04-09 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: In one window run the attached script (assumes you have pywin32 installed) with a parameter of the directory the TESTFN file will end up in. Then run, eg, test_zipfile in another window. For me: c:\temp watch_dir.py C:\work_in_progress\make

[issue7443] test.support.unlink issue on Windows platform

2010-04-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I put together a trivial patch against the 2.7 trunk (basically: I added a os.rename before the os.remove in test_support.unlink) and reran my test harness with test_zipfile... and it still failed because, of course, test_zipfile calls

[issue7443] test.support.unlink issue on Windows platform

2010-04-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I'm afraid that the problem doesn't lie in the unlink: DeleteFile succeeds. The problem is that the file is only marked for delete until such time as the last SHARE_DELETE handle on it is closed. Until that time, an attempt to (re)create

[issue7443] test.support.unlink issue on Windows platform

2010-04-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Then we shouldn't use DeleteFile in the first place to delete the file, but instead CreateFile, with DELETE access (and FILE_SHARE_DELETE sharing). If that fails, we need to move the file to the bin (see unlink_nt for details). I see what

[issue8385] _winreg remaining in test_winsound

2010-04-13 Thread Tim Golden
New submission from Tim Golden m...@timgolden.me.uk: There is a reference to _winreg left in test_winsound. Trivial patch attached renames this to winreg. -- components: Tests files: test_winsound.patch keywords: patch messages: 103042 nosy: tim.golden severity: normal status: open

[issue8385] _winreg remaining in test_winsound

2010-04-13 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8385 ___ ___ Python-bugs-list

[issue8386] test_pickle failing

2010-04-13 Thread Tim Golden
New submission from Tim Golden m...@timgolden.me.uk: test_pickle failing on WinXP http://svn.python.org/projects/python/branches/py3k/Lib r80044 == ERROR: test_unicode (__main__.CPicklerTests

[issue8386] test_pickle failing

2010-04-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Yes: dump C:\temp\work_in_progress\make-snapshots\branches Python 3.2a0 (py3k:80030, Apr 13 2010, 11:13:13) Type help, copyright, credits or license '\uDC80'.encode(utf8, surrogatepass) b'\xed\xb2\x80' /dump

[issue8386] test_pickle failing

2010-04-13 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Well that's embarrassing: I updated but didn't rebuild. Sorry for the noise; all tests passing now. Please close the call. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue8439] test_linecache failing in py3k r80169

2010-04-18 Thread Tim Golden
New submission from Tim Golden m...@timgolden.me.uk: test_linecache in the current py3k branch is failing on my WinXP machine with ERROR_SHARING_VIOLATION. The attached trivial patch appears to fix the problem, altho' I'm unfamiliar with the module in question so it may be that there's more

[issue8440] test_heapq interfering with test_import on py3k

2010-04-18 Thread Tim Golden
New submission from Tim Golden m...@timgolden.me.uk: If test_heapq is run before test_import on the current py3k head, test_import will fail as per the attached traceback. python -m test.regrtest -W test_heapq test_import test_import.log At a glance I can't see any obvious reason why

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: -tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8273 ___ ___ Python-bugs-list

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: This is basically issue 7743 which is a combination of: * Using the same filename for all tests in one process * Something (TSvn / Virus Checker) having a delete-share handle * Not renaming the file before removing it in test.support.unlink

[issue8586] test_imp.py test failures on Py3K Mac OS X

2010-05-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Sorry, typing too fast: http://bugs.python.org/issue7443 - test.support.unlink issue on Windows platform at least insofar as the issue applies to Windows. I imagine that the OS X thingis completely different

[issue2528] Change os.access to check ACLs under Windows

2008-04-01 Thread Tim Golden
New submission from Tim Golden [EMAIL PROTECTED]: At present, os.access under Windows simply calls GetFileAttributes to determine the readonly attribute (ignoring directories). The patch attached combines this with the use of the AccessCheck API to compare the user's permissions with those

[issue2781] Tiny patch to _winreg docs

2008-05-07 Thread Tim Golden
New submission from Tim Golden [EMAIL PROTECTED]: The docs for _winreg refer to RegLoadKey, which is the underlying API. The function is actually exposed as LoadKey. Patch attached. -- assignee: georg.brandl components: Documentation files: _winreg.patch keywords: patch messages: 66359

[issue3050] Implement PEP 371: multiprocessing module

2008-06-11 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: The _multiprocessing module is not building under Windows at the moment. Attempting to import multiprocessing (from an .exe build from the current svn) gives ImportError: No module named _multiprocessing and the test suite skips the test

[issue3050] Implement PEP 371: multiprocessing module

2008-06-11 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: I'm sorry; I've had a look and there's no chance of my updating the solution and project files by hand; and I can't run Visual Studio at the moment. I'll try emailing Trent or Christian in the hope that one of them's available to do

[issue3050] Implement PEP 371: multiprocessing module

2008-06-11 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: Trent's supplied me with enough info to patch the project files manually. The attached patch against r64120 results in the _multiprocessing module building. I'm running the tests now but I'll upload the patch in any case. Added file: http

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: Giampaolo Rodola' wrote: New submission from Giampaolo Rodola' [EMAIL PROTECTED]: By using: http://www.python.org/dev/daily-msi/python-2.6.14041.msi C:\C:\python26\python Python 2.6a3 (r26a3:62864, May 9 2008, 14:16:26) [MSC v.1500 32

[issue3258] ctypes assertion failure in trunk

2008-07-02 Thread Tim Golden
New submission from Tim Golden [EMAIL PROTECTED]: The following code raises an Assertion Failure under debug in r64518 running on Windows XP SP2: code import ctypes class X (ctypes.Structure): pass ctypes.POINTER (X) /code Assertion failed: PyErr_Occurred(), file ..\Modules\_ctypes\_ctypes.c

[issue3258] ctypes assertion failure in trunk

2008-07-02 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: The comment just before _ctypes.c:309 indicates that when a NULL is returned at that point, an error condition should already obtain. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3258

[issue6208] path separator output ignores shell's path separator: / instead of \

2009-06-15 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Eric Smith wrote: Eric Smith e...@trueblade.com added the comment: So is this a cosmetic issue or a functional issue? It's a cosmetic issue. Also, even if it could figure that out, how would it know whether a particular filename

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: What's superior about .tar.gz? (This is a genuine question). -- nosy: +tim.golden title: Native (and default) tarfile support for setup.py sdist in distutils on Windows - Native (and default) tarfile support for setup.py sdist

[issue6070] Python 2.6 makes .pyc/.pyo bytecode files executable

2009-06-26 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Making something executable on Windows has nothing to do with file permissions. You can set them as much as you like, but executability is determined by file associations, possibly in association with PATHEXT settings. AFAICT, the current Python

[issue6374] Confused by subprocess API documentation

2009-06-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Attached is a patch against r73685 of the documentation for subprocess which adds some information about using shell=True on Windows. I plan to do some more general-purpose docs for subprocess on Windows, but as I've failed to get round to them

[issue6937] multiprocessing lock on OS X Snow Leopard dumps core

2009-09-18 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Don't know what exact release OS X ships with, but it looks like you're being bitten by this: http://bugs.python.org/issue5261 -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http

[issue7344] wsgiref tests failing on Windows 7 buildbot

2009-11-18 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7344 ___ ___ Python-bugs-list

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-03-16 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Patch fixes the issue and tests run ok on 3.3 Win7; just building a 2.7 branch to test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10684

[issue7443] test.support.unlink issue on Windows platform

2011-03-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: For clarity, while making unlink more robust is no bad thing, the error occurs when the unlink *succeeds* but a subsequent create of the same name fails. This happens when an indexer, Virus scanner or TortoiseSvn etc. has opened the file

[issue7443] test.support.unlink issue on Windows platform

2011-03-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Well http://bugs.python.org/issue7443#msg102833 outlines the problems I encountered while trying to do essentially that. Nothing insurmountable, but definitely bigger than simply adding one line of code. Looks to me like there are two avenues

[issue11750] Mutualize win32 functions

2011-04-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11750 ___ ___ Python-bugs-list mailing list

[issue10888] os.stat(filepath).st_mode gives wrong 'executable permission' result

2011-04-19 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: FWIW I agree with MvL: os.stat is one of those awkward customers left over from the idea that Windows could be posix-compliant, even though the relevant concepts don't actually map particularly well. ISTM that anyone seriously wanting

[issue11922] Add General Index to Windows .chm help file Contents

2011-04-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I can't say I'd object as such, but the [Index] tab already contains the items in the General Index and is arguably the killer feature of the CHM in any case. -- nosy: +tim.golden ___ Python tracker

[issue9584] Allow curly brace expansion

2011-05-09 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I've just rebuilt on Windows against tip. test_glob is failing: test test_glob failed -- Traceback (most recent call last): File c:\work-in-progress\python\cpython-9584\lib\test\test_glob.py, line 135, in test_glob_curly_braces

[issue12086] Tutorial doesn't discourage name mangling

2011-05-16 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: But at the least, the start of the para might be slightly reworded to something like: If you specifically need to avoid name clashes with subclasses, there is limited support... which avoids the phrase Since there is a valid use-case

[issue12140] Crash upon start up

2011-05-23 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: What happens if you try python -S (capital S)? In principle this should bypass the need to load site.py. Even if that works we still have a problem to solve, but at least it might narrow things down. -- nosy: +tim.golden

[issue11583] os.path.isdir() is slow on windows

2011-06-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: One (presumably unintended) side-effect is that you can now do os.path.isdir on a wildcard and the first returned entry will be tested for directoryness: import os os.path.isdir (c:/tem*) # = True where c:/temp exists

[issue13419] import does not recognise SYMLINKDs on Windows 7

2011-11-17 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +brian.curtin, jason.coombs, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13419

[issue13210] Support Visual Studio 2010

2011-11-18 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Thanks. I was going to ask about this to see if anyone had already done the legwork. -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210

[issue13483] Use VirtualAlloc to allocate memory arenas

2011-11-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: 'fraid not. I've never had to dig into the allocation stuff at this level. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13483

[issue13524] critical error with import tempfile

2011-12-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: The environment passed to a Windows process must contain certain things. (I don't at this moment remember exactly what). You can't just pass the one thing you're adding. Change your e = ... line to something like: e = os.environ e

[issue13524] critical error with import tempfile

2011-12-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Re-opening because there's a real problem here which can crash Python hard. Simplest reproduction: import sys import subprocess subprocess.Popen (sys.executable, env={}) Affects 2.x and 3.x tip (haven't tried others yet but I don't imagine

[issue13524] critical error with import tempfile

2011-12-03 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Yes. I've added the Windows component on the tracker. (At least I think I have). It's to do with CreateProcess needing at least certain items in the environment passed. I'm trying to track down some docs on MSDN which specify which must

[issue13524] critical error with import tempfile

2011-12-04 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: OK, the long and short is that spwaning a process without passing in SystemRoot is asking for trouble. There's a blog post here which gives an example: http://jpassing.com/2009/12/28/the-hidden-danger-of-forgetting-to-specify-systemroot

[issue13524] critical error with import tempfile

2011-12-06 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13524

[issue13674] crash in datetime.strftime

2011-12-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Yes, but the MS crt strftime *for %y* requires a year = 1900 (ie tm_year = 0). Looks like we need a special check. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13674

[issue13674] crash in datetime.strftime

2011-12-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: This is happening on Windows x86 against the current tip. The MS C runtime can handle older dates; it's just that we're taking 1900 off the year at some point. (At least, I think that's what's happening). FWIW you only need time.strftime

[issue13674] crash in datetime.strftime

2011-12-29 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: ... and that's because the tm struct defines the tm_year field as an offset from 1900. Sorry for the false start. I'll look at the MS runtime stuff instead -- ___ Python tracker rep

[issue13674] crash in datetime.strftime

2011-12-30 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Well, the code in 2.x is quite different from that in 3.x. Specifically, the 2.x code assumes that, for Windows, no year before 1900 is valid for any of the formats. So a simple check throws a ValueError for tm_year 0. For 3.x the assumption

[issue13674] crash in datetime.strftime

2011-12-30 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Yes, sorry. I wasn't clear enough. There *are* still checks in the 3.x code (for the kind of thing you're showing). But the checks assume 1000 = year = maxint is ok for all format parameters on Windows. In fact, for %y, only 1900 = year is ok

[issue13917] Python 2.7.2 and 3.2.2 execl crash

2012-02-01 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: This is a duplicate of http://bugs.python.org/issue8036 (which I still haven't got around to applying...) -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16633] os.environ updates only one copy of env vars under Windows (GetEnvironmentVariable vs. getenv)

2012-12-07 Thread Tim Golden
Tim Golden added the comment: Does the same problem obtain if you use os.putenv (which calls the crt putenv under the covers)? -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16633

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-10 Thread Tim Golden
Tim Golden added the comment: Sorry; late to the party. I'll try to take a look at the patches. Basically I'm sympathetic to the problem (which seems quite straightforwardly buggish) but I want to take a look around the issue first. TJG

[issue16921] Docs of subprocess.CREATE_NEW_CONSOLE are wrong

2013-01-11 Thread Tim Golden
Tim Golden added the comment: This code is no longer present in subprocess.py now that issue14470 has been applied. -- nosy: +brian.curtin, tim.golden resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker

[issue16921] Docs of subprocess.CREATE_NEW_CONSOLE are wrong

2013-01-11 Thread Tim Golden
Tim Golden added the comment: Reopening because there is in fact a doc issue reamining. -- assignee: - tim.golden resolution: out of date - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http

[issue16921] Docs of subprocess.CREATE_NEW_CONSOLE are wrong

2013-01-11 Thread Tim Golden
Tim Golden added the comment: I can't push from work; the (trivial) doc patch is attached. If no-one gets to it, I'll push from home this evening. -- Added file: http://bugs.python.org/file28688/doc.diff ___ Python tracker rep...@bugs.python.org

[issue14208] No way to recover original argv with python -m

2013-01-23 Thread Tim Golden
Tim Golden added the comment: My use case is the reloader or restarter. I've initially fallen foul of this when using the cherrypy reloader (which does an execv by building from sys.executable + sys.argv) but I also have web services running which I'd like to restart remotely by forcing them

[issue17208] add note/warning about daemon threads

2013-02-15 Thread Tim Golden
Tim Golden added the comment: +1 This is essentially the answer to the naive user's question: Why would anyone *not* use daemon threads given that they're less hassle to manage? -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-25 Thread Tim Golden
Tim Golden added the comment: netrick: can you confirm that the same thing occurs when you explicitly run your code via the pyw command. ie when you do this: pyw myprog.pyw Also, what happens when you run: py myprog.pyw ie when you use the Console launcher to launch the .pyw

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-25 Thread Tim Golden
Tim Golden added the comment: I can't reproduce this running Python 3.3 on Win7. I'll try WinXP later. I'll also add Mark Hammond Vinay as they implemented the PEP397 loader. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +mhammond, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17290 ___ ___ Python

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-25 Thread Tim Golden
Tim Golden added the comment: Things may be a little more complicated, because one of two distinct mechanisms may be invoked to determine what to run when double-clicking: an Explorer-based mechanism, and a non-Explorer one. AFAICT, the former falls back to the latter. To check the latter

[issue17290] pythonw - loading cursor bug when launching scripts

2013-02-25 Thread Tim Golden
Tim Golden added the comment: I can't reproduce this on XP either. I've tried various combinations of .py / .pyw, command line, double-click, etc. and I've not had a single problem. Let's hope someone else can suggest something -- ___ Python

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-06 Thread Tim Golden
Tim Golden added the comment: IIRC Nick Coghlan had put a bit of work into this a few months ago as an external module with a view to seeing if it got traction before putting anything into the stdlib. Might be worth pinging him, or looking to see what he'd done. Can't remember the keywords

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-06 Thread Tim Golden
Tim Golden added the comment: OK, sorry for the noise then; I had the idea that it was doing something with iterators/generators. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406

[issue17366] os.chdir win32

2013-03-07 Thread Tim Golden
Tim Golden added the comment: Dave, you seem to misunderstand what's happening here: the os.chdir function doesn't have access to the characters which are typed in the script or in the interpreter. It receives a Python string object. The parser etc. which constructs the string object determines

[issue11583] os.path.isdir() is slow on windows

2011-06-04 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Code looks good and tests pass. Only one thing: the code in the patched lib\ntpath.py still refers to FindFirstFile -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11583

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-07 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I'm just patching a clone now. -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12084

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-07 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: All expected tests pass on 3.2 branch (Win7 32-bit). The patch doesn't apply cleanly to trunk; not sure if it's expected to or not. The code looks ok on paper. I'll leave Victor to quibble over the Unicode stuff

[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2011-06-21 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: +markmcmahon, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12382 ___ ___ Python

[issue12394] Packaging should provide better support for executable scripts on Windows

2011-06-24 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Are you aware of PEP 397? http://www.python.org/dev/peps/pep-0397/ -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394

[issue12394] Packaging should provide better support for executable scripts on Windows

2011-06-24 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Adding Mark H as the author of PEP 397 -- nosy: +mhammond ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394

[issue12802] Windows error code 267 should be mapped to ENOTDIR, not EINVAL

2011-08-26 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Obviously someone's code would break if it were relying on the Unix errno only in a Windows-only situation to determine the situation of opening a directory which isn't one. But that combination of events doesn't seem terribly likely

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Just to confirm: I can reproduce this more or less consistently on all versions of Python 2.2 - 3.2 on Windows 7. Those are distribution builds -- ie not debug builds I've made myself. But it certainly does occur on a debug build of 2.7. I'm

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: OK, I've run out of time to look, but the culprit looks like it's an odd interaction between my_fgets in myreadline.c and the interrupt handler in signal. There's a section of code which is conditional on ERROR_OPERATION_ABORTED being

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: That'll be my next move when I get some more time. I've got someone coming over to see me (about real work!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-27 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: OK, it is a race condition between the code in myreadline.c and the signal_handler in signalmodule.c. It can take between 0 and 3 sleeps for the myreadline code to see the signal tripped. Patch on its way for 2.7; VS 2010 downloading so

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Attached is a patch against Python 2.7. It checks in a loop for SIGINT and, if it still hasn't fired, assumed Ctrl-Z was pressed which generates the same error. -- assignee: - tim.golden keywords: +patch Added file: http

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Yep. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1677 ___ ___ Python-bugs-list mailing

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2012-06-28 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: To be clear: ERROR_OPERATION_ABORTED is set when Ctrl-Z is hit as the only thing on a line. If it's just an extra character then it operates like any other keypress. -- ___ Python tracker rep

<    1   2   3   4   5   6   7   >