Re: Multi-threading with a simple timer?

2018-07-03 Thread Robin Becker
signal.SIGALRM,signal.SIG_IGN) print("You entered: ", data) for i in reversed(xrange(15)): print i time.sleep(1) print 'finished!' if I leave out the signal.signal(signal.SIGALRM,signal.SIG_IGN) then the timeout function gets called anyway. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Enumerating all 3-tuples

2018-03-21 Thread Robin Becker
toBasics.html Since that's exactly what I need to do, that might be a problem. On the other hand, I doubt I'll need to generate more than a few thousand of these, so it might be fast enough. I guess I have to run some benchmarks to find out. But however they turn out, I appreciate your

Re: curious asymmetry in range limiting

2018-03-20 Thread Robin Becker
ght dawned :) seems the negative indexes rules apply to both On 20/03/2018 14:21, Robin Becker wrote: I don't know how I never came across this before, but there's a curious asymmetry in the way ranges are limited Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.19

curious asymmetry in range limiting

2018-03-20 Thread Robin Becker
or "license" for more information. >>> s = '0123456789' >>> print(repr(s[-5:5])) '' >>> print(repr(s[5:15])) '56789' >>> why is the underflow start index treated so differently from the limit index overflow? I suppose there must be some reason, but it eludes me. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Enumerating all 3-tuples

2018-03-13 Thread Robin Becker
On 13/03/2018 11:14, Steven D'Aprano wrote: On Mon, 12 Mar 2018 13:17:15 +0000, Robin Becker wrote: It's possible to generalize the cantor pairing function to triples, but that may not give you what you want. Effectively you can generate an arbitrary number of triples using an iterat

Re: Enumerating all 3-tuples

2018-03-13 Thread Robin Becker
On 12/03/2018 18:05, Chris Angelico wrote: On Tue, Mar 13, 2018 at 2:54 AM, Robin Becker wrote: On 12/03/2018 13:17, Robin Becker wrote: An alternative approach gives more orderly sequences using a variable base number construction 4 (0, 0, 1) 9 (0, 0, 1) 18 (0, 0, 2) 32 (0, 0, 2) I spy

Re: Enumerating all 3-tuples

2018-03-12 Thread Robin Becker
On 12/03/2018 13:17, Robin Becker wrote: It's possible to generalize the cantor pairing function to triples, but that may not give you what you want. Effectively you can generate an arbitrary number of triples using an iterative method. My sample code looked like this ct mapping o

Re: Enumerating all 3-tuples

2018-03-12 Thread Robin Becker
is give different outcomes, but both appear to be a correct mapping of non-negative integers to triplets. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: py2exe output flagged as malware

2018-02-28 Thread Robin Becker
On 28/02/2018 16:25, Hartmut Goebel wrote: Am 28.02.2018 um 16:47 schrieb Robin Becker: I upgraded pyinstaller using the very latest pip and now the version of pyinstaller at least is 3.3.1. I don't actually know how to check the validity of the installed code or the binary stubs. The cu

Re: py2exe output flagged as malware

2018-02-28 Thread Robin Becker
On 28/02/2018 11:46, alister via Python-list wrote: On Wed, 28 Feb 2018 09:53:09 +, Robin Becker wrote: I see this has happened to others in the past. I'm using 32 bit python 2.7.10 with py2exe 3.3 on windows 7. The exes work fine, but when I try to download into windows 10 I'm g

py2exe output flagged as malware

2018-02-28 Thread Robin Becker
hon programs to get this kind of reputation. Anyone know if the same happens with PyInstaller etc etc? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-10 Thread Robin Becker
http://aosabook.org/en/500L/a-python-interpreter-written-in-python.html -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: unicode direction control characters

2018-01-02 Thread Robin Becker
On 02/01/2018 15:18, Chris Angelico wrote: On Wed, Jan 3, 2018 at 1:30 AM, Robin Becker wrote: I'm seeing some strange characters in web responses eg u'\u200e28\u200e/\u200e09\u200e/\u200e1962' for a date of birth. The code \u200e is LEFT-TO-RIGHT MARK according to unicodedata

