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

2011-11-16 Thread Michele Orrù
Michele Orrù 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/test_httpservers.py", li

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

2011-11-18 Thread Michele Orrù
Michele Orrù 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.».

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

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

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

2011-12-30 Thread Michele Orrù
Michele Orrù 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, there is alr

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

2012-01-08 Thread Michele Orrù
Michele Orrù 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 on 2.7 as so

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

2012-01-09 Thread Michele Orrù
Michele Orrù 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: +ezio.melotti Added file:

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

2012-01-10 Thread Michele Orrù
Michele Orrù 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 the class field

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

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file24186/issue13642.patch ___ Python tracker <http://bugs.python.org/issue13642> ___ ___ Python-bugs-list m

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

2012-01-10 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file24192/issue13642_with_map.patch ___ Python tracker <http://bugs.python.org/issue13642> ___ ___ Python-bug

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

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

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

2012-01-12 Thread Michele Orrù
Michele Orrù 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 <h

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

2011-05-22 Thread Michele Orrù
Michele Orrù 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 fo

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

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file22064/unnamed ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list mailin

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

2011-05-24 Thread Michele Orrù
Michele Orrù 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ù 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 <http://bu

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread Michele Orrù
Michele Orrù added the comment: Done. -- Added file: http://bugs.python.org/file22129/issue10424_2.patch ___ Python tracker <http://bugs.python.org/issue10

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

2011-05-26 Thread Michele Orrù
Michele Orrù 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 tracker &l

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

2011-05-26 Thread Michele Orrù
Michele Orrù 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 <http://bugs.python.org/i

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

2011-05-27 Thread Michele Orrù
Michele Orrù 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ù : Added file: http://bugs.python.org/file22153/issue8898_3.patch ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list m

[issue10424] better error message from argparse when positionals missing

2011-05-27 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22155/issue10424.patch ___ Python tracker <http://bugs.python.org/issue10424> ___ ___ Python-bugs-list m

[issue12757] undefined name in doctest.py

2011-08-18 Thread Michele Orrù
Michele Orrù 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 as guideline, whi

[issue6584] gzip module has no custom exception

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

[issue6584] gzip module has no custom exception

2011-08-20 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22958/6584_5.patch ___ Python tracker <http://bugs.python.org/issue6584> ___ ___ Python-bugs-list mailin

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

2011-08-20 Thread Michele Orrù
Michele Orrù 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 <h

[issue6584] gzip module has no custom exception

2011-08-24 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue6584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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ù : -- nosy: +ezio.melotti ___ Python tracker <http://bugs.python.org/issue6669> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-05-21 Thread Michele Orrù
Michele Orrù 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 be place

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

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +eric.araujo ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file22049/issue8898.patch ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list m

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

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22053/issue8898.patch ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list m

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

2011-05-21 Thread Michele Orrù
Michele Orrù 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 adjusted your snip

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

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22058/fail_tactis.txt ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list m

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

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22059/issue8898_withtests.patch ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bug

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

2011-05-21 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22060/fail_mcbs.txt ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list mailin

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

2011-05-22 Thread Michele Orrù
Michele Orrù 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 module for all alias

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

2011-05-22 Thread Michele Orrù
Michele Orrù 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ù : Removed file: http://bugs.python.org/file22057/unnamed ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bugs-list mailin

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

2011-05-22 Thread Michele Orrù
Michele Orrù 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. But this is another story. ---

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

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file22065/issue8898_skip.patch ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bug

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

2011-05-22 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file22066/issue8898_skip.patch ___ Python tracker <http://bugs.python.org/issue8898> ___ ___ Python-bug

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Michele Orrù added the comment: This issue seems already fixed. File: Lib/argparse.py 922 # if we didn't use all the Positional objects, there were too few 1923 # arg strings supplied. 1924 if positionals: 1925 self.error(_('too few arguments

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Michele Orrù added the comment: The attached patch solves this issue. I haven't added any unittest because test_argparse.py is quite huge - over 4300 lines-, and I was undecided between «ArgumentError tests» (4251) and «ArgumentTypeError tests» (4262). Any hint? However, file bug104

[issue10424] better error message from argparse when positionals missing

2010-11-19 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file19647/bug10424.py ___ Python tracker <http://bugs.python.org/issue10424> ___ ___ Python-bugs-list mailin

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

2010-11-20 Thread Michele Orrù
Michele Orrù 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: +ezio.melotti, m

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

2010-11-20 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19679/issue10453.patch ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bugs-list m

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: The new attached patch passes the unittest. -- Added file: http://bugs.python.org/file19682/issue10453.patch ___ Python tracker <http://bugs.python.org/issue10

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

2010-11-20 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19682/issue10453.patch ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bugs-list m

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

2010-11-20 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file19684/issue10453.patch ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bugs-list m

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Eric, the unittests in Lib/test/test_compileall.py seems quite consistent to me, so for now I won't add anything. About adding a method for testing the '-h' argument, now that Lib/compileall.py uses argparse, it sounds trivial. EDIT: Kotan, I

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

2010-11-20 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19684/issue10453.patch ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bugs-list m

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Unittest added; should be enough. -- Added file: http://bugs.python.org/file19702/issue10453.patch ___ Python tracker <http://bugs.python.org/issue10

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

2010-11-20 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file19703/issue10453_tests.patch ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bug

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

2010-11-20 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file19708/issue10453_final.patch ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bug

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Yes, I was discussing about that on IRC. That's a matter of platform -on mine for example works-. He gave me a hand in solving this failure; now -I think- he's gonna apply that. -- ___ Python trac

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: *discussing that on IRC with R. David Murray -- ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bugs-list m

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Sorry. -- Added file: http://bugs.python.org/file19717/issue10453_noargs.patch ___ Python tracker <http://bugs.python.org/issue10

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

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Yeah, maybe your is more readable. I suppose that failure was due to some missing arguments when calling compileall (line 225). The attached patch should fix this issue, but currently I have no Windows machines where to test. -- Added file: http

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù added the comment: Unittest added. -- Added file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19646/issue10424.patch ___ Python tracker <http://bugs.python.org/issue10424> ___ ___ Python-bugs-list m

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù 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 <http://bugs.python.org/is

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker <http://bugs.python.org/issue10424> ___ ___ Python-bugs-list m

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

2010-11-25 Thread Michele Orrù
Michele Orrù 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 <http://bugs.python.org/is

[issue1100562] deepcopying listlike and dictlike objects

2010-05-13 Thread Michele Orrù
Michele Orrù added the comment: Unit tests added; tested both on python2.6 and python2.7. -- nosy: +maker versions: +Python 2.6 Added file: http://bugs.python.org/file17319/issue1100562.patch ___ Python tracker <http://bugs.python.org/issue1100

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

2012-02-21 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker <http://bugs.python.org/issue13866> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2012-02-27 Thread Michele Orrù
Michele Orrù 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 be appreciated

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

2012-03-05 Thread Michele Orrù
Michele Orrù 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-03-11 Thread Michele Orrù
Michele Orrù added the comment: May somebody check for this? Otherwise the bug could be considered invalid. -- ___ Python tracker <http://bugs.python.org/issue1531

[issue8739] Update to smtpd.py to RFC 5321

2012-03-11 Thread Michele Orrù
Michele Orrù 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__, warnings c

[issue8739] Update to smtpd.py to RFC 5321

2012-03-12 Thread Michele Orrù
Michele Orrù added the comment: Patch attached. A few considerations: in case of syntax error, the server responds with " MAIL FROM: [SP ] " according to http://tools.ietf.org/html/rfc5321#section-3.3 (instead of "MAIL FROM:"). Note that this could break something,

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

2012-03-12 Thread Michele Orrù
Michele Orrù 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.

[issue14261] Cleanup in smtpd module

2012-03-12 Thread Michele Orrù
New submission from Michele Orrù : 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, __import__ shall not

[issue8739] Update to smtpd.py to RFC 5321

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

[issue8739] Update to smtpd.py to RFC 5321

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

[issue11959] smtpd cannot be used without affecting global state

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker <http://bugs.python.org/issue11959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker <http://bugs.python.org/issue14333> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Michele Orrù 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://bugs.python.org

[issue14333] queue unittest errors

2012-03-17 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file24911/issue14333.patch ___ Python tracker <http://bugs.python.org/issue14333> ___ ___ Python-bugs-list m

[issue14364] Argparse incorrectly handles '--'

2012-03-18 Thread Michele Orrù
New submission from Michele Orrù : 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 [] tumbolandia:cpy

[issue14364] Argparse incorrectly handles '--'

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

[issue18564] Fix Bluetooth address parser

