[issue12397] re match object methods have no docstrings
SilentGhost added the comment: 2.6 is in security-only mode, if I'm not mistaken. -- nosy: +SilentGhost versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue12397> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12516] imghdr.what should take one argument
SilentGhost added the comment: This seems like a change suitable for 3.3 -- nosy: +SilentGhost versions: +Python 3.3 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue12516> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12518] In string.Template it's impossible to transform delimiter in the derived class
SilentGhost added the comment: 3.1 is in security fixes-only mode -- nosy: +SilentGhost versions: +Python 3.2 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue12518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10924] Adding salt and Modular Crypt Format to crypt library.
SilentGhost added the comment: Here is the patch fixing pep-8 compatibility and test. It is against the latest commit. -- nosy: +SilentGhost status: closed -> open Added file: http://bugs.python.org/file20840/crypt.py.diff ___ Python tracker <http://bugs.python.org/issue10924> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11289] smtplib context manager
SilentGhost added the comment: you didn't attach anything, Giampaolo. -- components: +Library (Lib) nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11289> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11289] smtplib context manager
SilentGhost added the comment: is print really necessary in the test? Also, I think it would be better to unpack the tuple in test, rather then index it. -- ___ Python tracker <http://bugs.python.org/issue11289> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2650] re.escape should not escape underscore
Changes by SilentGhost : Added file: http://bugs.python.org/file20860/test_re.diff ___ Python tracker <http://bugs.python.org/issue2650> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2650] re.escape should not escape underscore
Changes by SilentGhost : Removed file: http://bugs.python.org/file20389/test_re.diff ___ Python tracker <http://bugs.python.org/issue2650> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11304] Input/output tutorial - PI is rounded not truncated
SilentGhost added the comment: Sandro, you didn't attach anything. -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11304> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11304] Input/output tutorial - PI is rounded not truncated
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg129230 ___ Python tracker <http://bugs.python.org/issue11304> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11304] Input/output tutorial - PI is rounded not truncated
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker <http://bugs.python.org/issue11304> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11308] extraneous link getit in the main website sidebar
New submission from SilentGhost : There is an extraneous entry in sidebar of the www.python.org It has some two chinese characters and leads to download page. -- messages: 129264 nosy: SilentGhost priority: normal severity: normal status: open title: extraneous link getit in the main website sidebar ___ Python tracker <http://bugs.python.org/issue11308> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11308] extraneous link getit in the main website sidebar
SilentGhost added the comment: Sorry, I realise that this is my mistake. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue11308> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11331] unused line in the logging-cookbook example
Changes by SilentGhost : -- assignee: docs@python -> vinay.sajip nosy: +vinay.sajip ___ Python tracker <http://bugs.python.org/issue11331> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11341] test_os fails
SilentGhost added the comment: Which revision are you trying with? I cannot reproduce this with r88656 -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11341> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11354] argparse: nargs could accept range of options count
Changes by SilentGhost : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue11354> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: Here's the single-file patch against the revision. -- Added file: http://bugs.python.org/file21016/issue5800.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
Changes by SilentGhost : Removed file: http://bugs.python.org/file19681/test_wsgiref.py.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
Changes by SilentGhost : Removed file: http://bugs.python.org/file19797/headers.py.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
Changes by SilentGhost : Removed file: http://bugs.python.org/file19804/wsgiref.rst.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10924] Adding salt and Modular Crypt Format to crypt library.
SilentGhost added the comment: Above-mentioned fix was commited in rev 62994662676a -- ___ Python tracker <http://bugs.python.org/issue10924> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10924] Adding salt and Modular Crypt Format to crypt library.
SilentGhost added the comment: Above-mentioned fix was committed in 0586c699d467 and 62994662676a -- ___ Python tracker <http://bugs.python.org/issue10924> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10924] Adding salt and Modular Crypt Format to crypt library.
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg130171 ___ Python tracker <http://bugs.python.org/issue10924> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5091] Segfault in PyObject_Malloc(), address out of bounds
Changes by SilentGhost : -- resolution: -> invalid stage: test needed -> committed/rejected ___ Python tracker <http://bugs.python.org/issue5091> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11433] syntax error at "while" statement in IDLE/python shell
SilentGhost added the comment: No this is not a bug. You're trying to execute two statements in one go in IDLE, which it doesn't support. You need to run your while loop as a single statement, then your print('Done'). -- nosy: +SilentGhost resolution: -> invalid status: open -> pending ___ Python tracker <http://bugs.python.org/issue11433> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
New submission from SilentGhost : With the conversion to mercurial source links in documentation should now point to hg.python.org Here is the patch. -- assignee: docs@python components: Documentation files: docs_sourcename.diff keywords: patch messages: 130268 nosy: SilentGhost, docs@python priority: normal severity: normal stage: patch review status: open title: Links to source code should now point to hg repo Added file: http://bugs.python.org/file21033/docs_sourcename.diff ___ Python tracker <http://bugs.python.org/issue11435> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
Changes by SilentGhost : -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11072> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
SilentGhost added the comment: > I've put the redirection in place. So, it's not possible to access http://svn.python.org/view/python/branches/py3k/ at all now? -- ___ Python tracker <http://bugs.python.org/issue11435> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
SilentGhost added the comment: Here is a patch incorporating some of the changes proposed by Eric: * drop callback, return generator of (filename, fact-dict) > Aren't you modifying the state on the server (via "OPTS MLST"), and then if > you make a subsequent call without specifying "facts" you'll be using the > value of "facts" from the previous call to MLSD? I don't think that's > desirable, but short of calling "OPTS MLST" every time (possibly with the > results of an initial FEAT) there's no way around it. This is the behaviour according to RFC. MLSD will return the set of facts, until a new OPTS MLST issued. > I don't like the "isdigit" test. Shouldn't this decision be left to the > caller? What if a fact happens to look like an integer some of the time, but > not always? Maybe "unique" is a hex string. I don't think you'd want it > converted to an int on the occasions where it was all decimal digits, but a > string otherwise. Also look at your "modify" facts. Those are not very useful > as ints. Drop the isdigit test: some value such as timestamps ('modify') might be "digits" for one files and would remain strings for the others. > If a fact=value string does not have an '=', you silently ignore it. I'd > rather this raise an exception and not pass silently. It's not compliant. You > should have a test for this. I don't think it should raise an error, i'd rather just pass it to the caller. There is a wide variety of possible non-compliant responses. For example there is a rigid format for time stamps, do we have to check for that? One thing, that my patch doesn't do at the moment, but I think would be useful is to normalise all fact names to lower case. What do you think? I hope that MLSD_DATA now covers wider range of cases (it's from http://tools.ietf.org/html/rfc3659#section-7.7.4). Note that server MUST NOT return facts that weren't requested. What would be the return values check here? -- Added file: http://bugs.python.org/file21047/issue11072.diff ___ Python tracker <http://bugs.python.org/issue11072> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11433] syntax error at "while" statement in IDLE/python shell
Changes by SilentGhost : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue11433> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11440] fix_callable should be dropped from lib2to3 / changed
New submission from SilentGhost : Since the callable return in 3.2, should the fix_callable be dropped from lib2to3 or should it be adjusted to make distinction between 3.1 and 3.2 situation? I'm not sure if latter is possible. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 130340 nosy: SilentGhost, pitrou priority: normal severity: normal status: open title: fix_callable should be dropped from lib2to3 / changed versions: Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11440> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11450] Py_GetBuildInfo() truncates when there are many hg tags
Changes by SilentGhost : -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11450> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
Changes by SilentGhost : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue11435> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
SilentGhost added the comment: facts_found.strip(" ").rstrip(";") strip is redundant since facts_found is a first element of partitioning by the same string. rstrip is wrong since you're potentially deleting more than one character (there is no test for that). In your test you're checking whether returned facts contain every requested fact, this is not guaranteed by RFC. Also, not sure what the last for statement is supposed to mean. Is it a typo? -- ___ Python tracker <http://bugs.python.org/issue11072> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11435] Links to source code should now point to hg repo
SilentGhost added the comment: This issue is not about the redirects. It is about links in documentation. The redirect is great for the links in the wild, the online documentation, however, could and should use proper links without any redirects. Georg, or whoever is maintainer of Doc/tools/sphinxext/pyspecific.py, could you please have a look at the patch. -- resolution: fixed -> stage: committed/rejected -> patch review status: closed -> open ___ Python tracker <http://bugs.python.org/issue11435> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11426] CSV examples can't close their files
SilentGhost added the comment: Related issue #10461 -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11426> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: Éric, I'm not sure about the first atexit.rst hunk. I thought the purpose of that code was to except IOError when no file is found. I'm not entirely sure why in the simplest case infile.read() would raise IOError. I'd think that eli's patch (file19667) would suit better. -- status: closed -> pending ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2650] re.escape should not escape underscore
SilentGhost added the comment: Here is the latest patch for test_re incorporating review suggestions by Ezio and some improvements along the way. -- Added file: http://bugs.python.org/file21096/test_re.diff ___ Python tracker <http://bugs.python.org/issue2650> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11479] Add discussion of trailing slash in raw string to tutorial
Changes by SilentGhost : Removed file: http://bugs.python.org/file21102/unnamed ___ Python tracker <http://bugs.python.org/issue11479> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: > Looks good to me. Would you mind committing it then? -- ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2650] re.escape should not escape underscore
SilentGhost added the comment: I think these are two different questions: 1. What to escape 2. What to do about poor performance of the re.escape when re.sub is used In my opinion, there isn't any justifiable reason to escape non-meta characters: it doesn't affect matching; escaped strings are typically just re-used in regex. I would favour simpler and cleaner code with re.sub. I don't think that re.quote could be a performance bottleneck in any application. I did some profiling with python3.2 and it seems that the reason for this poor performance is many abstraction layers when using re.sub. However, we need to bear in mind that we're only talking about 40 usec difference for a 100-char string (string.printable): I'd think that strings being escaped are typically shorter. As a compromise, I tested this code: _mp = {ord(i): '\\' + i for i in '][.^$*+?{}\\|()'} def escape(pattern): if isinstance(pattern, str): return pattern.translate(_mp) return sub(br'([][.^$*+?{}\\|()])', br'\\\1', pattern) which is fast (faster than existing code) for str and slow for bytes patterns. I don't particularly like it, because of the difference between str and bytes handling, but I do think that it will be much easier to "fix" once/when/if re module is improved. -- keywords: -patch ___ Python tracker <http://bugs.python.org/issue2650> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.
SilentGhost added the comment: > I left a comment on the review. You need to publish your comment if you want others to see it. -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue10775> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11289] smtplib context manager
SilentGhost added the comment: A couple more minor issues: 1. Double space required at the beginning of the "Here is a ..." sentence in Doc/library/smtplib.rst 2. in __exit__ method: "msg" is the variable name assigned from docmd('QUIT') but "errmsg" is used when raising exception 3. in test I'd rather prefer seeing stmp.noop() unpacked: code, _ = smtp.noop() 4. extra line #118 in test_smtplib 5. is there any way to test SMTPResponseException? -- ___ Python tracker <http://bugs.python.org/issue11289> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4972] context managerment support in imaplib, smtplib, ftplib
SilentGhost added the comment: The work on smtplib context manager continues in #11289. I'm putting it as a dependency here. -- dependencies: +smtplib context manager nosy: +SilentGhost versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue4972> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11562] += on list inside a tuple raises TypeError but succeeds anyway
Changes by SilentGhost : -- title: += on list inside a tuple raises TypeError but succeds anyway -> += on list inside a tuple raises TypeError but succeeds anyway ___ Python tracker <http://bugs.python.org/issue11562> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11576] timedelta subtraction glitch on big timedelta values
SilentGhost added the comment: To emphasize that it's only days parameter that is overflowing here is another case: >>> timedelta(9, 1, 1) - timedelta(9, 0, 0) datetime.timedelta(0, 1, 1) >>> timedelta(9, 1, 1) - timedelta(9, 1, 0) Traceback (most recent call last): File "", line 1, in timedelta(9, 1, 1) - timedelta(9, 1, 0) OverflowError: days=-10; must have magnitude <= 9 -- nosy: +SilentGhost versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue11576> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11576] timedelta subtraction glitch on big timedelta values
SilentGhost added the comment: What happens is the second value is negated (__neg__) which causes it to become less than timedelta.min and that is causing OverflowError. -- components: +Library (Lib) nosy: +belopolsky ___ Python tracker <http://bugs.python.org/issue11576> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11577] testcase for exception binhex.Error
SilentGhost added the comment: Arkady, I don't see why you need to catch exception. Just wrap the _writeinfo call into a try-finally block, and close ofp in the finally. -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11577> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11583] os.path.isdir() is slow on windows
Changes by SilentGhost : Removed file: http://bugs.python.org/file21266/unnamed ___ Python tracker <http://bugs.python.org/issue11583> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11383] compilation seg faults on insanely large expressions
SilentGhost added the comment: 100k is, apparently, not enough on my system (linux2). test_crashers now fails. Are any system-specific details needed? -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11383> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11383] compilation seg faults on insanely large expressions
SilentGhost added the comment: 10**6 on the other hand seem to do the job -- ___ Python tracker <http://bugs.python.org/issue11383> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11588] Add "necessarily inclusive" groups to argparse
Changes by SilentGhost : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue11588> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant
SilentGhost added the comment: Please, don't use tabs to indent your code. Also check the trailing spaces and tabs. -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue11060> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11622] Documentation
SilentGhost added the comment: Did you try http://docs.python.org/tutorial/ ? -- nosy: +SilentGhost versions: -Python 2.7, Python 3.4 ___ Python tracker <http://bugs.python.org/issue11622> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11752] Gungor Basa wants to stay in touch on LinkedIn
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg132870 ___ Python tracker <http://bugs.python.org/issue11752> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11752] Gungor Basa wants to stay in touch on LinkedIn
Changes by SilentGhost : Removed file: http://bugs.python.org/file21519/unnamed ___ Python tracker <http://bugs.python.org/issue11752> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
SilentGhost added the comment: Has something prevent you from implementing suggestion provided in my review? -- ___ Python tracker <http://bugs.python.org/issue11072> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11072] Add MLSD command support to ftplib
SilentGhost added the comment: a review on rietveld http://bugs.python.org/review/11072/show which as I confirmed with you specifically at #python-dev you received a notification of. -- ___ Python tracker <http://bugs.python.org/issue11072> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: Here is the patch for Docs/library/cmd.rst -- nosy: +SilentGhost Added file: http://bugs.python.org/file19663/cmd.rst.diff ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: Here is the patch for Doc/library/difflib.rst -- Added file: http://bugs.python.org/file19664/difflib.rst.diff ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: Patch for Doc/library/collections.rst -- Added file: http://bugs.python.org/file19665/collections.rst.diff ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: patch for Doc/library/logging.rst Also, note the the change of the mode from `'r'` to `'rb'`. `data_to_send` is further send through socket and therefore requires to be bytes. I expressed my opinion in irc, but I can repeat here that I think only the most trivial code such as in Doc/library/pipes.rst isn't worth converting. -- Added file: http://bugs.python.org/file19671/logging.rst.diff ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: patch for Doc/library/logging.rst Also, note the the change of the mode from `'r'` to `'rb'`. `data_to_send` is further send through socket and therefore requires to be bytes. I expressed my opinion in irc, but I can repeat here that I think only the most trivial code such as in Doc/library/pipes.rst isn't worth converting. -- Added file: http://bugs.python.org/file19672/logging.rst.diff ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
Changes by SilentGhost : Removed file: http://bugs.python.org/file19672/logging.rst.diff ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: Correct and update patch + update test case -- keywords: +patch nosy: +SilentGhost Added file: http://bugs.python.org/file19680/headers.py.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: here is the updated test case -- Added file: http://bugs.python.org/file19681/test_wsgiref.py.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10461] Use with statement throughout the docs
SilentGhost added the comment: None of the changes are about file reading, they only about using with statement throughout. May be nofix then? -- ___ Python tracker <http://bugs.python.org/issue10461> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9746] All sequence types support .index and .count
SilentGhost added the comment: Here is the patch for the table in Doc/library/stdtypes.rst .count on range by some reason returns a boolean. Should it not be an int? -- keywords: +patch nosy: +SilentGhost Added file: http://bugs.python.org/file19715/stdtypes.rst.diff ___ Python tracker <http://bugs.python.org/issue9746> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10474] range.count returns boolean
New submission from SilentGhost : >>> a = range(5) >>> a.count(5) False >>> a.count(2) True I believe this is related to the issue9213 that introduced count and index method on the range object. According to the documentation accompanying that fix it should return an integer. -- components: Interpreter Core messages: 121799 nosy: SilentGhost priority: normal severity: normal status: open title: range.count returns boolean type: behavior versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue10474> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10474] range.count returns boolean
SilentGhost added the comment: Benjamin, the docs say that it's possible to have count more than 1, depending on comparison rules. If that's the case, I'm afraid your solution might need to be adjusted. -- ___ Python tracker <http://bugs.python.org/issue10474> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: Do I have to resubmit the patch or can you use the existing one? -- ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6878] changed return type from tkinter.Canvas.coords
SilentGhost added the comment: In my original post, I mentioned that it might be just a documentation issue. Could someone confirm that having map object returned is actually causing any problems? -- ___ Python tracker <http://bugs.python.org/issue6878> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
Changes by SilentGhost : Removed file: http://bugs.python.org/file19680/headers.py.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: Re-submitting the patch for Lib/wsgiref/headers.py w/o the isinstance change -- keywords: +patch Added file: http://bugs.python.org/file19797/headers.py.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: What is the reason for this? Why do we need it? -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5800] make wsgiref.headers.Headers accept empty constructor
SilentGhost added the comment: Here is the correction for the docs. I would love to see this making it into 3.2 release. -- Added file: http://bugs.python.org/file19804/wsgiref.rst.diff ___ Python tracker <http://bugs.python.org/issue5800> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
SilentGhost added the comment: Attached patch with the try-except clause as suggested by Steven, Doug's example now produces the following output: $ ./python argparse_filetype_error.py usage: argparse_filetype_error.py [-h] [-i I] argparse_filetype_error.py: error: no such file or directory 'file-does-not-exist.txt' I have digressed and fixed an issue with _bufsize 0. I thought it would be just natural to default to -1 which is default buffering size for a simple open call anyway. It also makes for a cleaner try-except clause. All tests pass, including akira's. -- nosy: +SilentGhost Added file: http://bugs.python.org/file19805/argparse.py.diff ___ Python tracker <http://bugs.python.org/issue9509> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
SilentGhost added the comment: Ammended akira's patch for Lib/test/test_argparse.py to include suggested in review changes: with statement, import statement -- Added file: http://bugs.python.org/file19815/test_argparse.py.diff ___ Python tracker <http://bugs.python.org/issue9509> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: Just for the reference: "What's new in Python 3.0" page says: > Removed callable(). Instead of callable(f) you can use isinstance(f, > collections.Callable). The operator.isCallable() function is also gone. There doesn't seem to be any indication than in two-versions time anyone would feel a need to resurrect it. It might be not "obvious", but it's consistent with the check for other attributes. And I doubt that it's any more non-obvious than the need to use it in a first place. -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: surely, such a relevant bit of information is worth linking to! -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: I wouldn't consider it "approving", what Guido says is: > I admit defeat on this one <http://mail.python.org/pipermail/python-ideas/2010-November/008747.html> Which incidentally is in response to your e-mails with the actual discussion following it. -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
Changes by SilentGhost : Removed file: http://bugs.python.org/file19815/test_argparse.py.diff ___ Python tracker <http://bugs.python.org/issue9509> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
SilentGhost added the comment: On windows proposed changes to Lib/test/test_argparse.py cause it to enter an infinite loop in TempDirMixin.tearDown method. As it seemed exclusively Windows issue, this new patch replaces while loop with the ignore_errors parameter for shutil.rmtree. Now all test pass. -- Added file: http://bugs.python.org/file19827/test_argparse.py.diff ___ Python tracker <http://bugs.python.org/issue9509> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9509] argparse FileType raises ugly exception for missing file
SilentGhost added the comment: Steven, I'm not sure why you're insisting on ArgumentTypeError, when it should be ArgumentError. The file name is not coerced into a different file type, but rather the error occurs when trying to use parameter passed. In any way, my patch is still available. Do you not like something about it? -- ___ Python tracker <http://bugs.python.org/issue9509> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: I thought PEP 3003 was quite unambiguous: >This PEP proposes a temporary moratorium (suspension) of **all changes** to >the Python language syntax, semantics, and built-ins for a period of at least >two years from the release of Python 3.1. In particular, the moratorium would >include Python 3.2 (to be released 18-24 months after 3.1) but allow Python >3.3 (assuming it is not released prematurely) to once again include language >changes. -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: I thought that moratorium meant Guido dis/approval is not applicable to the 3.2 Another listed change was help ease adoption of py3k. How's that helping? -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: yes, my problem is that callable was removed and a way was shown how to do this check. The way which is consistent with the check for any other type (ABC). Now out of the blue, w/o any justification this way is going to be ignored, because "ah, sure. I can't be bothered typing extra three characters" and the old function is reintroduced. I don't like that we're heading into Perl's direction. that's all. -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10518] Bring back callable()
SilentGhost added the comment: > ABCs are still the exception in Python, and duck typing is still the rule. Then why do we callable again? Don't worry, I'll deal with it. It's not like this whole discussion mattered. -- ___ Python tracker <http://bugs.python.org/issue10518> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10567] Unicode space character \u200b unrecognised a space
SilentGhost added the comment: It returns False on the latest py3k checkout as well. -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue10567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10567] Unicode space character \u200b unrecognised a space
Changes by SilentGhost : -- versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue10567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10567] Unicode space character \u200b unrecognised a space
SilentGhost added the comment: It's not just this character. isspace() is also False for \u200c and \u200d (from the same category). and \u2060, \u2800 and \ufeff -- ___ Python tracker <http://bugs.python.org/issue10567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10567] Some unicode space characters are not recognized as a space
Changes by SilentGhost : -- title: Unicode space character \u200b unrecognised a space -> Some unicode space characters are not recognized as a space ___ Python tracker <http://bugs.python.org/issue10567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10567] Unicode space character \u200b unrecognised a space
SilentGhost added the comment: I'm not quoting anything. Thank you very much. -- ___ Python tracker <http://bugs.python.org/issue10567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10567] Unicode space character \u200b unrecognised a space
Changes by SilentGhost : -- nosy: -SilentGhost ___ Python tracker <http://bugs.python.org/issue10567> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10577] (Fancy) URL opener stuck when trying to open redirected url
Changes by SilentGhost : -- title: (Fancy) URL opener stucks whet try to open page -> (Fancy) URL opener stuck when trying to open redirected url ___ Python tracker <http://bugs.python.org/issue10577> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10577] (Fancy) URL opener stuck when trying to open redirected url
SilentGhost added the comment: @xhresko: This is not valid py3k code. It is 302 redirect. I get the following error: IOError: [Errno socket error] [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond -- nosy: +SilentGhost ___ Python tracker <http://bugs.python.org/issue10577> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10577] (Fancy) URL opener stuck when trying to open redirected url
SilentGhost added the comment: @xhresko: why are you passing empty dict to the constructor? it works just fine with opener = urllib.request.FancyURLopener() resolution: invalid ? -- ___ Python tracker <http://bugs.python.org/issue10577> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10577] (Fancy) URL opener stuck when trying to open redirected url
Changes by SilentGhost : -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue10577> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10577] (Fancy) URL opener stuck when trying to open redirected url
Changes by SilentGhost : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue10577> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2690] Precompute range length and enhance range subscript support
SilentGhost added the comment: Not sure this worth a patch, to me it looks like a removal of a single word. But here it goes anyway. -- nosy: +SilentGhost Added file: http://bugs.python.org/file20003/stdtypes.rst.diff ___ Python tracker <http://bugs.python.org/issue2690> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com