Re: Planning a Python / PyData conference

2023-08-10 Thread Fulian Wang via Python-list
I have a brilliant business idea and want to build a team. We collect used cars 
transfer them to brand new cars inside and outside. Change the gas engine to 
electric engine with solar panel. Anyone wants to join please contact me. I 
have the idea, best fiber, website ,Pcb design and manufacture source. Anyone 
is interested please contact Ms. Wang
(832)208-3196
 esta...@hestates.org

Get Outlook for iOS

From: Fulian Wang 
Sent: Wednesday, August 9, 2023 1:14:23 PM
To: dn ; python-list@python.org 

Subject: Re: Planning a Python / PyData conference

I recommend Sichuan ,Taiwan , or  Thailand

Get Outlook for iOS

From: Python-list  on 
behalf of dn via Python-list 
Sent: Wednesday, August 9, 2023 00:10
To: python-list@python.org 
Subject: Re: Planning a Python / PyData conference

Hi Wilber,


On 09/08/2023 14.28, Wilber H via Python-list wrote:
> Hi,
>
> I would like to plan a Python / PyData conference in the country of the
> Dominican Republic, and would like your feedback on how to best plan
> for the conference.

Recommend making your request of the folks who organise EuroPython
and/or PyConUS - and then same for smaller gatherings.

(would suggest to ours, but those folk are already over-loaded to be
ready in a few weeks' time)

--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


problems installing Python 3.11

2023-08-10 Thread Bernd Lentes via Python-list
Hi ML,

i hope this is the right place for my question. If not please tell me where I 
can ask.

I tried to install python 3.11.4 on a SLES 15 SP5.
./configure ran fine, just one package missing. Installed the package, 
configure ran fine with complaints.
make was ok, make test not.
This is what I got to the end:
===
===
ERROR: test_build_cpp11 (test.test_cppext.TestCPPExt.test_build_cpp11)
--
Traceback (most recent call last):
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 21, in 
test_build_cpp11
self.check_build(False, '_testcpp11ext')
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 39, in check_build
self._check_build(std_cpp03, extension_name)
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 80, in _check_build
run_cmd('Build', cmd)
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 64, in run_cmd
subprocess.run(cmd, check=True)
  File "/root/Python-3.11.4/Lib/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['env/bin/python', '-X', 'dev', 
'/root/Python-3.11.4/Lib/test/setup_testcppext.py', 'build_ext', '--verbose']' 
returned non-zero exit status 1.

--
Ran 2 tests in 9.939s

FAILED (errors=2)
test test_cppext failed
1 test failed again:
test_cppext

== Tests result: FAILURE then FAILURE ==

403 tests OK.

1 test failed:
test_cppext

30 tests skipped:
test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll
test_gdb test_idle test_ioctl test_kqueue test_launcher test_lzma
test_msilib test_nis test_ossaudiodev test_readline test_smtpnet
test_sqlite3 test_ssl test_startfile test_tcl test_tix test_tk
test_ttk_guionly test_ttk_textonly test_turtle test_winconsoleio
test_winreg test_winsound test_zipfile64 test_zoneinfo

2 re-run tests:
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, afterall 403 tests were 
fine and just two not.
I need Python 3.11 for borgbackup.

Thanks.

Bernd

Bernd Lentes

--
Bernd Lentes
System Administrator
MCD
Helmholtzzentrum München
+49 89 3187 1241
bernd.len...@helmholtz-munich.de
https://www.helmholtz-munich.de/en/mcd


Helmholtz Zentrum München – Deutsches Forschungszentrum für Gesundheit und 
Umwelt (GmbH)
Ingolstädter Landstraße 1, D-85764 Neuherberg, https://www.helmholtz-munich.de
Geschäftsführung: Prof. Dr. med. Dr. h.c. Matthias Tschöp, Daniela Sommer 
(komm.) | Aufsichtsratsvorsitzende: MinDir’in Prof. Dr. Veronika von Messling
Registergericht: Amtsgericht München HRB 6466 | USt-IdNr. DE 129521671
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Imports and dot-notation

2023-08-10 Thread Mats Wichmann via Python-list

On 8/9/23 17:28, dn via Python-list wrote:

Side note: Using "...import identifier, ..." does not save storage-space 
over "import module" (the whole module is imported regardless, IIRC), 
however it does form an "interface" and thus recommend leaning into the 
"Interface Segregation Principle", or as our InfoSec brethren would say 
'the principle of least privilege'. Accordingly, prefer "from ... import 
... as ...".




Attribute lookup has *some* cost.  That is, finding "c" in the local 
namespace is going to be a little quicker than "b.c", where Python finds 
"b" in the local namespace and then finds its "c" attribute; that's then 
a little quicker than "a.b.c", etc.


See all relevant commentary about premature optimisation, spending time 
optimising the wrong things, etc.  but there *are* cases where it 
matters (c.f. a tight loop that will be run many many times)

--
https://mail.python.org/mailman/listinfo/python-list