unicode direction control characters

2018-01-02 Thread Robin Becker
ard way to deal with these? I assume that some browser+settings combination is putting these in eg perhaps the language is normally right to left but numbers are not. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Templating Language

2017-12-20 Thread Robin Becker
On 17/12/2017 06:41, Abdur-Rahmaan Janhangeer wrote: Hi all, Can somebody point out to me some py-based template languages interpreters resources? Thank you ! https://bitbucket.org/rptlab/preppy -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

headless python app for android/ios

2017-10-27 Thread Robin Becker
nd of background app with listening sockets etc etc? Can applications call out to the world to download updated templates and so on? Any pointers would be useful. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Let's talk about debuggers!

2017-10-27 Thread Robin Becker
setattr(fd, when, attrs.as_list()) error is here class Term(TermState): TS__init__ = TermState.__init__ def __init__(self, fd=0): self.TS__init__(termios.tcgetattr(fd)) self.fd = fd -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: efficient way to get a sufficient set of identifying attributes

2017-10-20 Thread Robin Becker
On 19/10/2017 17:50, Stefan Ram wrote: Robin Becker writes: ... this sort of makes sense for single attributes, but ignores the possibility of combining the attributes to make the checks more discerning. What I wrote also applies to compound attributes (sets of base attributes

Re: efficient way to get a sufficient set of identifying attributes

2017-10-19 Thread Robin Becker
On 19/10/2017 16:42, Stefan Ram wrote: Robin Becker writes: Presumably the information in any attribute is highest if the number of distinct occurrences is the the same as the list length and pairs of attributes are more likely to be unique, but is there some proper way

efficient way to get a sufficient set of identifying attributes

2017-10-19 Thread Robin Becker
about determining what tests to use? A particular problem might be dynamic in that the list may be being constructed from the probes. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: why del is not a function or method?

2017-10-18 Thread Robin Becker
take a syntax we are famillar with? It can look like a function x = 3 del(x) x Traceback (most recent call last): File "", line 1, in NameError: name 'x' is not defined -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: The "loop and a half"

2017-10-04 Thread Robin Becker
On 04/10/2017 11:57, Rhodri James wrote: On 04/10/17 10:01, Robin Becker wrote: Given the prevalence of the loop and a half idea in python I wonder why we don't have a "do" or "loop" statement to start loops without a test. See PEP 315.  Guido's rejection note is

Re: The "loop and a half"

2017-10-04 Thread Robin Becker
l 117 C:\Python36\Lib>grep "while True" *.py | wc -l 131 C:\Python36\Lib>grep "while 1" *.py | wc -l 44 How much does the while True actually cost compared to nothing? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Even Older Man Yells At Whippersnappers

2017-09-27 Thread Robin Becker
On 20/09/2017 10:54, Chris Angelico wrote: What, you take silicon that someone else created?! ChrisA well I had germanium for flipflops and dekatron tubes with neon for counters never built anything digital with valves though -- Robin Becker -- https://mail.python.org/mailman

Re: How do I check all variables returned buy the functions exists

2017-09-20 Thread Robin Becker
; 100 loops, best of 3: 0.504 usec per loop C:\usr\share\robin\pythonDoc>python -m timeit -s"values=(None,2,None)" "None in values" 1000 loops, best of 3: 0.0309 usec per loop C:\usr\share\robin\pythonDoc>python -m timeit -s"values=(1,2,None)" "None

Re: windows 8 versus urllib2 certificate verify

2017-09-12 Thread Robin Becker
On 12/09/2017 08:35, dieter wrote: Robin Becker writes: Certificate verification generally depends on local configuration: specifically, the set of installed trusted root certificates. I do not know about Windows, but often the root certificates installed for other packages, e.g. the browser

windows 8 versus urllib2 certificate verify

2017-09-11 Thread Robin Becker
this fail only on windows 8? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Challenge: find the first value where two functions differ

2017-08-04 Thread Robin Becker
tested. On the assumption that we want a solution before the return of Halley's Comet, how would you go about finding M? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: SSL/TLS support in Pyro4

2017-08-04 Thread Robin Becker
On 04/08/2017 15:12, Irmen de Jong wrote: On 04/08/2017 15:44, Robin Becker wrote: .. You can specify a CAcert using load_verify_locations on the ssl context. Is that what you meant? I figured out that if you set that to the peer's certificate it will then be yes I thi

Re: SSL/TLS support in Pyro4

2017-08-04 Thread Robin Becker
thon apis allow the authority chain to be specified. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: SSL/TLS support in Pyro4

2017-08-04 Thread Robin Becker
works correctly. .. I've used self created authorities with mariadb and mongo to secure local clusters. Could this provide private secure certs for pyro? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: cgiapp versus apache & nginx+fcgiwrap

2017-08-03 Thread Robin Becker
On 02/08/2017 20:34, Glenn Linderman wrote: On 8/2/2017 1:13 AM, Robin Becker wrote: we always seem to get keys in K even if it is an empty list. Can you treat None and empty list the same? Looking at the envirnment that the cgi script sees I cannot see anything obvious except the

cgiapp versus apache & nginx+fcgiwrap

2017-08-02 Thread Robin Becker
.4) is doing something different. The client would feel more comfortable with apache. Does anyone know how to properly distinguish the two mechanisms ie standard POST and a POST with no structure? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: About the implementation of del in Python 3

2017-07-07 Thread Robin Becker
. For example, if you pass a toy in front of the baby, then behind a screen, and swap it for a different toy before showing it again, babies tend to express surprise. presumably this is after they learn (or make the assumption) of object permanence. -stuffed-with-assumptions-ly yrs- Robin B

cgitb weirdness between apache and nginx

2017-07-03 Thread Robin Becker
silly when I don't know when an error will occur. Is there a way to get cgitb to check whether anything has been written to stdout when it starts up? Or is there some standard way to initialize stdout so that cgitb will not force apache to the wrong conclusion? -- Robin Becker -- https:/

Re: Progress on the Gilectomy

2017-06-19 Thread Robin Becker
be one of the hardest things about the C api. I'm not sure exactly how C extensions would/should interact with a GC python. There seem to be different approaches eg lua & go are both GC languages but seem different in how C/GC memory should interact. -- Robin Becker -- https://mail.p

Re: Progress on the Gilectomy

2017-06-13 Thread Robin Becker
e with other python implementations. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: new cert side effect

2017-05-05 Thread Robin Becker
Sorry for misposting this :( all the experts here will know what to do anyhow On 05/05/2017 15:30, Robin Becker wrote: Change of the web cert on hg.reportlab.com may affect your mercurial processing . [hostfingerprints] hg.reportlab.com=03:05:54:fb:14:62:b5:18:81:ec:b1:9c:b4

new cert side effect

2017-05-05 Thread Robin Becker
to change the fingerprint in your ~/.hgrc [hostfingerprints] hg.reportlab.com=03:05:54:fb:14:62:b5:18:81:ec:b1:9c:b4:eb:28:a0:55:28:6f:c4 . -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

django float round tripping

2017-04-07 Thread Robin Becker
(o, d): return '%.15g' % o if I change this to def Float2Str(o, d): return repr(o) I do seem able to get reproducibility. Are there any downsides to making this change? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: cross python version randomness

2017-03-21 Thread Robin Becker
On 21/03/2017 09:43, Pavol Lisy wrote: On 3/21/17, Kev Dwyer wrote: Robin Becker wrote: Is there a way to get the same sequences of random numbers in python 2.7 and python >= 3.3? I notice that this simple script produces different values in python 2.7 and >=3.3 C:\code\hg-repos\rep

Re: cross python version randomness

2017-03-21 Thread Robin Becker
ally care about the quality of the ints produced, but I do care about reproducibility, luckily I think it's feasible to monkey patch the 2.7 method back in. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

cross python version randomness

2017-03-20 Thread Robin Becker
ython u.py 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:35:05) [MSC v.1600 64 bit (AMD64)] 0 0.9790501200727744 1 0.45629827629184827 2 0.7188470341002364 3 0.7348862425853395 4 0.21490166849706338 presumably randint is doing something different to get its values. -- Robin Becker -- https://mail.python.org

Re: Dynamically replacing an objects __class__; is it safe?

2017-03-16 Thread Robin Becker
On 16/03/2017 14:03, D'Arcy Cain wrote: On 2017-03-16 09:45 AM, Robin Becker wrote: On 15/03/2017 13:53, Steve D'Aprano wrote: You probably can't make a whale fly just by changing the class to bird. It will need wings, and feathers, at the very least. the whale in the Hit

Re: Dynamically replacing an objects __class__; is it safe?

2017-03-16 Thread Robin Becker
On 15/03/2017 13:53, Steve D'Aprano wrote: You probably can't make a whale fly just by changing the class to bird. It will need wings, and feathers, at the very least. the whale in the Hitchhiker's Guide found itself flying without feathers or wings -- Robin B

Re: [RELEASE] Python 3.6.0 is released!

2016-12-23 Thread Robin Becker
py:81: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect warn=(impl == 'cp')): I guess this must mean I need to set something somewhere, but what? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

htmlparser charrefs

2016-12-22 Thread Robin Becker
hat functionality safely. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-12 Thread Robin Becker
)] on win32 Type "help", "copyright", "credits" or "license" for more information. import sys -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Inconsistencies

2016-09-12 Thread Robin Becker
omewhat moot under such assumptions. Also presumably there are other constructions of 'our' familiar arithmetic. Perhaps someone could probably make an arithmetic where most of standard ZF is true except for 1<2. Gödel definitely says there are holes in arithmetic :) -possibly non-

Re: How to split value where is comma ?

2016-09-08 Thread Robin Becker
upon receipt. Do you realize how stupid it is to put this on a message sent all around the world? I have worked places where they put stuff like this at the bottom of emails sent to the person sitting next to them :) -raising entropy-ly yrs- Robin Becker -- https://mail.python.org/ma

Re: make an object read only

2016-08-05 Thread Robin Becker
On 05/08/2016 01:03, Lawrence D’Oliveiro wrote: objects after the save method has been used. The user had mixed results :( As GvR has said: “we’re all consenting adults here”. In other words, we”re capable of coping with the consequences of our actions. agreed :) -- Robin Becker

Re: gmane sending

2016-08-03 Thread Robin Becker
:: host mail.python.org [188.166.95.178]: 504-5.5.2 : Helo command rejected: need fully-qualified hostname this being sent by gmane -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

make an object read only

2016-08-02 Thread Robin Becker
, but that disallows referencing valid properties eg pagesize, fontName, etc etc. Is there a way to recursively turn everything immutable? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

gmane sending

2016-08-02 Thread Robin Becker
I just got a mail bounce from my normal gmane --> nntp setup sending to python-python-l...@m.gmane.org. Have others seen this and does it mean the end of gmane has happened? See https://developers.slashdot.org/story/16/07/28/2059249/the-end-of-gmane -- Robin Becker -- https://mail.python.

Re: Algorithm for sequencing a collection of dependent equations

2016-07-25 Thread Robin Becker
mutual dependencies then you need to find a set of variables that cuts all the loops and solve for those simultaneously. Unfortunately for a directed graph structure I think the minimal cutset problem is NP complete so good luck with that. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Want to play with or learn a parser system including a grammar for Python? See spark_parser on pypy

2016-06-10 Thread Robin Becker
don't catch stuff like this. But I'm sure there are also other mistakes as well in there so feel free to let me know. not a big deal; I like the spark parser :) -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Want to play with or learn a parser system including a grammar for Python? See spark_parser on pypy

2016-06-08 Thread Robin Becker
n Rossum at CWI in the Netherlands" so that Aycocks's paper must have been at the -1st Python Conference -parallely yrs- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Don't put your software in the public domain

