[issue9333] Expose a way to enable os.symlink on Windows

2010-12-03 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks and good work, Brian. I think ,though, I'm leaning toward agreeing with Amaury on the presence of the symlink attribute in os. I can easily see the justification for hiding it in legacy environments (Windows XP Server 2003), where

[issue10639] reindent.py converts newlines to platform default

2010-12-06 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: When reindent.py runs, it will convert the line endings for each file it converts to the default line ending for the platform on which reindent.py runs. It would be better if reindent.py would retain line endings of the source file

[issue10639] reindent.py converts newlines to platform default

2010-12-06 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file19955/reindent-autonewline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10639

[issue10639] reindent.py converts newlines to platform default

2010-12-06 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Merged the patch with the latest trunk. -- Added file: http://bugs.python.org/file19956/reindent-autonewline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10639

[issue6081] str.format_map()

2011-01-28 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Good work Eric. When I first heard of new string formatting, I was a little wary. The syntax to supply a dictionary of keyword replacements seemed awkward. It took me a while before I realized why it really bothered me. There's string

[issue10639] reindent.py converts newlines to platform default

2011-01-29 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: That's great that reindent works in your environment, but that's no help in my environment. Here's the use case: We have a software package developed in Unix and with Unix LF line endings. The code base may also contain files with CRLF line

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-07-09 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm building now and will report back shortly... -- Added file: http://bugs.python.org/file17920/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-07-09 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Here's a patch to address the posix failures: - test_posixpath seems to have lost the creation of one test file. - WindowsError doesn't exist on other platforms, so it can't be caught directly (in tarfile.py). I've written a work-around

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-07-09 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file17920/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue9333] Expose a way to enable os.symlink on Windows

2010-07-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I think we should consider simply calling this function before running os.symlink. It would be nice if the API were as compatible as possible on both unix and Windows. My worry is that where code that works on unix systems is simply

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-07-30 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Is it still worthwhile to add the test to the suite to catch a regression? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7964

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-01 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm not sure the setting has to be restored. All that's being added is an attempt to assign the symlink privilege to the current process token. I would consider to attempt to assign the privilege when the Python process starts up (or when

[issue9332] Document requirements for os.symlink usage on Windows

2010-08-01 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Ned, you bring up a good point. Please see #9333 for a discussion on the new os.symlink and privileges. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9332

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-01 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm attaching this patch for discussion: Here's what I had in mind for addressing the NotImplementedError when calling os.symlink on Windows XP. During the posixmodule initialization, if the system does not have the CreateSymbolicLink API

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I love it -- especially all of the '-' lines in the patch! Good work. Is it conceivable that a Windows XP user would have that privilege (and thus would have access to a non-functional os.symlink function)? One thing I particularly like

[issue2400] from .foo import * should work

2010-08-05 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- nosy: +jaraco ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2400 ___ ___ Python-bugs-list mailing

[issue2400] from .foo import * should work

