RE: problems installing Python 3.11

2023-08-11 Thread Bernd Lentes via Python-list
>-Original Message- >From: Python-list muenchen...@python.org> On Behalf Of Bernd Lentes via Python-list >Sent: Friday, August 11, 2023 12:01 PM >To: Terry Reedy >Cc: Python ML (python-list@python.org) >Subject: RE: problems installing Python 3.11 Hi, I read the

RE: problems installing Python 3.11

2023-08-11 Thread Bernd Lentes via Python-list
>-Original Message- >From: Terry Reedy >Sent: Thursday, August 10, 2023 9:55 PM >To: Bernd Lentes >Subject: Re: problems installing Python 3.11 > >On 8/10/2023 3:28 PM, Bernd Lentes via Python-list wrote: > >Private response because cannot post at present. >

problems installing Python 3.11

2023-08-10 Thread Bernd Lentes via Python-list
ests: test___all__ test_cppext Total duration: 28 min 23 sec Tests result: FAILURE then FAILURE make: *** [Makefile:1798: test] Error 2 = I'm not very familiar with compiling software, normally I use the packages from my distro. Can you help me ? Or maybe there is no big problem, after

new to python - like to write a script with the libvirt-python 5.3.0 package

2019-06-03 Thread Lentes, Bernd
irsh define ..." Can i use all the possibilities i have in virsh in that libvirt-package ? I'm also creating logfiles, deleting files, sending e-Mails, redirecting stdout and stderr. This shouldn't be a problem in Python ? Thanks. Bernd -- Bernd Lentes Systemadministrati

Re: "Goto" statement in Python

2017-04-14 Thread Bernd Nawothnig
gt; { > while (1) > { > > if () >goto error: > > return; > > error: > > } > } foo() { int done = 0; while (! done) { if () { } else { done = 1;

Re: "Goto" statement in Python

2017-04-14 Thread Bernd Nawothnig
functions but just chunks... I don't know, looks bad. Organising code in a bunch of small functions is by far better coding style and better readable than put it all together in one chunk. And that holds for all programming languages, not only for Python. Bernd -- Die Antisemiten vergeben e

Re: Python Command Line Arguments

2017-04-14 Thread Bernd Nawothnig
If I am correct you might want to spend your time instead learning the > argparse module: > https://docs.python.org/3/library/argparse.html > https://docs.python.org/3/howto/argparse.html He should switch to argparse in any case because getopt is no longer supported and does only receive bugfi

Re: topology rules in python

2016-12-20 Thread Bernd Nawothnig
On 2016-12-20, Xristos Xristoou wrote: > I have a PostGIS database with shapefiles lines, polygons and points > and I want to create a topology rules with python. Any idea how to do > that ?some packages ? http://www.gdal.org/ or: pip install gdal Bernd -- no time toulouse

Re: Detect Linux Runlevel

2016-12-05 Thread Bernd Nawothnig
gramming language before closer evaluating the problem. Bernd -- No time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: Python slang

2016-08-07 Thread Bernd Nawothnig
On 2016-08-06, Chris Angelico wrote: > On Sun, Aug 7, 2016 at 5:37 AM, Bernd Nawothnig > wrote: >>> But SQL's NULL is a cross between C's NULL, IEEE's NaN, Cthulhu, and >>> Emrakul. >> >> SQL NULL has the semantic of "unknown". So if on

Re: Python slang

2016-08-06 Thread Bernd Nawothnig
s unknown too. And that means NULL. That is also the reason why you have the keyword STRICT when declaring a function in PostgreSQL. If only one parameter of the function is NULL and the result depends directly on the parameter the planner can then automatically skip the function call completely u

Re: Is this a correct way to generate an exception when getting a wrong parameter

2015-08-12 Thread Bernd Waterkamp
Mark Lawrence schrieb: > The wonderful http://docopt.org/ makes this type of thing a piece of > cake. I believe there's a newer library that's equivalent in > functionality to docopt but I can never remember the name of it, anybody? Never used it, but "Click" is another choice: http://click.po

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Bernd Nawothnig
fele.net/maps/tz/world/ Download the data and use pyshp and/or gdal/ogr for the lookup. It may not be as simple as you wanted it to be, but it is possible. Bernd -- no time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: What is the state of MySQL support for Python 3?

2014-06-24 Thread Bernd Nawothnig
lock. Does anyone use it? Yes. It comes directly from MySQL and is written in pure Python. For that it may not be the fastest solution but it works. Tested with Python 3.2 Bernd -- no time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: Why Python 3?

2014-04-20 Thread Bernd Waterkamp
hscl/ So there is at least a chance if you want to (or have to) use "official" packages from the distributor. Regards, Bernd -- https://mail.python.org/mailman/listinfo/python-list

Re: problem in event handling on change of variable value.

2014-04-17 Thread Bernd . Moennicke
ter ('dummy') a.start () The run() dosn't work. I can't register the COM event. Have You a solution for this? The claas tester works without self.__env_event = win32com.client.WithEvents (self.__var, Tester). Regards, Bernd -- https://mail.python.org/mailman/listinfo/python-list

Re: CentOS 6.5 / SPEC file

2014-03-28 Thread Bernd Waterkamp
Michael Torrie schrieb: > I should add, that the only correct way to package Python 3 on RHEL 6 is > by making the package called "python3" or something that won't collide > with the system Python 2.x package. Another option for Fedora and RHEL6: Software Collections http://developerblog.redh

Re: why indentation should be part of the syntax

2014-03-02 Thread Bernd Nawothnig
code not actually being as indented as it looked: > > https://www.imperialviolet.org/2014/02/22/applebug.html The way Perl or Go handles it where it is not possible to omit the curly braces would have prevented the same error too. Bernd -- no time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: Remove comma from tuples in python.

2014-02-20 Thread Bernd Nawothnig
, (0.06,), (0.07,), >>> (0.08,), (0.09,), (0.1,), (0.11,)) >>> a ((0.0,), (0.01,), (0.02,), (0.03,), (0.04,), (0.05,), (0.06,), (0.07,), (0.08,), (0.09,), (0.1,), (0.11,)) >>> #v- Bernd -- no time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading csv file

2013-12-17 Thread Bernd Nawothnig
line < 6: > reader.next() > line++ > # process the CSV #v+ def Read_CSV_File(filename): with open(filename) as f: for line,row in enumerate(csv.DictReader(f)): if line >= 6: # process the CSV #v- Bernd -- no time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: "Backward"-Iterator - Beginners question

2013-10-31 Thread Bernd Nawothnig
tely (for example two steps forward, one backward, two steps > forward). Simply write a class with these methods. Where is the problem? Bernd -- no time toulouse -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3 and SSH Tunnel

2013-08-09 Thread Bernd Waterkamp
D. Xenakis schrieb: > I've played with putty to achieve this but to be honest i'd like > something more efficient. Opening putty everytime and making all the > connection settings etc, and then running the programm, is kinda messy. > Id like this to be done in an automatic way from the program so

Re: Arithmetic with Boolean values

2012-08-12 Thread Bernd Nawothnig
On 2012-08-12, Paul Rubin wrote: >> which can be simplified to: >> for x in range(len(L)//2 + len(L)%2): > > for x in range(sum(divmod(len(L), 2))): ... nice solution. Bernd -- "Die Antisemiten vergeben es den Juden nicht, dass die Juden Geist haben - und Geld

Re: Is Python a commercial proposition ?

2012-07-29 Thread Bernd Waterkamp
ngineering and scientific computing - some random examples: numpy, Sage, matplotlib, NetworkX. Regards, Bernd -- http://mail.python.org/mailman/listinfo/python-list

Re: why () is () and [] is [] work in other way?

2012-04-23 Thread Bernd Nawothnig
pendent. It's /what's going on/ that's >> implementation-dependent. >> "a is b" is true iff 'a' and 'b' are the same object. Why should 'is' >> lie to the user? > > Whether a and b are the same object is implementation-d

Re: Appending to []

2012-04-22 Thread Bernd Nawothnig
On 2012-04-22, Steven D'Aprano wrote: > On Sat, 21 Apr 2012 14:48:44 +0200, Bernd Nawothnig wrote: > >> On 2012-04-20, Rotwang wrote: >>> since a method doesn't assign the value it returns to the instance on >>> which it is called; what it does to the

Re: why () is () and [] is [] work in other way?

2012-04-21 Thread Bernd Nawothnig
On Sat, Apr 21, 2012 at 03:43:03PM -0400, Dave Angel wrote: > On 04/21/2012 09:48 AM, Bernd Nawothnig wrote: > > On Sat, Apr 21, 2012 at 09:21:50AM -0400, Dave Angel wrote: > >>>>>>> [] is [] > >>>> False > >>> Same for that. > >>

Re: Appending to []

2012-04-21 Thread Bernd Nawothnig
side effects are. > Mine was a justification (maybe opinable) of why append was designed > that way. Ok, understood and accepted Bernd -- "Die Antisemiten vergeben es den Juden nicht, dass die Juden Geist haben - und Geld." [Friedrich Nietzsche] -- http://mail.python.org/mailman/listinfo/python-list

Re: Appending to []

2012-04-21 Thread Bernd Nawothnig
ts and I know that letting append return self would not make Python a purely functional language with only immutable data. I just asked a simple question about a detail I personally would consider it to be useful. Please no further religious war about that ;-) Bernd -- "Die Antisemiten verg

Re: why () is () and [] is [] work in other way?

2012-04-21 Thread Bernd Nawothnig
t; Is this what it should be or maybe yielding unified result is better? See above. Bernd -- "Die Antisemiten vergeben es den Juden nicht, dass die Juden Geist haben - und Geld." [Friedrich Nietzsche] -- http://mail.python.org/mailman/listinfo/python-list

Re: Appending to []

2012-04-21 Thread Bernd Nawothnig
#x27;, 'y', 'z']. That is the way I expect any append to behave. Bernd -- "Die Antisemiten vergeben es den Juden nicht, dass die Juden Geist haben - und Geld." [Friedrich Nietzsche] -- http://mail.python.org/mailman/listinfo/python-list

Re: illegal geld machen , schnell geld verdienen in , schnell geld im internet , geld 2.0 geld verdienen im web 2.0 , novoline american poker online spielen , sofort geld im internet , mehr geld ver

2009-08-10 Thread bernd
On 25 Jul., 00:50, entr...@web.de wrote: > On 7 Jun., 19:48, swirler...@googlemail.com wrote: > , schnell geld verdienenwww.novocasinos.de > http://www.novocasinos.de > http://casino-pirat.de > www.casino-pirat.de > www.novocasinos.de > http://www.novocasinos.de > > *www.novocasinos.de > > *http://

Re: Empty string is False right?

2009-01-31 Thread Bernd Nawothnig
On 2009-01-31, AJ Ostergaard wrote: > Thanks for that but why: >>>> '' and True > '' > Surely that should be False?!? It is: #v+ >>> bool('' and True) False #v- Bernd -- No time toulouse -- http://mail.python.org/mailman/listinfo/python-list

SSL certificate meta data

2006-09-25 Thread Bernd Will
certificates itself (who signed it and what is the validation period, i.e. meta data).   Can someone please help me out here !? (I know we should better setup a database with validation dates, but believe me, we didn’t succeed in it)   Thanks in advance for any help or tip   Regards Bernd

Re: Recommended version of gcc for Python?

2005-05-16 Thread Bernd Nawothnig
gcc 3.4. Simply try it. Bernd -- Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one. [T. Jefferson] -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie - variable "buried in quotes"

2005-05-16 Thread Bernd Nawothnig
Yes, I understood you perfectly well. > I need to be able to insert the luser variable deep in the middle of > that. luser will replace the '%s' in my version. Just try it! Bernd -- Those who desire to give up freedom in order to gain security, will not have, nor do they deser

Re: newbie - variable "buried in quotes"

2005-05-16 Thread Bernd Nawothnig
On 2005-05-16, plsullivan wrote: > If I follow your response Bernd, it looks like you interpreted that as > several lines. It actually should all be on one line. That's what made > me wonder if there is a line continuation character. The lines are concatenated to one string as I

Re: newbie - variable "buried in quotes"

2005-05-16 Thread Bernd Nawothnig
age_conversion("'Database > [EMAIL PROTECTED]' > POLYGON", prcl83, "", "DOUBLE") % luser You poosibly meant something like that: #v+ gp.FeatureclassToCoverage_conversion("'Database" "[EMAIL PROTECTED]'" "POLY

Re: German spam event [was: Re: Schily ueber Deutschland]

2005-05-16 Thread Bernd Nawothnig
will increase in the future. It is just the beginning ... Bernd -- Software is like sex: it's better when it's free [Linus Torvalds] -- http://mail.python.org/mailman/listinfo/python-list

Re: A new to Python question

2005-05-15 Thread Bernd Nawothnig
ed to this argument I have no objection. > Glad to hear it. >> Lisp is far from being ugly ;-) > Your words not mine.I never said it was ugly. > Lisp is beautiful but Python isn't Lisp, and the () *are* getting > overloaded. Understood and accepted. Bernd -- Those wh

Re: Schily ueber Deutschland

2005-05-15 Thread Bernd Nawothnig
On 2005-05-15, [EMAIL PROTECTED] wrote: > Lese selbst: > http://www.heise.de/newsticker/meldung/59427 Ja, schlimm. Trotzdem ist das hier a) eine englischsprachige NG und b) geht es hier um die Programmiersprache Python Lass es also bitte endlich! Bernd -- Those who desire to g

Re: A new to Python question

2005-05-14 Thread Bernd Nawothnig
wadays it is starting to > look like lisp. Lisp is far from being ugly ;-) Bernd -- Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one. [T. Jefferson] -- http://mail.python.org/mailman/listinfo/python-list

Re: A new to Python question

2005-05-14 Thread Bernd Nawothnig
uot;, "copyright", "credits" or "license" for more information. >>> def foo(): >>> ... return 1,2,3 >>> ... >>> (a,b,c)=foo() >>> print a,b,c 1 2 3 >>> works. Of course, you can omit the (): >>> a,b,

Re: A new to Python question

2005-05-14 Thread Bernd Nawothnig
On 2005-05-14, Philippe C. Martin wrote: > You're thinking you're passing the arguments as reference That is the way Fortran handles them: [...] >> Right now I'm taking a simple program I wrote in Fortran Bernd -- Those who desire to give up freedom in order to

Re: A new to Python question

2005-05-14 Thread Bernd Nawothnig
On 2005-05-14, David wrote: > abc(x,y,dotp,sumx,maxv) (x,y,dotp,sumx,maxv) = abc(x,y,dotp,sumx,maxv) Bernd -- Those who desire to give up freedom in order to gain security, will not have, nor do they deserve, either one. [T. Jefferson] -- http://mail.python.org/mailman/listinfo/pyt

Re: global lists

2005-05-08 Thread Bernd Nawothnig
0] = 4 That should alter a[0]. > But > > def foo(): > global a > for n in range(len(a)): > a[n] = a[n]*2 > > Doesn't work either... It does. Test it again. Bernd -- Those who desire to give up freedom in order to gain security, will not have, nor do they

Re: Tkinter vs wxPython

2004-12-29 Thread Bernd Schmidt
, and the problem is that there isn't a free QT on Windows. Bernd -- http://mail.python.org/mailman/listinfo/python-list