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
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
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
>>
&
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://
> 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
>
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?
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
?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
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
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
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
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
tch?v=FxDOlhysFcM
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
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
info=%r' % info,)
raise
is this a reasonable approach?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
arks, I'll review public code more careful next time.
Robin Rytich
--
http://mail.python.org/mailman/listinfo/python-list
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
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
.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
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
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
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
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
tr2008003_experimenting.pdf
it was mentioned in some recent clp thread.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
/_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
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
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
ll content in it.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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.
#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
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
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
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
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
..
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
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
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
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
,
..
reportlab has a spider chart in reportlab/graphics/charts/spider.py
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
,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
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
\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?
--
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
(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
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
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
e with other python implementations.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
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
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:/
. 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
.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
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
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
..
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.
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
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
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
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
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
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(
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
.
..
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
y-yrs --
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
801 - 896 of 896 matches
Mail list logo