2019-05-26 Thread Michele Orrù
Change by Michele Orrù : -- title: Integer overflow in the socket function parsing a Bluetooth address -> Fix Bluetooth address parser ___ Python tracker <https://bugs.python.org/issu

[issue18233] SSLSocket.getpeercertchain()

2013-07-05 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker <http://bugs.python.org/issue18233> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18369] X509 cert class for ssl module

2013-07-05 Thread Michele Orrù
Changes by Michele Orrù : -- nosy: +maker ___ Python tracker <http://bugs.python.org/issue18369> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18538] `python -m dis `

2013-07-23 Thread Michele Orrù
Changes by Michele Orrù : -- components: Library (Lib) nosy: maker priority: normal severity: normal status: open title: `python -m dis ` type: enhancement versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue18

[issue18538] `python -m dis ` relying on argparse

2013-07-23 Thread Michele Orrù
New submission from Michele Orrù: I feel a little bit embarassed for this patch; while reading the stdlib's Lib/dis.py file, I saw that the _test() function parses by itself sys.argv. I tried to clean it up using argparse; diff and "manual tests" attached. -- title:

[issue18538] `python -m dis ` relying on argparse

2013-07-23 Thread Michele Orrù
Changes by Michele Orrù : -- keywords: +patch Added file: http://bugs.python.org/file31024/issue18538.patch ___ Python tracker <http://bugs.python.org/issue18

[issue18564] Integer overflow in socketmodule

2013-07-26 Thread Michele Orrù
New submission from Michele Orrù: In Modules/socketmodule.c , the bluetooth address supplied is vulnerable to integer overflow. Attaching patch and a couple of tests, which should be considered as a step forward in #7687. -- components: Extension Modules files: btoverflow.patch

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

2013-07-27 Thread Michele Orrù
Michele Orrù added the comment: ping. -- ___ Python tracker <http://bugs.python.org/issue8425> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue18564] Integer overflow in socketmodule

2013-07-27 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file31056/issue18564.1.patch ___ Python tracker <http://bugs.python.org/issue18564> ___ ___ Python-bugs-list m

[issue18538] `python -m dis ` should use argparse

2013-08-24 Thread Michele Orrù
Michele Orrù added the comment: Ping. -- ___ Python tracker <http://bugs.python.org/issue18538> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
New submission from Michele Orrù: Got from irc; python bug in xml.etree.ElementTree, from version 2.7 to 3.2 http://www.reddit.com/r/Python/comments/1l6cta/python_bug_in_xmletreeelementtree/ I think we should keep consistency with lxml and forbid control chars in advance. <ht

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Changes by Michele Orrù : -- components: +Library (Lib), XML type: -> behavior ___ Python tracker <http://bugs.python.org/issue18850> ___ ___ Python-bugs-lis

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: you mind if I try by myself to provide patch and unittest in the next few days? -- ___ Python tracker <http://bugs.python.org/issue18

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: I suppose it is, David, if in 2 minutes flat I can change your terminal name. -- Added file: http://bugs.python.org/file31484/inject.py ___ Python tracker <http://bugs.python.org/issue18

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: > Michele, could you elaborate how you would exploit this issue as a security > risk? Sure. What I meant in my message is: assume you have a script that simply stores each message it receives (from stdin, from a tcp stream, whatever) inside an xml tre

[issue16201] socket.gethostbyname incorrectly parses ip

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: Ping. -- ___ Python tracker <http://bugs.python.org/issue16201> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18564] Integer overflow in socketmodule

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: Ping. -- ___ Python tracker <http://bugs.python.org/issue18564> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16083] HTTPServer does not correctly handle bad request line

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: Still is an issue, though. Exported on the current tip. -- versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file31486/issue16083.1.patch ___ Python tracker <h

[issue18564] Integer overflow in socketmodule

2013-08-27 Thread Michele Orrù
Michele Orrù added the comment: oops, didn't see :) thanks. -- ___ Python tracker <http://bugs.python.org/issue18564> ___ ___ Python-bugs-list mailing list

[issue18850] xml.etree.ElementTree accepts control chars.

2013-08-28 Thread Michele Orrù
Michele Orrù added the comment: > The parser *is* rejecting control characters. It's an XML parser. See the > example in the link you posted. Ehrm, my apologies. > That's not an XML specific issue. You are printing a byte string here, so > repr() would be the righ

  1   2   >