[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2011-11-27 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue9116> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5619] Pass MS CRT debug flags into subprocesses

2011-11-27 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue5619> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-11-27 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue11732> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11732] Skip decorator for tests requiring manual intervention on Windows

2011-11-27 Thread Catalin Iacob
Catalin Iacob added the comment: To avoid messing with system registry settings it sounds like WerRegisterRuntimeExceptionModule could also work, at least on Windows7 http://msdn.microsoft.com/en-us/library/windows/desktop1/dd408167%28v=VS.85%29.aspx There could be a dll which would do

[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-24 Thread Catalin Iacob
Catalin Iacob added the comment: I looked at providing a patch for this issue as an introductory step (this would be my first patch). But when following the code I discovered that the case that this issue is trying to optimize is never executed in current CPython. In that case, there isn&#

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-25 Thread Catalin Iacob
Catalin Iacob added the comment: Attached patch + test case. Also tested cStringIO in 2.7 and io.StringIO in 3.2 and 3.3 tip and they aren't affected. -- keywords: +patch nosy: +catalin.iacob Added file: http://bugs.python.org/file22116/12161.

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-05-28 Thread Catalin Iacob
Catalin Iacob added the comment: Attached v1 of patch. Please review. There are some tests using GMail in test_smtpnet.py. They still pass with the patch. I also did manual tests with GMail with both SMTP + starttls and SMTP_SSL. The idea of the patch is that SMTP.getreply is already doing

[issue4470] smtplib SMTP_SSL not working.

2011-06-17 Thread Catalin Iacob
Catalin Iacob added the comment: Most of the problems in this issue were solved already so it could almost be closed: * patch 1 was addressed in #11927 * patch 2 was addressed in #4066 * patches 3 and 4 were addressed in #11893 Torsten's problem was addressed by bcf04ced5ef1. > I&#x

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2011-06-21 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue12378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2011-06-21 Thread Catalin Iacob
Catalin Iacob added the comment: Just a note after running Joe's example. smtplib is affected by this issue in 3.x, but the example produces different results in 3.x: smtpd doesn't keep the connection open due to UnicodeDecodeError when the data from the ssl handshake cannot be

[issue12178] csv writer doesn't escape escapechar

2011-07-06 Thread Catalin Iacob
Catalin Iacob added the comment: I looked at this and tried to provide a patch + tests. Please review. The bug is that a writer can use writerow on some input data but if a reader with the same dialect reads them back they are different from the input ones. This happens when the input data

[issue12178] csv writer doesn't escape escapechar

2011-07-06 Thread Catalin Iacob
Changes by Catalin Iacob : -- keywords: +patch Added file: http://bugs.python.org/file22596/0eb420ce6567.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-17 Thread Catalin Iacob
New submission from Catalin Iacob : I recently tried to answer the question: "When moving a file to a destination that is an already existing file, is the destination overwritten?" >From the current docs I understood that if src and dst are on the same >filesystem then os.re

[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-17 Thread Catalin Iacob
Catalin Iacob added the comment: Attached patch which clarifies that the copy fallback is used whenever os.rename fails not just for the different filesystems case. -- keywords: +patch Added file: http://bugs.python.org/file22679/clarify-shutil.move-docs.patch

[issue7484] smtplib: verify breaks with Postfix servers

2011-07-17 Thread Catalin Iacob
Catalin Iacob added the comment: I looked at the Felipe's patch and hopefully made some improvements. Unlike Felipe's patch I didn't change the reply of the SMTP server in the tests but instead use what VRFY and EXPN actually send to index the users and lists dictionaries.

[issue7484] smtplib: verify breaks with Postfix servers

2011-07-17 Thread Catalin Iacob
Changes by Catalin Iacob : Added file: http://bugs.python.org/file22680/88b5c7ab7a03.diff ___ Python tracker <http://bugs.python.org/issue7484> ___ ___ Python-bugs-list m

[issue12577] Misleading shutil.move docs regarding when os.rename is used

2011-07-18 Thread Catalin Iacob
Catalin Iacob added the comment: Senthil's proposal in msg140543 has +1 from me. -- ___ Python tracker <http://bugs.python.org/issue12577> ___ ___ Pytho

[issue12611] 2to3 crashes when converting doctest using reduce()

2011-08-14 Thread Catalin Iacob
Catalin Iacob added the comment: I looked at this and understood why it's happening. I don't know exactly how to fix it though, so here's what I found out. When a doctest appears in a docstring at line n in a file, RefactorTool.parse_block will return a tree corresponding t

[issue7484] smtplib: verify breaks with Postfix servers

2011-04-12 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin ___ Python tracker <http://bugs.python.org/issue7484> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3244] multipart/form-data encoding

2011-04-12 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12031] subprocess module does not accept file twice

2011-05-08 Thread Catalin Iacob
Catalin Iacob added the comment: I can reproduce this on 3.2 final but not on the tip of the 3.2 branch so it seems to have been fixed. -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue12

[issue6210] Exception Chaining missing method for suppressing context

2012-01-23 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue6210> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10042] total_ordering