2016-06-02 Thread Robin Becker
quent copyright owners (heirs, divorcing spouses, creditors). . I'm surprised the tax man doesn't have a say; if I disclaim any property/right in the UK it might be thought of as an attempt to evade death duties, taxes always outlive death :( -- Robin Becker -- https://mail.pyt

Re: str(float) python 3 versus 2.7

2016-05-24 Thread Robin Becker
On 23/05/2016 18:05, Ian Kelly wrote: On Mon, May 23, 2016 at 10:39 AM, Robin Becker wrote: . If you want to show the float in a less noisy format, you can explicitly format it using the 'g' or 'n' presentation type, which essentially round to a given precision an

str(float) python 3 versus 2.7

2016-05-23 Thread Robin Becker
le way to take a set of floats and find a suitable format to show significant figures for all, but leave off the noise? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: sum accuracy

2016-04-15 Thread Robin Becker
-summation-accurate-to-full-p/ for an example of a more accurate algorithm, but note that, for example, this algorithm wouldn't work on complex numbers (you'd have to sum the real and imaginary components separately) yes indeed summation is hard :( -- Robin Becker -- https://mail.python.

sum accuracy

2016-04-13 Thread Robin Becker
Does anyone know if sum does anything special to try and improve accuracy? My simple tests seem to show it is exactly equivalent to a for loop summation. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: 2.7 source import in python 3.x

2016-04-04 Thread Robin Becker
no attribute 'module_from_spec' The example does work in python 3.5.0 so I guess the docs are a bit misleading. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

2.7 source import in python 3.x

2016-04-04 Thread Robin Becker
#x27;)),'reportlab_mods') except (ImportError,KeyError): pass and is intended to allow per user actions in a config file when reportlab is imported. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: asyncio - run coroutine in the background

2016-02-16 Thread Robin Becker
On 16/02/2016 17:15, Marko Rauhamaa wrote: Marko Rauhamaa : Sure: Sorry for the multiple copies. Marko I thought perhaps background jobs were sending them :) -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: How to remove item from heap efficiently?

2016-01-13 Thread Robin Becker
sets/gets can affect individual times quite a lot. I seem to remember there was some kind of hashing attack against python dicts that would use up large amounts of time, but I guess that's now fixed. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: debugging uwsgi

2016-01-08 Thread Robin Becker
On 08/01/2016 15:03, Robin Becker wrote: I have an unusual bug in a large django project which has appeared when using nginx + uwsgi + django. The configuration nginx + flup + django or the django runserver don't seem to create the conditions for the error. Basically I am seeing an

debugging uwsgi

2016-01-08 Thread Robin Becker
reter's gone wrong somehow. Any good ways forward with debugging this sort of issue? I'm not sure how I would remotely debug this using winpdb. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: llewelly...@gmail.com

2015-11-05 Thread Robin Becker
On 05/11/2015 17:15, Peter Otten wrote: Robin Becker wrote: Hi, did you find your phone? If not -- it's probably on comp.lang.perl.misc Glad to be of help ;) weird no idea why this ended up here; thunderbird is a bit strange today -mis-guidedly yrs- Robin Becker --

llewelly...@gmail.com

2015-11-05 Thread Robin Becker
Hi, did you find your phone? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows 10 pip2.7.exe uninstall fails

2015-10-28 Thread Robin Becker
\tox\venv.py c:\python27\lib\site-packages\tox\venv.pyc c:\python27\scripts\tox-quickstart.exe c:\python27\scripts\tox.exe Proceed (y/n)? y Successfully uninstalled tox C:\tmp> so perhaps yours is an exceptional case -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: how to get python socket to use a specific interface

2015-10-28 Thread Robin Becker
.com", 80)) sock.send("GET / HTTP/1.0\r\n\r\n") print sock.recv(20) sock.close() it does work as intended and I can see the .13 address hitting the remote server. I guess my hack of the miproxy code didn't work as intended. Anyhow my upstream provider has taken ove

Re: how to get python socket to use a specific interface

2015-10-27 Thread Robin Becker
On 26/10/2015 22:29, Cameron Simpson wrote: On 26Oct2015 12:33, Robin Becker wrote: . $ ifconfig eth0 Link encap:Ethernet HWaddr 00:...4 GB) Interrupt:16 eth0:0Link encap:Ethernet HWa... Do you need to bind to the device itself? Using the

Re: how to get python socket to use a specific interface

2015-10-26 Thread Robin Becker
. device? -- Robin Becker Using eth0:0 is normally a method to setup eth0 to respond to a 2nd IPV4/IPV6 address. Have you done the ifconfig steps to enable that? If its been done, you will see it's 2nd address in an ifconfig query. Man pages are wunnerful things. yes I have

how to get python socket to use a specific interface

2015-10-23 Thread Robin Becker
This works if I export BIND_DEVICE='eth0' and run as root, but my desired interface is actually called 'eth0:0' and when I run with that exported I get a device error. Does anyone know what I should call the device? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: python3.5 + reportlab + windows again

2015-10-12 Thread Robin Becker
On 08/10/2015 10:26, Robin Becker wrote: On 06/10/2015 16:31, Robin Becker wrote: . well it seems someone can build these extensions properly. I used Christoph Gohlke's reportlab build and although there are 3 failures in the latest tests I don't see any crashes etc etc a

Re: python3.5 + reportlab + windows again

2015-10-08 Thread Robin Becker
On 06/10/2015 16:31, Robin Becker wrote: . well it seems someone can build these extensions properly. I used Christoph Gohlke's reportlab build and although there are 3 failures in the latest tests I don't see any crashes etc etc and all the failures are explainable. Last t

Re: python3.5 + reportlab + windows again

2015-10-06 Thread Robin Becker
On 06/10/2015 16:14, Robin Becker wrote: I can run all of the reportlab tests OK under ubuntu 14.04 amd65 with the latest python 3.5 (built using configure make dance). I guess I have to think about creating a debug build of python 3.5 and or one or more extensions. Does anyone

python3.5 + reportlab + windows again

2015-10-06 Thread Robin Becker
e PCBUILD? I vaguely remember /Od /Zi, but this is a new version of VS so perhaps I'm out of date. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: problem building python 3.5 extensions for windows

2015-09-23 Thread Robin Becker
On 22/09/2015 22:37, cjgoh...@gmail.com wrote: On Tuesday, September 22, 2015 at 1:49:16 PM UTC-7, Terry Reedy wrote: On 9/22/2015 9:35 AM, Robin Becker wrote: On 22/09/2015 11:14, Robin Becker wrote: On 22/09/2015 01:36, CG wrote: .t <http://bugs.python.org/issue24872#msg249

Re: problem building python 3.5 extensions for windows

2015-09-22 Thread Robin Becker
On 22/09/2015 11:14, Robin Becker wrote: On 22/09/2015 01:36, cjgoh...@gmail.com wrote: .t <http://bugs.python.org/issue24872#msg249589>. Thanks for the pointer Christoph. I certainly didn't let it run for 30 minutes. When I build with 2.7, 3.3 or 3.4 the whole buil

Re: problem building python 3.5 extensions for windows

2015-09-22 Thread Robin Becker
On 22/09/2015 01:36, cjgoh...@gmail.com wrote: On Monday, September 21, 2015 at 9:54:51 AM UTC-7, Robin Becker wrote: build\temp.win-amd64-3.5\Release\ux\XB33\repos\pyRXP\src\pyRXPU.cp35-win_amd64.lib and ob ject build\temp.win-amd64-3.5\Release\ux\XB33\repos\pyRXP\src\pyRXPU.cp35

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
ng code Stderr: | error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\link.exe' failed with exit status 1 so there are some warnings which I don't understand. Maybe I need to do something special for pyRXP (possibly I have some ifdefs poorly configured). -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
wnload Visual Studio". I think that's where I'm headed. Sadly this has been the worst python upgrade for a long time in windows land. I would gladly forgo all the bells and whistles for a simple install of the C compiler, but I'm never certain that I'll be able to do cro

problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
his to work? Should I try a full reinstall of VS2015? I can start the VS2015 Developer command prompt, but it doesn't then know about the "cl" command. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Robin Becker
On 15/09/2015 16:54, Zachary Ware wrote: On Tue, Sep 15, 2015 at 8:32 AM, Robin Becker wrote: I'm a bit surprised that you can successfully use the same .libs for 2.7 and 3.3/3.4. But since that seems to work, I'd say go ahead and try it with 3.5, and if the build succeed

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Robin Becker
On 15/09/2015 12:38, Robin Becker wrote: On 14/09/2015 17:26, Mark Lawrence wrote: On 14/09/2015 16:52, Robin Becker wrote: ... http://stevedower.id.au/blog/building-for-python-3-5-part-two/ The most important thing is to have something to do while the Visual Studio installation takes

Re: how to build windows extensions for python 3.5

2015-09-15 Thread Robin Becker
On 14/09/2015 17:26, Mark Lawrence wrote: On 14/09/2015 16:52, Robin Becker wrote: ... http://stevedower.id.au/blog/building-for-python-3-5-part-two/ The most important thing is to have something to do while the Visual Studio installation takes up 8G of your disk space and several hours

how to build windows extensions for python 3.5

2015-09-14 Thread Robin Becker
s) to first get that installed. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: what windows compiler for python 3.5?

2015-07-24 Thread Robin Becker
On 24/07/2015 11:38, Chris Angelico wrote: On Fri, Jul 24, 2015 at 8:25 PM, Robin Becker wrote: ... more searching I find this on the 3.5 b1 download page "Windows users: The Windows binaries were built with Microsoft Visual Studio 2015, which is not yet officially released.

Re: what windows compiler for python 3.5?

2015-07-24 Thread Robin Becker
On 24/07/2015 11:20, Robin Becker wrote: I read this https://docs.python.org/dev/whatsnew/3.5.html which incidentally marks the release as 3.6.0a0 :) but failed to find any details regarding which windows compiler is required. more searching I find this on the 3.5 b1 download page "Wi

what windows compiler for python 3.5?

2015-07-24 Thread Robin Becker
I read this https://docs.python.org/dev/whatsnew/3.5.html which incidentally marks the release as 3.6.0a0 :) but failed to find any details regarding which windows compiler is required. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: A new module for performing tail-call elimination

2015-07-17 Thread Robin Becker
On 16/07/2015 17:17, Ian Kelly wrote: On Thu, Jul 16, 2015 at 3:28 AM, Robin Becker wrote: . I believe the classic answer is Ackermann's function http://demonstrations.wolfram.com/RecursionInTheAckermannFunction/ which is said to be not "primitive recursive&quo

Re: A new module for performing tail-call elimination

2015-07-16 Thread Robin Becker
is-the-difference-between-total-recursive-and-primitive-recursive-functions -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: A new module for performing tail-call elimination

2015-07-16 Thread Robin Becker
t;>> def odd(n): ... return bool(n%2) ... >>> def even(n): ... return not odd(n) ... not much more complex, but the logic for A(n) and not A(n) is only done once. Not really much to do with TCO though. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in floating point multiplication

2015-07-02 Thread Robin Becker
;, line 1 for i in range(1, 100): ^ IndentationError: unexpected indent >>> for i in range(1, 100): ... if int(i*x) == i: ... print(i); break ... 2049 >>> robin@everest:~/devel/filps -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in floating point multiplication

2015-07-02 Thread Robin Becker
"license" for more information.) If I convert old style x = 1.0 - 1.0/2**53 then the assertion succeeds and the loop does not print. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: rl_config

2015-06-22 Thread Robin Becker
On 22/06/2015 13:03, Robin Becker wrote: Anyone wishing to bend their minds around instance as module can see the code I've tested on //annapurna/tmp/rl_config.py. whoops misposted sorry -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

rl_config

2015-06-22 Thread Robin Becker
Anyone wishing to bend their minds around instance as module can see the code I've tested on //annapurna/tmp/rl_config.py. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Opening PDF Using subprocess.Popen Failing

2015-06-22 Thread Robin Becker
On 22/06/2015 11:33, Robin Becker wrote: . Naftali, I ran the following from python prompt for what it's worth this also works on my machine Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS C:\Users\rptlab> cd tmp PS C:\User

<    1   2   3   4   5   6   7   8   >