te.ps1 is in the
Scripts subdirectory and you do run it directly. On Linux the python in
bin is usually a symlink, although you can specify it to be copied with a
parameter to venv. Symlinks on Windows are problematic but the process is
more or less the same.
--
https://mail.python.org/mailman/listinfo/python-list
/lib/python3.10/site-packages' left over
from earlier versions of Ubuntu.
However on Fedora 42 with 3.13.2
Defaulting to user installation because normal site-packages is not
writable.
--
https://mail.python.org/mailman/listinfo/python-list
Peter J. Holzer wrote:
> On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote:
...
>> When the system launches its application the PYTHONPATH will start with
>> system site directories; local user site directories will be on the
>> PYTHONPATH but since they come l
5, in
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
--
https://mail.python.org/mailman/listinfo/python-list
ly by
accident? I don't know.
On Sat, 8 Mar 2025 at 16:59, Praveen Kumar via Python-list <
[email protected]> wrote:
> Hi Python community and members,
>
> I hope this email finds you well, I want you to be assisted in resolving
> this following issue. kindly look at t
7645230846
[ Bluesky ]( https://bsky.app/profile/physaliacourses.bsky.social ) [ Linkedin
]( https://www.linkedin.com/in/physalia-courses-a64418127/ )
--
https://mail.python.org/mailman/listinfo/python-list
all contributors and users,
meejah
--
https://mail.python.org/mailman/listinfo/python-list
er used. I also appreciated f
strings when they were introduced, the walrus operator, and other
enhancements.
Another part of my renewed interest was the advent of many
microcontrollers capable of running MicroPython, which is a subset of
Python 3.x.
--
https://mail.python.org/mailman/listinfo/python-list
he basics
but overall I enjoyed it.
--
https://mail.python.org/mailman/listinfo/python-list
On 17/02/25 01:50, Jan Erik Moström via Python-list wrote:
I'm looking for a book that would teach me the lastest and greatest parts of
Python, does anyone have any recommendations?
I've looked at python.org and pythonbooks.org but I couldn't decide which one
to get.
I used to
n Distilled'. The author doesn't enumerate Python 3
features specifically but as the title suggests hits the important
concepts.
https://www.dabeaz.com/python-distilled/
--
https://mail.python.org/mailman/listinfo/python-list
On 16-02-2025 13:50, Jan Erik Moström via Python-list wrote:
I'm looking for a book that would teach me the lastest and greatest parts of
Python, does anyone have any recommendations?
I've looked at python.org and pythonbooks.org but I couldn't decide which one
to get.
I us
s wonders. A good layout and talble of
contents also helps. Decorators? Chapter 14, page 254, all you ever wanted
to know about them.
--
https://mail.python.org/mailman/listinfo/python-list
ul, but many programming books
are outdated and are more historical artifacts at this point.
songbird
--
https://mail.python.org/mailman/listinfo/python-list
Thanks. That appears to be exactly the thing I was looking for (vis-a-vis
collections).
--
https://mail.python.org/mailman3//lists/python-list.python.org
Thanks, D'Arcy. I've done a fair amount of 2-to-3 migration in the past, but
there was a lot of stuff in that article ("six", for instance) that I hadn't
run across.
--
https://mail.python.org/mailman3//lists/python-list.python.org
Greetings. We (the group that I work with) have "inherited" some Python
scripts that were written years ago, using Python 2.
We're trying to upgrade the scripts so that they work in our current
environment:
OS: Ubuntu 24.04.2 LTS
$ python --version
Python 3.11.13
>>> ma
Message received!
Hope you enjoyed your holiday...
On 28/05/25 12:00, Alan Gauld via Python-list wrote:
On 28/05/2025 00:32, Alan Gauld via Python-list wrote:
The archives are still there and the sign-up page seems to
work, but it doesn't recognise me. I tried signing up as
a new m
Hi,
I am testing the
[concurrent.interpreters](https://docs.python.org/3.14/library/concurrent.interpreters.html)
feature from Python **3.14rc3** (the latest current rc).
The subinterpreter seems to behave in a surprising way when encountering syntax
errors. For example, in the following code:
On 7/09/25 00:47, Rob Cliffe via Python-list wrote:
I quite often find myself writing expressions of the form
someString[x : x+n]
where n is often an int and x may be an int, a variable, or a (possibly
complicated) expression.
0 A PEP
1 A helper-function
eg slice_by_length
How do you start (and thus run) a Python project?
tldr; question in last paragraph
Two articles appeared in my InTray:
- Reuven Lerner (Python Trainer) saying "You’re probably using uv wrong"
(https://lerner.co.il/2025/08/28/youre-probably-using-uv-wrong/),
NB adapted from [his] “Better develo
Hi Steve, ask away...
On 11/09/25 16:15, Steve Jorgensen via Python-list wrote:
I posted a question here several days ago and received a "Welcome to the
"Python-list" mailing list!" email, but I still don't see my question in the list.
I'm posting this mainly to
>In your example when would isinstance(__exit_context__, ReturnContext)
>be True and when would it be False? What would __exit_context__.value
>be? I can't think of a sensible meaning for it. If no exception occurs,
>is the value returned by f supposed to be 10/x or __exit_context__.value
>+ 1
I'm new to Python.
Operating System - Windows XP SP3
Python 2.7 installed.
I got a script that tries to improve the image?
I created a bat file using the command line.
C:\python27\python.exe d:\temp\teste.py
But even though it runs, it displays an error:
"... no encoding declare..."
Can anyone
My code
from PIL import Image, ImageEnhance
import matplotlib.pyplot as plt
import numpy as np
import cv2
# Original image path
image_path = "D:\temp\STC.jpg" # Altere se estiver em outro local
original_image = Image.open(image_path)
# Convert to OpenCV to apply enhancements
cv_image = cv2.cvtC
>def f(x):
> try:
> quot = 10 / x
> except ZeroDivisionError as exc:
> log_error(exc)
> return 0
> else:
> log_return(quot)
> return quot + 1
> finally:
> "Any cleanup processing needed before returning"
This involves defining the new
Dear mailing list,
there is currently no direct way to observe the current interpreter state in a
finally block without tracing.
My idea is introducing an immutable __exit_context__ magic variable, which
would have one of three possible values:
* ReturnContext(value), if a return statement is
Hi,
Do you use a mirror in front of the PyPi "Cheese Shop"?
- perhaps a server like DevPi or Bandersnatch?
- perhaps a personal interest or your enterprise?
- is there public instance such as unis and others mirroring Linux distros?
--
Regards,
=dn
--
https://mail.python.org/mailman3//lists/pyt
PS Ethan: way-down the docs you'll find two very handy methods worth
applying as a second-attempt at this challenge!
On 28/08/25 03:41, Chris Angelico via Python-list wrote:
On Thu, 28 Aug 2025 at 01:28, Ethan Carter wrote:
def copy(s, d):
"""Copies text fil
On 29/08/25 10:52, Grant Edwards via Python-list wrote:
On 2025-08-28, Mark Bourne wrote:
Ethan Carter wrote:
PS. Is it just me or there's just us in this used-to-be-very-active
group? Thanks for being my teacher here. Have a good day!
Until a few months ago, there was a gateway
To you (if apparently in-reply to the OP),
On 30/08/25 07:19, Larry Martell via Python-list wrote:
https://www.youtube.com/watch?v=GfH4QL4VqJ0
Watched this last night. Overall I enjoyed it (but my wife, who is not a
programmer, fell asleep). My only quibble is that they spent too much time
> Which brings to mind a possible alternate syntax: s[x::n]
This would AFAIK collide with the the x[a:b:c] syntax, which already means
something, the c is the size of a step
<https://docs.python.org/3/library/functions.html#slice>
M
On 8 October 2025 16:22:46 CEST, python-
dictionary to return value on KeyError exception.
What's the most pythonic and fastest?
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
I found this is very confusing.
I will appreciate if simple examples are given.
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
bel?
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
ke my previous function, solved the problem that I had
with the dictionary, the dictionary is created only once, a half dozen
functions got moved into the new class, and the old class now has less
clutter.
Thanks everyone!
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
org/id/geography/administration/par/E04009816>
<http://www.w3.org/2004/02/skos/core#note> "Live"
.<http://opendatacommunities.org/id/geography/administration/par/E04009816>
<http://www.w3.org/2004/02/skos/core#notation> "E04009816" .
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
n/par/E04009817>
<http://www.w3.org/2004/02/skos/core#notation> "E04009817" .
Are there any hello world examples?
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
.
AttributeError: 'Scraper' object has no attribute 'requestor'
That's either a bug or I'm doing it wrong. Or maybe both?
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
r @property item?
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
. It's probably FUBAR in some obscure way.
I uninstalled Python 3.6.0 (32-bit) and Python 3.6.1 (64-bit), installed
Python 3.6.2 (64-bit), and everything now works.
Thanks,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
installing the program and I have once and tried repairing it a bunch of time
but the message still appears. Do I need to download something else and where
do I find it?
Thanks for the help,
Carson McDaniel
Sent from my iPhone
--
https://mail.python.org/mailman/listinfo/python-list
e and
only check data types when it is absolutely necessary — which is rarely!
Roger Christman
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
hear it directly, or the WAV or AU formats to
download the audio clips.
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
p://www.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
6, 1600), ('THE SHORTS', 7, 1100), ('KINGTON TOWN
STAKES', 8, 2000), ('BM 84 HANDICAP', 9, 1200)]
I get close creating a list of elements but each attempt I try to create the
list of tuples fails.
This is my closest code
data = r.json()
raceData = []
for item in data["RaceDay"]['Meetings'][0]['Races']:
raceDetails = item['RacingFormGuide']['Event']['Race']
raceData +=
(raceDetails['Name'],raceDetails['Number'],raceDetails['Distance'])
print(raceDetails)
which returns
['CLASS 3 HANDICAP', 1, 1000, 'BM 90 HANDICAP', 2, 1600, 'HERITAGE STAKES', 3,
1100, 'BILL RITCHIE HANDICAP', 4, 1400, 'TEA ROSE STAKES', 5, 1400, 'GEORGE
MAIN STAKES', 6, 1600, 'THE SHORTS', 7, 1100, 'KINGTON TOWN STAKES', 8, 2000,
'BM 84 HANDICAP', 9, 1200]
How do I get the tuples?
Cheers
Sayth
---
This email has been checked for viruses by AVG.
http://www.avg.com
After a quick glance and hence completely untested:-
raceData.append((raceDetails['Name'],raceDetails['Number'],raceDetails['Distance']))
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
nistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email has been checked for viruses by AVG.
http://www.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
ww.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
d ground? Is it
completely impossible for people to step outside of their world of pass
by value or pass by reference?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email has been checked for viruses by AVG.
http://www.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
#x27;t figure out sooner that he
couldn't.
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
for our language.
Mark Lawrence
---
This email has been checked for viruses by AVG.
http://www.avg.com
--
https://mail.python.org/mailman/listinfo/python-list
27;t expect run into any difficulties. : )
Except perhaps for your sense of time... "I'll try" implies the future, "last night" is the
past.:-) :-)
(Couldn't resist...)
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
x = get_num('Number ( to terminate: ', abrt=True)
if x is None:
break
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
ion for) onto the computers in the school. Therefore, I'm looking for
something in the Python 3.6 Standard Library.
Thanks in advance,
Irv
Hopefully this https://docs.python.org/3/howto/pyporting.html will help.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
illar with?
--
https://mail.python.org/mailman/listinfo/python-list
nction clear – the
operation of ‘del’ is easier to understand.
--
\ “The shortest distance between two points is under |
`\ construction.” —Noelie Alito |
_o__) |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
https://mail.python.org/mailman/listinfo/python-list
When I am running IDLE return to me Missing python36.dll error
Στάλθηκε από την Αλληλογραφία για Windows 10
--
https://mail.python.org/mailman/listinfo/python-list
I am trying to gain a clear understanding on pd.merge(df,df2, on=['Code',
'Region']).
Can anyone assist?
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
st have no idea what the issue is other
than maybe an old computer
regards,
Mary Ann
--
https://mail.python.org/mailman/listinfo/python-list
ea,)
else:
print("No negatives allowed, try again.")
--
https://mail.python.org/mailman/listinfo/python-list
,
> round(surfacearea,2), )
> else:
> print("No negatives allowed, try again.")
Tried this but it doesn't seem to work. It still prints out all of the decimals
--
https://mail.python.org/mailman/listinfo/python-list
it doesn't seem to work. It still prints out all of the
> > decimals
>
> This is the output from the code above (Working):
>
> What is the radius in feet? (no negatives): >? 2
> What is the height in feet? (no negatives): >? 4
> Your Answer is:
> A cone with radius 2.0
> and height of 4.0
> has a volume of : 16.76
> and surface area of : 40.67
interesting, what version of python are you using? Tried it multiple times and
it still isn't working.
--
https://mail.python.org/mailman/listinfo/python-list
> > > decimals
> >
> > This is the output from the code above (Working):
> >
> > What is the radius in feet? (no negatives): >? 2
> > What is the height in feet? (no negatives): >? 4
> > Your Answer is:
> > A cone with radius 2.0
> > and height of 4.0
> > has a volume of : 16.76
> > and surface area of : 40.67
>
> interesting, what version of python are you using? Tried it multiple times
> and it still isn't working.
Never mind its working now, just had to change something up real quick, thank
you.
--
https://mail.python.org/mailman/listinfo/python-list
f __name__ == "__main__":
result = rollDie(50)
print (result)
print(max(result))
--
https://mail.python.org/mailman/listinfo/python-list
you may consider checking out a more general approach. Noweb was the first
to my knowledge and lead the way for Sweave (R or S), and pyweave, as
mentioned.
https://en.wikipedia.org/wiki/Noweb
Cheers
--
https://mail.python.org/mailman/listinfo/python-list
an be told in a few words. Debunking that lie can take |
`\ pages. That is why my book… is five hundred pages long.” —Chris |
_o__)Rodda, 2011-05-05 |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
nd I speech |
_o__) nothing, for I no verbs.” —Peter Ellis |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
I ask
> here is because I'm wondering if anybody has encountered this before and
> managed to hunt down which of these libraries is doing something naughty?
>
> Thanks!
> Jason
>
> --
> Jason M. Swails
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
kindly inform me what to do.
--
https://mail.python.org/mailman/listinfo/python-list
object):
def init(self):
self.obj = lib.loadInstance()
def create_services(self,servicename):
result=lib.createService(self.obj,servicename)
return result
driver=myDriver()
driver.create_services(b"myExample")
Thanks for the help
Jason
--
https://mail.python.org/mailman/listinfo/python-list
Thanks you very much, fixed the problem :)
On Mon, Jan 22, 2018 at 4:28 PM, Random832 wrote:
> On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote:
> > Hello!
> >
> > I am using ctypes on Windows to interface with a dll and it works fine
> > on Linu
Thanks for the help,
Jason
On Mon, Jan 22, 2018 at 5:41 PM, eryk sun wrote:
> On Mon, Jan 22, 2018 at 9:00 PM, Jason Qian via Python-list
> wrote:
> >
> > I am using ctypes on Windows to interface with a dll and it works fine
> > on Linux and windows 32-bit python.
s you very much, fixed the problem :)
>
> On Mon, Jan 22, 2018 at 4:28 PM, Random832 wrote:
>
>> On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote:
>> > Hello!
>> >
>> > I am using ctypes on Windows to interface with a dll and it works
&
ponse ---')
print(message)
print(code)
class GSPythonDriver(object):
def submif(self,methodname)
invm_fn = InvocationCB(handleResponse)
lib.submit(self.obj,methodname,invm_fn)
How can I do this on the Linux ?
Thanks for the help
Jason
--
https://mail.python.org/mailman/listinfo/python-list
HI Dennis,
Thanks for the help, After changing WINFUNCTYPE to CFUNCTYPE, the call
back function works on the Linux :)
Thanks again,
Jason
On Wed, Jan 24, 2018 at 6:15 PM, Dennis Lee Bieber
wrote:
> On Wed, 24 Jan 2018 17:16:22 -0500, Jason Qian via Python-list
> declaim
58 PM, Jason Qian wrote:
>
>> Thanks you very much, fixed the problem :)
>>
>> On Mon, Jan 22, 2018 at 4:28 PM, Random832
>> wrote:
>>
>>> On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote:
>>> > Hello!
>>> >
>&g
HI
I am a string that contains \r\n\t
[Ljava.lang.Object; does not exist*\r\n\t*at com.livecluster.core.tasklet
I would like it print as :
[Ljava.lang.Object; does not exist
tat com.livecluster.core.tasklet
--
https://mail.python.org/mailman/listinfo/python-list
cluster.core.tasklet
>
>
>
--
https://mail.python.org/mailman/listinfo/python-list
st*\r\n\t*at com
Thanks
On Sat, Jan 27, 2018 at 4:20 PM, Ned Batchelder
wrote:
> On 1/27/18 3:15 PM, Jason Qian via Python-list wrote:
>
>> HI
>>
>> I am a string that contains \r\n\t
>>
>> [Ljava.lang.Object; does not exist*\r\n\t*at
>>
Reedy wrote:
> On 1/27/2018 3:15 PM, Jason Qian via Python-list wrote:
>
>> HI
>>
>> I am a string that contains \r\n\t
>>
>> [Ljava.lang.Object; does not exist*\r\n\t*at
>> com.livecluster.core.tasklet
>>
>>
>> I would like it p
there are 0D 0A 09
%c %d 116
*%c %d 13%c %d 10%c %d
9*
%c %d 97
On Sat, Jan 27, 2018 at 9:05 PM, Dennis Lee Bieber
wrote:
> On Sat, 27 Jan 2018 20:33:58 -0500, Jason Qian via Python-list
> declaimed the following:
>
> > Ljava.lang.Object; does not exis
, you could try to create a wheel file with your django project and
try that, but it is really complex.
Why do you want to package a Django app into a C file with a compiler?
--
Stéphane Wirtel - http://wirtel.be - @matrixise
--
https://mail.python.org/mailman/listinfo/python-list
99 c
%d %c 111 o
%d %c 109 m
On Sun, Jan 28, 2018 at 9:50 AM, Steven D'Aprano <
[email protected]> wrote:
> On Sat, 27 Jan 2018 21:23:02 -0500, Jason Qian via Python-list wrote:
>
> > there are 0D 0A 09
>
> If your string actually contains CARRIAGE
Thanks a lot :)
os.write(1, message) works !
On Sun, Jan 28, 2018 at 8:04 PM, Dan Stromberg wrote:
> How about:
> >>> os.write(1, message)
>
> On Sun, Jan 28, 2018 at 4:51 PM, Jason Qian via Python-list
> wrote:
> > print(repr(message)) out :
>
Thanks Peter,
replace print with os.write fixed the problem.
On Sun, Jan 28, 2018 at 3:57 AM, Peter Otten <[email protected]> wrote:
> Jason Qian via Python-list wrote:
>
> > HI
> >
> >I have a string that contains \r\n\t
> >
> >[L
The message type is bytes, this may make different ?
print(type(message))
On Sun, Jan 28, 2018 at 8:41 PM, Steven D'Aprano <
[email protected]> wrote:
> On Sun, 28 Jan 2018 20:31:39 -0500, Jason Qian via Python-list wrote:
>
> > Thanks a lot :)
>
On 1/28/18 7:39 AM, Prahallad Achar wrote:
Hello team,
Could you please help me out in automation of IoT product end to end
Regards
Prahallad
<https://micropython.org/> ?
--Dale
--
https://mail.python.org/mailman/listinfo/python-list
Thank you Mr. Marvin
On 29 Jan 2018 12:02 pm, "Dale Marvin via Python-list" <
[email protected]> wrote:
> On 1/28/18 7:39 AM, Prahallad Achar wrote:
>
>> Hello team,
>> Could you please help me out in automation of IoT product end to end
>>
, "s", &sp)) {
}
and got
"SystemError: new style getargs format but argument is not a tuple"
Thanks for the help
--
https://mail.python.org/mailman/listinfo/python-list
Hi Chris,
Thanks a lot ! Using PyUnicode_DecodeUTF8 fix the problem.
On Sun, Feb 4, 2018 at 12:02 PM, Chris Angelico wrote:
> On Mon, Feb 5, 2018 at 3:52 AM, Jason Qian via Python-list
> wrote:
> > Hi,
> >
> >This is the case of calling python from c and th
Hi,
This only works when loading modules from the current directory.
Is there a way I can load from somewhere else ?
Thanks for help,
--
https://mail.python.org/mailman/listinfo/python-list
ve.” —John |
_o__) F. Woods |
Ben Finney
--
https://mail.python.org/mailman/listinfo/python-list
Hello! So I downloaded “Python” program in C:>Users>(my
name)>AppData>Local>Programs>Python.And then in “Local” folder I can’t find
“Programs” folder,but it says it downloaded in “Programs”.So can you help me.
--
https://mail.python.org/mailman/listinfo/python-list
Thanks a lot and I will take a look Cython,
On Mon, Feb 19, 2018 at 3:23 PM, Stefan Behnel wrote:
> Jason Qian via Python-list schrieb am 04.02.2018 um 17:52:
> >This is the case of calling python from c and the python function
> will
> > return a string.
>
> Hi J
https://mail.python.org/mailman/listinfo/python-list
Thanks Chris,
I think I figured it out that when build python on Linux, we need to
enable-shared.
Thanks again,
On Mon, Feb 19, 2018 at 5:04 PM, Chris Angelico wrote:
> On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list
> wrote:
> > Hi,
> >
> > I am
I try to run an application with the latest version of python that is python
3.6.4 (32-bit) ., instead of running the application it only shows feel free to
mail [email protected] if you continue to encounter issues,Please help me
out thanks.
--
https://mail.python.org/mailman/listinfo
How will i bypass web application firewall
--
https://mail.python.org/mailman/listinfo/python-list
ded", it's straight-up broken.
> The only thing that is most noticeable about UTC is the incorporation
> of leap-seconds.
I've never yet managed to find an application where leap-seconds matter
;-)
--
https://mail.python.org/mailman/listinfo/python-list
1501 - 1600 of 5869 matches
Mail list logo