2012-01-25 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue10042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13905] Built-in Types Comparisons should mention rich comparison methods

2012-01-29 Thread Catalin Iacob
New submission from Catalin Iacob : In 2.7 the Comparisons section of stdtypes.rst only talks about __cmp__ and never mentions the rich comparison methods: "Instances of a class normally compare as non-equal unless the class defines the __cmp__() method. Refer to Basic customization

[issue13905] Built-in Types Comparisons should mention rich comparison methods

2012-01-29 Thread Catalin Iacob
Catalin Iacob added the comment: Here's my attempt at a patch. It mostly takes the text from the default branch and adds references to __cmp__. -- keywords: +patch Added file: http://bugs.python.org/file24361/issue13905v1.patch ___ Python tr

[issue8739] Update to smtpd.py to RFC 5321

2012-02-13 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue8739> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-16 Thread Catalin Iacob
Catalin Iacob added the comment: Attached alternative patch with a different approach: on input, strings are encoded as bytes and the rest of the code proceeds as before. All existing tests for bytes now test for strings as well and there is a new test for strings with non ASCII characters

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-17 Thread Catalin Iacob
Catalin Iacob added the comment: My current patch allows mixing of bytes and str for the data to be decoded and the altchars or map01 parameter. Given David's observation in msg153505 I'll update the patch to require that both the data and altchars/map01 have the

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-19 Thread Catalin Iacob
Catalin Iacob added the comment: Attached v2 of patch where mixing str and binary data for altchars or map01 raises TypeError. I also added a note for each of the changed functions that it also accepts strings (but didn't also update the docstrings). When writing the docs, th

[issue1294959] Problems with /usr/lib64 builds.

2013-08-01 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue1294959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15631] Python 3.3/3.4 installation issue on OpenSUSE lib/lib64 folders

2013-08-01 Thread Catalin Iacob
Catalin Iacob added the comment: In reply to msg168184, LIBDIR is set to include lib64 instead of lib because openSUSE explicitly does it that way in their multilib implementation. More specifically, the CONFIG_SITE environment variable is set to /usr/share/site/x86_64-unknown-linux-gnu which

[issue8745] zipimport is a bit slow

2012-06-04 Thread Catalin Iacob
Catalin Iacob added the comment: I updated Goplat's patch to the default branch. It now needs to read 4 dummy bytes instead of 6 since an extra PyMarshal_ReadShortFromFile was added to the default branch in the mean time. I added an explicit dummy buffer instead of reading the dummy

[issue15014] smtplib: add support for arbitrary auth methods

2012-06-08 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue15014> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2012-07-07 Thread Catalin Iacob
Catalin Iacob added the comment: So, how to move this further? In #13425 Petri proposes 4 alternatives, copying them here: 1) Document the function to make it officially part of the public API 2) Rename and move the function to http.server 3) Leave it undocumented and just fix it 4) Deprecate

