[issue26270] Support for read()/write()/select() on asyncio

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: Paulo Costa: > async def async_read(fd. n): This method already exists: * (TCP) https://docs.python.org/dev/library/asyncio-protocol.html#asyncio.Protocol.data_received * (UDP)

Problem with 'requests' module

2016-02-03 Thread Mohamed Nedal
Hello, I'm learning Python and I'm using Python 3.5.1 Shell to write some code using 'requests' module, but I get this error when I run the code: ImportError: No module named 'requests' Could you please tell me how to fix this issue? Sincerely, Mohamed Nedal MSc student in Solar Physics

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Grobu
On 03/02/16 04:26, Rick Johnson wrote: [ ... ] And many children came from the far and wide, and they would pet his snake, and they would play with his snake Didn't know Pedobear had a biographer. -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem with 'requests' module

2016-02-03 Thread Chris Angelico
On Wed, Feb 3, 2016 at 12:16 AM, Mohamed Nedal wrote: > > I'm learning Python and I'm using Python 3.5.1 Shell to write some code using > 'requests' module, but I get this error when I run the code: ImportError: No > module named 'requests' > > > Could you

[issue26256] Fast decimalisation and conversion to other bases

2016-02-03 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: That reference you gave says that the binary version is faster than the Python version, but here the _complexity_ actually changed by a lot. Only people who know the library by name will notice that it is this fast. But you are right, for 99% of the people it

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-03 Thread Gedai Tamás Bence
Gedai Tamás Bence added the comment: Added a small patch that solves this issue on Ubuntu 15.10. Produces output like: /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libbz2.so.1.0 I'd be glad to add some test cases if someone can give me some tips on how

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Wolfgang Maier
On 03.02.2016 04:26, Rick Johnson wrote: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO A long, long time a ago, in a sleepy little Scandinavian village, somewhere

[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Pengyu Chen
Pengyu Chen added the comment: Oh yes you're right Martin. Thanks for the notice :) (I've closed this ticket before seeing your reply) -- ___ Python tracker

Error

2016-02-03 Thread Russell McCune via Python-list
Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my problem is when I run pycharm the 'Modify Setup' window for python keeps popping up everytime I try to do anything in pycharm. I don't know if i installed it

Re: problem in installing python

2016-02-03 Thread Oscar Benjamin
On 3 February 2016 at 06:57, Salony Permanand wrote: > sir, > I downloaded different version of python but no one is installed on my pc > because of same installation error each time having error code 2203. > Please solve it... > Thanking you Hi Salony, I think this

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: I like the feature, but I would prefer to use a syntax like --affinity=0-2 to use cores 0, 1 and 2, rather than having to compute manually a binary mask (--affinity=3). It's a builtin feature of taskset: just use --cpu-list. -- nosy: +haypo

Re: problem in installing python

2016-02-03 Thread eryk sun
On Wed, Feb 3, 2016 at 12:57 AM, Salony Permanand wrote: > > I downloaded different version of python but no one is installed on my pc > because of same installation error each time having error code 2203. 2203 may be a Windows Installer error [1]. If so, the error

[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Martin Panter
Martin Panter added the comment: I think you are only meant to pass in a “binary” (bytes) file object. Maybe BufferedIOBase, I’m not sure. The documentation doesn’t seem to make this very clear though. Can you suggest an improvement? Open the file with a = open("testfile.zip", "rb") and all

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-02-03 Thread Omar Sandoval
New submission from Omar Sandoval: The socket module is missing a couple of TCP socket options: TCP_CONGESTION was added to Linux in v2.6.13 and TCP_USER_TIMEOUT was added in v2.6.37. These should be exposed. -- components: Library (Lib) files: socket_tcp_options.patch keywords: patch

[issue26256] Fast decimalisation and conversion to other bases

2016-02-03 Thread Jurjen N.E. Bos
Jurjen N.E. Bos added the comment: OMG is decimal that fast? Maybe I should change the issue then to "documentation missing": it nowhere says in the documentation that decimal has optimized multiprecision computations. It only says that precision "can be as large as needed for a given

Re: Error

2016-02-03 Thread Oscar Benjamin
On 3 February 2016 at 08:49, Mark Lawrence wrote: > On 03/02/2016 02:49, Russell McCune via Python-list wrote: >> >> Hi >> >> So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have >> also installed the IDE pycharm 5 to go along with it. Now my problem is

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread Bernardo Sulzbach
I wonder if anyone besides Mr. Ladasky read through the Great Wall of Email. -- https://mail.python.org/mailman/listinfo/python-list

problem in installing python

2016-02-03 Thread Salony Permanand
sir, I downloaded different version of python but no one is installed on my pc because of same installation error each time having error code 2203. Please solve it... Thanking you -- https://mail.python.org/mailman/listinfo/python-list

Re: Error

2016-02-03 Thread Mark Lawrence
On 03/02/2016 02:49, Russell McCune via Python-list wrote: Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my problem is when I run pycharm the 'Modify Setup' window for python keeps popping up everytime I try

[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Pengyu Chen
New submission from Pengyu Chen: When passing a file object to `zipfile.ZipFile` for reading it fails in Python 3.5.1 it fails. While the same code in Python 2.7.11 works. Also loading that specific file directly from file path works in Python 3.5.1. (Please see the sample testing code below

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread Florin Papa
New submission from Florin Papa: Hi all, This is Florin Papa from the Dynamic Scripting Languages Optimizations Team from Intel Corporation. The patch submitted adds an affinity feature to the Grand Unified Python Benchmarks suite to allow running benchmarks on a given CPU/set of CPUs. It is

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-02-03 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Thanks Martin. The MAC_OS_X_VERSION_10_5 macro ensures that Python is still compatible with Mac OS before version 10.5: if it's built on 10.4 or older, it locks around getaddrinfo (since it's not thread-safe there), and on 10.5 and later it doesn't

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
Changes by STINNER Victor : -- type: -> performance ___ Python tracker ___ ___

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread Florin Papa
Florin Papa added the comment: Thank you for the feedback. Please see the updated patch. -- Added file: http://bugs.python.org/file41791/affinity_v2.patch ___ Python tracker

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread Florin Papa
Florin Papa added the comment: I was thinking that a warning might go unnoticed, that is why I chose to end the program if taskset is not found. It would force the user to install missing packages. Otherwise the patch looks ok. -- ___ Python

Re: Problem with 'requests' module

2016-02-03 Thread Joel Goldstick
On Wed, Feb 3, 2016 at 4:59 AM, Chris Angelico wrote: > On Wed, Feb 3, 2016 at 12:16 AM, Mohamed Nedal > wrote: > > > > I'm learning Python and I'm using Python 3.5.1 Shell to write some code > using 'requests' module, but I get this error

[issue26256] Fast decimalisation and conversion to other bases

2016-02-03 Thread Stefan Krah
Stefan Krah added the comment: On Wed, Feb 03, 2016 at 09:51:53AM +, STINNER Victor wrote: > Well, nowhere means: > https://docs.python.org/dev/whatsnew/3.3.html#decimal Okay, but hardly anyone reads that, and I can't blame them. :) For example, if I use something like Lua, I won't read a

[issue26275] perf.py: bm_regex_v8 doesn't seem reliable even with --rigorous

2016-02-03 Thread STINNER Victor
New submission from STINNER Victor: Hi, I'm working on some optimizations projects like FAT Python (PEP 509: issue #26058, PEP 510: issue #26098, and PEP 511: issue #26145) and faster memory allocators (issue #26249). I have the *feeling* that perf.py output is not reliable even if it takes

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread Florin Papa
Florin Papa added the comment: I have updated the patch to throw an exception if the taskset command is not available. Not checking that taskset works will generate an ambiguous error (if there is no taskset on the system) that does not explicitly point to the problem. I believe that users

[issue26275] perf.py: bm_regex_v8 doesn't seem reliable even with --rigorous

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: Well, it was simpler than I expected to implement calibration. Here is a PoC for regex_v8 and json_dump_v2. json_dump_v2 takes 3 seconds per run, but it already uses internally 100 loop iterations. I divided the number of iterations by 100 in my patch.

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-03 Thread John Ladasky
Yeah, I know, I shouldn't answer this troll-bait. Rick, you don't like Python? Fine, go program in a language that you do like. There are many to choose from! Meanwhile, Python is satisfying many programmers' needs. -- https://mail.python.org/mailman/listinfo/python-list

[issue26272] `zipfile.ZipFile` fails reading a file object in specific version(s)

2016-02-03 Thread Pengyu Chen
Pengyu Chen added the comment: Well I should have noticed that I wasn't using binary mode.. Sorry for the mistake. Closing the issue report. -- status: open -> closed ___ Python tracker

[issue26256] Fast decimalisation and conversion to other bases

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: "It's great to have this stuff, but I don't think it belongs in core Python: I'd much rather that the core Python integer implementation remain simple, portable and low-maintenance, and work well for the domain it's intended for: small-to-medium size

[issue26275] perf.py: calibrate benchmarks using time, not using a fixed number of iterations

2016-02-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +florin.papa title: perf.py: bm_regex_v8 doesn't seem reliable even with --rigorous -> perf.py: calibrate benchmarks using time, not using a fixed number of iterations ___ Python tracker

[issue25774] [benchmarks] Adjust to allow uploading benchmark data to codespeed

2016-02-03 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
I am not entirely sure about what your question is. Are you talking about the "heapreplace expected 2 arguments, got 1" you get if you set replace = heapreplace? -- https://mail.python.org/mailman/listinfo/python-list

[issue26280] ceval: Optimize [] operation similarly to CPython 2.7

2016-02-03 Thread Yury Selivanov
Yury Selivanov added the comment: Zach, first I was going to collect some stats on this (as Serhiy also suggests). It would be interesting to collect some stats on how many times BINARY_SUBSCR receives lists, tuples, dicts, and other types. I'd instrument the code to collect those stats and

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:06, Bernardo Sulzbach wrote: I may say something wrong, but this is what I see going on: When you get "replace = heapreplace" you are creating a data attribute called replace (you will access it by self.replace or variable.replace) that is an alias for heapreplace. When you

[issue26219] implement per-opcode cache in ceval

2016-02-03 Thread Francis MB
Francis MB added the comment: >From the two checks on Python/compile.c: + expr_ty meth = e->v.Call.func; [...] +/* Check [...] that + the call doesn't have keyword parameters. */ [...] +/* Check that there are no *varargs types of arguments. */ [...] I just wonder how many times

Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
Hi, as you might have noticed, I am working on https://github.com/srkunze/xheap right now. In order to make it even faster and closer to heapq's baseline performance, I wonder if there is a possibility of creating fast wrappers for functions. Please compare

[issue26280] ceval: Optimize [] operation similarly to CPython 2.7

2016-02-03 Thread Yury Selivanov
Yury Selivanov added the comment: Zach, BTW, you can see how I instrumented ceval for stats collection in the patch for issue #26219. That's only for the research purposes, we won't commit that... or maybe we will, but in a separate issue :). --

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
Thanks for quoting, for some reason my client always replies to the person and not the list (on this list only). I did what I could. I could show you a lambda function there, but it doesn't solve anything. If there is a way to avoid a wrapper, I don't know. --

[issue26282] Add support for partial keyword arguments in extension functions

2016-02-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently extension functions either accept only positional-only arguments (PyArg_ParseTuple), or keyword arguments (PyArg_ParseTupleAndKeywords). While adding support passing by keywords looks good for some arguments, for other arguments it doesn't make

Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > Thanks for quoting, for some reason my client always replies to the > person and not the list (on this list only). You have a “reply to sender” command in your mail client; every client has that. It seems that is what you used (it might

[issue26275] perf.py: calibrate benchmarks using time, not using a fixed number of iterations

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: > If running time is close to the limit, different run will use different > number of repetitions. This will add additional instability. Maybe, to be honest I don't know. How can we decide if a patch makes perf.py more and less stable? > I prefer a stable

[issue24905] Allow incremental I/O to blobs in sqlite3

2016-02-03 Thread Aviv Palivoda
Aviv Palivoda added the comment: I did the needed changes for the pull request at pysqlite for porting to python3. I will continue updating the patch if there will be changes in pysqlite and vice versa. -- keywords: +patch Added file: http://bugs.python.org/file41798/blob.patch

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:19, Peter Otten wrote: You could try putting self.heappush = functools.partial(heapq.heappush, self) into the initializer. Actually a nice idea if there were no overhead of creating methods for all heap instances separately. I'll keep that in mind. :) --

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:15, Peter Otten wrote: The technical reason is that functions written in C don't implement the descriptor protocol. The bound method is created by invoking the __get__ method of the class attribute: Good to know. :-/ It's sad. These functions just look so method-like.

[issue25774] [benchmarks] Adjust to allow uploading benchmark data to codespeed

2016-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9923b81a1d34 by Zachary Ware in branch 'default': Issue #25774: Add raw mode to perf.py. https://hg.python.org/benchmarks/rev/9923b81a1d34 -- nosy: +python-dev ___ Python tracker

[issue26280] ceval: Optimize [] operation similarly to CPython 2.7

2016-02-03 Thread Zach Byrne
Zach Byrne added the comment: Yury, Are you going to tackle this one, or would you like me to? -- ___ Python tracker ___

[issue26280] ceval: Optimize [] operation similarly to CPython 2.7

2016-02-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to collect statistics about arguments types during running the testsuite. May be list is not the most popular type of collection. -- nosy: +serhiy.storchaka ___ Python tracker

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Peter Otten
Sven R. Kunze wrote: > Hi, > > as you might have noticed, I am working on > https://github.com/srkunze/xheap right now. > > In order to make it even faster and closer to heapq's baseline > performance, I wonder if there is a possibility of creating fast > wrappers for functions. > > > Please

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:34, Bernardo Sulzbach wrote: Did Peter's suggestion work? Somewhat for a single Heap class. However, it breaks inheritance. -- https://mail.python.org/mailman/listinfo/python-list

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 21:40, Bernardo Sulzbach wrote: I am not entirely sure about what your question is. Are you talking about the "heapreplace expected 2 arguments, got 1" you get if you set replace = heapreplace? Yes, I think so. I might ask differently: why do I need to write wrapper method when

Emulating plotly's contour map color distribution

2016-02-03 Thread Larry Martell
I am using a javascript ploting package called plotly and I use that to generate a contour map. In that package you define a rangeMin, rangeMax, and binSize, and you give it a color map, e.g.: [["0", "rgb(0,0,0)"], ["0.3", "rgb(230,0,0)"], ["0.6", "rgb(255,210,0)"], ["1", "rgb(255,255,255)"]]

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Peter Otten
Sven R. Kunze wrote: > On 03.02.2016 22:06, Bernardo Sulzbach wrote: >> I may say something wrong, but this is what I see going on: >> >> When you get "replace = heapreplace" you are creating a data attribute >> called replace (you will access it by self.replace or >> variable.replace) that is an

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Sven R. Kunze
On 03.02.2016 22:14, Bernardo Sulzbach wrote: Thanks for quoting, for some reason my client always replies to the person and not the list (on this list only). I did what I could. I could show you a lambda function there, but it doesn't solve anything. If there is a way to avoid a wrapper, I

[issue26252] Add an example to importlib docs on setting up an importer

2016-02-03 Thread Simon Cross
Changes by Simon Cross : -- nosy: +hodgestar ___ Python tracker ___ ___ Python-bugs-list

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-03 Thread Brett Cannon
New submission from Brett Cannon: Would it make sense to clear sys.path_importer_cache when someone calls importlib.invalidate_caches()? It is a cache after all. -- components: Library (Lib) messages: 259518 nosy: brett.cannon, eric.snow, ncoghlan priority: normal severity: normal

[issue26194] Undefined behavior for deque.insert() when len(d) == maxlen

2016-02-03 Thread Martin Panter
Martin Panter added the comment: I thought the 3.6.0 NEWS file generally listed bugs fixed since (at least) the 3.5.0 release. But the NEWS in default has no mention of Issue 26194. Serhiy is right that there is nothing more to do for the merging problem. I was just pointing out that

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Bernardo Sulzbach
Did Peter's suggestion work? -- https://mail.python.org/mailman/listinfo/python-list

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: Florent: "I was thinking that a warning might go unnoticed, that is why I chose to end the program if taskset is not found." Oh right, I kept your behaviour and pushed a change. --- changeset: 238:a97acad3bbf7 tag: tip user:Victor Stinner

[issue26209] TypeError in smtpd module with string arguments

2016-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc fixes unrelated to security fixes are not applied to security-fix-only versions. -- versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue26276] Inconsistent behaviour of PEP 3101 formatting between versions

2016-02-03 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: I don't think that it's useful to check at runtime that taskset works. At least, I expect an error if the option is used and the command fails. To use CPU affinity you need to know your hardware and your platform. For most stable results you may even configure

[issue26277] Allow zipapp to target modules

2016-02-03 Thread flying sheep
New submission from flying sheep: currently, zipapp’s notion of __main__.py is very different from the usual. the root directory of a zipapp is not a module, therefore __init__.py isn’t used and relative imports from __main__.py don’t work. i propose that the zipapp functionality is

Re: Error

2016-02-03 Thread Terry Reedy
On 2/2/2016 9:49 PM, Russell McCune via Python-list wrote: Hi So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also installed the IDE pycharm 5 to go along with it. Now my problem is when I run pycharm the 'Modify Setup' window for python keeps popping up everytime I try

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26276] Inconsistent behaviour of PEP 3101 formatting between versions

2016-02-03 Thread Eric V. Smith
Eric V. Smith added the comment: Hi, Mark. Yes, PEP 3101 is very much under-specified in this area. I tried to avoid the same mistake in PEP 498, although of course that's a different problem area. I don't recall why this particular case broke between 3.2.3 and 3.4.3. I'll try and track it

Mutant Registration: Implicit or Explicit

2016-02-03 Thread Mark Lawrence
Rather more interesting than RR or the RUE? http://inre.dundeemt.com/2016-02-03/mutant-registration-implicit-or-explicit/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --

Re: Efficient Wrappers for Instance Methods

2016-02-03 Thread Random832
On Wed, Feb 3, 2016, at 16:43, Sven R. Kunze wrote: > Actually a nice idea if there were no overhead of creating methods for > all heap instances separately. I'll keep that in mind. :) What about changing the class of the object to one which is inherited from its original class and has the

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Chris Angelico
On Thu, Feb 4, 2016 at 11:03 AM, Bernardo Sulzbach wrote: > This got a little big. I accidentally did not change the address from > Sven's to the list and emailed him. Seconds later, he replied to the > list quoting my entire message so that I wouldn't have to send it

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Steven D'Aprano
On Thu, 4 Feb 2016 08:50 am, Ben Finney wrote: > (You will also have a “reply to all” command. That's almost never > appropriate in a forum like this.) If your mail client lacks Reply To List, use Reply All and then manually edit the To addresses of the new message. It honestly isn't hard, I've

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Bernardo Sulzbach
For this list, and this list only (I likely could identify the issue by comparing raw messages, but I won't bother), when I hit 'r' I get the sender of the latest message. In this case, "ros...@gmail.com". So I have to start typing "pyt" to change it to the list, double tab to body, type, then

[issue26219] implement per-opcode cache in ceval

2016-02-03 Thread Yury Selivanov
Yury Selivanov added the comment: > From the two checks on Python/compile.c: Stuff done in compile.c is cached in *.pyc files. The for-loop you saw shouldn't take a lot of time - it iterates through function parameters, which an average function doesn't have more than 3-6. --

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Bernardo Sulzbach
This got a little big. I accidentally did not change the address from Sven's to the list and emailed him. Seconds later, he replied to the list quoting my entire message so that I wouldn't have to send it to the list too (after his reply, which would make it hard to understand). I thanked him for

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > Then you two started going on about mail clients buttons Right. Thereby changing the subject of the evolving discussion. You're welcome :-) -- \ “… one of the main causes of the fall of the Roman Empire was | `\that,

[issue26194] Undefined behavior for deque.insert() when len(d) == maxlen

2016-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I can't say that I agree with putting an additional entry the 3.6 NEWS. In the past, I've not made news entries in unreleased versions regarding bug fixes in prior versions. That seems pointless to me and it would tend to clutter a document whose size

Re: Reply to whom?

2016-02-03 Thread Bernardo Sulzbach
Mr. Finney, that would be Google itself. I have never bothered setting up a client such as Mutt and can't even name more than Outlook and Mutt. I must say that the way you put it makes sense. A "reply" to the last message targeting its sender (the person that wrote it) is very reasonable indeed.

[issue26282] Add support for partial keyword arguments in extension functions

2016-02-03 Thread Martin Panter
Martin Panter added the comment: For the examples you gave, they already seem to support keywords for the first parameter: int(x=0), str(object=""), bytes(source=b""). Maybe it is a bit unfortunate that they are inconsistent, but these names seem reasonable when considered separately. But I

[issue25660] tabs don't work correctly in python repl

2016-02-03 Thread Berker Peksag
Berker Peksag added the comment: With rlcompleter.patch applied, I see the same behavior on my OS X (with libedit) and Ubuntu (with readline) systems. Thanks! -- nosy: +berker.peksag stage: patch review -> commit review ___ Python tracker

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2016-02-03 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue26136] DeprecationWarning for PEP 479 (generator_stop)

2016-02-03 Thread Martin Panter
Martin Panter added the comment: FYI I found that changeset by doing annotate on the file that you originally changed , which is an index of the changesets that last modified each line. Thanks for the patch, I think it

Re: Reply to whom? (was: Efficient Wrappers for Instance Methods)

2016-02-03 Thread Chris Angelico
On Thu, Feb 4, 2016 at 11:43 AM, Bernardo Sulzbach wrote: > For this list, and this list only (I likely could identify the issue > by comparing raw messages, but I won't bother), when I hit 'r' I get > the sender of the latest message. In this case, "ros...@gmail.com".

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > For this list, and this list only (I likely could identify the issue > by comparing raw messages, but I won't bother), when I hit 'r' I get > the sender of the latest message. This list is correctly configured; a “reply to sender” goes to

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-03 Thread Martin Panter
Martin Panter added the comment: IMO this should be treated as a new feature for the next release. But consistently returning the path sounds good to me if there is no good reason not to. Left a question on the review. I think you also need to update the documentation, and since this is

[issue26283] zipfile can not handle the path build by os.path.join()

2016-02-03 Thread 張伯誠
New submission from 張伯誠: I think the built-in library zipfile.py does not handle correctly the path build by os.path.join(). For example, assuming we have a zipfile named Test.zip which contanins a member xml/hello.xml, if you want to extract the member out, then you hava to use

Re: Reply to whom?

2016-02-03 Thread Ben Finney
Bernardo Sulzbach writes: > Mr. Finney, that would be Google itself. Yep. You're the one who needs to interact with them because as a user of the program, it's you they're trying to please (more than me, at least). Can't work out how to interact with a corporation

Re: Reply to whom?

2016-02-03 Thread Bernardo Sulzbach
I see. I've bad experiences with Thunderbird in the past, but I will try a desktop client again. You **can** provide input to Google, they even say the love it. But I've never seen one company ignore user feedback as much as Google does. -- https://mail.python.org/mailman/listinfo/python-list

[issue26279] time.strptime does not properly convert out-of-bounds values

2016-02-03 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry title: Possible bug in time library -> time.strptime does not properly convert out-of-bounds values versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread Florin Papa
Florin Papa added the comment: No problem :) -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue26278] BaseTransport.close() does not trigger connection_lost()

2016-02-03 Thread Sümer Cip
New submission from Sümer Cip: Hi all, We have implemented a TCP server based on asyncio. And while doing some regression tests we randomly see following error: 1) Client connects to the server. 2) Client is closed ungracefully(without sending a FIN, deplug cable) 3) We have a custom PING

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: "Florent" oops, Florin, sorry :-p -- ___ Python tracker ___ ___

