Re: cropping a random part of an image

2016-08-09 Thread Robin Koch
nd)".format(numOfImages/t)) print("({:.1f} tiles per second)".format(tilesPerImage*numOfImages/t)) -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

[issue27707] List reports incorrect length if modifed after yield

2016-08-08 Thread Robin
New submission from Robin: reproduction script below. In the last print statement, it shows me a list with items in it, but with a length of 0 def generator(): l = [] yield l l.append(1) # this correctly prints 1 print(len(l)) # this should print [([1

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

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2016-06-03 Thread Robin Roth
Robin Roth added the comment: Based on the review by SilentGhost I removed all refactoring-changes and only left the one line needed for the fix. -- Added file: http://bugs.python.org/file43140/minimal_fix_ismount_directory_not_readable.patch

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: Python PygLatin

2016-05-09 Thread Robin Koch
aborate your knowledge about conditional probability as well. P("X is programmer" | "X is in Forbes Top 10") != P("X is in Forbes Top 10" | "X is programmer") -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2016-04-22 Thread Robin Roth
Robin Roth added the comment: Any progress on merging this? The fix is simple, there is a test; anything else I can do to help? Ansible integrated the patch posted here as a workaround of an issue this caused. So there was some external review of the fix. See https://github.com/ansible/ansible

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: Stop writing Python 4 incompatible code

2016-01-15 Thread Robin Koch
ee TeX. :-) -- Robin Koch -- 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

Re: Is there a way importing a string object?

2016-01-05 Thread Robin Koch
e, read likes a part of the body. I am bad on composition. Even after your reminder, I still can't think of a better one:-( I think the subject is fine. But you should have extended your message body a little so your question is understandable without reading the subject. -- Robin Koch -- https://mai

Re: Trailing zeros of 100!

2016-01-02 Thread Robin Koch
cedure in my other answer.) -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: Trailing zeros of 100!

2016-01-02 Thread Robin Koch
Am 02.01.2016 um 17:09 schrieb Tony van der Hoff: On 02/01/16 16:57, Robin Koch wrote: sum([int(0.2**k*n) for k in range(1, int(log(n, 5))+1)]) But did you actually test it? Yes, should work for n >= 1. Why do you ask? -- Robin Koch -- https://mail.python.org/mailman/listinfo/pyt

Re: Trailing zeros of 100!

2016-01-02 Thread Robin Koch
! contains 24 factors 5 and even more factors 2. So 100! contains 24 facotrs 10 and therefore has 24 trailing zeros. -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: Trailing zeros of 100!

2016-01-02 Thread Robin Koch
Am 02.01.2016 um 22:57 schrieb Chris Angelico: On Sun, Jan 3, 2016 at 3:56 AM, Robin Koch <robin.k...@t-online.de> wrote: Am 02.01.2016 um 17:09 schrieb Tony van der Hoff: On 02/01/16 16:57, Robin Koch wrote: sum([int(0.2**k*n) for k in range(1, int(log(n, 5))+1)]) But did you ac

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2015-12-17 Thread Robin Roth
Robin Roth added the comment: any comments/updates on merging this? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue2466> ___ ___

Re: geostationary satellite data

2015-12-16 Thread Robin Koch
at have been scaled to fit into 1-byte by subtracting | "75" from each datum. Therefore it is necessary for the user to add a | value of "75" to each data value when using the data. HTH a little, -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: Python variable assigning problems...

2015-12-11 Thread Robin Koch
execution from right to left is also a good choice, because one would like to do something like: x = y = z = 0 Again, assigning from left to right woud lead to errors. -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: Python variable assigning problems...

2015-12-11 Thread Robin Koch
Am 11.12.2015 um 17:39 schrieb Ian Kelly: On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch <robin.k...@t-online.de> wrote: Assigning goes from right to left: x,y=y,x=2,3 <=> y, x = 2, 3 x, y = y, x Otherwise the assignment x, y = y, x would not make any sense, since x and y haven'

Re: Help on for loop understanding

2015-12-07 Thread Robin Koch
hod in Python 3.x) of the iterator -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: increment/decrement operators

2015-12-05 Thread Robin Koch
answer: x += y works. (Well, it should.) x++ doesn't. Long answer: I'm sure someone more experienced will come up with one shortly. :-) Until then I found this: http://stackoverflow.com/a/1485854 -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: 'string.join' is wrong in my Python console

2015-12-03 Thread Robin Koch
Am 03.12.2015 um 17:25 schrieb Ian Kelly: On Thu, Dec 3, 2015 at 9:00 AM, Robin Koch <robin.k...@t-online.de> wrote: Now *I* am confused. Shouldn't it be ", ".join(['1', '2', '4', '8', '16']) instead? Without any importing? That would be the normal way to write i

Re: 'string.join' is wrong in my Python console

