Re: Enumerating all 3-tuples

2018-03-21 Thread Robin Becker
tly 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 time and code. Thanks heaps! -- Robin B

Re: curious asymmetry in range limiting

2018-03-20 Thread Robin Becker
ndexes 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.1900 64 bit (AMD64)] on win32 Type "help"

curious asymmetry in range limiting

2018-03-20 Thread Robin Becker
icense" 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 +, 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

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 <ro...@reportlab.com> 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,

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 of non

Re: Enumerating all 3-tuples

2018-03-12 Thread Robin Becker
utcomes, 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 current

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 getting

py2exe output flagged as malware

2018-02-28 Thread Robin Becker
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 <ro...@reportlab.com> 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 acc

unicode direction control characters

2018-01-02 Thread Robin Becker
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
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
, 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 <ro...@reportlab.com> 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

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 <ro...@reportlab.com> 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

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
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 here: htt

Re: The "loop and a half"

2017-10-04 Thread Robin Becker
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
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 in v

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
at 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 think so

Re: SSL/TLS support in Pyro4

2017-08-04 Thread Robin Becker
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
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

cgiapp versus apache & nginx+fcgiwrap

2017-08-02 Thread Robin Becker
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 Becker

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://mail

Re: Progress on the Gilectomy

2017-06-19 Thread Robin Becker
to 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.python

Re: Progress on the Gilectomy

2017-06-13 Thread Robin Becker
mentations. -- 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
): 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 <kevin.p.dw...@gmail.com> 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

Re: cross python version randomness

2017-03-21 Thread Robin Becker
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 Hitchhiker's Guide

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 Becker -- https

Re: [RELEASE] Python 3.6.0 is released!

2016-12-23 Thread Robin Becker
g: 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
ide that functionality safely. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-20 Thread Robin Becker
Robin Becker added the comment: for what it's worth I tried reverse patching https://hg.python.org/cpython/rev/63ae310b60ff/ and https://hg.python.org/cpython/rev/2f77a9f0b9d6/ in the manylinux docker and the make then proceeds fine with one warning at the end *** WARNING: renaming

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Robin Becker
Robin Becker added the comment: After some searching I tried adding -std=gnu99 and the config goes through OK, but running make produces [root@d3cce9786c2e Python-3.6.0b2]# make -j2 gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Robin Becker
Robin Becker added the comment: benjamin.peterson: I tried adding that option -fno-gnu89-inline conditionally for the 3.6.0b2 build, but it goes wrong in config with an error configure:3913: $? = 4 configure:3933: checking whether the C compiler works configure:3955: gcc -Wformat -fno-gnu89

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Robin Becker
Robin Becker added the comment: I'm not able to access my work computer, I'll try later today at home. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-14 Thread Robin Becker
Robin Becker added the comment: tds333, the config says that 4.8.2 is being used, configure:3902: gcc --version >&5 gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO w

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-14 Thread Robin Becker
Robin Becker added the comment: Hi njs, my manylinux diffs https://www.reportlab.com/media/manylinux-diff.txt full output of the docker command docker build -f Dockerfile-x86_64 -t rl/manylinux-x86_64 . &> ~/tmp/ttt https://www.reportlab.com/media/manylinux-docker-run-output.txt

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread Robin Becker
Robin Becker added the comment: I executed gcc --version ( --version) in the do_cpython_build function immediately prior to the make -j2 that builds python noth show 4.8.2. I see the exact same errors as in the initial report. If the makefile or the configure is doing something special then I

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-13 Thread Robin Becker
Robin Becker added the comment: Don't want to add too much noise, but this issue also affects the manylinux project build compiler (gcc 4.8.2). -- nosy: +rgbecker ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

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
ot 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-existently yrs- Robi

Re: How to split value where is comma ?

2016-09-08 Thread Robin Becker
ontact the sender immediately 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 --

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
mail server after RCPT TO:<python-list@python.org>: 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
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
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
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.python.org/mailman

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 <ro...@reportlab.com> 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 pre

str(float) python 3 versus 2.7

2016-05-23 Thread Robin Becker
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
-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.org/mailman/listinfo

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
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
,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 <ma...@pacujo.net>: 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
rently the history of 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

debugging uwsgi

2016-01-08 Thread Robin Becker
d 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: 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 error

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: 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 -- https

Re: Windows 10 pip2.7.exe uninstall fails

2015-10-28 Thread Robin Becker
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
TP/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 over the problem so hopefully I will get the address

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 <ro...@reportlab.com> wrote: . $ ifconfig eth0 Link encap:Ethernet HWaddr 00:...4 GB) Interrupt:16 eth0:0Link encap:Ethernet HWa... Do you need t

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 done

how to get python socket to use a specific interface

2015-10-23 Thread Robin Becker
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 and all

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 thing I saw

python3.5 + reportlab + windows again

2015-10-06 Thread Robin Becker
/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: 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

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 build inc

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
tudio". 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 cross-compiles etc etc etc :( -- Ro

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
rogram 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

problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
ll 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 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

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 <ro...@reportlab.com> 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 wi

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

how to build windows extensions for python 3.5

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

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: 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 Windows

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 ro...@reportlab.com 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

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 ro...@reportlab.com wrote: . I believe the classic answer is Ackermann's function http://demonstrations.wolfram.com/RecursionInTheAckermannFunction/ which is said to be not primitive

Re: A new module for performing tail-call elimination

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

<    1   2   3   4   5   6   7   8   >