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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16184
___
___
Python-bugs-list mailing
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15767
___
___
Python-bugs-list mailing
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16113
___
___
Python-bugs-list mailing
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
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
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
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16106
___
___
Python-bugs-list mailing
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1052827
___
___
Python-bugs-list mailing
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16083
___
___
Python-bugs-list mailing
Changes by Michele Orrù maker...@gmail.com:
--
nosy: -exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16083
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8425
___
___
Python-bugs-list mailing
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
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
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
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11959
___
___
Python-bugs-list mailing
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14333
___
___
Python-bugs-list mailing
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
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
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
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
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
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
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
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
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__
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13866
___
___
Python-bugs-list mailing
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
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
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
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
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
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
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
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
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
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6584
___
___
Python-bugs-list
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6669
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8898
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
101 - 200 of 232 matches
Mail list logo