On 27/02/2024 07:13, Steve GS via Python-list wrote:
> Aside from using it to resized
> the window, is there no way to
> know the last value of the
> change for use in the program?
The last value would be the current width.
And you know how to get that as shown in
your configure function:
Ww = r
de
your handler.
How would that be done?
SGA
-Original Message-
From: Python-list
On
Behalf Of Thomas Passin via
Python-list
Sent: Monday, February 26,
2024 8:34 AM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2/26/2024 6:02 AM, Steve GS
via
t;")
# Can I have concentric loops?
SGA
-Original Message-
From: Alan Gauld
Sent: Monday, February 26, 2024 4:04 AM
To: Steve GS ; python-list@python.org
Subject: Re: RE: Problem resizing a window and button placement
On 26/02/2024 07:56, Steve GS via Python-list wrote:
Then ther
On 26/02/2024 11:02, Steve GS via Python-list wrote:
> Although your code produces the value of Ww outside the function,
> I do not see how I can use the value of Ww unless I close the program.
You have to use a function that operates inside the mainloop.
Thats the nature of event driven programs
quot;)
# Can I have concentric loops?
SGA
-Original Message-
From: Alan Gauld
Sent: Monday, February 26, 2024 4:04 AM
To: Steve GS ; python-list@python.org
Subject: Re: RE: Problem resizing a window and button placement
On 26/02/2024 07:56, Steve GS via Python-list wrote:
> Th
On 26/02/2024 07:56, Steve GS via Python-list wrote:
> Then there is that discovery
> element: Why is my original
> idea not working? I still
> cannot pass the value back
> from the function. What is
> different about this function
> that others would have given
> me the value?
There is nothing
unday, February 25,
2024 5:55 PM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2/25/2024 4:19 PM, Steve GS
via Python-list wrote:
> SOLUTION FOUND!
>
> The fix was to write the
code that uses the width value
and to place it into the
function i
Ww Inside = <250>
Ww Inside = <249>
Ww Inside = <250>
Ww Outside =
<1770662408256on_configure>
Here is my result...
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Sunday, February 25,
2024 6:40 PM
To: python-list@python.
On 2024-02-25 21:19, Steve GS via Python-list wrote:
SOLUTION FOUND!
The fix was to write the code that uses the width value and to place it into
the function itself.
Kluge? Maybe but it works.
Mischief Managed.
As for the most recent suggestion, it fails for me:
Tra
ted in the function used here, and make it available to the code outside
the function.
SGA
-Original Message-
From: Alan Gauld
Sent: Sunday, February 25, 2024 12:44 PM
To: Steve GS ; python-list@python.org
Subject: Re: RE: Problem resizing a window and button placement
On 25/02/2024
ot sure how this help[s.
As a curio, it would be interesting to see how to use the value of a variable,
created in the function used here, and make it available to the code outside
the function.
SGA
-Original Message-
From: Alan Gauld
Sent: Sunday, February 25, 2024 12:44 PM
To:
On 25/02/2024 03:58, Steve GS via Python-list wrote:
import tkinter as tk
Ww = None
def on_configure(*args):
global Ww
Ww = root.winfo_width()
print("Ww Inside = <" + str(Ww) + ">")
root = tk.Tk()
root.bind('', on_configure)
root.mainloop()
print("Ww Outside = <" + str(Ww)
So, how do I use the width value in my code?
SGA
-Original Message-
From: Python-list On Behalf
Of MRAB via Python-list
Sent: Saturday, February 24, 2024 10:36 PM
To: python-list@python.org
Subject: Re: Problem resizing a window and button placement
On 2024-02-25 02:51, Steve GS wrote
The print statement in the
function prints.
Does that not mean that the
function is being called?
SGA
-Original Message-
From: Python-list
On
Behalf Of Thomas Passin via
Python-list
Sent: Saturday, February 24,
2024 10:39 PM
To: python-list@python.org
Subject: Re: Problem resizing
a
On 2024-02-25 02:51, Steve GS wrote:
import tkinter as tk
#global Ww Neither global helps
def on_configure(*args):
# print(args)
#global Ww Neither global helps
Ww = root.winfo_width()
print("WwInside = <" + str(Ww) + ">")
root = tk.Tk()
root.bind('', on_configure)
print
r you, as others have written.
root.mainloop()
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Saturday, February 24,
2024 7:49 PM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2024-02-25 00:33, Steve GS
via Pyth
gure)
print("WwOutside = <" +
str(Ww) + ">")
#NameError: name 'Ww' is not
defined
root.mainloop()
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Saturday, February 24,
2024 7:49 PM
To: python-list@python.org
Subject: Re: Problem r
On 2024-02-25 00:33, Steve GS via Python-list wrote:
"Well, yes, in Python a
variable created inside a
function or method is local to
that function unless you
declare it global."
Yes, I knew that. I tried to
global it both before the
function call and within it.
Same for when I created the
varia
as Passin via
Python-list
Sent: Saturday, February 24,
2024 8:40 AM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2/24/2024 3:20 AM, Steve GS
via Python-list wrote:
> Yes, I ran that elegantly
> simple code. The print
> statement reports the X,
On 2024-02-24, MRAB via Python-list wrote:
> On 2024-02-24 01:14, Steve GS via Python-list wrote:
>
>> Python, Tkinter: How do I determine if a window has been resized? I
>> want to locate buttons vertically along the right border and need
>> to know the new width. The buttons are to move with the
ry between languages.
So close..
SGA
-Original Message-
From: Barry
Sent: Saturday, February 24,
2024 3:04 AM
To: Steve GS
Cc: MRAB
;
python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 24 Feb 2024, at 04:36,
Steve GS via Python-list
wrote:
Cc: MRAB
;
python-list@python.org
Subject: Re: Problem resizing
a window and button placement
> On 24 Feb 2024, at 04:36,
Steve GS via Python-list
wrote:
>
> How do I extract the values
> from args?
You can look up the args in
documentation.
You can run the example code
MRAB prov
> On 24 Feb 2024, at 04:36, Steve GS via Python-list
> wrote:
>
> How do I extract the values
> from args?
You can look up the args in documentation.
You can run the example code MRAB provided and see what is printed to learn
what is in the args.
Barry
--
https://mail.python.org/mailman
How do I extract the values
from args?
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Friday, February 23,
2024 9:27 PM
To: python-list@python.org
Subject: Re: Problem resizing
a window and button placement
On 2024-02-24 01:14, Steve GS
via Python-list
On 2024-02-24 01:14, Steve GS via Python-list wrote:
Python, Tkinter: How do I
determine if a window has been
resized? I want to locate
buttons vertically along the
right border and need to know
the new width. The buttons are
to move with the change of
location of the right-side
border.
Bind an
On 2023-05-08 23:02:18 +0200, jak wrote:
> Peter J. Holzer ha scritto:
> > On 2023-05-06 16:27:04 +0200, jak wrote:
> > > Chris Green ha scritto:
> > > > Chris Green wrote:
> > > > > A bit more information, msg.get("subject", "unknown") does return a
> > > > > string, as follows:-
> > > > >
> > >
On 2023-05-06 16:27:04 +0200, jak wrote:
> Chris Green ha scritto:
> > Chris Green wrote:
> > > A bit more information, msg.get("subject", "unknown") does return a
> > > string, as follows:-
> > >
> > > Subject:
> > > =?utf-8?Q?aka_Marne_=C3=A0_la_Sa=C3=B4ne_(Waterways_Continental_Europe)?=
Chris Green ha scritto:
Chris Green wrote:
A bit more information, msg.get("subject", "unknown") does return a
string, as follows:-
Subject:
=?utf-8?Q?aka_Marne_=C3=A0_la_Sa=C3=B4ne_(Waterways_Continental_Europe)?=
So it's the 'searchTxt in msg.get("subject", "unknown")' that's
failing.
Chris Green wrote:
> A bit more information, msg.get("subject", "unknown") does return a
> string, as follows:-
>
> Subject:
> =?utf-8?Q?aka_Marne_=C3=A0_la_Sa=C3=B4ne_(Waterways_Continental_Europe)?=
>
> So it's the 'searchTxt in msg.get("subject", "unknown")' that's
> failing. I.e. for so
A bit more information, msg.get("subject", "unknown") does return a
string, as follows:-
Subject:
=?utf-8?Q?aka_Marne_=C3=A0_la_Sa=C3=B4ne_(Waterways_Continental_Europe)?=
So it's the 'searchTxt in msg.get("subject", "unknown")' that's
failing. I.e. for some reason 'in' isn't working when th
Chris Green ha scritto:
I have a custom mail filter in python that uses the mailbox package to
open a mail message and give me access to the headers.
So I have the following code to open each mail message:-
#
#
# Read the message from standard input and make a message object from
Den 2023-04-13 skrev MRAB :
> On 2023-04-13 19:41, Martin Schöön wrote:
>> Anyone had success running this example?
>> https://tinyurl.com/yhhyc9r
>>
>> As far as I know I have an up-to-date matplotlib installed. Pip has
>> nothing more modern to offer me.
>>
> All I can say is that it works for
On 2023-04-13 19:41, Martin Schöön wrote:
Anyone had success running this example?
https://tinyurl.com/yhhyc9r
When I try I get this error:
"TypeError: __init__() got an unexpected keyword argument 'transform'"
This is for the line
"m = MarkerStyle(SUCESS_SYMBOLS[mood], transform=t)"
Yes,
On 4/13/2023 2:41 PM, Martin Schöön wrote:
Anyone had success running this example?
https://tinyurl.com/yhhyc9r
When I try I get this error:
"TypeError: __init__() got an unexpected keyword argument 'transform'"
This is for the line
"m = MarkerStyle(SUCESS_SYMBOLS[mood], transform=t)"
Yes,
On 4/3/23 10:43, Pranav Bhardwaj wrote:
Why can't I able to use python libraries such as numpy, nudenet, playsound,
pandas, etc in my python 3.11.2. It always through the error "import
'numpy' or any other libraries could not be resolved".
Will restate what others have said in the hopes it migh
Pranav Bhardwaj wrote at 2023-4-3 22:13 +0530:
>Why can't I able to use python libraries such as numpy, nudenet, playsound,
>pandas, etc in my python 3.11.2. It always through the error "import
>'numpy' or any other libraries could not be resolved".
The "libraries" you speak of are extensions (i.e
On 4/3/2023 12:43 PM, Pranav Bhardwaj wrote:
Why can't I able to use python libraries such as numpy, nudenet, playsound,
pandas, etc in my python 3.11.2. It always through the error "import
'numpy' or any other libraries could not be resolved".
You need to realize that no one can help you witho
> On 3 Apr 2023, at 17:46, Pranav Bhardwaj wrote:
>
> Why can't I able to use python libraries such as numpy, nudenet, playsound,
> pandas, etc in my python 3.11.2. It always through the error "import
> 'numpy' or any other libraries could not be resolved".
You need to provide enough details
I believe your problem is __rsub__, not __sub__.
When you havethen that
uses the "r" version of the operators.
In your __rsub__ (used when you have - ) you instead return
- which is backwards.
Notice how the final return should also be -4,95 and not the +4,95 it's
returning.
> If on th
On 3/10/23 15:15, Chris wrote:
Hi everyone. I'm new to Python and wxPython. I've got a form I use to
calculate the Sq In of a leather project.
I'm using python 3.9.13 and wxPython 4.20
I'm having the following issues:
1) When I come into the form, no grid cell has the focus set - I start
typi
#Try using, it's save in json format of the website:
import json
import requests
from bs4 import BeautifulSoup
url = "https://www.empireonline.com/movies/features/best-movies-2/";
soup = BeautifulSoup(requests.get(url).content, "html.parser")
data = json.loads(soup.select_one("#__NEXT_DATA__").
On Wed, 14 Sep 2022 11:42:39 +0200, "carlharrison"
declaimed the following:
>I am working on a PC with windows 10 and use Eset internet security. I have
>tried downloading python 3.10.7 for windows. Using a tutorial I see that a
>checkbox should appear called "Add python 3/7 to path" but this do
Hello and welcome,
Sadly I don't know about Eset internet security, or why you do not get the
choice of letting the installer do that, but you could try to add Python
manually to your PATH like it is described in
https://www.geeksforgeeks.org/how-to-add-python-to-windows-path/ .
But maybe som
On Thu, 18 Aug 2022 12:17:25 -0600, David at Booomer
declaimed the following:
>
>I did count but hadn’t noticed this argument list before you mentioned it.
>However, I still don’t see any of these argument names in the Executable list
>or anywhere else.
>
It's your responsibility to pr
On Fri, 19 Aug 2022 at 10:07, Grant Edwards wrote:
>
> On 2022-08-18, Chris Angelico wrote:
> > On Fri, 19 Aug 2022 at 05:05, Grant Edwards
> > wrote:
> >> On 2022-08-18, Chris Angelico wrote:
> >>
> >> > It's one of the frustrations with JSON, since that format doesn't
> >> > allow the traili
On 2022-08-18, Chris Angelico wrote:
> On Fri, 19 Aug 2022 at 05:05, Grant Edwards wrote:
>> On 2022-08-18, Chris Angelico wrote:
>>
>> > It's one of the frustrations with JSON, since that format doesn't
>> > allow the trailing comma :)
>>
>> Yep, that's a constant, low-level pain for all the C
Hope you had a good time.
On Wed, Aug 17, 2022 at 10:19 PM Peter J. Holzer wrote:
> On 2022-08-17 12:09:14 -0600, David at Booomer wrote:
> > Executable(
> >
> "prjui.py","Maiui.py","about.py","dict.py","geometry.py","getEquation.py",
> >
> "gtrail.py","main.py","matchingstring.py","pr
On Fri, 19 Aug 2022 at 05:05, Grant Edwards wrote:
>
> On 2022-08-18, Chris Angelico wrote:
> > On Fri, 19 Aug 2022 at 04:19, David at Booomer wrote:
> >
> >> The trailing , does make commenting out arguments easier but
> >> unexpected coming from ‘older’ languages. ;-)
> >
> > It's one of the f
On 2022-08-18, Chris Angelico wrote:
> On Fri, 19 Aug 2022 at 04:19, David at Booomer wrote:
>
>> The trailing , does make commenting out arguments easier but
>> unexpected coming from ‘older’ languages. ;-)
>
> It's one of the frustrations with JSON, since that format doesn't
> allow the trailin
On Fri, 19 Aug 2022 at 04:19, David at Booomer wrote:
> > This is really common in modern programming languages (read: programming
> > languages younger than 30 years or so), because it makes it much more
> > convenient to extend/shorten/reorder a list. Otherwise you alway have to
> > remember add
r suggestions Dennis. This was the first time I saw the
possibility of creating a python executable.
Then I searched for ‘python executable’ and found auto-py-to-exe and
pyinstaller which I must/might explore later. First tries ran into PyQt4 to
PyQt5 conversions. Good start at
https://towardsd
On 2022-08-17 12:09:14 -0600, David at Booomer wrote:
> Executable(
>
> "prjui.py","Maiui.py","about.py","dict.py","geometry.py","getEquation.py",
>
> "gtrail.py","main.py","matchingstring.py","producelatex.py","readfile.py",
> "separete.py","speak.py",
On Wed, 17 Aug 2022 12:09:14 -0600, David at Booomer
declaimed the following:
>executables=[
>Executable(
>
> "prjui.py","Maiui.py","about.py","dict.py","geometry.py","getEquation.py",
>
> "gtrail.py","main.py","matchingstring.py","producelatex.py","readfile.py
mention of adding self which is in these lines already. Previously I
had search for __init__() which returned no lines due to the closing ).
I had visited the page you provided
(https://cx-freeze.readthedocs.io/en/latest/setup_script.html#cx-freeze-executable)
but didn’t noticed the 11 plus self as 12
On Mon, 15 Aug 2022 18:00:48 -0600, David at Booomer
declaimed the following:
>However I now get an error
>
>init() takes from 2 to 12 positional arguments but 14 were given
>
>I found a couple instances of init in two .py files that were part of the
>whole.
>
>One .py file
>def __init__(self):
On Mon, 15 Aug 2022 10:30:41 -0600, David at Booomer
declaimed the following:
>I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a python
>app but running into an error message:
>
>AttributeError: module 'cx_Freeze' has no attribute ‘BdistDMG’
What operating system? B
Hi Jim
Thanks for your suggestions.
I changed
from cx_Freeze import *
to
from cx_Freeze import setup, Executable
And no longer get the BdistDMG error
—
I had found the page
https://cx-freeze.readthedocs.io/en/latest/setup_script.html
But hadn’t tried the setup, Executable option in the from
This link covers how to use BDist_dmg.
https://cx-freeze.readthedocs.io/en/latest/setup_script.html
Sent from my iPhone
> On Aug 15, 2022, at 12:11 PM, David at Booomer wrote:
>
> I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a
> python app but running into an error m
I see a class called BdistDMG in the module called bdist_mac.py. Did you try
importing that from cx_freeze?
-Original Message-
From: Python-list On
Behalf Of David at Booomer
Sent: Monday, August 15, 2022 11:31 AM
To: python-list@python.org
Subject: Problem using cx_Freeze
I’m trying
On Sun, 13 Mar 2022 at 10:41, Jen Kris wrote:
>
>
> Thanks for PySequence_InPlaceConcat, so when I need to extend I'll know what
> to use. But my previous email was based on incorrect information from
> several SO posts that claimed only the extend method will work to add tuples
> to a list.
Thanks for PySequence_InPlaceConcat, so when I need to extend I'll know what to
use. But my previous email was based on incorrect information from several SO
posts that claimed only the extend method will work to add tuples to a list. I
found that's wrong -- even my own Python code uses the a
On Sun, 13 Mar 2022 at 10:30, Jen Kris wrote:
>
>
> Chris, you were right to focus on the list pDictData itself. As I said,
> that is a list of 2-tuples, but I added each of the 2-tuples with
> PyList_Append, but you can only append a tuple to a list with the extend
> method. However, there
Chris, you were right to focus on the list pDictData itself. As I said, that
is a list of 2-tuples, but I added each of the 2-tuples with PyList_Append, but
you can only append a tuple to a list with the extend method. However, there
is no append method in the C API as far as I can tell -- h
On Sun, 13 Mar 2022 at 08:54, Jen Kris wrote:
>
>
> pDictData, despite the name, is a list of 2-tuples where each 2-tuple is a
> dictionary object and a string.
>
Ah, gotcha. In that case, yeah, slicing it will involve referencing
the tuples all the way down the line (adding to their refcounts,
pDictData, despite the name, is a list of 2-tuples where each 2-tuple is a
dictionary object and a string.
Mar 12, 2022, 13:41 by ros...@gmail.com:
> On Sun, 13 Mar 2022 at 08:25, Jen Kris via Python-list
> wrote:
>
>> PyObject* slice = PySlice_New(PyLong_FromLong(0), half_slice, 0);
>> PyOb
Thanks to you both. I am going to implement PySequence_Get_Slice now. If I
have trouble then, per comments from Chris Angelico, I will iterate through
pDictData to verify it because I haven't done that. It is not null, however.
Jen
Mar 12, 2022, 13:40 by pyt...@mrabarnett.plus.com:
> O
On Sun, 13 Mar 2022 at 08:25, Jen Kris via Python-list
wrote:
> PyObject* slice = PySlice_New(PyLong_FromLong(0), half_slice, 0);
> PyObject* subdata_a = PyObject_GetItem(pDictddata, slice);
>
> On the final line (subdata_a) I get a segfault. I know that the second
> parameter of PyObject_GetIt
On 2022-03-12 21:24, Jen Kris via Python-list wrote:
I have a C API project where I have to slice a list into two parts.
Unfortunately the documentation on the slice objects is not clear enough for me
to understand how to do this, and I haven’t found enough useful info through
research. The
On 1/31/22 07:18, ojomooluwatolami...@gmail.com wrote:
>
> Good morning, Python. I am having trouble installing pygame. it keeps saying
> to upgrade my pip version which I have done several times. then when I tried
> importing python to see if it has worked, in the ide it says the module does
>
On Mon, 31 Jan 2022 14:18:47 +, ojomooluwatolami...@gmail.com declaimed
the following:
>
>Good morning, Python. I am having trouble installing pygame. it keeps saying
>to upgrade my pip version which I have done several times. then when I tried
>importing python to see if it has worked, in t
On 14/12/21 7:07 am, MRAB wrote:
It's difficult to say what the problem is when you haven't given us the
code!
Note: Attachments do not make it to this list.
You will need to insert the code into the message as text.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On 2021-12-12 23:37, Larry Warner wrote:
Win 10, Chrome, Python 3.10.1
New at python
error on open statement
Probably simple error but I do not see it.
The program is a python example with the file name being changed. I want
to experiment with changing the literal file name in the open stateme
On Tue, Dec 14, 2021 at 12:05 AM Larry Warner wrote:
>
> Win 10, Chrome, Python 3.10.1
> New at python
> error on open statement
>
> Probably simple error but I do not see it.
>
> The program is a python example with the file name being changed. I want
> to experiment with changing the literal fi
be shocked if you couldn't do it.
Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Mahmood Naderan
Sent: Saturday, November 6, 2021 6:01 PM
To: python-list@python.org; MRAB
Subject: Re: Problem with concatenating two datafram
>The second argument of pd.concat is 'axis', which defaults to 0. Try
>using 1 instead of 0.
Unfortunately, that doesn't help...
dict[name] = pd.concat( [dict[name],values], axis=1 )
{'dummy': Value
M1 0
M2 0
M3 0, 'K1':Value Value
0 10.0NaN
15.0NaN
2
On 2021-11-06 20:12, Mahmood Naderan wrote:
>Try this instead:
>
>
> dict[name] = pd.concat([dict[name], values])
OK. That fixed the problem, however, I see that they are concatenated
vertically. How can I change that to horizontal? The printed dictionary in the
end looks like
{'dummy':
>Try this instead:
>
>
> dict[name] = pd.concat([dict[name], values])
OK. That fixed the problem, however, I see that they are concatenated
vertically. How can I change that to horizontal? The printed dictionary in the
end looks like
{'dummy': Value
M1 0
M2 0
M3 0, 'K1':
On 2021-11-06 16:16, Mahmood Naderan via Python-list wrote:
In the following code, I am trying to create some key-value pairs in a
dictionary where the first element is a name and the second element is a
dataframe.
# Creating a dictionary
data = {'Value':[0,0,0]}
kernel_df = pd.DataFrame(data,
On 2021-09-04, Hope Rouselle wrote:
> Igor Korot writes:
>
>> Hi,
>> Will this syntax work in python 2?
>
> If you say
>
> print(something)
>
> it works in both.
But it doesn't always work the _same_ in both. If you're expecting
some particular output, then one or the other might not won't "wo
On 2021-09-04, Peter J. Holzer wrote:
> On 2021-09-04 14:29:47 -0500, Igor Korot wrote:
>> Will this syntax work in python 2?
>
> Yes. It's just a redundant pair of parentheses.
Not really. With the parens, it doesn't produce the same results in
2.x unless you import the print function from the f
On 9/4/2021 2:27 PM, Igor Korot wrote:
Hi, ALL,
[code]
igor@WaylandGnome ~/bakefile $ python
Python 3.9.6 (default, Aug 8 2021, 17:26:32)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from distutils import sysconfig
In 3.10, distutils and d.sysc
On Sat, 4 Sep 2021 22:41:12 +0200, "Peter J. Holzer"
declaimed the following:
>Python 3 to be time well spent in 2021, especially not to someone who
>apparently just wants to report a bug to some unnamed project (whose
>maintainers may or may not care about Python2 compatibility).
>
Give
Igor Korot writes:
> Hi,
> Will this syntax work in python 2?
If you say
print(something)
it works in both. So, stick to this syntax.
--
https://mail.python.org/mailman/listinfo/python-list
On 2021-09-04 21:07:11 +0100, Rob Cliffe via Python-list wrote:
> Well, up to a point.
> In Python 2 the output from
> print 1, 2
> is '1 2'
> In Python 3 if you add brackets:
> print(1, 2)
> the output is the same.
> But if you transplant that syntax back into Python 2, the output from
>
Well, up to a point.
In Python 2 the output from
print 1, 2
is '1 2'
In Python 3 if you add brackets:
print(1, 2)
the output is the same.
But if you transplant that syntax back into Python 2, the output from
print(1, 2)
is '(1, 2)'. The brackets have turned two separate items into a s
On 2021-09-04 14:29:47 -0500, Igor Korot wrote:
> Will this syntax work in python 2?
Yes. It's just a redundant pair of parentheses.
hp
--
_ | Peter J. Holzer| Story must make more sense than reality.
|_|_) ||
| | | h...@hjp.at |-- Charles Stros
Hi,
Will this syntax work in python 2?
Thank you.
On Sat, Sep 4, 2021 at 1:52 PM dn via Python-list
wrote:
>
> On 05/09/2021 06.27, Igor Korot wrote:
> > Hi, ALL,
> >
> > [code]
> > igor@WaylandGnome ~/bakefile $ python
> > Python 3.9.6 (default, Aug 8 2021, 17:26:32)
> > [GCC 10.3.0] on linux
Thx guys.
I submitted a bug report for the project that uses it.
On Sat, Sep 4, 2021 at 1:42 PM Joel Goldstick wrote:
>
> On Sat, Sep 4, 2021 at 2:29 PM Igor Korot wrote:
> >
> > Hi, ALL,
> >
> > [code]
> > igor@WaylandGnome ~/bakefile $ python
> > Python 3.9.6 (default, Aug 8 2021, 17:26:32)
>
On 05/09/2021 06.27, Igor Korot wrote:
> Hi, ALL,
>
> [code]
> igor@WaylandGnome ~/bakefile $ python
> Python 3.9.6 (default, Aug 8 2021, 17:26:32)
> [GCC 10.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
from distutils import sysconfig
print sysc
On 9/4/21 12:27 PM, Igor Korot wrote:
Hi, ALL,
[code]
igor@WaylandGnome ~/bakefile $ python
Python 3.9.6 (default, Aug 8 2021, 17:26:32)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from distutils import sysconfig
print sysconfig.get_python_inc()
On Sat, Sep 4, 2021 at 2:29 PM Igor Korot wrote:
>
> Hi, ALL,
>
> [code]
> igor@WaylandGnome ~/bakefile $ python
> Python 3.9.6 (default, Aug 8 2021, 17:26:32)
> [GCC 10.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from distutils import sysconfig
>
On 5/27/21 1:08 PM, Dennis Lee Bieber wrote:
On Thu, 27 May 2021 09:22:09 +0300, ? ???
declaimed the following:
Good morning. I have o Windows 10 system and i can install pip. I try to
follow the instruction that i find on internet but the did not work. Also
itry to write the c
Hi,
On Fri, Apr 9, 2021 at 10:35 AM Paul Bryan wrote:
>
> Please describe your problem in detail.
>
> Paul
>
>
> On Fri, 2021-04-09 at 11:03 +0530, arishmallick...@gmail.com wrote:
> >I am encountering problem in uninstalling python. Please help me
> > in this.
I presume you tried to send a
Please describe your problem in detail.
Paul
On Fri, 2021-04-09 at 11:03 +0530, arishmallick...@gmail.com wrote:
> I am encountering problem in uninstalling python. Please help me
> in this.
>
>
>
> Sent from [1]Mail for Windows 10
>
>
>
> References
>
> Visible links
> 1. htt
On 3/4/2021 4:28 PM, Terry Reedy wrote:
Quentin privately sent me 12 lines (which should have been posted here
instead), which can be reduced to the following 4 that exhibit his bug.
if a == b:
print('correct')
if a != b:
print('incorrect')
The bug is a != b will never be t
On 3/4/2021 3:15 PM, Terry Reedy wrote:
On 3/4/2021 12:10 PM, Quentin Bock wrote:
I won't paste the code into
this because it's 164 lines so I will attach a file copy,
The alternative to posting too much is to reduce your code to the
minimum needed to exhibit the behavior you want to change.
On 3/4/2021 12:10 PM, Quentin Bock wrote:
I won't paste the code into
this because it's 164 lines so I will attach a file copy,
The alternative to posting too much is to reduce your code to the
minimum needed to exhibit the behavior you want to change. Doing so may
reveal to you the solutio
On 2/18/21 10:43 AM, Aakash Jana wrote:
I have done some webscraping before i think you need to get a slightly more
tactical way to get these titles scraped .
Try to see what classes identify the cards (in which movie title is given)
and then try to pull the heading out of those.
Try to get the d
I have done some webscraping before i think you need to get a slightly more
tactical way to get these titles scraped .
Try to see what classes identify the cards (in which movie title is given)
and then try to pull the heading out of those.
Try to get the divs in a list , something like this "" in
> On 2 Dec 2020, at 18:01, Dan Stromberg wrote:
>
> On Wed, Dec 2, 2020 at 9:45 AM Mats Wichmann wrote:
>
>>> On 12/2/20 10:57 AM, Priyankgasree K wrote:
>>> Hello,
>>> I am Priyankgasree, i am facing problem in installing
>> python3.9.0.
>>> after i finish download it always says yo
1 - 100 of 2996 matches
Mail list logo