[issue16812] os.symlink can return wrong FileExistsError/WindowsError information

2013-04-13 Thread Sijin Joseph
Sijin Joseph added the comment: This looks to work correctly in default branch, os.link('non-existent-name', 'new-name') Traceback (most recent call last): File stdin, line 1, in module FileNotFoundError: [WinError 2] The system cannot find the file specified: 'non-existent-name

[issue16812] os.symlink can return wrong FileExistsError/WindowsError information

2013-04-13 Thread Sijin Joseph
Sijin Joseph added the comment: Behavior for symlink is as follows os.symlink('non-existent-name', 'existing-name') Traceback (most recent call last): File stdin, line 1, in module PermissionError: [WinError 5] Access is denied: 'non-existent-name' The error message is misleading, but can

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-13 Thread Sijin Joseph
Sijin Joseph added the comment: This is the same as issue10634 Problem is with the Windows CRT implementation of localtime which does not seem to be using updated timezone information. Can this become an issue with technologies like vMotion which allow Live Migration of virtual servers

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-13 Thread Sijin Joseph
Sijin Joseph added the comment: Some more links discussing similar issues http://www.sourceware.org/bugzilla/show_bug.cgi?id=154 - tzset not called frequently enough by localtime() and friends http://stackoverflow.com/questions/12150651/library-code-for-dynamically-reloading-the-usr-share

[issue16273] f.tell() returning negative number on Windows build

2013-04-13 Thread Sijin Joseph
Sijin Joseph added the comment: Attaching a patch with a doc update to the tutorial, specifying that 1. The return value from f.tell is an opaque number for text files. 2. When seeking using text files the offset value needs to come from f.tell(). http://docs.python.org/3.4/library/io.html

[issue17618] base85 encoding

2013-04-07 Thread Sijin Joseph
Sijin Joseph added the comment: Is anyone working on this? I'd like to include this in a CPython sprint @MIT on 4/13. -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17618

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-16 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: -sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12018 ___ ___ Python-bugs-list

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-16 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: -sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12045 ___ ___ Python-bugs-list

[issue11882] test_imaplib failed on x86 ubuntu

2011-05-16 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: -sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11882 ___ ___ Python-bugs-list

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-16 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Is this related to some other issue? The fix seems trivial, however I am curious as to how you stumbled upon this? Is there more to this issue than just performance? -- ___ Python tracker rep

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-16 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Attaching patch. Removed the second call to os.popen and used the dump variable that was read earlier as the argument to re.search. -- keywords: +patch nosy: +sijinjoseph Added file: http://bugs.python.org/file22010/12045.patch

[issue12018] No tests for ntpath.samefile, ntpath.sameopenfile

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12018 ___ ___ Python-bugs-list

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12034 ___ ___ Python-bugs-list

[issue11882] test_imaplib failed on x86 ubuntu

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11882 ___ ___ Python-bugs-list

[issue12045] external shell command executed twice in ctypes.util._get_soname

2011-05-11 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12045 ___ ___ Python-bugs-list

[issue8808] imaplib should support SSL contexts

2011-05-02 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Thanks Antoine. I've attached an updated patch. - the keyfile / certfile pair and the context parameter should be mutually exclusive (see e.g. the POP3_SSL constructor in Lib/poplib.py) [Sijin] - Yes, Thanks, I don't know why I didn't

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-04-28 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11620 ___ ___ Python-bugs-list

[issue11927] SMTP_SSL doesn't use port 465 by default

2011-04-27 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Should we add a unit test for this as well? -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11927

[issue8808] imaplib should support SSL contexts

2011-04-27 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: I am attaching a patch for the default branch that adds a ssl_context parameter to IMAP4_SSL. Also added a couple of tests to test_imaplib to test the existing ctor with certfile and file and also the new one that accepts an SSLContext

[issue11926] help(keywords) returns incomplete list of keywords

2011-04-26 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Should True, False and None be keywords? Technically True and False are objects of type bool, in fact the only objects of that type allowed. And None is a specially designated object as well. P.S: Can anyone point me to where the help

[issue11926] help(keywords) returns incomplete list of keywords

2011-04-26 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: @Ezio - help(True), help(False) and help(None) all return the correct documentation for me using latest trunk. I think the quotes around True, False and None might be throwing things off in your case

[issue9390] Error in sys.excepthook on windows when redirecting output of the script

2011-04-26 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: @Amaury - That sounds exactly like the issue described. To summarize the error is caused because in some versions of windows there is a bug that causes the handles to stdin/stdout to not be inherited correctly for apps run from the console

[issue10616] Change PyObject_AsCharBuffer() error message

2011-04-25 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Looking at object.h the buffer interface is defined as /* buffer interface */ typedef struct bufferinfo { void *buf; PyObject *obj;/* owned reference */ Py_ssize_t len; Py_ssize_t itemsize; /* This is Py_ssize_t so

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-25 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Patch attached. -- keywords: +patch nosy: +sijinjoseph Added file: http://bugs.python.org/file21774/11901.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11901

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-25 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: Removed file: http://bugs.python.org/file21774/11901.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11901

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-25 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Fixed minor typo. -- Added file: http://bugs.python.org/file21775/11901.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11901

[issue8808] imaplib should support SSL contexts

2011-04-25 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Is anyone working on this? -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8808

[issue9390] Error in sys.excepthook on windows when redirecting output of the script

2011-04-25 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: I was not able to reproduce this on Python 2.7 x64 or Python 3.2 x64 on Win 7 SP1. I am curious what the output is if you just run test.py, do you still get an error? -- nosy: +sijinjoseph

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-04-25 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035 ___ ___ Python-bugs-list

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-04-25 Thread Sijin Joseph
Changes by Sijin Joseph sijinjos...@gmail.com: -- nosy: +sijinjoseph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11893 ___ ___ Python-bugs-list

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-04-25 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: I'd like to add the win_ismount function mentioned by Tim. Is anyone else working on this presently? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035

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

2011-04-18 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: From reading http://support.microsoft.com/kb/899147 it does look like the .dll extension needs to have the Read Execute permission in order to have code from the .dll be executed. It's odd that there isn't documentation that's easily

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-01 Thread Sijin Joseph
Sijin Joseph sijinjos...@gmail.com added the comment: Looking at the code in httplib it seems that response.will_close is set under the following circumstances, 1. HTTP version is 0.9 2. HTTP response header connection is set to close 3. Non-chunked content with a length of zero This suggests