Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:47 PM, chenchao wrote: >I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is there anybody know how to

[issue30157] csv.Sniffer.sniff() regex error

2017-04-24 Thread Louie Lu
Changes by Louie Lu : -- title: csn.Sniffer.sniff() regex error -> csv.Sniffer.sniff() regex error ___ Python tracker ___

Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, all: My board is the ARM Cortex-A8 processor and support floating point arithmetic. On 04/24/2017 10:37 PM, Michael Torrie wrote: On 04/24/2017 08:04 PM, chenchao wrote: Hi, everybody: I have x-compiled the cpython-2.7.10 and ported it on my ARM board(it is not the

Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, everybody: I have x-compiled the cpython-2.7.10 and ported it on my ARM board(it is not the Raspberry Pi and the Beaglebone Black). But now, I have to use numpy python package on my board. So how do i x-compile this package? Is there anybody know how to do this? Thanks! My embedded

[issue30153] lru_cache should support invalidations

2017-04-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: If you're interested, here is a starting point for experimenting with any variations you want (invalidate a specific entry, changeable maxsize, pickle/unpickle, expiration of entries after a specific time, inspection of the internal contents, ability to

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:04 PM, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:04 PM, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is

Re: Rosetta: Range extraction

2017-04-24 Thread breamoreboy
On Tuesday, April 25, 2017 at 12:13:42 AM UTC+1, Gregory Ewing wrote: > bartc wrote: > > On 24/04/2017 09:20, Robert L. wrote: > > > >> old = list[0] > >> list.slice_before{|n| [n-old>1,old=n][0]}. > >> map{|a| a.size<3 ? a.join(",") : [a[0],a[-1]].join("-")}. > >> join "," > > > > Is this

Re: How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, everybody: I have x-compiled the cpython-2.7.10 and ported it on my ARM board(it is not the Raspberry Pi and the Beaglebone Black). But now, I have to use numpy python package on my board. So how do i x-compile this package? Is there anybody know how to do this? Thanks! --

[issue29617] Drop Python 3.4 support from asyncio

2017-04-24 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29617] Drop Python 3.4 support from asyncio

2017-04-24 Thread INADA Naoki
INADA Naoki added the comment: New changeset 3e2ad8ec61a322370a6fbdfb2209cf74546f5e08 by INADA Naoki in branch 'master': bpo-29617: Remove Python 3.3 support from asyncio (GH-232) https://github.com/python/cpython/commit/3e2ad8ec61a322370a6fbdfb2209cf74546f5e08 --

[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review versions: +Python 3.7 ___ Python tracker ___

[issue30157] csn.Sniffer.sniff() regex error

2017-04-24 Thread Jake Davis
New submission from Jake Davis: Line 220 of Lib/csv.py has an extra `>` in the first group: r'(?P>[^\w\n"\']) -- components: Library (Lib) messages: 292249 nosy: jcdavis1983 priority: normal pull_requests: 1389 severity: normal status: open title: csn.Sniffer.sniff() regex error

[issue30153] lru_cache should support invalidations

2017-04-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Jesús, I don't want to add feature creep to the LRU cache. FWIW, it is very easy to make your own variants from collections.OrderedDict. -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed

[issue25949] Lazy creation of __dict__ in OrderedDict

2017-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread Jon Ribbens
On 2017-04-24, CFK wrote: > Long version: I'm trying to write bindings for python via ctypes to control > a library written in C that uses the bdwgc garbage collector ( > http://www.hboehm.info/gc/). The bindings mostly work, except for when > either bdwgc or python's garbage

Re: Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread Cem Karan
On Apr 24, 2017, at 6:59 PM, Terry Reedy wrote: > On 4/24/2017 6:24 PM, CFK wrote: >> TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and >> python's collector are not playing nice with one another, and I need to >> make them work with each other. >>

[issue30132] [Windows] test_distutils leaks a vc140.pdb file

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset f6448e5d65c349576df6e83b8324b9c208e77615 by Victor Stinner in branch 'master': bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278) https://github.com/python/cpython/commit/f6448e5d65c349576df6e83b8324b9c208e77615 --

[issue30132] [Windows] test_distutils leaks a vc140.pdb file