2010-08-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Is there any chance this can be back-ported to Python 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2400

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: In the case where I did use VOLUME_NAME_NT, I think I chose it because it returned a more robust result. That is, it's not clear what the result is if the result is not on a volume that is assigned a drive letter, but all files referenced

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: The big problem with adding the %python%\scripts directory to the path is it makes a lot of assumptions about how Python is deployed. And it raises some questions. What should the precedence be? What should happen if multiple versions

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-09-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: In msg108954, I believe belopolsky is mistaken in stating that it would be easy to simply provide custom __getinitargs__ or __reduce__ to support it. It appears __getinitargs__ does not work on Python 2.5 or Python 2.7. Exceptions

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-09-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: After some further reading, I found that PEP-352 (http://www.python.org/dev/peps/pep-0352/) explicitly states that Including programmatic information (e.g., an error code number) should be stored as a separate attribute in a subclass

[issue10027] os.lstat/os.stat don't set st_nlink on Windows

2010-10-14 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm unsure. I think when I addressed the issue, I was only concerned with symlinks. The Vista behavior sounds correct to me, so it may be that XP was left with the legacy behavior as it doesn't have native symlink support. It sounds

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

2010-10-14 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: The Queue object has a maxsize parameter and attribute, but due to the test for a full queue, shrinking the maxsize could result in the Queue not recognizing that it is full. The attached patch (against the Python 3 trunk) demonstrates

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

2010-10-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I should point out that in Python 2.5, it was possible for a subclass to override the _full method to account for this situation, but with Python 2.6 and later, the calculation in _full was hand-inlined... so it's not readily possible

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

2010-10-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm not sure what our use case is. I discovered this when I was looking at our project's util library, and we have a Queue subclass that overrides _full to handle the scenario where the queue shrinks. I'm guessing it's being used

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

2010-10-15 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10110 ___ ___ Python-bugs-list

[issue5042] Structure sub-subclass does not initialize with base class positional arguments

2009-01-24 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: When trying to create a sub-subclass of a ctypes.Structure, the behavior is not as expected. An executable example that describes the problem in detail and demonstrates the issue is available at http://paste.turbogears.org/paste/29555

[issue5049] ctypes unwilling to allow pickling wide character array

2009-01-24 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Using Python 2.6.1, I'm unable to pickle a simple object with an array of wide characters. import ctypes, pickle class MyStruct(ctypes.Structure): _fields_ = [('name', ctypes.c_wchar*2)] s = MyStruct('DC') pickle.dumps(s) # raises

[issue5049] ctypes unwilling to allow pickling wide character

2009-01-24 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I just discovered that trying to pickle a structure with even just a c_wchar (not an array) also fails. -- title: ctypes unwilling to allow pickling wide character array - ctypes unwilling to allow pickling wide character

[issue5119] inconsistent wide character parameter handling in 64-bit python

2009-01-31 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Using Python 2.5.4 and Python 2.6.1 on 32-bit python, when passing a regular string to a function expecting pointer to a wide string (wintypes.LPCWSTR), the function executes without problems. When calling the same using Python 2.6.1 on 64

[issue5119] inconsistent wide character parameter handling in 64-bit python

2009-01-31 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: After putting together a more simple example without externalities, I'm unable to continue to assert the discrepancy between 32 and 64-bit Windows, although I do still see where narrow character strings are treated as wide character buffers

[issue5119] inconsistent wide character parameter handling in 64-bit python

2009-01-31 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Or alternately, is it possible (and reasonable) for ctypes to inspect the function signature and create wide character buffers when appropriate? ___ Python tracker rep...@bugs.python.org http

[issue5119] wide character parameter handling in ctypes

2009-01-31 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've confirmed that my original assumption was quite false, and that even if the parameters are the correct width, WNetAddConnection2W behaves differently in 64-bit windows versus 32-bit windows, so it made a bad test case. So I've changed

[issue5119] wide character parameter handling in ctypes

2009-02-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I see this in the documentation, which basically answers the question: windll does not try to select [wide or narrow functions] by magic, you must access the version you need by specifying GetModuleHandleA or GetModuleHandleW explicitely

[issue5119] wide character parameter handling in ctypes

2009-02-03 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks for the excellent suggestion. Please close this issue. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5119

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I haven't seen this error. My first guess is its a regression due to win 7 or updates to the python code. I'll look into it. Sent from my comm On Jan 16, 2010, at 17:47, Eric Smith rep...@bugs.python.org wrote: Eric Smith e

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Eric: I'm guessing the error you're seeing might be due to a UAC issue (http://en.wikipedia.org/wiki/User_Account_Control). I've been developing with UAC disabled (because working with the command-line in a UAC environment is a bit**). Can

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Brian: That's interesting. Many of those failures look very much like failures I've encountered and fixed, though I have been developing in a 32-bit environment. I'll run the tests on my 64-bit system and see if I can replicate

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Brian: I applied the draft 18 patch to the latest version of /branches/py3k (77592). I compiled the release x64 build and ran a few tests using the following syntax: PS C:\Users\jaraco\projects\public\python-core-py3k .\pcbuild\amd64\python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15616/windows symlink draft 17.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Eric: The failures I'm seeing in test_posixpath indicate that realpath isn't working properly. Are you getting the same results? As for the buildbot issue - I'm unfamiliar with the buildbot configuration. I think it would be worth creating

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This new patch (draft 19) addresses the outstanding test failures in test_posixpath.py and test_platform.py (by essentially disabling tests that were previously-disabled but became enabled on Windows by adding symlink support

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-17 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've confirmed that in fact a security policy permission is required to create a symbolic link, and that by default, that permission is only granted to administrators (see http://en.wikipedia.org/wiki/Symbolic_link

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: When I consider that the buildslaves are probably donated and not designated exclusively for Python testing, it makes good sense that they typically run under a restricted account. Given that there is a specific permission that can

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Great suggestion. I'll do that. -- title: Add os.link() and os.symlink() and os.path.islink() support for Windows - Add os.link() and os.symlink() and os.path.islink() support for Windows

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: If you want support for symlinks in Python 2.6, see http://pypi.python.org/pypi/jaraco.windows . It even has a method to monkey patch the os module to provide forward compatibility to the 3.2 functionality. -- Added file: http

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Eric: I concur. The function to skip tests will test for the presence of the particular permission. -- Added file: http://bugs.python.org/file15939/smime.p7s ___ Python tracker rep

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15938/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15939/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-19 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm currently struggling with determining if the host process has the appropriate privileges. I'm stuck in that I've enumerated the privileges for an admin account, but the SeCreateSymbolicLink privilege is not present. I guess it's

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Under Python 2.6.4 64-bit on Windows 7 64-bit, I found that when launching a script under the debugger, if backslashes were in the script pathname, they were not interpreted correctly by the interpreter. For example, create a simple test

[issue7750] IOError in execfile with backslash in path

2010-01-21 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- title: IOError when launching script under pdb with backslash in script path - IOError in execfile with backslash in path ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7750

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm changing the title back to the original title. I don't believe the problem is reproducible using execfile. That is, if a properly-escaped path is passed to execfile, it works fine. So I believe the problem lies between when pdb takes

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I suspect this patch may fix the problem. I haven't yet had time to test it. Index: Lib/pdb.py === --- Lib/pdb.py (revision 77683) +++ Lib/pdb.py (working copy) @@ -1200,7

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: The attached test-case identifies the failure mode (and verifies that the proposed fix corrects the issue). -- Added file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker rep

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Here's a new patch against the trunk that addresses Brian's concerns. -- keywords: +patch versions: +Python 2.7 Added file: http://bugs.python.org/file15970/fix with test.patch ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: For completeness, I've back-ported the patch to the release26-maint branch. -- Added file: http://bugs.python.org/file15971/fix with test (releas26-maint).patch ___ Python tracker rep

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7750

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-25 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Amaury, that was a good suggestion, but I did with Eric's help track down a mechanism to test for the presence of the symlink creation privilege. I prefer to have a proper check rather than to attempt to create one and test for the failure

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Brian, thanks for the review. I really appreciate it. I'll fix all of the identified issues. Lib/test/test_posixpath.py - Lines 365-366 - why check has_symlink() and immediately check it again? In the unpatched code, there were two calls

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15933/windows symlink draft 19.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16003/windows symlink draft 20.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Added file: http://bugs.python.org/file16178/windows symlink draft 21.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16174/windows symlink draft 21.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This latest patch (22) does some refactoring in test_posixpath to reduce nesting, limit duplicated code, and skip failing tests on Windows. The only task now is to address the failing tests in a limited user account. -- Added file

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16178/windows symlink draft 21.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This new patch (23) renames support.has_symlink and support.skip_unless_has_symlink to can_symlink. This more accurately reflects the functionality. -- title: Add os.link() and os.symlink() and os.path.islink() support

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15932/failures.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16180/windows symlink draft 22.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16193/windows symlink draft 23.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16194/windows symlink draft 24.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-09 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16197/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-02-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I'm interested in finding a workaround for this issue in the next 24 hours. I can also help contribute a test case. I'll investigate further. -- nosy: +jaraco ___ Python tracker rep

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-02-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Attached is a patch against the py3k branch that fixes the issue by changing the mode used to open the target script. It includes a unittest that elicits the issue and validates the fix. The patch should also probably be applied

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I personally make heavy use of the command line and continue to install python to %ProgramFiles%. I find the space in the pathname to be a non-issue. After %programfiles%\Python26 and %programfiles%\Python26\Scripts are added to the path

[issue1284316] Win32: Security problem with default installation directory

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Martin: Would it be sufficient to copy the ACLs from %programfiles%, or would it be better to hard-code the permissions from %programfiles% from a known standard configuration? Is it known if the ACLs on %programfiles% in WinXP differ from

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: On Python 2.6 and Python 2.7a, calling ntpath.realpath(os.devnull) returns 'nul' (two backslashes followed by nul), which is not a valid filename. This appears to have been fixed in Python 3.1, as on 3.1.1, ntpath.realpath(os.devnull

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This bug does not exhibit in Python 3.1.1. -- nosy: +jaraco versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7909

[issue8043] ntpath.realpath munges os.devnull

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Indeed, this is a duplicate. My search failed probably because ntpath.abspath is ntpath.realpath. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-03-02 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Attaching a test against trunk which elicits the error reported in this bug. -- keywords: +patch Added file: http://bugs.python.org/file16419/issue7909-test.patch ___ Python tracker rep

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Documentation for Python 2.6.5 and 3.1.2 both describe using the smtplib as so: s = smtplib.SMTP() s.sendmail(me, [you], msg.as_string()) s.quit() However, this sample usage is incorrect and doesn't work in practice, because

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: It appears in r71882, the change was made in deference to issue4239. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8245

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: According to issue4239#msg75355, the connect call is not required, but I believe he is mistaken. The connect call is required unless the s object is constructed with host/port parameters, in which case the call to connect (without any

[issue8245] email examples don't actually work (SMTP.connect is not called)

2010-03-27 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Matt, I hope you don't mind, but I added you as nosy on this issue as it relates to a change you suggested. -- nosy: +matt ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue6488] ElementTree documentation refers to path with no explanation, and inconsistently

2010-03-28 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I agree. I found the documentation very difficult to understand. The term top-level can be confusing. Consider instead something like search the entire tree. A few other comments about the documentation of findtext: findtext(path

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-04 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This latest patch (26) only merges the latest changes from the repo. -- Added file: http://bugs.python.org/file16761/windows symlink draft 26.patch ___ Python tracker rep...@bugs.python.org http

[issue7964] -m pdb SyntaxError for \r\n formatted py files

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Is there a reason this didn't get reviewed for the 3.1.2 release? What steps need to be taken to see that it makes it into a 3.1.3 release? -- ___ Python tracker rep...@bugs.python.org http

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: Using Windows 7 32-bit, and /branches/p...@79802. When I run the test_tarfile from the regrtest script, often the first run will succeed and subsequent runs will fail (though sometimes a first run will fail and rarely a subsequent run

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: My initial troubleshooting indicated to me that the intermittent test_tarfile problem exists independent of the symlink patch, so it was not relevant to this issue. I've tried to do some more thorough troubleshooting, and this continues

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: To be clear, all of my tests were without any patches applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8317

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've tried reproducing this on a clean system and have thusfar been unable to. I'll try to eliminate variables on the failing system and perhaps this will elicit some information about what's causing the intermittent failures

[issue8317] test_tarfile fails intermittently on Windows

2010-04-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: After grabbing a clean checkout, I'm unable to reproduce this problem where I was seeing it earlier, so I suspect the problem is in fact related to one or more lingering patches that were applied to the source. Please close this ticket

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: While trying to reproduce the transient test_tarfile errors, I found two more tests that appear to be failing when symlinks cannot be created, now skipped by patch 27. -- Added file: http://bugs.python.org/file16809/windows symlink

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: While trying to work out a failing test_platform.PlatformTest.test_architecture_via_symlink, I found a more fundamental problem. In the build environment, python.exe depends on pythonXX.dll being in the same directory as sys.executable

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This attached patch against the py3k branch adds a test that reproduces the described behavior. -- keywords: +patch Added file: http://bugs.python.org/file16811/reproduction as test.patch

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've been fighting a failing test in test_platform (when test.support.can_symlink() is True). Turns out the problem is caused by the fact that the Python DLL cannot be resolved when the executable isn't in the same directory (which

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-07 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16196/windows symlink draft 25.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-07 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16761/windows symlink draft 26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8342 ___ ___ Python-bugs-list

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-04-08 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This patch includes a routine that adds the directory of the python executable to the path before attempting to run a symlinked executable (in test_platform). -- Added file: http://bugs.python.org/file16821/windows symlink draft 28

  1   2   3   4   5   6   7   8   9   >