[issue12178] csv writer doesn't escape escapechar

2012-07-07 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue12178> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8264] hasattr doesn't show private (double underscore) attributes exist

2012-07-07 Thread Catalin Iacob
Catalin Iacob added the comment: Attached a patch that adds a note for getattr and setattr. hasattr is documented in terms of getattr so I would say it's not needed there. I don't know if the interaction with private attributes is confusing enough that it's worth increasing t

[issue12271] panel.h is not found even if it's installed on various flavours of SUSE

2012-07-07 Thread Catalin Iacob
Catalin Iacob added the comment: The same happens on OpenSUSE 12.1 so Python can't be fully built there which is a bit of a shame. OpenSUSE uses this patch for their packages, but that would break other distributions so it's not a good solution: -#include +#include Here'

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-07-18 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue8713> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-09-21 Thread Catalin Iacob
Catalin Iacob added the comment: Can't reproduce this on openSUSE Factory (development version, what will become 12.3). I tried with openSUSE's Python 2 which is 2.7.3 and with self compiled up to date 2.7 branch from hg. For each of these I bumped the number of files to 3000 inst

[issue8745] zipimport is a bit slow

2012-10-28 Thread Catalin Iacob
Changes by Catalin Iacob : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue8745> ___ ___ Python-bugs-list mailing list Unsub

[issue8745] zipimport is a bit slow

2012-11-25 Thread Catalin Iacob
Catalin Iacob added the comment: I tried Serhiy's suggestion in msg174934, see attached attempt-fseek-seek_cur.patch updated to current default. It makes no difference relative to the default branch for my test stdlib.zip, dummy reads still work better on Windows. This makes sense i

[issue8745] zipimport is a bit slow

2012-11-25 Thread Catalin Iacob
Changes by Catalin Iacob : Added file: http://bugs.python.org/file28117/zipimport-speedup-v3.patch ___ Python tracker <http://bugs.python.org/issue8745> ___ ___ Python-bug

[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-25 Thread Catalin Iacob
Catalin Iacob added the comment: Václav, are you sure about the official python27.dll being linked against msvcrt.dll? Maybe this is your own python27.dll compiled with MinGW? I see the opposite: for both C:\windows\system32\python27.dll (64 bit) and c:\windows\SysWOW64\python27.dll (32 bit

[issue5054] CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed

2012-11-26 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue5054> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8745] zipimport is a bit slow

2013-01-02 Thread Catalin Iacob
Catalin Iacob added the comment: Yes Serhiy, I was planning to, lack of time followed by (just finished) vacation lead to a stall. Thanks for following up on this. I should soon, probably this weekend, have an updated version addressing your comments

[issue8745] zipimport is a bit slow

2013-01-06 Thread Catalin Iacob
Catalin Iacob added the comment: Attached v4 of patch with error checking for getc and some more comments. A real world example of the speedup is Calibre (http://calibre-ebook.com/) which on Windows comes with its own code, its dependecies and Python's stdlib all bundled in a 40MB zip.

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

2013-01-20 Thread Catalin Iacob
Catalin Iacob added the comment: Could it be that Raymond's file had Unix line endings? I tried to reproduce this, picked a file on my disk and indeed I got a negative number, but that file has Unix line endings. This is documented at http://docs.python.org/2/library/stdtypes.html#file

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-01-31 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin.iacob ___ Python tracker <http://bugs.python.org/issue6972> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Catalin Iacob
Catalin Iacob added the comment: There are 2 issues with the documentation changes introduced by these patches. 1. for 2.7, the note added by the doc patch is in the wrong place, at the setpassword method instead of the extract or extractall method 2. for 3.x the "Never extract archives

[issue459007] Document sys.path on Windows

2010-07-02 Thread Catalin Iacob
Changes by Catalin Iacob : -- nosy: +catalin ___ Python tracker <http://bugs.python.org/issue459007> ___ ___ Python-bugs-list mailing list Unsubscribe: