On Tuesday, November 5, 2019 at 7:11:30 AM UTC+8, Hongyi Zhao wrote:
> Is there some python libary for edit iso file drectly?
You can use batch .bat files and have Python execute them. Honestly Batch will
do all you are asking on MS Windows. Use its XCOPY to copy the IO file or the
entire IO Dir
On Tuesday, November 5, 2019 at 10:06:49 AM UTC+8, Francois van Lieshout wrote:
> Hi, i installed python 3.8 the latest version but it doesn’t work, i get
> “permission denied” when trying to acces python in the CLI and also i can’t
> run my code from my python files in the command-line nor in ID
L/382/lib/python3.8/site-packages
rptlab@everest:~/code/hg-repos
$
so the linked version of the venv python sees the base python site packages and
not the expected venv site-packages.
Is there a way to make the link work properly.
This problem doesn't seem to occur with older v
On 11/03/2020 17:24, Dieter Maurer wrote:
Robin Becker wrote at 2020-3-11 15:26 +:
I'm trying to understand why python 3.8.2 venv behaves differently when it is
executed va a link
Make the env
rptlab@everest:~/code/hg-repos
$ python38 -mvenv __py__/382v
...
so the l
(20.0.8) has
changed something and its linked python now has the same behaviour as the venv version even when the --copies option is
used.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
c etc.
Women and children first is long gone the new British attitude is devil take
the hindmost :)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
for more information.
norm=lambda m: m+(m and(m[-1]!='\n'and'\n'or'')or'\n')
robin@minikat:~/devel/reportlab/REPOS/reportlab/tests
$ python39
Python 3.9.0a6 (default, Apr 29 2020, 07:46:29)
[GCC 9.3.0] on linux
Type "help", "copyright"
get a working python. However, I seem
to have an issue with the distutils package
robin@minikat:~/devel/reportlab
$ $HOME/LOCAL/3.9b1/bin/python3.9
Python 3.9.0b1 (default, May 19 2020, 12:50:30)
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "
..
robin@minikat:~/devel/reportlab
$ $HOME/LOCAL/3.9b1/bin/python3.9
Python 3.9.0b1 (default, May 19 2020, 12:50:30) [GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import distutils
/home/robin/LOCAL/3
On 19/05/2020 23:41, Robin Becker wrote:
..
robin@minikat:~/devel/reportlab
$ $HOME/LOCAL/3.9b1/bin/python3.9
Python 3.9.0b1 (default, May 19 2020, 12:50:30) [GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more informat
Significant (t=-111.53)
> ...
Is this because I haven't built in the same way as Arch or are there real slowdowns in this beta? Or even dumber have I
got the results the wrong way round?
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
telist the application.
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 10/06/2020 15:18, Souvik Dutta wrote:
You might also try py2exe, in that way the user doesn't need to install
python in her/his computer.
Souvik flutter dev
On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote:
I'm sure this has come up before, but a tiny pyinstaller created ex
On 10/06/2020 16:11, Souvik Dutta wrote:
I found this...
https://stackoverflow.com/questions/43777106/program-made-with-pyinstaller-now-seen-as-a-trojan-horse-by-avg
Might be usefull, might be useless.
Souvik flutter dev
On Wed, Jun 10, 2020, 7:18 PM Robin Becker wrote:
.
thanks for the
ersions of windows as well. Some people are reluctant to change old win 95/xp
machines just to run a single app.
I had supposed there might be a simple mechanism to get these applications validated in some way, but it seems not. MS
seems uninterested.
--
Robin Becker
--
https://mail.python.o
On 10/06/2020 20:41, Chris Angelico wrote:
.
Python can be installed from the app store, or from a python.org
downloader. If that's too much hassle for them, then they're going to
need help *whatever* you do.
works for windows 10, but probably not on older machines.
The current exe wo
d because they won't follow us on the upgrade tread
wheel seems a bit arrogant.
ChrisA
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
ed the false
problem in a few days for me.
I think my boss actually tried this, but I will check. Thanks
Barry
....
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
On 11/06/2020 16:39, Grant Edwards wrote:
the hands of the developer. I suppose the OP could quit and stand on
the street corner with a cardboard sign:
I would love to do that :)
--
https://mail.python.org/mailman/listinfo/python-list
the BBC of “social engineering” after its head of
comedy said Monty Python’s white Oxbridge males were out of step with modern
television.
so is there a pep for alternate language names ;)
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
{t:23}
d
{(1, <__main__.H object at 0x7f5bf72021f0>): 23}
hash(h)
2
hash(list(d.keys())[0])
-3550055125485641917
h.a=33
hash(list(d.keys())[0])
-3656087029879219665
so the dict itself doesn't enforce immutability of its keys
--
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
construct
https://www.sciencemag.org/news/2020/08/quantum-paradox-points-shaky-foundations-reality
ReportLab has quite a lot of colour based words; so far I've only had a few related emails :) which mostly seem to end
up in spam
-hoping to escape victimhood-ly yrs-
Robin Becker
--
https://
r-sensitivity of the woken
rather dispiriting.
-aged-ly yrs-
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
x27;gcc' failed with exit status 1
so obviously I need to install some version of boost libs or Boost.Python etc
etc. Gave up :(
-luddite-ly yrs-
Robin Becker
--
https://mail.python.org/mailman/listinfo/python-list
.
so obviously I need to install some version of boost libs or
Boost.Python etc etc. Gave up :(
-luddite-ly yrs-
Robin Becker
The aur repository, no ?
https://aur.archlinux.org/packages/python-exiv2/
Vincent
that would work (if I had thought hard about it), but not for a pip
As mentioned earlier only a dictator can make such decisions and of course as
with many dictatorships the wrong decision is often made. There's no such thing
as a benevolent dictatorship.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Eric Nieuwland wrote:
>
>
> Ever cared to check what committees can do to a language ;-)
>
well there goes democracy :(
-the happy slaves eat and are contented-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ouldn't find
anything obvious. My system doesn't have psyco so xlrd's attempted psyco use
shouldn't be an issue. Thanks for 2.4.2, but is this one of the fixed bugs or
has it just got harder to induce?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
time
>>on such files, and have been attempting to debug the problem for some
>>time without any apparent success.
>
>
> http://www.python.org/sf/1175396
>
>
thanks that looks like it, the __init__.py had
# -*- coding: cp1252 -*-
at the start.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Is there a way to override a data property in the instance? Do I need to create
another class with the property changed?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
> Robin Becker a écrit :
>
>> Is there a way to override a data property in the instance? Do I need
>> to create another class with the property changed?
>
>
> Do you mean attributes or properties ?
I mean property here. My aim was to
,pName,value):
print 'obs1', inst, pName, value
class A(object):
x = ObserverProperty('x')
a=A()
A.x.add(obs0)
a.x = 3
b = A()
b.x = 4
#I wish I could get b to use obs1 instead of obs0
#without doing the following
class B(A):
x = ObserverProperty('x',observers=[obs1])
b.__class__ = B
b.x = 7
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
> Robin Becker wrote:
>
>>Is there a way to override a data property in the instance? Do I need to
>>create
>>another class with the property changed?
>>--
>>Robin Becker
>
>
> It is possible to decorate a method in a way that i
Steven Bethard wrote:
> Robin Becker wrote:
>
...
>
> Can you add the object to be observed as another parameter to the add
> method?
>
> py> class ObservableProperty(property):
> ... def __init__(self, *args, **kwargs):
..
> py> A.x.add
Kay Schluehr wrote:
> Robin Becker wrote:
>
>
>>I thought that methods were always overridable.
>>In this case the lookup on the
>>class changes the behaviour of the one and only property.
>
>
> How can something be made overridable that is actually overri
e descriptor, instance class and the
instance. Since the descriptor is attached to the class or a base class
one could argue about whether observers should be inherited etc etc, but
perhaps that's a step too far.
Thanks to Alex and Bengt and others for clarifying a bunch of issues.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
;
> Don't jump to conclusions...
> http://dwahler.ky/python/
>
> If you really, really want Python in a browser, it's certainly
> possible. :)
>
> -- David
>
well in firefox 1.07 I seem to be getting
Error: unmarshal is not defined
Source File: http://dwahler.ky/pytho
ill not allow me to
> read local, client files. Right?
I think reading files is easy; just get the client browser to submit a
form with the file as an upload. Hard part is getting the path(s) right.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
, moinmoin and others work fine with apache2 maybe because they use a cgi
style interface. I would stick with a pythonic solution unless there's a good
reason not too.
-too old to learn a new language-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
re alleged not to be threadsafe. Some Linux distributions ship standard
this way.
...
unfortunately mod_python3 seems to need exactly the opposite ie apache2
with threads. However, I originally tried to get php going with apache2
in the standard mode and still had problems.
--
Robin Beck
/~rgbecker/cgi-bin/pytestcgi.cgi
Please don't misuse it's free and I'm no longer an American :)
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
sources of removed modules?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Nick Craig-Wood wrote:
Robin Becker <[EMAIL PROTECTED]> wrote:
Paul Rubin wrote:
"Reed L. O'Brien" <[EMAIL PROTECTED]> writes:
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an
Robin Becker wrote:
Presumably he is talking about crypo-export rules. In the past strong
cryptography has been treated as munitions, and as such exporting it
(especially from the USA) could have got you into very serious
trouble.
So Python is an American Language and must obey American Law
sa006&articleID=000479CD-F58C-11BE-AD0683414B7F&ref=rdf
-can't wait to get my quantum computer-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
on%20extensions
which may help
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
h better
and he got java -- python etc etc pretty easily.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
shed into the real world.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
> dcrespo wrote:
>
>>Hi... Thanks for your answer, but can you give me his contact or tell
>>him to post here the answer I'm looking for? I'm needing it seriously.
>>
>
> Well I'm not a VB person so perhaps you need to ask on a
would like to automate my build script to include this file, but cannot think
of an automatic way to determine which of msvcr70/71.dlls are needed.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Heller wrote:
> Robin Becker <[EMAIL PROTECTED]> writes:
.
>
> For a discussion about the rights (or not) to distribute msvcr71.dll you
> could read the py2exe-users lists archive.
thanks for the tip, I believe there was a discussion on clpy recently as well
Paul Rubin wrote:
> km <[EMAIL PROTECTED]> writes:
>
>>is true parallelism possible in python ? or atleast in the coming versions ?
>>is global interpreter lock a bane in this context ?
>
>
> http://poshmodule.sf.net
Is posh maintained? The page mentions
which about
one day was figuring out how the NSIS + py2exe stuff worked. I think the nsis
script needed a minor tweak to do exactly what we wanted.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
ry
> gratefully received.
>
> regards
> Steve
Could PIL have been compiled without freetype support perhaps?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
interest: http://poshmodule.sf.net
>
It seems it might be a bit out of date. I've emailed the author via sf, but no
reply. Does anyone know if poshmodule works with latest stuff?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
> Paul Rubin wrote:
>
>>
>>This module might be of interest: http://poshmodule.sf.net
>>
>
> It seems it might be a bit out of date. I've emailed the author via sf, but
> no
> reply. Does anyone know if poshmodule works with l
Robin Becker wrote:
> Robin Becker wrote:
>
>>Paul Rubin wrote:
>>
>
>
>>>This module might be of interest: http://poshmodule.sf.net
>>>
>>
>>It seems it might be a bit out of date. I've emailed the author via sf, but
>>no
group 996688 Dec 31 09:57 test.rml
C:\Tmp>
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
port database
class C(database.C):
_fieldDefs = database.C._fieldDefs+[..]
database.C = C
Is there a better way to do this which preserves more of C's original identity?
I suppose I want to call the metaclass initialization again, but can't see a way
to do that.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
it__.py for
an implementation of mine which you can steal in toto (because it's
public domain).
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
and thanks again
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
...
My question is this: what can be substituted for that will
make the example above work?
self.__class__.__name__
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hoffman wrote:
Robin Becker wrote:
self.__class__.__name__
Unless I misunderstood the question, that won't work. That will
give you the name of the class the object is an instance is of.
I think he wants the name of the class the method was defined in.
Here's a way to do
ility without some coding,
but it has been implemented in various ways using sockets etc etc.
I seem to remember that modern idle uses an rpc technique for debugging.
There are several python projects which address interprocess
communication pyro http://pyro.sourceforge.net/ is a good example.
--
ef somemeth(self):
... pass
...
>>> class Bar(Foo):
... def othermeth(self):
... pass
...
>>> def findClass(meth):
... for x in meth.im_class.mro():
... if meth.im_func in x.__dict__.values(): return x
...
>>> findClass(Bar.so
which is Free or Open Source?
What I need are the following things:
- runs in Windows
- single stepping
- variable watches
- breakpoints
Just the typical debugger stuff.
Alex
I used hapdebugger for such a purpose some time ago, but I believe it
needs a special startup python.exe.
--
Robin B
I have a dictionary. Each key contains a list. I am using the
contents of the list to build a portion of a command line.
However, before I can build the command line, I have to make sure that
the command isn't too long. This means that I have to step through
each item in the list twice: once to
askColour methods to
wx.Image.
Added wx.Rect.IsEmpty
wxGTK:
- Corrected wx.ListBox selection handling
- Corrected default button size handling for different themes
- Corrected splitter sash size and look for different themes
- Fixed keyboard input for dead-keys
--
Robin Dunn
Software Craf
Clearly this must be some kind of bug, but is it Python 2.2/3/4 or in our code.
Since the change occurs in 2.1-->2.2 I can think of GC/new style classes etc.
Can anyone advise on what would be a good strategy to illustrate/refine/solve
this problem?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
I'm trying to get a handle on a real world problem related to raising an
exception. This is in the reportlab SimpleDoctemplate class.
The following code takes a very long time (>60 seconds) in Python 2.2,
2.3, 2.4, but not in 2.1 (at least on windows).
raise Lay
ased to participate in and
sponsor the "Python-URL!" project.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
0): break
... n += 1
... pe = e
... return pe
...
>>> print dbl_epsilon()
2.22044604925e-016
>>>
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
Neal D. Becker wrote:
Is there a way in python to access properties of floats? I need
something
equiv to C DBL_EPSILON defined in .
you could try the traditional algorithm
>>> def dbl_epsilon():
... n = 0
... while 1:
... e = 1.0/2**n
...
Does anyone know if it is feasible to have static libraries for both 2.3 and 2.4
compatible extensions. I'm worrying about libjpeg etc in a win32 environment.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Dittmar wrote:
Robin Becker wrote:
Does anyone know if it is feasible to have static libraries for both
2.3 and 2.4 compatible extensions. I'm worrying about libjpeg etc in a
win32 environment.
Could you be a bit more specific:
do you want to create a binary python extension th
Daniel Dittmar wrote:
Robin Becker wrote:
actually I want to build the PIL extension for 2.4 as pyd and include
various libraries eg zlib and jpeg. To avoid the missing dlls issue we
have done this in the past by incorporating the zlib/jpeg code using
static libraries for both zlib and jpeg
Martin v. Löwis wrote:
Robin Becker wrote:
I thought that static .libs didn't make reference to the dll's they
need; isn't that done at load time?
Unfortunately, thanks to Microsoft's infinite wisdom, static libs
*do* reference DLLs. The C lib headers contain things like
#pr
Martin v. Löwis wrote:
Robin Becker wrote:
I don't think this forces the linker to load stuff from this module
although I can see that it might be dangerous depending on which obj
files are seen first.
I think you are wrong. In the object, there will be simply a linker
command line o
4
Don't have a decent TCL any more so haven't compiled that stuff.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
s any sense of what would be a decent approach to OS
design etc.
It's sad that people who are otherwise sensible about opensource seem to
be a bit silly about the poisoned apples. There was no rational reason
for me to upgrade to VC 7.x, but now I'm forced to by my preferred language.
-
cation that it not
required. An unnecessary name is visual noise.
The thing that is probably a bit stupid about lambdas (I admit to having
done this) is
x = lambda a,b,c:...
which could just as well be written
def x(a,b,c):return .
with only a few extra characters.
--
Robin Becker
-
so does CTMCP
(acronym for this new book by Van Roy and Haridi) work for Oz, it
appears to me.
.very interesting, but it wants to make me install emacs. :(
Alex
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
amrks are always wrong, but which score moves this language to
the top in your opinion?
Alex
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Alex Martelli wrote:
Robin Becker <[EMAIL PROTECTED]> wrote:
Alex Martelli wrote:
.
If you're looking for SERIOUS multiparadigmaticity, I think Oz may be
best -- <http://www.info.ucl.ac.be/people/PVR/book.html> (the book's
authors critique the vagueness of the "pa
Alex Martelli wrote:
Robin Becker <[EMAIL PROTECTED]> wrote:
.
Well your utility function seems to be related to "learn more approaches
to programming".
Which part of "if" do you find hard to parse?
no part
I suspect there may be some programming language
measu
Scott David Daniels wrote:
Then you need "Scott and Dave's Programming Language" -- SAD/PL.
By providing separate data types for even and odd numbers, you can
avoid off-by-one errors ;-)
mmmhhh off by two-licious
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
n didn't announce it himself.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Benjamin Niemann wrote:
Robin Becker wrote:
..
I'm also a bit puzzled that www.ironpython.com has no mention of this
release.
Curious that J Hugunin didn't announce it himself.
Jim Hugunin announced it himself in a keynote at PyCon. You can read a lot
about it on Python centric bl
Thomas Heller wrote:
well that's nice, but I don't do blogs and certainly don't do M$
Passport logins which it seems the gotdotnet site requires.
Robin - we're too old for blogs ;-)
But I could download the thingie with Mozilla without logging in into
somewhere - alth
for news
but nothing...
Has anyone managed to download the new release?
If so please, would you email it to me at luismgz at gmail.com ??
I managed by clicking on the gotdotnet link and got a zip file OK.
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern wrote:
Robin Becker wrote:
yes, but the simple download is a bit bare, I was hoping to find out
more and then the passport login seems to come into play. Is there no
other homepage somewhere? I assumed wsa www.ironpython.com, but that
seems a bit out of date now. The mailing list
o is there a
modern version of the source on the web somewhere?
--
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
I'm trying to get pySimplex working in Python 2.4, but I find that
kjbucketsmodule.c makes reference to rename2.h which doesn't seem to be
present in Python 2.4.
I suppose that kjbucketsmodule.c needs to be brought up to date. It
occurs to me that someone may ha
ignificant speedup and is I believe is still
equivalent. I'm not sure exactly why this is faster than the while loop, but it is.
However, it seems harder to get the same speedup for the last while loop; that
loop is probably not such a problem so it's not terribly important.
Is there a
Peter Otten wrote:
Robin Becker wrote:
Is there a fast way to get enumerate to operate over a slice of an
iterable?
I think you don't need that here:
e = enumerate(active_nodes)
for insert_index, a in e:
# ...
for index, a in e:
# ...
Peter
I tried your solution, but I think we mis
Raymond Hettinger wrote:
[Robin Becker]
This function from texlib in oedipus.sf.net is a real cpu hog and I determined
to see if it could be optimized.
def add_active_node(self, active_nodes, node):
"""Add a node to the active node list.
The node is added so that the list
o plan for.
-paradoxically yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
on which returns a copy of the
list of top-level windows that currently exist in the application.
Updated docview library modules and sample apps from the ActiveGrid
folks.
Added the ActiveGrid IDE as a sample application.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters?
ried they seemed a bit out of date.
-wondering where my paper tape editor is-ly yrs-
Robin Becker
--
http://mail.python.org/mailman/listinfo/python-list
Raymond Hettinger wrote:
[Robin Becker]
People have mentioned the older v6 build scripts/tools still work. Last time I
tried they seemed a bit out of date.
I routinely use the current CVS to build Py2.4 and Py2.5 with MSC6.
It is effortless and I've had no problems.
Raymond Hettinger
.
201 - 300 of 896 matches
Mail list logo