example. Pipx is not
intended to install Python packages that are not applications.
Regrads,
Christian
--
https://mail.python.org/mailman/listinfo/python-list
As you can see in the linked issue it seems it was an incompatibility
between the version of Python and PyFakeFS.
In the end it was a Fedora packaging bug because that pyfakefs version
was not compatible with Python 3.13.
Thanks in advance for helping out.
--
https://mail.python.org/mailman/list
Am 25.10.2024 09:06 schrieb Christian Buhtz via Python-list:
On a "regular" system all tests are running.
To clarify: "regular" does not exclude PyFakeFS. It means on my own
local development machine and on the TravsCI machines (Ubuntu 22 with
Python 3.9 up to 3.13) a
Hello Barry,
thank you for your reply and clarifying the Fedora aspects.
Am 25.10.2024 00:44 schrieb Barry:
What do you mean by the real file sustem?
You cannot write to the /usr file system. Is that what your tests do?
If so that needs changing.
Asking the right questions brings up to impor
Thank you very much for all your responses.
Am 24.10.2024 17:17 schrieb Left Right:
To investigate this, I'd edit the file with the assertion and make it
print the actual value found in os.lstat and func. My guess is that
they are both somehow "lstat", but with different memory addresses.
My
iner also has no clue how to solve it or why
it happens.
Can you please have a look (especially at the line "assert func is
os.lstat").
Maybe you have an idea what is the intention behind this error raised by
an "assert" statement inside "shutil.rmtree()".
T
What is the "command line" on your Windows 11?
On Windows 10 it usually is "cmd.exe" (Windows Command Prompt).
On Windows 11 it usually is the "Terminal" which is different from
cmd.exe.
--
https://mail.python.org/mailman/listinfo/python-list
e problems and possible solutions I created
this minimal examples. I also do plan a tutorial repo about Debian
Python Packaging using the same approach with minimal examples
illustrating different use cases.
Thanks in advance,
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Hello Dieter,
thanks for your reply.
Am 06.11.2023 19:11 schrieb Dieter Maurer:
One option is a test suite (--> Python's "unittest" package)
with a sufficiently high coverage (near 100 %).
Yes, that is the primary goal. But it is far away in the related
project.
I got a hint that "pylint"
quot;foo" package if "baR()" really exist.
Can I fix this somehow?
I am aware that this would get detected by a unit test. That is the way
I do prefer in most cases. But sometimes not all code segments are
covered by tests. I'm more interested in using a linter or somethi
the C code.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Text (for multiline formatted text entry), Canvas (for
2D drawings), and Toplevel (for new windows/ popups etc.)
Christian
--
https://mail.python.org/mailman/listinfo/python-list
easy support for it any more in recent browsers. Therefore it
would be difficult to post this to the internet, unless you invest in
some JS programming. In case you want to run this on your local
computer, as opposed to in the browser, you can check out Python game
engines.
ion will be required
to find it.
OK, so if you want to use an RE for splitting, can you not use
re.split() ? It basically works like the built-in splitting in AWK
>>> s='alphaAbetaBgamma'
>>> import re
>>> re.split(r'A|B|C', s)
['alp
Am 28.01.23 um 02:56 schrieb Thomas Passin:
On 1/27/2023 5:10 PM, Christian Gollwitzer wrote:
Am 27.01.23 um 21:43 schrieb Johannes Bauer:
I don't understand why you fully ignore literally the FIRST example I
gave in my original post and angrily claim that you solution works
when it doe
ste:Abschlussmeeting chris$ ipython
Python 3.8.8 (default, Apr 13 2021, 12:59:45)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: x = { "y": "z" }
In [2]: s = "-> {x[y]}"
In [3]: print(s.format(x = x))
-> z
In [4]:
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 08.11.22 um 09:01 schrieb Dioumacor FAYE:
From datenum to data_mjja=precp(:,ind_mjja);
I think the code filters data based on calendar dates. I'd guess that
you can do that most easily with pandas.
https://pandas.pydata.org/docs/user_guide/timeseries.html
Christian
Le l
(2018,12,31);
date = datevec(dates);
ind_mjja=find(date(:,2)>=5 & date(:,2)<=8);% May to Aug (May(31)+ June(30)+
July(31)+ August(31)= 123 days)
data_mjja=precp(:,ind_mjja);
data_mjja_res=reshape(data_mjja,14000,123,38);
which part do you have trouble with?
Christia
uired, and that the whole purpose of the
/usr/bin/env thing is to search the path (because it is universally
installed in /usr/bin) and to possibly set other environment variables
Christian
--
https://mail.python.org/mailman/listinfo/python-list
from Cython.Build. So maybe just deleting these
two lines and it might work?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
fedora is free as well.
Fedora is an excellent choice for Python users. Fedora 36 already comes
with Python 3.11.0b5 in its main repository. In fact you have Python
2.7, 3.5-3.11, PyPy 2.7, PyPy 3.7-3.9, and MicroPython at your fingertips.
Christian
--
https://mail.python.org/mailman/listinfo
articles don't seem to be any better.
To me, this sentence is so badly cobbled together that it could be the
output of a KI of some sort (GPT-3) trying to summarize stuff from the
web. It doesn't make any sense at all on a semantic level.
Christian
--
https://mail.python.
become quite ugly if you avoid REs or any other pattern matching tools.
This is also the main reason I suggested REs initially - often if you
see other patterns in the data, you can easily adapt a RE solution,
whereas you'll have to write the thing from ground up anew if you do it
manually.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
s
(A|B)\d-
As long as one digit is enough. What is your goal, to extract these
numbers or to strip them? Regexes can do both relatively easily.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 07.06.22 um 23:01 schrieb Christian Gollwitzer:
In [3]: re.sub(r'^\d+\s*', '', s) Out[3]: 'Trinket'
that RE does match what you intended to do, but not exactly what you
wrote in the OP. that would be '^\d\d.' start with exactly two digits
follow
tasks like this they
are made and working well.
^ is "starts with"
\d is any digit
\s is any space
+ is at least one
* is nothing or one of
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ge compression" if you want to
understand it in detail.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
into Python is by means of a
Numpy Array. In order to do that, you need to include arrayobject.h and
then use PyArray_SimpleNew to create an array of numbers as a Python
object which you can return
https://numpy.org/devdocs/reference/c-api/array.html#c.PyArray_SimpleNew
Christian
s installers create these shortcuts during
the installation process for you - typically there is a pre-selected
checkbox "Create desktop icons" or similar. I agree with Grant that this
is what users expect from the installer.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
e your own comparator function?
Also, if the only case where this actually works is the index of all
other records, then a simple boolean flag "all" vs. "these items in the
index list" would suffice - doesn't it?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 01.04.22 um 01:26 schrieb Grant Edwards:
On 2022-03-31, Christian Gollwitzer wrote:
Davmail is written in Java, not Python, but basically this should
not matter if you only use it.
Have you used it with OWA as the protocol?
At least I thought so - this was in 2016 - 2017 and there was
protocols like POP3, IMAP, SMTP.
You can use any email/calender client (I've used thunderbird) and most
of it worked well.
Davmail is written in Java, not Python, but basically this should not
matter if you only use it.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Tkinter itself.
Sure: Call "winfo_id()" on the toplevel. You might want to reformat in
it in hex format, which is the usual way to pass these IDs around. Tk
actually returns it in hex format, but Tkinter reformats it as an integer.
Christian
--
https://mail.python.org/mailma
GNOME desktop, but suspect it
should be similarly easy.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
cibuildwheel.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
freetype functions in your C
code and do not see it referenced, then the lib will not work.
Maybe you can install an ARM-version of freetype, or compile it from
source during your build process?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
t; in the example.
It's a different matter how useful this actually is. One of the object
systems in Tcl uses the empty variable to represent "self" as an array,
so that you can write $(prop) for self.prop as it is in Python.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ion and also what the
OP has described.
Hence it is impossible to concurrently write from Python into an open
Excel file. One might ask what the real problem is the user is trying to
solve. Is Excel a requirement, can it be swapped by a database engine?
Best regards,
Christian
-
Am 10.02.22 um 11:26 schrieb NArshad:
-ChrisA:
You don't reply if you have problems.
When I don't find any solution elsewhere then only I place in this group
-Christian:
One problem of different type requires the same elaboration.
No it doesn't
Q. What technique of statisti
t is almost the same problem.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
en-us/office/dde-function-79e8b21c-2054-4b48-9ceb-d2cf38dc17f9
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 08.02.22 um 18:57 schrieb Dieter Maurer:
Christian Gollwitzer wrote at 2022-2-7 20:33 +0100:
we've developed a Python pacakge which consists of both a compiled
extension module and some helper functions in Python. Is there a
tutorial on how to package such an extension?
Look at &
pass "-fopenmp" to gcc and "/openmp" to
msvc. Is there a way to set this flag automatically depending on the
compiler?
Best regards,
Christian
--
https://mail.python.org/mailman/listinfo/python-list
cert auth
during handshake or renegotiation.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
You can't. Python's ssl module does not expose the necessary feature to
override the verification callback SSL_CTX_set_verify(). PyOpenSSL lets
you set a callback and ignore any and all errors.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ll work is done in
our free time, there is only little progress.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
what was the expectation?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
(x:xs) = qsort [a | a <- xs, a < x]
++ [x] ++
qsort [b | b <- xs, b >= x]
The Haskell version is a bit clearer IMHO due to the pattern matching,
but that results in a 2 liner :)
Christian
--
https://mail.python.org/mailman/listinfo/python-list
how to do it: https://facebook.com/
Christian
--
https://mail.python.org/mailman/listinfo/python-list
fastest AND clearest with
numpy.dot(seq1, seq2)
- in case that the sequence consists of floats and, in the best case, is
already stored in a numpy array. Then you cannot beat this with Python
code.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
throws the list
away, while the second version only keeps the running sum in memory. How
about a generator expression instead, i.e.
sum((a * b for a, b in zip(seq1, seq2)))
(untested) ?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
uld still work. Second, the
problem is not in the code that you posted. POssibly in the definition
of "Dataset". Maybe the netCDF-File contains boolean values and the
package you use to read it should be updated?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
a CSV table. That definitely isn't what a sane
person would understand as "support".
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 04.09.21 um 14:48 schrieb Hope Rouselle:
Christian Gollwitzer writes:
Am 02.09.21 um 15:51 schrieb Hope Rouselle:
Just sharing a case of floating-point numbers. Nothing needed to be
solved or to be figured out. Just bringing up conversation.
(*) An introduction to me
I don't under
Am 02.09.21 um 21:02 schrieb Julio Di Egidio:
On Thursday, 2 September 2021 at 20:43:36 UTC+2, Chris Angelico wrote:
On Fri, Sep 3, 2021 at 4:29 AM Hope Rouselle wrote:
All I did was to take the first number, 7.23, and move it to the last
position in the list. (So we have a violation of the
algorithm and other alternatives:
https://en.wikipedia.org/wiki/Kahan_summation_algorithm
Christian
--
https://mail.python.org/mailman/listinfo/python-list
*
Pretty harsh, isn't it? He gave a concise example of the same inaccuracy
right afterwards.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
achieve this ;)
This kind of interface is usually done with the "curses"-library. There
is a Python version of it, see e.g. here
https://docs.python.org/3/howto/curses.html
Christian
--
https://mail.python.org/mailman/listinfo/python-list
quite a few open source projects over the years, and that's a lot of
> years! I even have a small credit in the 'bible' for the Kermit file
> transfer protocol, remember that?)
PyPI used to have a search API. The XML-RPC endpoints were disabled last
year due to flooding. Our infrastructure could not cope with abusive
queries. You can read the log of events at https://status.python.org/
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 20.06.21 um 01:49 schrieb Terry Reedy:
On 6/19/2021 12:42 AM, Christian Gollwitzer wrote:
Sorry for that answer, but Tkinter does not support many of the most
useful extensions for Tcl/Tk, because someone has to write the
wrappers. It only supports what is provided by base Tk. Among those I
Am 19.06.21 um 08:48 schrieb Jach Feng:
Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道:
I guess you wanted to post another question? Then please open a new
thread. In addition, the question is unclear, you just posted a
transcript of three lines of Python.
I posted to point out
Am 19.06.21 um 07:16 schrieb Jach Feng:
Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道:
Am 19.06.21 um 05:59 schrieb Jach Feng:
import tkinter as Tk
Tk
from tkinter import *
Tk
tkinter
Traceback (most recent call last):
File "", line 1, in
NameError: name
Am 19.06.21 um 06:26 schrieb George Furbish:
On Saturday, June 19, 2021 at 12:22:31 AM UTC-4, Christian Gollwitzer wrote:
Am 19.06.21 um 02:03 schrieb George Furbish:
Does Tk support interpolation/subpixel positioning of canvas elements? (e.g.
images, text.) I have moving elements on my
import A as B" does not define A. That's a feature, not a bug.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ink doesn't
seem to support that idea:
https://stackoverflow.com/questions/61168210/is-there-any-way-to-use-tkinter-with-google-colaboratory
Christian
--
https://mail.python.org/mailman/listinfo/python-list
]: def foo():
...: return [1,2,3]
...:
In [2]: def bar():
...: return []
...:
In [3]: a=[]
In [4]: a += foo()
In [5]: a
Out[5]: [1, 2, 3]
In [6]: a += bar()
In [7]: a
Out[7]: [1, 2, 3]
Christian
--
https://mail.python.org/mailman/listinfo/python-list
gt; 3
Here, the "l" is not changed. The reason is that the statement "a=5"
does NOT modify the object in a, but instead creates a new one and binds
it to a. l still points to the old one. Whereas a.append() tells the
object pointed to by a to change.
Christian
--
s I recall. Needless to say, we didn't use an assembler
either. We just wrote raw opcodes and their arguments on paper. This was in
the late 70s.)
Pure luxury! https://xkcd.com/378/
Christian
--
https://mail.python.org/mailman/listinfo/python-list
backslash. Try print(s).
It would be different with a raw string
s=r"""42 not\
in [42]"""
Christian
--
https://mail.python.org/mailman/listinfo/python-list
>
>
> a) your reverse proxy must be colocated with the service it fronts on the
> same machine;
> b) your network infrastructure transparently encrypts traffic between your
> proxy and the service; or
> c) your proxy must negotiate its own TLS connection(s) with the service.
>
Paul
Thanks. I'm cu
other
> system entirely), since "database" is more getent terminology.
>
> In any case, I think 'pwd' is hiding its light under a bushel a bit
> here.
Please open a documentation bug :)
The pwd and grp module use the libc API to get users from the local
account database. On Linux and glibc the account database is handled by
NSS and nsswitch.conf.
By the way I recommend that you use SSSD instead of talking to LDAP
directly. You'll have a much more pleasant experience.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
parsing language, or even just handcoded Python is
much more maintainable.
Christian
PS: Exercise - handle lines commented out with a '#', i.e. skip those.
In awk:
gawk '!/^\s*#/ {sum += $2 } END {print sum}'
--
https://mail.python.org/mailman/listinfo/python-list
? CPython requires C99
since 3.6,
https://docs.python.org/3/whatsnew/3.6.html#build-and-c-api-changes
Christian
--
https://mail.python.org/mailman/listinfo/python-list
uitable to title-case a string, not even in English.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
time.
Maybe focussed to a single language or two, but not "universal" in any
sense.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 26.02.21 um 06:15 schrieb John O'Hagan:
On Thu, 25 Feb 2021 21:57:19 +0100
Christian Gollwitzer wrote:
I think it is not yet clear, if this is a bug in Tkinter or in
Tcl/Tk, the underlying scripting language. It might also be platform
dependent. Are you on Windows? Here is an equivalen
alled along
with Python on Windows), or something very different?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
te the Tcl that is used by Python directly, you may also do
something like
root = Tk()
root.eval('Here comes the Tcl code')
root.mainloop()
Can you also find out what version of Tcl/Tk you are using? Try
root.eval('info patchlevel')
Christian
--
https://mail.pyth
Was Guido not aware of Tcl, or did he not think that it is a contender
in the same area?
Christian
[1] "Python, an extensible interpreted programming language [...] can be
used instead of shell, Awk or Perl scripts, to write prototypes of real
applications, or as an extens
impressive that you
can write actual useful code with such a minimalist language (infix
math? Pure bloat!). OTOH it feels like "assembly" compared to more
evolved functional languages like, e.g. Haskell.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
(e.g. Python), and therefore is "complex".
Christian
--
https://mail.python.org/mailman/listinfo/python-list
of your compiler,
Here is the git repo:
https://github.com/i42output/neos
under languages/ you'll find different schema files.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Am 14.02.21 um 11:12 schrieb Paul Rubin:
Christian Gollwitzer writes:
He wants that neoGFX is scriptable in Python, but instead of linking
with CPython, he will write his own Python implementation instead,
because CPython is slow/not clean/ whatever. He doesn't seem to
understand that th
xpect to have a usable product soon.
Best regards,
Christian
[*] https://github.com/i42output/neoGFX
--
https://mail.python.org/mailman/listinfo/python-list
On 11/02/2021 03.51, James Lu wrote:
> Directly removing the Global Interpreter Lock (GIL) would break a lot
> of libraries that implicitly assume it is there. What if Python had
> "realms" that each had separate GILs?
>
> The "realms" (not sure if "subinterpreter" is the correct term here)
> coul
s,
For thatm you can run radicale:
https://radicale.org/3.0.html
A Python-based calendar server. Then upload your calendars there from
Thunderbird and download them from Outlook.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
to a frame with wm_forget(), after which you can simply pack
it into another frame. The second one is configuring a frame as a
container, which allows to even embed a window from a foreign
application. I'm not sure this works on all platforms, though.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
ps://medium.com/@yon.goldschmidt/running-python-in-the-linux-kernel-7cbcbd44503c
http://www.kplugs.org/
Christian
--
https://mail.python.org/mailman/listinfo/python-list
us, because then the weekend is split into the first and last day of
the week (?) - even if, historically, the week was the time from Sunday
to Sunday.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
dd_cascade(menu=self.menu_file, label='File')
and then it works,
Why am I getting an invalid syntax error here?
Because the dot would indicate the access of an attribute. but no name
follows. What it does here, instead, is indexing - the correct line is
similar to setting a d
import tkinter
@staticmethod
^^it works if you remove the staticmethod here
def cmd():
print("Test")
Maybe there is a bug in tkinter, that it doesn't work with static methods?
Christian
--
https://mail.python.org/mailman/listinfo/python-list
'dist' environment) to the target where you
want to run it
Try and run it on the target
Iteratively work through the errors it throws up when you run it, in my
case these were:-
Missing .so system library files, copy them from the build system to
somewhere
they will be found on the target. You could put them in a 'private to
the
package' directory and set LD_LIBRARY_PATH or do as I did and put them
in
a standard library location (and run ldconfig after adding each).
I've used pyinstaller in the past, and it seems to do a better job with
that. It usually copies all the sytem libraries, too, but would fail
with /usr/libexec/okimfputl & friends
Christian
--
https://mail.python.org/mailman/listinfo/python-list
object-oriented language (pyvenv binary,
> version 3.9)
Don't worry, you are not the first person that ran into this issue.
Debian's packaging of Python has caused multiple issues. I have reported
some issues to downstream Debian/Ubuntu. You can find a list of all
know
by itself. It also has other useful features like menus and
popup-dialogs for searching etc.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
)
time python3 430.py
real0m0.318s
user0m0.292s
sys 0m0.046s
If it takes longer than 1s, there is something wrong with your system.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
numpy as np
fx = fft(x)
pylab.semilogy(np.abs(fx))
pylab.show()
Christian
--
https://mail.python.org/mailman/listinfo/python-list
array. This is an optimization to avoid copying. If you want a
copy, do svary = npary.copy()
Christian
--
https://mail.python.org/mailman/listinfo/python-list
the terminal
and then close the terminal (which sends SIGHUP to the program). In this
case the program might later on throw I/O errors, when printing to stdout.
Christian
--
https://mail.python.org/mailman/listinfo/python-list
with a native Python for Android.
https://www.androwish.org/home/home
Christian
--
https://mail.python.org/mailman/listinfo/python-list
the source code of the function.
Best regards,
Christian
Thanks
Meghna
On Tue, Oct 13, 2020 at 11:46 AM Christian Gollwitzer
wrote:
Am 13.10.20 um 06:52 schrieb Meghna Karkera:
Could you let me know what is the back end calculation of this covariance
matrix syntax np.cov
You can
1 - 100 of 1987 matches
Mail list logo