Re: Cleaning the current environment after a fork

2006-04-06 Thread Robin Haswell
On Thu, 06 Apr 2006 12:47:25 +0200, Diez B. Roggisch wrote: > And even if that wasn't the case: I think as long as you don't run into > memory-troubles, don't do it. Its complex, flaky and thus an unnecessary > source of failure. Yeah that sounds fair enough. Actually I ran in to threading proble

Quickie: converting r"\x2019" to int

2006-04-06 Thread Robin Haswell
Hey guys. This should just be a quickie: I can't figure out how to convert r"\x2019" to an int - could someone give me a hand please? Cheers -Rob -- http://mail.python.org/mailman/listinfo/python-list

Re: Quickie: converting r"\x2019" to int

2006-04-07 Thread Robin Haswell
On Thu, 06 Apr 2006 20:00:13 +0200, Just wrote: > In article <[EMAIL PROTECTED]>, > Kent Johnson <[EMAIL PROTECTED]> wrote: > >> Robin Haswell wrote: >> Is this what you mean? >> In [9]: int(r'\x2019'[2:], 16) >> Out[9]: 8217 >> &

Re: OT: job offering in Milan

2006-04-07 Thread Robin Becker
ed to do portfolio analytics for Bita Plus and SBC; minimax risk curves were just my bag etc etc :). My math skills are now so degraded I have difficulty reading about conic programming using Nesterov's barrier functions etc etc. Oh well back to web scraping :( -- Robin Becker -- http://

Re: Quickie: converting r"\x2019" to int

2006-04-07 Thread Robin Haswell
> Therefore r'\x2019' is left unchanged, and cannot be converted to an > int. > > Rob, this explains *why* you are getting the above error. It does not > explain how to achieve your objective, as you have not specified what > it is. If you give more information, one of the resident gurus may be >

UnicodeDecodeError help please?

2006-04-07 Thread Robin Haswell
Okay I'm getting really frustrated with Python's Unicode handling, I'm trying everything I can think of an I can't escape Unicode(En|De)codeError no matter what I try. Could someone explain to me what I'm doing wrong here, so I can hope to throw light on the myriad of similar problems I'm having?

Re: Graph library for Python

2009-12-08 Thread Robin Becker
stra's shortest path there doesn't seem to be complete agreement on how to implement them; for the details of how nodes/edges/paths should be stored and efficiently manipulated there is huge variety. Wait seems like a good policy. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

eiger replacement?

2009-12-11 Thread Robin Becker
?products_id=18618&source=froogle. real memory = 1073168384 (1023 MB) The machine is Dell PowerEdge 400SC. Memory will cost about £78 for a 2Gb upgrade kit. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: eiger replacement?

2009-12-14 Thread Robin Becker
On 12/12/2009 05:38, Tim Roberts wrote: Steven D'Aprano wrote: On Fri, 11 Dec 2009 17:45:24 +0000, Robin Becker wrote: The current hardware CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2394.01-MHz 686-class CPU) [...] What does this have to do with Python? I'm guessing Robin ha

Re: Python (and me) getting confused finding keys

2009-12-22 Thread Robin Becker
possibly happen? Cheers, John another thread can remove the key prior to the has_key call; or perhaps edges isn't a real dictionary? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

decimal threading cost?

2010-01-22 Thread Robin Becker
Does using the decimal module incur a penalty because it imports threading or do I have to actually start a thread? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: decimal threading cost?

2010-01-22 Thread Robin Becker
On 22/01/2010 11:50, Mark Dickinson wrote: On Jan 22, 11:11 am, Robin Becker wrote: Does using the decimal module incur a penalty because it imports threading or do I have to actually start a thread? There is at least one threading-related performance penalty that doesn't involve the

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-25 Thread Robin Becker
tch?v=FxDOlhysFcM -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

fastcgi Access Checking

2009-10-22 Thread Robin Becker
tion done, but both involve extra fcgi scripts. One imports django and does the checking directly, the second uses urllib2 to forward the validation request using the original django http application. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

annotate a traceback

2009-10-29 Thread Robin Becker
info=%r' % info,) raise is this a reasonable approach? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

restricted mode???

2009-11-04 Thread Robin Becker
presumably open was not available there. Googling the error indicates something to do with restricted environments/mod_python+threads. I thought that restricted mode died ages ago. Any ideas what could be causing this? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Psyco on 64-bit machines