2017-04-24 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: The commit 2a1aed04b0943636f605543522e16cca1dc23e70 introduced a regression on macOS. The PR https://github.com/python/cpython/pull/1279 should fix it. http://buildbot.python.org/all/builders/x86-64%20El%20Capitan%203.x/builds/87/steps/test/logs/stdio

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-24 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1388 ___ Python tracker ___ ___

[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2017-04-24 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2017-04-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Note that https://pypi.python.org/pypi/re2 exists today as well and offers a re module compatible interface. I haven't tried it. -- ___ Python tracker

[issue30132] [Windows] test_distutils leaks a vc140.pdb file

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: Ok, I found the guilty: test_build_ext, see linked PR which should fix the warning. -- ___ Python tracker ___

[issue30132] [Windows] test_distutils leaks a vc140.pdb file

2017-04-24 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1387 ___ Python tracker ___ ___

Re: Rosetta: Range extraction

2017-04-24 Thread Gregory Ewing
bartc wrote: On 24/04/2017 09:20, Robert L. wrote: old = list[0] list.slice_before{|n| [n-old>1,old=n][0]}. map{|a| a.size<3 ? a.join(",") : [a[0],a[-1]].join("-")}. join "," Is this supposed to be Python code? I think it's Ruby. Maybe posted to the wrong group? -- Greg --

Re: Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread Terry Reedy
On 4/24/2017 6:24 PM, CFK wrote: TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and python's collector are not playing nice with one another, and I need to make them work with each other. Long version: I'm trying to write bindings for python via ctypes to control a

[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: > As an experiment, and to show what would be needed (at minimum), I have > attempted to make Python/dtoa.c completely aliasing-safe here: > https://github.com/DimitryAndric/cpython/commit/29c3f6f5cd771fce5630f127b9e7054593e3160c Would it be technically

[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-24 Thread Dimitry Andric
Dimitry Andric added the comment: There is a "#pragma clang optimize", but it only has the options "on" or "off", for specific source locations. I guess that would defeat the purpose a little bit. :( As an experiment, and to show what would be needed (at minimum), I have attempted to make

[issue30131] test_logging leaks a "dangling" thread

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4bcfa3a2363c30d406c6826e291b30c33a649d18 by Victor Stinner in branch 'master': bpo-30131: Cleanup threads in test_logging (#1275) https://github.com/python/cpython/commit/4bcfa3a2363c30d406c6826e291b30c33a649d18 --

Battle of the garbage collectors, or ARGGHHHHHH!!!!

2017-04-24 Thread CFK
TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and python's collector are not playing nice with one another, and I need to make them work with each other. Long version: I'm trying to write bindings for python via ctypes to control a library written in C that uses the bdwgc

[issue30131] test_logging leaks a "dangling" thread

2017-04-24 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1386 ___ Python tracker ___ ___

[issue28851] namedtuples field_names sequence preferred

2017-04-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hope it's OK that I've made a PR for these changes. -- nosy: +csabella ___ Python tracker ___

[issue28851] namedtuples field_names sequence preferred

2017-04-24 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1385 ___ Python tracker ___ ___

[issue29581] __init_subclass__ causes TypeError when used with standard library metaclasses (such as ABCMeta)

2017-04-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> backport needed ___ Python tracker ___

[issue30156] PYTHONDUMPREFS segfaults on exit

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: Come on, yet another crash from property_descr_get()??? It's the 3rd time... Do we really need this micro-optimization? Previous bugs and workarounds: - issue #26811 - issue #24276 Using the FASTCALL calling convention, no temporary tuple is created to pass

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Unaiza Batool
On Monday, April 24, 2017 at 3:52:09 PM UTC-4, Peter Otten wrote: > Unaiza Batool wrote: > > > i'm confused here as the script gives an error saying simple_to_fasta and > > fasta_to_mafft are not defined. > > You have to write this functions yourself (I gave one example) and make sure > that

[issue30148] Pathological regex behaviour

2017-04-24 Thread Tim Peters
Tim Peters added the comment: Yes, that example takes time exponential in the number of blanks to (fail to) match - each time you add a blank to `input`, it essentially doubles the time required. It's _possible_ for an implementation to deduce that `(\s+)+` is an insanely inefficient way to

[issue30148] Pathological regex behaviour

2017-04-24 Thread Jussi Pakkanen
Jussi Pakkanen added the comment: This is slow even when ignores is set to a non-empty value. It's not as slow but the real slowdown is in the whitespace regex. Here is a minimal sample: input = ' abc' re.search(r'(\s+)+d', input) --

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Peter Otten
Unaiza Batool wrote: > i'm confused here as the script gives an error saying simple_to_fasta and > fasta_to_mafft are not defined. You have to write this functions yourself (I gave one example) and make sure that they are defined before the 'for barcode' loop. > How do I combine the part of

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Unaiza Batool
On Monday, April 24, 2017 at 2:44:38 PM UTC-4, Peter Otten wrote: > ubat...@ufl.edu wrote: > > > I'm writing a script that takes two command line options, a file > > containing barcodes and a file containing sequences. I've managed to > > create output files for each barcode with the matching and

[issue30095] HTMLCalendar allow custom classes

2017-04-24 Thread Oz Tiram
Oz Tiram added the comment: Apparently, I forgot to push the second branch. It is now pushed. I renamed the class attribute names on the v1 branch. I still need to do the following: - Add docs - Fix existing tests and add new tests demonstrating the usage of the new attributes. --

[issue30156] PYTHONDUMPREFS segfaults on exit

2017-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The regression was added by the fix for issue26811. PR 1272 applies the alternate patch from issue26811. This doesn't harm the performance. $ ./python.patched -m perf timeit -q --compare-to ./python.default -s "from collections import namedtuple; P =

[issue30156] PYTHONDUMPREFS segfaults on exit

2017-04-24 Thread Oren Tirosh
Oren Tirosh added the comment: In addition to fixing this - perhaps PYTHONDUMPREFS or something similar should be added to test automation? It is apparently capable of uncovering some bugs that none of the other reference and recnt debugging tools could find. --

[issue26811] segfault due to null pointer in tuple

2017-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1384 ___ Python tracker ___ ___

Re: Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread Peter Otten
ubat...@ufl.edu wrote: > I'm writing a script that takes two command line options, a file > containing barcodes and a file containing sequences. I've managed to > create output files for each barcode with the matching and corresponding > sequences in it. > > For the next part of my script, I'm

[issue30156] PYTHONDUMPREFS segfaults on exit

2017-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1383 ___ Python tracker ___ ___

[issue5115] Extend subprocess.kill to be able to kill process groups

2017-04-24 Thread Eryk Sun
Eryk Sun added the comment: Using a Windows job object should be paired with the creation flag CREATE_SUSPENDED. Callers may also need CREATE_BREAKAWAY_FROM_JOB, but setting that creation flag shouldn't be integrated into Popen. The child has to be created suspended to ensure it doesn't spawn

[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-24 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1382 ___ Python tracker ___ ___

[issue30039] Resuming a 'yield from' stack is broken if a signal arrives in the middle

2017-04-24 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: -> yselivanov ___ Python tracker ___

Trying to run a program within a python script on multiple output files creating by the same script

2017-04-24 Thread ubatool
I'm writing a script that takes two command line options, a file containing barcodes and a file containing sequences. I've managed to create output files for each barcode with the matching and corresponding sequences in it. For the next part of my script, I'm trying to create more output files

[issue30156] PYTHONDUMPREFS segfaults on exit

2017-04-24 Thread Oren Tirosh
New submission from Oren Tirosh: Reproduce: Py_DEBUG build PYTHONDUMPREFS=1 ./python -c pass (big dump of reference information) Segmentation fault git-bisected to commit 7822f151b68e40376af657d267ff774439d9adb9 -- components: Interpreter Core messages: 292232 nosy: orent,

[issue30152] Reduce the number of imports for argparse

2017-04-24 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +wolma ___ Python tracker ___

[issue29822] inspect.isabstract does not work on abstract base classes during __init_subclass__

2017-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> backport needed versions: -Python 3.5 ___ Python tracker ___

[issue29822] inspect.isabstract does not work on abstract base classes during __init_subclass__

2017-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fcfe80ec2592fed8b3941c79056a8737abef7d3b by Serhiy Storchaka (Nate) in branch 'master': bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678) https://github.com/python/cpython/commit/fcfe80ec2592fed8b3941c79056a8737abef7d3b

[issue30155] Add ability to get/set tzinfo on datetime instances in C API

2017-04-24 Thread Daniel Lenski
Changes by Daniel Lenski : -- nosy: +dlenski ___ Python tracker ___ ___ Python-bugs-list

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 03:45 AM, chenchao wrote: > Hi, everybody: > > I have port python-2.7 to my arm board. But i don't know how to > port a python package to my embedded system. For example, numpy pakage. > Therefore, is there anybody know how to do this? Thanks! Are you running a Linux distro

Re: How to port a python package to a embedded system

2017-04-24 Thread justin walters
On Mon, Apr 24, 2017 at 2:45 AM, chenchao wrote: > Hi, everybody: > > I have port python-2.7 to my arm board. But i don't know how to port > a python package to my embedded system. For example, numpy pakage. > Therefore, is there anybody know how to do this? Thanks!

[issue30155] Add ability to get/set tzinfo on datetime instances in C API

2017-04-24 Thread Anthony Tuininga
New submission from Anthony Tuininga: Right now there is no documented way to create a datetime instance with a tzinfo instance. The documented macros all hard code the value Py_None for the tzinfo parameter. Using the PyObject_Call() method instead of the macro for creating a datetime

Re: plot graph from data

2017-04-24 Thread breamoreboy
On Monday, April 24, 2017 at 12:51:26 PM UTC+1, Prasenjit Dutta wrote: > Hi All, > > I have a exported data as below: > > [2J [HNAME CPU % MEM USAGE / > LIMIT > goofy_wozniak0.53% 256.8 MiB / 7.64 GiB >

Re: Inheritance in Python

2017-04-24 Thread Steve D'Aprano
On Mon, 24 Apr 2017 10:10 pm, id23...@gmail.com wrote: > I do not quite understand how inheritance works in Python. [...] > class mainCL(): > def __init__(self): > self.path1 = "/a" > self.path2 = "/b" > > class secondCL(mainCL): > def __init__(newID): >

[issue30153] lru_cache should support invalidations

2017-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of rejected issue28178. See also related issue17528, issue18577, issue19859, issue23030, issue26082, and issue28112. -- assignee: -> rhettinger ___ Python tracker

[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-04-24 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

structlog 17.1.0

2017-04-24 Thread Hynek Schlawack
Hi everyone, I’m happy to announce structlog 17.1.0 has been released to PyPI: The main features of this release are massive improvements in standard library's logging integration. Have a look at the updated standard library chapter on how to use them!

[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue30153] lru_cache should support invalidations

2017-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could cache_clear() clear the entire cache or discard just the cached call without arguments? -- nosy: +serhiy.storchaka ___ Python tracker

[issue30104] clang 4.0 miscompiles dtoa.c, giving broken float parsing and printing

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: > I also note that -fno-strict-aliasing is being included in 2.7's compile > arguments Ah right, PyObject structures of Python 2 doesn't respect strict aliasing... -- ___ Python tracker

Inheritance in Python

2017-04-24 Thread id23...@gmail.com
I do not quite understand how inheritance works in Python. I use python 3.6.1. Let say I have a directory structure /a, /b. These two paths described in main class. The second class describes additional structure in one of the main structures, say on /b and it should look like this: /b/id1

[issue30153] lru_cache should support invalidations

2017-04-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Perhaps the existing ``cache_clear`` method could take optional arguments? def cache_clear(self, *args, **kw): if not (args or kw): # clear the entire cache else: # clear just the cache entry for *args, **kw -- components:

ANN: PyDDF Python Spring Sprint 2017

2017-04-24 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a Python sprint in Düsseldorf, Germany] ANKÜNDIGUNG PyDDF Python Frühling-Sprint 2017 in Düsseldorf Samstag,

[issue28969] lru_cache is not threadsafe

2017-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -855 ___ Python tracker ___ ___

plot graph from data

2017-04-24 Thread Prasenjit Dutta
Hi All, I have a exported data as below: NAME CPU % MEM USAGE / LIMIT goofy_wozniak0.53% 256.8 MiB / 7.64 GiB kibana.1.i5shzj5kc7ck4x6s6s3m3wxjl 0.00% 597.2 MiB / 7.64 GiB

[issue26534] subprocess.check_output with shell=True ignores the timeout

2017-04-24 Thread Martin Panter
Martin Panter added the comment: Issue 5115 is already open with patch that has an alternative API to the low-level “killpg” method. It also has a Windows implementation and tests. I suggest to focus this bug on the higher-level “kill_group” option. -- dependencies: +Extend

[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-24 Thread Eric V. Smith
Eric V. Smith added the comment: > Unfortunately, as far as I know, clang still does not support > function-level optimization pragmas. Maybe it was implemented > recently, but then you would still have to have a workaround> > for older versions. I realize the answer is probably "no", but I'll

ANN: PyDDF Python Spring Sprint 2017

2017-04-24 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a Python sprint in Düsseldorf, Germany] ANKÜNDIGUNG PyDDF Python Frühling-Sprint 2017 in Düsseldorf Samstag,

[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-24 Thread Dimitry Andric
Dimitry Andric added the comment: Note that gcc has documented accessing union members in this way as an "implementation defined" feature:

[issue30154] subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad

2017-04-24 Thread Martin Panter
Martin Panter added the comment: This is similar to the problem described in Issue 26534, which proposes “kill_group” and “killpg” APIs as a solution. (FYI you should put a shebang at the start of the shell script, or call it as “sh -c test.sh”, to fix the “Exec format error”.) --

[issue26534] subprocess.check_output with shell=True ignores the timeout

2017-04-24 Thread Martin Panter
Martin Panter added the comment: I don’t know enough about process groups and sessions to properly review, but some things that stand out: * Patch is missing documentation and tests * If the “killpg” just wraps os.killpg, perhaps adding the method is not justified * Are there any race

[issue30154] subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad

2017-04-24 Thread Martijn Pieters
Martijn Pieters added the comment: Apologies, I copied the wrong sleep 10 demo. The correct demo is: cat >test.sh< #!/bin/sh > sleep 10 > EOF time bin/python -c "import subprocess; subprocess.run(['./test.sh'], stderr=subprocess.PIPE, timeout=3)" Traceback (most recent call last): File

[issue30152] Reduce the number of imports for argparse

2017-04-24 Thread Berker Peksag
Berker Peksag added the comment: > The patch also makes argparse itself be imported only when the module > is used as a script, not just imported. +1. I'd move this into its own PR. -- nosy: +berker.peksag ___ Python tracker

[issue30104] clang 4.0 miscompiles dtoa.c, giving broken float parsing and printing

2017-04-24 Thread Kubilay Kocak
Kubilay Kocak added the comment: 2.7 branch on koobs-freebsd-current worker doesn't appear to be failing currently, but there may be differences in (or a lack of equivalent) coverage compared to 3.*. I also note that -fno-strict-aliasing is being included in 2.7's compile arguments: cc

Re: Rosetta: Range extraction

2017-04-24 Thread bartc
On 24/04/2017 09:20, Robert L. wrote: Create a function that takes a list of integers in increasing order and returns a correctly formatted string in the range format. Use the function to compute and print the range formatted version of the following ordered list of integers. (The correct

Crowdfunding campaign for new config system in qutebrowser

2017-04-24 Thread Florian Bruhin
Hi, I'm the main developer of qutebrowser, a keyboard-focused vim-like web browser, built using PyQt: https://www.qutebrowser.org/ Like last year, I'd love to spend my summer holidays working full-time on qutebrowser again! This is why I started another crowdfunding - this time with the goal of

EuroPython 2017: How you can sponsor us

2017-04-24 Thread M.-A. Lemburg
Check out our brand new brochure with all details about our sponsor packages, options and lounge events, available on our website. Sponsoring EuroPython guarantees you highly targeted visibility and the opportunity to present yourself and your company in a professional and innovative environment.

ANN: grc 1.11 released

2017-04-24 Thread garabik-news-2005-05
This is generic colouriser, version 1.11. grc is a colouriser configured by regular expressions, including a simple command line wrapper for some commonly used unix commands. Notable changes in this version: - cleanup configuration directory - configuration files improvements License: GPL

[Release] Pyo 0.8.6 (Python dsp library)

2017-04-24 Thread Olivier Bélanger
Hello all, I'm glad to announce the release of pyo 0.8.6, available for python 2.7 and 3.5. Pyo is a Python module written in C to help real-time digital signal processing script creation. It is available for Windows, macOS and linux. It is released under the LGPL 3 license. For more info,

[issue30154] subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad

2017-04-24 Thread Martijn Pieters
New submission from Martijn Pieters: You can't time out a process tree that includes a never-ending process, *and* which redirects stderr: cat >test.sh< /dev/null # never-ending EOF chmod +x test.sh python -c "import subprocess; subprocess.run(['./test.sh'], stderr=subprocess.PIPE,

[issue30153] lru_cache should support invalidations

2017-04-24 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: I think that "functools.lru_cache()" should have the ability to "invalidate" a (possibly cached) value. Something like: @functools.lru_cache() def func(param): ... func.invalidate(PARAM) # discard this cached call, or ignore if not cached --

[issue28969] lru_cache is not threadsafe

2017-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing

EuroPython 2017: How you can sponsor us

2017-04-24 Thread M.-A. Lemburg
Check out our brand new brochure with all details about our sponsor packages, options and lounge events, available on our website. Sponsoring EuroPython guarantees you highly targeted visibility and the opportunity to present yourself and your company in a professional and innovative environment.

[issue30150] raw debug allocators to not return malloc alignment

2017-04-24 Thread Mattia Rizzolo
Changes by Mattia Rizzolo : -- nosy: +mapreri ___ Python tracker ___ ___ Python-bugs-list

How to port a python package to a embedded system

2017-04-24 Thread chenchao
Hi, everybody: I have port python-2.7 to my arm board. But i don't know how to port a python package to my embedded system. For example, numpy pakage. Therefore, is there anybody know how to do this? Thanks! -- https://mail.python.org/mailman/listinfo/python-list

[issue30052] URL Quoting page links to function Bytes instead of defintion

2017-04-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since no one has said that this change shouldn't be made, I'll start working on this. -- ___ Python tracker ___

[issue29751] PyLong_FromString documentation wrong on numbers with leading zero and base=0

2017-04-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Oh, I didn't expect that. That is so cool! Thanks Mariatta. :-) -- ___ Python tracker ___

[issue30095] HTMLCalendar allow custom classes

2017-04-24 Thread Oz Tiram
Oz Tiram added the comment: @Walter, I agree with you about consistent naming. Personally, I would prefer to name all the variables "styles". But I preferred not to break past compatibility too. So I guess we are stuck for a while with "classes". I will rename the variables. As for

[issue30095] HTMLCalendar allow custom classes

2017-04-24 Thread Walter Dörwald
Walter Dörwald added the comment: The second link is a 404. For the v1 patch: The variable names are a bit inconsistent: The first uses "classes" all others use "styles". This should be consistent within itself and with the existing code, i.e. "classes" should be used. Also each class

[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: > Could we use Clang specific pragma in dtoa.c rather than a compiler option? If we decide to go for the -fno-strict-aliasing only for dtoa.c, I suggest to use it also for GCC. GCC might decide to also optimize dtoa.c further in the future. I don't think that

[issue30152] Reduce the number of imports for argparse

2017-04-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue29442] Replace optparse with argparse in setup.py

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: I consider that the issue #30152 is now a dependency of this change. -- dependencies: +Reduce the number of imports for argparse ___ Python tracker

[issue30104] clang 4.0 miscompiles dtoa.c, giving broken float parsing and printing

2017-04-24 Thread STINNER Victor
STINNER Victor added the comment: > This appears to require backporting to 3.6 and 3.5 which are also failing: I'm aware of that and I plan to fix these versions as well (2.7 also, no?), but I would like to first decide if we "fix" dtoa.c aliasing, or if we restrict -fno-strict-aliasing flag

  1   2   >