2015-12-03 Thread Robin Koch
o use the *string* module without importing it, I'd guess. Try: import string first then you should be able to access string.join without error. Now *I* am confused. Shouldn't it be ", ".join(['1', '2', '4', '8', '16']) instead? Without any importing? -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: 'string.join' is wrong in my Python console

2015-12-03 Thread Robin Koch
Am 03.12.2015 um 18:23 schrieb Terry Reedy: On 12/3/2015 11:00 AM, Robin Koch wrote: Am 03.12.2015 um 10:02 schrieb Gary Herron: On 12/02/2015 10:55 PM, Robert wrote: Hi, I read the tutorial on "Why is join() a string method instead of a list or tuple method?" at l

Re: 'string.join' is wrong in my Python console

2015-12-03 Thread Robin Koch
Am 03.12.2015 um 18:42 schrieb Mark Lawrence: On 03/12/2015 17:01, Robin Koch wrote: Am 03.12.2015 um 17:25 schrieb Ian Kelly: On Thu, Dec 3, 2015 at 9:00 AM, Robin Koch <robin.k...@t-online.de> wrote: Now *I* am confused. Shouldn't it be ", ".join(['1', '2', '4', '8',

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2015-11-14 Thread Robin Roth
Robin Roth added the comment: Antoine's suggestion does not work, because "dirname" does not cover enough cases (for example trailing slash, possibly more). As suggested by him I now use realpath (instead of abspath). I can't come up with a symlink-situation that is broken with th

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: Regular expressions

2015-11-03 Thread Robin Koch
Am 03.11.2015 um 05:23 schrieb ru...@yahoo.com: Of course there are people who misuse regexes. /^1?$|^(11+?)\1+$/ There are? 0:-) -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: GoPiGo script

2015-11-02 Thread Robin Koch
only the first 5 lines. So those (and only those) are repeated. The next line ("if mindist > us_dist(15):") wasn't intended and therefore *not* repeated. If you just learning programming with Python you migth want to start with smaller examples to understand the syntax better. Do you understand what the script is supposed to do in every line? -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: GoPiGo script

2015-11-02 Thread Robin Koch
does understand what I meant. Intend means something entirely different, and is not a Python term. Yes, I know the difference. I just didn't pay enough attention to it. Ironically enough I wrote actually another post about Android-intends earlier. -- Robin Koch -- https://mail.python.org

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

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2015-10-01 Thread Robin Roth
Robin Roth added the comment: This bug is still present and annoying. For me it appeared when running ismount on a nfs-mounted directory, when the user who runs python has no read permission inside the directory. Therefore the lstat on /mntdir/.. fails. Attached a patch that fixes

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

[issue25123] Logging Documentation - dictConfig disable_existing_loggers

2015-09-15 Thread Robin
New submission from Robin: logging.config.dictConfig appears to share the same parameter as logging.config.fileConfig - disable_existing_loggers. This parameter is documented for fileConfig but not dictConfig. Suggest update to dictConfig documentation section. -- assignee: docs

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

Re: Casting to a number (both int and float)?

2015-08-28 Thread Robin Koch
. -- Robin Koch -- https://mail.python.org/mailman/listinfo/python-list

Re: How to rearrange array using Python?

2015-07-30 Thread Robin Koch
to takeinto account. :-)) -- Robin Koch -- 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

Re: A new module for performing tail-call elimination