2009-11-16 Thread Robin Becker
tried a few things with it. It mostly works, but it isn't actually faster at normal programs. I've been told their target is for long running processes where JIT and similar can speed up the inner loops etc etc. Certainly makes sense for google apps in python so perhaps that's t

Re: Language mavens: Is there a programming with "if then else ENDIF" syntax?

2009-11-16 Thread Robin Becker
e this with "fi" as endif eg ~: $ if true; then > echo true > elif false; then > echo false > else > echo hostile logic > fi true ~: $ -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Language mavens: Is there a programming with "if then else ENDIF" syntax?

2009-11-16 Thread Robin Becker
Robin Becker wrote: ... modern sh seems to use this with "fi" as endif eg ~: $ if true; then > echo true > elif false; then > echo false > else > echo hostile logic > fi true ~: $ I meant to say that since sh uses this construct it cannot be too bad as

Re: python simply not scaleable enough for google?

2009-11-20 Thread Robin Becker
were real threads. Presumably that means they could potentially run in parallel on the 10 cpu machines of the future. I'm not so clear on whether the threadless tasklets will run on separate cpus. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: python simply not scaleable enough for google?

2009-11-23 Thread Robin Becker
sturlamolden wrote: On 20 Nov, 11:12, Robin Becker wrote: Presumably that means they could potentially run in parallel on the 10 cpu machines of the future. I'm not so clear on whether the threadless tasklets will run on separate cpus. You can make a user-space scheduler and

Knight's tour Warndorff's algorithm problem