[issue26274] Add CPU affinity to perf.py

2016-02-03 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your contribution ;-) -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26280] ceval: Optimize [] operation similarly to CPython 2.7

2016-02-03 Thread Yury Selivanov
New submission from Yury Selivanov: See also issue #21955 -- components: Interpreter Core messages: 259492 nosy: haypo, yselivanov, zbyrne priority: normal severity: normal stage: needs patch status: open title: ceval: Optimize [] operation similarly to CPython 2.7 type: performance

[issue25660] tabs don't work correctly in python repl

2016-02-03 Thread Ned Deily
Ned Deily added the comment: LGTM on OS X with both the system libedit and a MacPorts GNU readline. Let's apply this. -- ___ Python tracker ___

[issue25660] tabs don't work correctly in python repl

2016-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64417e7a1760 by Yury Selivanov in branch '3.5': Issue #25660: Fix TAB key behaviour in REPL. https://hg.python.org/cpython/rev/64417e7a1760 New changeset 87dfadd61e0d by Yury Selivanov in branch 'default': Merge 3.5 (issue #25660)

[issue25660] tabs don't work correctly in python repl

2016-02-03 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Yury! Look like we forgot to update test_rcompleter: == FAIL: test_complete (test.test_rlcompleter.TestRlcompleter)

[issue26182] Deprecation warnings for the future async and await keywords

2016-02-03 Thread Marco Buttu
Marco Buttu added the comment: Thank you Brett, your explanation (msg259409) and the c-api doc are really straightforward. I think I can fix it in a few days, just the time to read the devguide and be confident about the workflow. -- ___ Python

[issue26136] DeprecationWarning for PEP 479 (generator_stop)

2016-02-03 Thread Anish Shah
Anish Shah added the comment: Thanks @martin.panter. I learnt something new, I didn't know about annotate before. I have updated the patch. Thanks again. -- Added file: http://bugs.python.org/file41800/issue26136_20160204.patch ___ Python tracker

  1   2   >