[issue23972] Asyncio reuseport

2015-04-16 Thread Boris FELD

New submission from Boris FELD:

I'm trying to create some UDP sockets for doing multicast communication. I have 
the working code in synchronous way and try to port it to asyncio.

One last issue is blocking for me, I'm on Mac OS X and for multicast UDP to 
work, the SO_REUSEPORT must be set on socket before bind. The problem is that I 
don't have access on socket, it's created inside asyncio method 
_create_connection_transport.

I've seen that SO_REUSEADDR is already set 
(https://github.com/gvanrossum/tulip-try3/blob/7b2d8abfce1d7ef18ef516f9b1b7032172630375/asyncio/base_events.py#L720),
 so maybe we could also set SO_REUSEPORT only on platforms where it's 
available. `if hasattr(socket, 'SO_REUSEPORT')` should works.

Or we could add an optional arguments with could be used to set some socket 
options, it could be more flexible that set SO_REUSEPORT.

I could provide a patch for the best solution selected.

--
components: asyncio
messages: 241213
nosy: Boris.FELD, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: Asyncio reuseport
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

___
Python tracker 
<http://bugs.python.org/issue23972>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13943] distutils’ build_py fails when package string is unicode

2014-01-10 Thread Boris FELD

Boris FELD added the comment:

An issue has been opened in pip repository: 
https://github.com/pypa/pip/issues/1441

--

___
Python tracker 
<http://bugs.python.org/issue13943>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13943] distutils’ build_py fails when package string is unicode

2014-01-03 Thread Boris FELD

Boris FELD added the comment:

I've the same problem today with package 
https://pypi.python.org/pypi/httpretty/0.7.1 but only when I try to install one 
of my project which requires httpretty, if I try to install it directly it 
works like a charm.

pip install httpretty -> works
pip install mypkg -> doesn't works

Looks like HTTPretty is using __file__ variable in setup.py 
(https://github.com/gabrielfalcao/HTTPretty/blob/master/setup.py#L35) and pip 
seems to pass the file as unicode:

http://0bin.net/paste/dQfsSAmguWNYyY7w#0O/gcrWA44wKicfTdsGT4KqRYhbZLyhN9BUXNQD1XZA=

At the last line: 
"__file__=u'/home/lothiraldan/.virtualenvs/test/build/httpretty/setup.py'"

--
nosy: +Boris.FELD

___
Python tracker 
<http://bugs.python.org/issue13943>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8906] Document TestCase attributes in class docstring

2011-12-18 Thread Boris FELD

Boris FELD  added the comment:

Add a patch for this issue, move attributes comments in TestCase docstring.

I think it should be a good idea too to add their in unittest doc.

--
keywords: +patch
nosy: +Boris.FELD
Added file: http://bugs.python.org/file24024/unittest_docstring.patch

___
Python tracker 
<http://bugs.python.org/issue8906>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10805] traceback.print_exception throws AttributeError when exception is None

2011-12-17 Thread Boris FELD

Boris FELD  added the comment:

I add a test to test_traceback.py for this bug. Bug is confirmed on python 3.2 
and python3.3. I use 2.x behavior as reference.

I don't know if we should add an assertion in traceback.print_exception or 
traceback._iter_chain, so I add the test for traceback.print_exception.

--
keywords: +patch
nosy: +Boris.FELD
Added file: 
http://bugs.python.org/file24011/new_traceback_test_print_traceback.patch

___
Python tracker 
<http://bugs.python.org/issue10805>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2011-12-17 Thread Boris FELD

Boris FELD  added the comment:

The problem still exists in trunk with 3.2 and 3.3.

--
nosy: +Boris.FELD
versions: +Python 3.2, Python 3.3

___
Python tracker 
<http://bugs.python.org/issue5492>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file24002/stringbench_log_cpython3.3

___
Python tracker 
<http://bugs.python.org/issue13623>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Removed file: http://bugs.python.org/file24000/iobench_log_python3.3

___
Python tracker 
<http://bugs.python.org/issue13623>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file24001/compare.py

___
Python tracker 
<http://bugs.python.org/issue13623>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file24000/iobench_log_python3.3

___
Python tracker 
<http://bugs.python.org/issue13623>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

New submission from Boris FELD :

Hello everyone, I juste tried to launch the stringbench on python3.2 and 
python3.3 dev versions and some bytes tests run slower in python3.3 than in 
python3.2.

I cc the two raw output of both runs. I also extracted most interesting data 
(all the tests with more than 20% of performance regression):
- (b"A"*1000).rfind(b"A") (*1000): -70.103093%
- (b"A"*1000).find(b"B") (*1000): -48.372093%
- (b"A"*1000).rindex(b"A") (*1000): -68.89%
- s=b"ABC"*33; (s+b"E"+(b"D"+s)*500).rfind(s+b"E") (*100): -28.982301%
- (b"C"+b"AB"*300).rfind(b"CA") (*1000): -29.565217%
- (b"AB"*1000).index(b"AB") (*1000): -68.539326%
- b"Andrew".endswith(b"w") (*1000): -21.212121%
- (b"A"*1000).index(b"A") (*1000): -71.11%
- (b"BC"+b"AB"*300).rfind(b"BC") (*1000): -42.788462%
- b"Andrew".startswith(b"Andrew") (*1000): -20.588235%
- (b"AB"*1000).find(b"AB") (*1000): -69.318182%
- (b"AB"*1000).rfind(b"AB") (*1000): -69.791667%
- (b"A"*1000).rfind(b"B") (*1000): -37.988827%
- (b"AB"*300+"C").index(b"BC") (*1000): -28.75%
- b"B" in b"A"*1000 (*1000): -24.479167%
- (b"AB"*300+"CA").find(b"CA") (*1000): -33.673469%
- (b"AB"*1000).rindex(b"AB") (*1000): -67.78%
- (b"C"+"AB"*300).rindex(b"CA") (*1000): -29.017857%
- (b"AB"*300+"C").find(b"BC") (*1000): -28.451883%
- b"Andrew".startswith(b"A") (*1000): -21.212121%
- b"Andrew".startswith(b"Anders") (*1000): -21.212121%
- (b"A"*1000).partition(b"B") (*1000): -30.656934%
- (b"AB"*1000).rfind(b"CA") (*1000): -20.603015%
- (b"AB"*1000).rfind(b"BC") (*1000): -35.645472%
- (b"A"*1000).find(b"A") (*1000): -70.454545%

My environment is:
Mac OS X 10.6.8
GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
CPython3.3 revision ea421c534305
CPython3.2 revision 0b86da9d6964

--
assignee: collinwinter
components: Benchmarks
files: stringbench_log_cpython3.2
messages: 149689
nosy: Boris.FELD, collinwinter
priority: normal
severity: normal
status: open
title: Bytes performance regression in python3.3 vs python3.2
type: performance
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23999/stringbench_log_cpython3.2

___
Python tracker 
<http://bugs.python.org/issue13623>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Boris FELD  added the comment:

Forgot to describe my environment:
Mac OS X 10.6.8
GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
CPython3.3 revision ea421c534305
CPython3.2 revision 0b86da9d6964

--

___
Python tracker 
<http://bugs.python.org/issue13621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Boris FELD  added the comment:

Forgot to describe my environment:
Mac OS X 10.6.8
GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
CPython3.3 revision ea421c534305
CPython3.2 revision 0b86da9d6964

--

___
Python tracker 
<http://bugs.python.org/issue13622>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file23997/compare.py

___
Python tracker 
<http://bugs.python.org/issue13622>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file23996/stringbench_log_cpython3.3

___
Python tracker 
<http://bugs.python.org/issue13622>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

New submission from Boris FELD :

Hello everyone, I juste tried to launch the stringbench on python3.2 and 
python3.3 dev versions and some bytes tests run slower in python3.3 than in 
python3.2.

I cc the two raw output of both runs. I also extracted most interesting data 
(all the tests with more than 20% of performance regression):
- (b"A"*1000).find(b"B") (*1000): -30.379747%
- b"Hello\t   \t".rstrip() (*1000): -33.33%
- b"this\nis\na\ntest\n".rsplit(b"\n") (*1000): -23.437500%
- b"\nHello!\n".strip() (*1000): -33.33%
- dna.split(b"ACTAT") (*10): -21.07%
- b"Andrew".endswith(b"w") (*1000): -23.529412%
- b"...text.with.2000.lines...replace(b"\n", b" ") (*10): -37.668161%
- b"\t   \tHello".rstrip() (*1000): -33.33%
- (b"A"*1000).rpartition(b"A") (*1000): -21.212121%
- (b"Here are some words. "*2).split() (*1000): -22.105263%
- b"this\nis\na\ntest\n".split(b"\n") (*1000): -23.437500%
- b"Hello!\n".rstrip() (*1000): -35.714286%
- b"B" in b"A"*1000 (*1000): -32.089552%
- b"Hello!\n".strip() (*1000): -35.714286%
- b"\nHello!".strip() (*1000): -28.571429%
- b"Andrew".startswith(b"A") (*1000): -20.588235%
- b"\nHello!".rstrip() (*1000): -35.714286%
- b"Andrew".endswith(b"Andrew") (*1000): -22.857143%
- b"Andrew".endswith(b"Anders") (*1000): -23.529412%
- b"Andrew".startswith(b"Anders") (*1000): -23.529412%
- b"this--is--a--test--of--the--emergency--broadcast--system".split(b"--") 
(*1000): -22.429907%
- b"Andrew"+b"Dalke" (*1000): -23.076923%

Hope it help

--
assignee: collinwinter
components: Benchmarks
files: stringbench_log_cpython3.2
messages: 149683
nosy: Boris.FELD, collinwinter
priority: normal
severity: normal
status: open
title: Bytes performance regression in python3.3 vs python3.2
type: performance
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23995/stringbench_log_cpython3.2

___
Python tracker 
<http://bugs.python.org/issue13622>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file23994/compare.py

___
Python tracker 
<http://bugs.python.org/issue13621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Removed file: http://bugs.python.org/file23993/stringbench.py

___
Python tracker 
<http://bugs.python.org/issue13621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file23993/stringbench.py

___
Python tracker 
<http://bugs.python.org/issue13621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

Changes by Boris FELD :


Added file: http://bugs.python.org/file23992/stringbench_log_cpython3.3

___
Python tracker 
<http://bugs.python.org/issue13621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD

New submission from Boris FELD :

Hello everyone, I juste tried to launch the stringbench on python3.2 and 
python3.3 dev versions and some unicode tests run slower in python3.3 than in 
python3.2.

I cc the two raw output of both runs. I also extracted most interesting data 
(all the tests with more than 20% of performance regression):
- ("A"*1000).find("B") (*1000): -30.379747%
- "Hello\t   \t".rstrip() (*1000): -33.33%
- "this\nis\na\ntest\n".rsplit("\n") (*1000): -23.437500%
- "\nHello!\n".strip() (*1000): -33.33%
- dna.split("ACTAT") (*10): -21.07%
- "Andrew".endswith("w") (*1000): -23.529412%
- "...text.with.2000.lines...replace("\n", " ") (*10): -37.668161%
- "\t   \tHello".rstrip() (*1000): -33.33%
- ("A"*1000).rpartition("A") (*1000): -21.212121%
- ("Here are some words. "*2).split() (*1000): -22.105263%
- "Hello!\n".rstrip() (*1000): -35.714286%
- "B" in "A"*1000 (*1000): -32.089552%
- "Hello!\n".strip() (*1000): -35.714286%
- "\nHello!".strip() (*1000): -28.571429%
- "this\nis\na\ntest\n".split("\n") (*1000): -23.437500%
- "Andrew".startswith("A") (*1000): -20.588235%
- "\nHello!".rstrip() (*1000): -35.714286%
- "Andrew".endswith("Andrew") (*1000): -22.857143%
- "Andrew".endswith("Anders") (*1000): -23.529412%
- "The %(k1)s is %(k2)s the %(k3)s."%{"k1":"x","k2":"y","k3":"z",} (*1000): 
-49.411765%
- "Andrew".startswith("Anders") (*1000): -23.529412%
- "this--is--a--test--of--the--emergency--broadcast--system".split("--") 
(*1000): -22.429907%
- "Andrew"+"Dalke" (*1000): -23.076923%

--
assignee: collinwinter
components: Benchmarks
files: stringbench_log_cpython3.2
messages: 149681
nosy: Boris.FELD, collinwinter
priority: normal
severity: normal
status: open
title: Unicode performance regression in python3.3 vs python3.2
type: performance
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23991/stringbench_log_cpython3.2

___
Python tracker 
<http://bugs.python.org/issue13621>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

2011-11-03 Thread Boris FELD

Changes by Boris FELD :


--
nosy: +Boris.FELD

___
Python tracker 
<http://bugs.python.org/issue1469629>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10154] locale.normalize strips "-" from UTF-8, which fails on Mac

2011-02-27 Thread Boris FELD

Boris FELD  added the comment:

Bug confirmed on python2.5+ and python3.2-.

If it works with the dash, is agree with the Marc-Andre solution.

--
nosy: +Boris.FELD
versions: +Python 2.5, Python 2.6

___
Python tracker 
<http://bugs.python.org/issue10154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution

2011-01-27 Thread Boris FELD

Boris FELD  added the comment:

It also fails with python 2.5 and python 2.7 with install_dist command.

--
versions: +Python 2.5, Python 2.7

___
Python tracker 
<http://bugs.python.org/issue11025>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD

Boris FELD  added the comment:

The new command for installation is install_dist, sorry.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue11026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD

Changes by Boris FELD :


--
type:  -> crash

___
Python tracker 
<http://bugs.python.org/issue11026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD

New submission from Boris FELD :

Distutils2 install command fail with both python 2.5 and python 2.7 while it 
works with python 2.6.

$ python -V
python 2.5.4
$ python -m "distutils2.run" install
usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: run.py --help [cmd1 cmd2 ...]
   or: run.py --help-commands
   or: run.py cmd --help

error: Invalid command install

$ python -V
Python 2.7.1
$ python -m "distutils2.run" install
usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: run.py --help [cmd1 cmd2 ...]
   or: run.py --help-commands
   or: run.py cmd --help

error: Invalid command install

It fail it a setup.cfg exists or not in the current directory.

--
assignee: tarek
components: Distutils2
messages: 127192
nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade
priority: normal
severity: normal
status: open
title: Distutils2 install command fail with python 2.5/2.7
versions: Python 2.5, Python 2.7

___
Python tracker 
<http://bugs.python.org/issue11026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution

2011-01-27 Thread Boris FELD

New submission from Boris FELD :

Distutils2 install command don't display error if you try to launch it in a 
directory without setup.py nor setup.cfg files. It install an 
UNKNOWN-UNKNOWN.dist-info distribution in your site-package with all meta-data 
file set to UNKNOWN.

--
assignee: tarek
components: Distutils2
files: METADATA
messages: 127190
nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade
priority: normal
severity: normal
status: open
title: Distutils2 install command without setup.py or setup.cfg create an 
UNKNOWN-UNKNOWN.dist-info distribution
versions: Python 2.6
Added file: http://bugs.python.org/file20545/METADATA

___
Python tracker 
<http://bugs.python.org/issue11025>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com