2010-03-09 Thread Robin Rytich
Hi all I'm having some troubles with writing Knight's tour (http://en.wikipedia.org/wiki/Knight%27s_tour) solution in Python 3. I'm using Warnsdorff's algorithm (http://en.wikipedia.org/wiki/Knight% 27s_tour#Algorithm) and I'm wondering why it doesn't work with boards of certain sizes. I've writte

Re: Knight's tour Warndorff's algorithm problem

2010-03-10 Thread Robin Rytich
arks, I'll review public code more careful next time. Robin Rytich -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-11 Thread Robin Becker
s the distutils package desperately looking for a suitable compiler (and not finding it). Perhaps some expert on the python list knows which versions of VS support 64bit; I do have VS 2005/2008 etc, but I'll probably need to set up a 64bit machine to see if they will install on a 64bit

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
Following the information from MvL I will try and get the 2.6 pyds built for amd64, I see that there's a cross platform compile technique for distutils, but am not sure if it applies to bdist_winexe etc etc. I'll have a go at this next week. -- Robin Becker -- http://mail.python.o

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
.pyd : fatal error LNK1120: 69 unresolved externals I assume I can get those from a working Python amd64 install and stuff on one of the compiler paths somehow. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
On 12/03/2010 11:40, Robin Becker wrote: I assume I can get those from a working Python amd64 install and stuff on one of the compiler paths somehow. Not sure if this is a bug; I dug around a bit and find that because of the cross compilation distutils is supposed to add an extra

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-15 Thread Robin Becker
s should change to look it up there. ... Just checked and all the pyd's seem only to export the xxx_init functions (sometimes there are two in the pyd) so the .libs do seem a bit redundant. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

bug in bdist_wininst cross compile?

2010-03-17 Thread Robin Becker
at_name ! # next the command(s) will be initialized using that name bdist_base = self.get_finalized_command('bdist').bdist_base self.bdist_dir = os.path.join(bdist_base, 'wininst') if not self.target_version: which forces

Re: bug in bdist_wininst cross compile?

2010-03-18 Thread Robin Becker
On 17/03/2010 21:37, Gabriel Genellina wrote: En Wed, 17 Mar 2010 11:38:16 -0300, Robin Becker escribió: has anyone had any success with cross compilation and bdist_wininst; I have modified build_ext very slightly to fix a small bug in cross compilation related to library order. Please post

Re: [OT] Python like lanugages

2011-01-17 Thread Robin Becker
tr2008003_experimenting.pdf it was mentioned in some recent clp thread. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-24 Thread Robin Dunn
e assertions are not turned off, except in rare circumstances. BTW, on behalf of the wxPython community I'd like to apologize for the havoc caused by the flaming troll escaping from his cage. In general wxPython users are much less militant and zealotty and honor everyone's freedom to ch

Re: WxPython versus Tkinter.

2011-01-24 Thread Robin Dunn
On Jan 24, 12:03 pm, rantingrick wrote: > On Jan 24, 1:57 pm, Robin Dunn wrote: > > BTW, on behalf of the wxPython community I'd like to apologize for the > > havoc caused by the flaming troll escaping from his cage.  In general > > wxPython users are much less milit

Re: WxPython versus Tkinter.

2011-01-24 Thread Robin Dunn
On Jan 24, 2:16 pm, rantingrick wrote: > And i know the real reason you and Robin do not want wxPython > in the stdlib. Because you do not want to lose your selfish status > within the wxPython community. When wxPython becomes a stdlib module > then you will answer directly to Guid

LDFLAGS problem

2011-02-21 Thread Robin Becker
/_mysql.so gcc: ${LDFLAGS}: No such file or directory error: command 'gcc' failed with exit status 1 where should I be looking to fix this problem? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: LDFLAGS problem

2011-02-22 Thread Robin Becker
thing that jumps out at me is that you say you're building on 8.0 but the build output you gave us mentions 7.0. That doesn't sound right at all. Are you using ports? duh, I was actually ahead of myself and the machine is indeed a 7.0 system -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: LDFLAGS problem

2011-02-22 Thread Robin Becker
well that fixes things, thanks a lot. I did google for this error message, but the searches were full of OS X related problems of a similar nature. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Download Visual Studio Express 2008 now

2010-04-16 Thread Robin Becker
ll content in it. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

python 2.6 py2exe wx app fails

2010-04-22 Thread Robin Becker
cure exe requirement with manifests or something which varies depending on the base msvc library. Any help much appreciated. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.6 py2exe wx app fails

2010-04-23 Thread Robin Becker
On 22/04/2010 13:56, Robin Becker wrote: I'm trying to move a wxPython application forward to 2.6, but although the app runs fine in 2.6 when run directly when I build the app into an exe using py2exe I get this popup message "application failed to initialize properly (0xc142)&qu

wxPython 2.8.11.0 release

2010-05-24 Thread Robin Dunn
b site for more details. The wx.Effects class is deprecated. Added Python 2.7 builds for Windows and Mac. Added Debian package builds for Ubuntu 9.10 and 10.4. Many fixes and enhancements for the wx.lib.agw pacakge, including the addition of pybusyinfo, ribbon, ultimatelistctrl and zoombar.

Re: Python + vim + spaces vs tab

2010-06-08 Thread Robin Becker
#x27;]retab!" let &l:ma = s:ma_save endif unlet b:tabs_expanded endfun let loaded_python_tabs = 1 the idea is to switch between using tabs and spaces depending on the original source. If the input is all spaces we

Re: Python + vim + spaces vs tab

2010-06-09 Thread Robin Becker
ormat:\ %{&ff};\ %{Statusline_expandtab()}\ [%c,%l] function! Statusline_expandtab() .. I'm not exactly an expert at vim programming either :( nice idea to show the mode in the status. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

round issue

2010-07-12 Thread Robin Becker
for -9.8 & -9.9 differ in distance from the true 10**-n values eg >>> -9.9 -9.9004 >>> -9.8 -9.8007 What value should round(-9.85,1) return? Is the result explainable in python (ie without resort to the internal FP representations etc etc)? -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: round issue

2010-07-13 Thread Robin Becker
if so.] yes thanks I saw that, but no problem about the dup. I suspect we might end up using some kind of fixed point. Anyhow does anyone have a good algorithm for ensuring rounded percentages do add up to 100%? :) How about grouped percentages ie ensure the group sums and the groups display cor

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-26 Thread Robin Becker
n Samograd I use VCdControlTool.exe which is some kind of M$ utility, but perhaps that doesn't work for everyone. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-27 Thread Robin Becker
.. if you have any more reportlab related queries you can also get free advice on the reportlab mailing list at http://two.pairlist.net/mailman/listinfo/reportlab-users -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Measuring Fractal Dimension ?

2009-06-25 Thread Robin Becker
see. Because such systems are tractable doesn't make them natural or essential or applicable in a generic sense. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Measuring Fractal Dimension ?

2009-06-25 Thread Robin Becker
systems with non-linearity and/or discreteness. I seem to recall that was about the time that chaotic behaviours were starting to appear in the control literature and they certainly depend on non-linearity. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding all cycles within an undirected graph

2009-07-22 Thread Robin Becker
eally satisfied ), in addition to good algorithm for solving this issue. this one has been updated recently http://code.google.com/p/python-graph/ also this page has many links http://wiki.python.org/moin/PythonGraphApi -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to produce spider plots?

2009-08-05 Thread Robin Becker
, .. reportlab has a spider chart in reportlab/graphics/charts/spider.py -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

ubuntu dist-packages

2009-08-26 Thread Robin Becker
kages. What is the relation between dist-packages/site-packages if any? Is this just a name change or is there some other problem being addressed? For developers is it best just to create one's own private installations from the original tarballs? -- Robin Becker -- http://mail.python.o

Re: ubuntu dist-packages

2009-08-26 Thread Robin Becker
so where is the official place for user installed stuff on ubuntu/debian ie will there be dist-packages and site-packages. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: ubuntu dist-packages

2009-08-27 Thread Robin Becker
packager is going wrong will have yet another detail to remember. In addition, as any one who has done such trivial changes will already know, they forgot to do it globally eg my 0.4.1.0 version of the "Debian Python Policy" document explicitly mentions site-packages. -- Robin Beck

Re: list as an instance attribute

2009-09-14 Thread Robin Becker
anguage, but we have capitals encouraged for user class names and for some common values eg None, True, False these are required. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: An assessment of the Unicode standard

2009-09-14 Thread Robin Becker
y can encode or convey. Our mathematics is heavily biassed towards continuous differential systems and as a result we end up with many physical theories that have smooth equilibrium descriptions, we may literally be unable to get at other theories of the physical world because our languages fall s

Re: An assessment of the Unicode standard

2009-09-14 Thread Robin Becker
ru...@yahoo.com wrote: On Sep 14, 6:06 am, Christopher Culver wrote: Robin Becker writes: well allegedly, "the medium is the message" so we also need to take account of language in addition to the meaning of communications. I don't believe all languages are equivalent in th

Re: Looking for a pure Python chart drawing module

2009-09-16 Thread Robin Becker
crashes opening up various dialogs. Googling eventually traced these to Blt. Hacking the PMW code to make PMW run without BLT was fairly easy and did cure the problem. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross platform TTF font render from Python [was: Load TTF from pycairo under Windows]

2009-09-18 Thread Robin Becker
nly we built the parts of freetype that we needed into our extension. That required only a static library from freetype. I haven't needed to do this on windows since 2.1.5 so perhaps it's harder now. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: specify max width to reportlab.canvas.drawString

2009-09-18 Thread Robin Becker
,canv._fontname,canv._fontsize,maxWidth) for t in L: canv.drawString(x,y,t) y -= canv._leading I haven't tested this code, but that's the principle anyway for direct drawing to the canvas. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Cross platform TTF font render from Python [was: Load TTF from pycairo under Windows]

2009-09-18 Thread Robin Becker
e statically linked library that I use, but it's a relocatable static library ie you need to combine it with some other extension. I'm using it to combine with the _renderPM.c file to create a standalone pyd. I suspect that's not what you want. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

32 bit bdist_wininst vs x64 platform

2010-09-09 Thread Robin Becker
\Wow6432Node (Extended explanation in KB article 896459). Is this fixable by me making a local patch to my distutils to check for the real platform and modifying the RegOpenKeyEx call? Or is there some distutils magic that I'm missing? Does anyone know if the bdist_msi might be better? --

Re: 32 bit bdist_wininst vs x64 platform

2010-09-10 Thread Robin Becker
python? .. I'm a bit puzzled about this as well, they mentioned something about the python being embedded so perhaps that's the problem. I am trying to ascertain the exact context. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: 32 bit bdist_wininst vs x64 platform

2010-09-10 Thread Robin Becker
On 10/09/2010 09:52, Robin Becker wrote: .. As you mention, 32bit apps querying the registry get redirected in some cases - but so long as the 32bit bdist_wininst stub is used, that too will get redirected, so it should all work out fine. Is it possible they are attempting to install

weird error with python 2.7 installer under windows 7

2010-09-21 Thread Robin Becker
ttom panel where we normally see output about the created scripts I see this "close failed in file object destructor: Error in sys.excepthook: Original exception was:" I have tried the same installer with a Win XP Sp3 machine and it doesn't cause any problems. Any ideas?

python-irclib and threading

2010-10-12 Thread Robin Krahl
I have to call the connect() method from the main thread. Is this right? If yes, what can I do about it? If no, do you have an idea what’s the problem? Best regards, Robin -- Robin Krahl || ireas http://robin-krahl.de m...@robin-krahl.de signature.asc Description: OpenPGP digital sig

ANN: wxPython 2.9.1.1

2010-10-21 Thread Robin Dunn
widgets are used on each platform to provide a 100% native look and feel for the application. -- Robin Dunn Software Craftsman http://wxPython.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Why "flat is better than nested"?

2010-10-25 Thread Robin Becker
s wrong!". The nested nature makes the semantics quite hard. The same will be true of nested tuple/list and similar programming structures. -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Why "flat is better than nested"?

2010-10-26 Thread Robin Becker
now I really wish we had from __past__ import old_and_boring_syntax_26 etc etc -trapped on level five-ly yrs- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

Re: Why "flat is better than nested"?

2010-10-27 Thread Robin Becker
On 27/10/2010 10:13, Stefan Behnel wrote: Robin Becker, 25.10.2010 15:56: "I know that that that that that boy said is wrong!". What's a "that boy"? Stefan well they say nested is hard. How about this break down I know that X that a boy said is wrong. (any boy) I

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

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

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: Appending data to a json file

2017-04-04 Thread Robin Koch
data appending. But maybe you take a look at YAML (if it's appropriate for your project). -- Robin Koch -- 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

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

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

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

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

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

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: SSL/TLS support in Pyro4

2017-08-04 Thread Robin Becker
.. Hi Robin I am not sure how this is any benefit over the self-signed root certs that I now use? Except for the fact that these are a root cert as well and don't use any CA trust chain. To be able to validate this cert, I have to load it as a CA cert on the validating side.

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: 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: Installing Python 3000 on Leopard (Mac OS) fails...

2007-11-26 Thread Robin Kåveland Hansen
something for the core python developers and not for me to fix, or even advice in, so if you want to be on the safe side to ensure no breakage, don't touch it on my advice. -- regards, Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Teach Python "Variables"

2007-11-27 Thread Robin Kåveland Hansen
ariable into a function/method, you can risk that your own "copy" will be "pointing" (For a lack of better words) to a different object. This won't happen in Python. Mutable objects make it seem very similar though. -- regards, Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python noob's simple config problem

2008-06-12 Thread Robin Kåveland Hansen
On Thu, 12 Jun 2008 21:32:34 +, kj wrote: > I'm sure this is a simple, but recurrent, problem for which I can't hit > on a totally satisfactory solution. > > As an example, suppose that I want write a module X that performs some > database access. I expect that 99.999% of the time, during th

Will "hello" always be printed?

2022-10-07 Thread Robin van der veer
If I have two processes communicating through a JoinableQueue, and I do the following: process 1: queue.put(1) #unfished tasks = 1 queue.join() #block until unfished tasks = 0 print('hello')[/python] process 2: queue.get() queue.task_done() #unfished tasks = 0 queue.put(

venv --upgrade 3.12.0rc2 --> 3.12.0rc3 failure

2023-09-27 Thread Robin Becker via Python-list
es = false version = 3.12.0 executable = /home/user/LOCAL/3.12.0rc2/bin/python3.12 command = /home/user/LOCAL/3.12.0rc2/bin/python3 -m venv /home/robin/devel/xxx user@host:~/devel $ ~/LOCAL/3.12.0rc3/bin/python3 -m venv --upgrade xxx user@host:~/devel $ xxx/bin/python -c'import sys;print(sys.ve

Re: venv --upgrade 3.12.0rc2 --> 3.12.0rc3 failure

2023-09-28 Thread Robin Becker via Python-list
. .. I have a different version, but it's not 'in place'. thanks -- Robin On 27 Sep 2023, at 12:50, Robin Becker via Python-list wrote: Attempting venv upgrade 3.12.0rc2 --> 3.12.0rc3 I find pyvenv.cfg changes, but the virtual python doesn't. I guess this ought

troglodytes

2024-08-13 Thread Robin Becker via Python-list
y-yrs -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

<    4   5   6   7   8   9