[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-12 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file27540/issue16201.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16201

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Michele Orrù
New submission from Michele Orrù: Buggy due to the use of scanf at Modueles/socketmodule.c:868 Broken from python2.7 to tip on my machine (GNU/Linux) import socket [64481 refs] socket.gethostbyname('4294967306.4294967296.4294967296.1') '10.0.0.1' [67764 refs] socket.gethostbyname

[issue16184] Attack against the pseudorandom number generator

2012-10-10 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16184 ___ ___ Python-bugs-list mailing

[issue13290] get vars for object with __slots__

2012-10-06 Thread Michele Orrù
Michele Orrù added the comment: As a reference, linking the discussion on python-dev. http://mail.python.org/pipermail/python-dev/2012-October/122011.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13290

[issue15767] add ModuleNotFoundError

2012-10-06 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15767 ___ ___ Python-bugs-list mailing

[issue16149] Decimal(2) != float(2) documentation bug

2012-10-06 Thread Michele Orrù
New submission from Michele Orrù: Follows from the discussion on python-dev: http://mail.python.org/pipermail/python-dev/2012-September/121871.html -- assignee: docs@python components: Documentation messages: 172182 nosy: docs@python, maker, terry.reedy priority: normal severity: normal

[issue16113] Add SHA-3 (Keccak) support

2012-10-06 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16113 ___ ___ Python-bugs-list mailing

[issue16009] Json error messages could provide more information about the error

2012-10-04 Thread Michele Orrù
Michele Orrù added the comment: Since AFAIK json.loads runs through every simil-str object, I think that a repr() is fine here. What do you think? -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16009

[issue16009] Json error messages could provide more information about the error

2012-10-04 Thread Michele Orrù
Michele Orrù added the comment: A repr of what? Of the variable s in Lib/json/decoder.py#l358 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16009

[issue16009] Json error messages could provide more information about the error

2012-10-04 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file27415/issue16009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16009

[issue13290] get vars for object with __slots__

2012-10-03 Thread Michele Orrù
Michele Orrù added the comment: Patch + unittests + documentation attached. $ ./python -m test -R 3:2 test_builtin [1/1] test_builtin beginning 5 repetitions 12345 . 1 test OK. [158296 refs] -- keywords: +patch nosy: +maker Added file: http://bugs.python.org/file27395/issue13290

[issue13290] get vars for object with __slots__

2012-10-03 Thread Michele Orrù
Michele Orrù added the comment: The patch does not seem to walk the mro to look for slots in base classes. Also, an instance with a __dict__ attribute may also have attributes stored in slots. Well, what I am doing is more or less the equivalent of return object.__slots__ if hasattr

[issue16106] antigravity tests

2012-10-02 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16106 ___ ___ Python-bugs-list mailing

[issue16081] Fix compile warnings in thread_pthread.h

2012-09-30 Thread Michele Orrù
Michele Orrù added the comment: That's ok for me. Tested with OSX 10.8 and clang. -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16081

[issue1052827] filelist.findall should not fail on dangling symlinks

2012-09-30 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1052827 ___ ___ Python-bugs-list mailing

[issue14679] Define an __all__ for html.parser

2012-09-28 Thread Michele Orrù
Michele Orrù added the comment: # Internal appears only in HTMLParser's methods; how could __all__ fix this? -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14679

[issue16083] HTTPServer does not correctly handle bad headers

2012-09-28 Thread Michele Orrù
New submission from Michele Orrù: Sending a GET /\0 causes a TypeEror to be raised and the connection to be unexpectedly closed. $ python -m SimpleHTTPServer 8000 $ printf GET /\00 | nc localhost 8000 TypeError: must be encoded string without NULL bytes, not str

[issue16083] HTTPServer does not correctly handle bad headers

2012-09-28 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16083 ___ ___ Python-bugs-list mailing

[issue16083] HTTPServer does not correctly handle bad headers

2012-09-28 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16083 ___ ___ Python-bugs-list

[issue16083] HTTPServer does not correctly handle bad headers

2012-09-28 Thread Michele Orrù
Michele Orrù added the comment: Note: on python3, the error is File /[...]/cpython/Lib/genericpath.py, line 41, in isdir st = os.stat(s) TypeError: embedded NUL character (same exception but different message.) I don't know where to start fixing, because the documentation for os.stat

[issue16083] HTTPServer does not correctly handle bad headers

2012-09-28 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file27337/issue16083.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16083

[issue16083] HTTPServer does not correctly handle bad headers

2012-09-28 Thread Michele Orrù
Michele Orrù added the comment: Attaching tests that asserts the issue, and a patch for http.server. Works on tip. Should be ported also to 2.x? Note: that 'f = None' is unnecessary, maybe an isolated commit for that? -- keywords: +patch Added file: http://bugs.python.org/file27336

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file27293/bench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Michele Orrù added the comment: Updated. tumbolandia:cpython maker$ hg import --no-commit -f issue8425.2.patch make -j3 /dev/null 2/dev/null sto applicando issue8425.2.patch tumbolandia:cpython maker$ ./python.exe bench.py starting... setting up tests... testing... big_timer_no_intersection

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Michele Orrù added the comment: I'm not sure of the usefulness of this comment. removing, then. else redundant here. Instead of using a local variable intersected, you can simply add else Py_INCREF(other) here and then decref other unconditionally. It will be shorter and perhaps a little

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Michele Orrù added the comment: I'm not sure of the usefulness of this comment. removing, then. else redundant here. Instead of using a local variable intersected, you can simply add else Py_INCREF(other) here and then decref other unconditionally. It will be shorter and perhaps a little

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file27293/bench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-25 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file27306/bench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-24 Thread Michele Orrù
Michele Orrù added the comment: Reviewed with Ezio. -- Added file: http://bugs.python.org/file27272/issue8425.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-24 Thread Michele Orrù
Michele Orrù added the comment: woops, sry. Re-posting the benchmark, with three tests: the first one proposed (@abacabadabacaba) with very large sets; another one with smaller sets. $ ./python.exe -m timeit -n 100 -s s= set(range(2000)); l = set(range(2000)) s-=l 100 loops, best of 3

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-24 Thread Michele Orrù
Michele Orrù added the comment: What do you mean by does not preserve set identity? Because I see: $ ./python.exe Python 3.3.0rc2+ (default:178f9042af81+, Sep 24 2012, 18:54:31) [GCC 4.2.1 Compatible Apple Clang 2.1 (tags/Apple/clang-163.7.1)] on darwin Type help, copyright, credits

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-23 Thread Michele Orrù
Michele Orrù added the comment: Something like this would also need unit tests? $ ./python.exe -m timeit -s s= set(range(2000)); l = set(range(2000)); s=s-l 1000 loops, best of 3: 0.0622 usec per loop [48787 refs] $ ./python.exe -m timeit -s s= set(range(2000)); l = set(range(2000

[issue8786] Add support for IEEE 754 contexts to decimal module.

2012-09-18 Thread Michele Orrù
Michele Orrù added the comment: Something like this? That's a pretty trivial draft for the patch. About byte sequences, those features should be available using builtins bin(), oct() and hex(), hacking on __index__, or with internal methods? I am lacking imagination, what else there should

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-09-18 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___ Python-bugs-list mailing

[issue15791] pydoc does not handle unicode AUTHOR field

2012-08-27 Thread Michele Orrù
New submission from Michele Orrù: $ echo __author__ = u'Michele Orr\xf9' foo.py python -c import foo; print foo.__author__; help(foo) Michele Orrù Traceback (most recent call last): File string, line 1, in module File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-05-06 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: ./configure --with-pydebug CC=clang MACOSX_DEPLOYMENT_TARGET=10.7 Works on my machine too. -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241

[issue7522] random.choice should accept a set as input

2012-04-30 Thread Michele Mazzucchi
Michele Mazzucchi mich...@buddyns.com added the comment: Folks, I really think this should be addressed. Python has beautiful data structure semantics, and this is a stain in them. An implementation based on the current underlying hash table is quite simple, just pick random addresses until

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread Michele Orrù
New submission from Michele Orrù maker...@gmail.com: http://docs.python.org/library/argparse.html#arguments-containing The attached file shows different behaviours when using '--' immediately after an optional argument. tumbolandia:cpython maker$ python foo.py --test=-- foo

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: +1 also for me. I will try to work for a patch in the next days. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14364

[issue11959] smtpd cannot be used without affecting global state

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: This bug is becouse of Lib/unittest/loader.py:107 . So a quick fix would be to inherit from unittest.TestCase only in the exposed classes; but probably using a class decorator is the best solution. -- keywords: +patch Added file: http

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file24911/issue14333.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333

[issue8739] Update to smtpd.py to RFC 5321

2012-03-16 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: David: yes, I did. About two weeks ago. Probably I'll take a look to those issues :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739

[issue8739] Update to smtpd.py to RFC 5321

2012-03-16 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: David, can you tag this issue as dependency for issue14261 ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739

[issue8739] Update to smtpd.py to RFC 5321

2012-03-12 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Patch attached. A few considerations: in case of syntax error, the server responds with MAIL FROM:address [SP mail-parameters ] CRLF according to http://tools.ietf.org/html/rfc5321#section-3.3 (instead of MAIL FROM:address). Note

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-12 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: This is not the proper workflow for bug tracking. No one is working on this right now is not the same as This bug is invalid. No one worked on this ticket almost *seven years* after I filed it. You are right. Sorry

[issue14261] Cleanup in smtpd module

2012-03-12 Thread Michele Orrù
New submission from Michele Orrù maker...@gmail.com: This issue is related to 8739 . As pointed in http://bugs.python.org/issue8739#msg155385, « tests are in the form FooTest instead of TestFoo, smtpd imports modules used only in __main__, warnings can be handled the appropriate module

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-11 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: May somebody check for this? Otherwise the bug could be considered invalid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1531415

[issue8739] Update to smtpd.py to RFC 5321

2012-03-11 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: I'm currently working on this issue. A little cleanup would be appreciated, or it would be better to split that on another issue? For what I saw, tests are in the form FooTest instead of TestFoo, smtpd imports modules used only in __main__

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-05 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: For what I saw these days, Parser/tokenizer.c should import warnings.h (in order to use PyErr_WarnEx()), but Python/_warnings.c imports Python.h, that requires pgen ready. This leads to a circular dependency. Am I wrong / missing something

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-02-27 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: I am interested in solving this bug. If I understood correctly, that should be just a matter of spitting over sys.stdout whenever the user imports warnings.py, sys.stderr otherwise. Rewriting the code in C for python3.x would still

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2012-02-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___ ___ Python-bugs-list mailing

[issue13359] urllib2 doesn't escape spaces in http requests

2012-01-12 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Patch attached for python3, with unit tests. -- nosy: +maker Added file: http://bugs.python.org/file24215/issue13359.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13359

[issue13359] urllib2 doesn't escape spaces in http requests

2012-01-12 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Here the patch for python2. kiilerix, RFC 1738 explicitly says that the space character shall not be used. -- Added file: http://bugs.python.org/file24216/issue13359_py2.patch ___ Python tracker

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Whoops, probably I tested using $ python instead of $ ./python.exe - Attaching two patches, one keeps using map(), but definitely changes unquote() behavior; the other simply asserts user_passwd exists before using unquote(). Well, concerning

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file24186/issue13642.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13642

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file24192/issue13642_with_map.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13642

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-09 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Patch attached. Note that now unquote is called with host using map(), and b64 encoded strings are no more hardcoded. Please tell me if those changes are acceptable - anyway they don't break any other unit tests. -- nosy

[issue13642] urllib incorrectly quotes username and password in https basic auth

2012-01-08 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: There's no need to port your patch over python3k, since urllib behaves differently with http passwords - as you can see in the doc http://docs.python.org/dev/py3k/library/urllib.request.html#examples I would be glad to finish your password

[issue13642] urllib incorrectly quotes username and password in https basic auth

2011-12-30 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Joonas, this issue seems easy to solve. Do you want to try to post a patch?. Extra credits for patching testsuite too :). As far as I see, it would be sufficient to add unquote(passed) to _open_generic_http. Regarding unittests instead

[issue13294] http.server: HEAD request should not return a body

2011-11-18 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: These tests shows how SimpleHTTPRequestHandler behaves: if the class contains a do_FOO method, it is called, otherwise error501 is raised. That's what Karl said with «Or to modify the library code that for any resources not yet defined.». Since

[issue13294] http.server: HEAD request should not return a body

2011-11-18 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: As Ezio just pointed out, strip('\r\n') is still behaves differently from the previous code. Sorry for that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13294

[issue13294] http.server: HEAD request should not return a body

2011-11-16 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Well, actually SimpleHTTPRequesthandler extends BaseHTTPHandler with basic do_GET and do_HEAD methods. Unittests for http.server shows that this behavior is intended, since: Traceback (most recent call last): File Lib/test

[issue6584] gzip module has no custom exception

2011-08-24 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584 ___ ___ Python-bugs-list

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-08-24 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6669 ___ ___ Python-bugs-list

[issue6584] gzip module has no custom exception

2011-08-20 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: The attached patch follows Ezio's hints. -- nosy: +maker Added file: http://bugs.python.org/file22956/6584_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584

[issue6584] gzip module has no custom exception

2011-08-20 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22958/6584_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2011-08-20 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Would it be better to use TarError as Sridhar suggested, or create a new class BadTarfile(TarError, IOError), following the convention used for gzip and zipfile? -- nosy: +maker ___ Python tracker

[issue12757] undefined name in doctest.py

2011-08-18 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: It is possible to retrieve the current module using _normalize_module(None), or instead use the test name (dt_test.name) just like in DocTestCase.shortDescription. Since there is no doc about it, IMHO we should use unittest's standard

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-27 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Any idea about how to unittest mime.aliases? Also, since I've just created a new file, are there some buracratic issues? I mean, do I have to add something at the top of the file? (I'm just signing the Contributor Agreement) -- Added

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-27 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22153/issue8898_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue10424] better error message from argparse when positionals missing

2011-05-27 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22155/issue10424.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Done. -- Added file: http://bugs.python.org/file22129/issue10424_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: +1 What do you think? Ezio, David? -- title: The email package should defer to the codecs module for all aliases - The email package should defer to the codecs module for all aliases ___ Python

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: In that case, I could still take care of it; it would be really easy to do. So, it's up to you to tell me what is the best design choice. (: -- ___ Python tracker rep...@bugs.python.org http

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-24 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: After discussing on IRC, it figured out that the best choice would be to use normalize_encoding plus ALIAS, as the attached patch does. -- Added file: http://bugs.python.org/file22094/issue8898_normalize.patch

[issue9654] merge PC/getpathp.c into Modules/getpath.c

2011-05-24 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: In which cases it goes to PC/getpathp.c? I suppose it's Modules/getpath.c otherwise. Line 495 on getpathp.c let me guess it's not only for Windows. -- nosy: +maker ___ Python tracker rep

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Well, actually encodings.aliases links to the encoding _module name_, as described in the doc: Encoding Aliases Support This module is used by the encodings package search function to map encodings names to module names. So I've

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22058/fail_tactis.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22059/issue8898_withtests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22060/fail_mcbs.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: So, what do you prefer? Add a check for sys.platform, or just skip it? discussion on python-dev. So I'm +1 for just skipping it for now (with a XXX comment on the right maybe). -- title: The email package should defer to the codecs

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Sorry, I was told that email the bugtracker could not work properly. - mcbs has something broken in its imports; mbcs is only available on Windows. So, what do you prefer? Add a check for sys.platform, or just skip it? - tactis module

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file22057/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: unittest.skip* are decorators, so useless in this case; also, AFAIS Lib/test/ uses sys.platform. I would suggest to put a try statement in encodings.mbcs, and raise an error in case the imported modules imported are not found

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file22065/issue8898_skip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22066/issue8898_skip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: In the sense that the alias for 'tactis' should be removed also in 2.7 and 3.2? -- title: The email package should defer to the codecs module for all aliases - The email package should defer to the codecs module for all aliases

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file22064/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: The attached patch adds aliases for latin_N in encodings.aliases, and fixes email.charset behaviour according to codecs.lookup, as requested. Tested on (Arch) Linux. Am I supposed to add any unittest? I'm wavering about where they should

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___ ___ Python-bugs-list

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file22049/issue8898.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file22053/issue8898.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898

[issue10453] Add -h/--help option to compileall

2010-11-25 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Thank you Stefan, these days I was a little busy and I hadn't the time to review my patch. I really appreciate you help. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Unittest added. -- Added file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file19646/issue10424.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Ezio reviewed my patch; here there's the new version with some improvements. -- Added file: http://bugs.python.org/file19736/issue10424.patch ___ Python tracker rep...@bugs.python.org http

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424

[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: I'm still working on this task; the attachment shows how I'm solving the bug. The patch is NOT yet completed, there are some problems with the unittests. Hoping that Eric will give me a help soon. -- keywords: +patch nosy

<    1   2   3   >