2015-07-16 Thread Robin Becker
(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
**53 then the assertion succeeds and the loop does not print. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in floating point multiplication

2015-07-02 Thread Robin Becker
$ uname -a Linux everest 4.0.6-1-ARCH #1 SMP PREEMPT Tue Jun 23 14:40:31 CEST 2015 i686 GNU/Linux robin@everest:~ $ python2 Python 2.7.10 (default, May 26 2015, 04:28:58) [GCC 5.1.0] on linux2 Type help, copyright, credits or license for more information. x = 1.0 - 1.0/2**53 assert x

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:\Users\rptlab

Re: Opening PDF Using subprocess.Popen Failing

2015-06-22 Thread Robin Becker
: [Error 2] The system cannot find the file specified -- 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: 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

Re: instance as module

2015-06-22 Thread Robin Becker
On 20/06/2015 08:24, Steven D'Aprano wrote: On Fri, 19 Jun 2015 07:29 pm, Robin Becker wrote: I'm trying to overcome a recursive import issue in reportlab. .. I'm afraid I don't understand what you are trying to say here. Why can't the user just set up such a default e.g

Re: instance as module

2015-06-19 Thread Robin Becker
On 19/06/2015 11:23, Peter Otten wrote: Robin Becker wrote: . Do I understand this correctly? You got bitten by a complex setup and now you are hoping to improve the situation by making it even more complex? How about reordering initialisation in such a way that the user defaults

instance as module

2015-06-19 Thread Robin Becker
an instance. I have set various dunders on the instance eg __file__, __doc__, __all__ __name__ and I made the object a borg, but it still seems a bit hacky. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: a more precise distance algorithm

2015-05-27 Thread Robin Becker
A minor point is that if you just need to compare distances you don't need to compute the hypotenuse, its square will do so no subtractions etc etc. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

subprocess.Popen zombie

2015-05-20 Thread Robin Becker
As part of a long running PyQT process running as a window app in Arch linux I needed an alert sound, I decided to use the beep command and the app code then looked like pid = Popen(['/home/robin/bin/mybeep', '-r3', '-f750', '-l100', '-d75']).pid the mybeep script handles module loading

Re: subprocess.Popen zombie

2015-05-20 Thread Robin Becker
On 20/05/2015 16:42, Alain Ketterlin wrote: Robin Becker ro...@reportlab.com writes: . The code I used to use with os.spawnl was even worse in leaving zombies around. For the same reason (os.wait() and os.waitpid() let you ... wait for child-processes). I suppose I needed

Re: GAE environment differences

2015-05-05 Thread Robin Becker
On 02/05/2015 10:14, Kev Dwyer wrote: Robin Becker wrote: ``` the user suggests that even though claims are made that you can use a filesystem, but stuff like pwd is missing. Apparently the user module has no meaning, but there is a users module? I guess I'll need to keep

GAE environment differences

2015-05-01 Thread Robin Becker
. Is that the case or is it that os.path or os.path.expanduser doesn't exist? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: GAE environment differences

2015-05-01 Thread Robin Becker
On 01/05/2015 13:15, Chris Angelico wrote: On Fri, May 1, 2015 at 8:29 PM, Robin Becker ro...@reportlab.com wrote: Best thing to do is to ask the user to post the complete traceback. You might need to use import os.path but normally I would expect that not to be an issue. jamesbynd said

Re: mac os core dump from detached process

2015-04-29 Thread Robin Becker
the trick. What I don't know is if the process started by a view that then detaches will inherit the flags and dump core properly. I have a mac test platform now and will attempt something myself. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

mac os core dump from detached process

2015-04-27 Thread Robin Becker
SIGSEGV etc etc. Is it possible to get core dumps on the Mac for debugging purposes? Would the detached process inherit flags etc etc from the starting process? I know little about OS X/Mach. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Robin Becker
the objects for years then the pickle protocol is probably better as it is not python version dependant. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: Brilliant or insane code?

2015-03-18 Thread Robin Becker
= len(x) assert len(y) == n result = [None] * (2*n) result[::2] = x result[1::2] = y return result interestingly whilst many of the other solutions can be improved/modernized in later pythons this one has stayed the same. -- Robin Becker -- https

Re: when may sys.executable be empty

2015-03-12 Thread Robin Becker
I have to find the python that's parallel to uwsgi (works in a virtualenv at least). -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

[issue18610] wsgiref.validate expects wsgi.input read to give exactly one arg

2015-02-17 Thread Robin Schoonover
Robin Schoonover added the comment: I'm not sure I follow, as it has little to say on whether the application's expected behavior here, and only a recommendation that the server allow it. But, it also defers to the Python Standard Library, which does have an opinion. I feel

ANNOUNCE: wxPython 3.0.2.0

2014-11-28 Thread Robin Dunn
, and Mac OS X 10.6+. In most cases the native widgets are used on each platform to provide a 100% native look and feel for the application, with some generic widgets filling the gaps where needed. -- Robin Dunn Software Craftsman http://wxPython.org -- https://mail.python.org/mailman/listinfo/python

Re: PyWart: Python's import statement and the history of external dependencies

2014-11-24 Thread Robin Becker
On 24/11/2014 16:51, Rick Johnson wrote: EVOLUTION LOVES A WINNER! I think evolution actually requires losers. Clearly there are more extinct species, peoples, languages etc etc than there are existing ones so perhaps if evolution 'loves' anything it 'loves' a loser. -- Robin Becker

pack circles into a partial annulus

2014-11-20 Thread Robin Becker
into the region. The idea is that they should be as far apart as possible so as to minimize overlap and avoid crossing the region boundary. Circle packing is hard so I'm thinking of using some kind of spring/repulsion model to do this. Has anyone any ideas about how to do this? -- Robin Becker

Re: pkcs7 signing

2014-11-05 Thread Robin Becker
On 05/11/2014 06:40, dieter wrote: Robin Becker ro...@reportlab.com writes: Is there a way to do pkcs7 / 12 signing with python. Have you checked whether OpenSSL supports this kind of signing? If it does, then you likely can use this via several Python wrappings for OpenSSL. I checked

pkcs7 signing

2014-11-04 Thread Robin Becker
Is there a way to do pkcs7 / 12 signing with python. I looked at various cryptographic packages, but it's not clear if any of them can do this. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >