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/14/20 5:15 AM, aduojo samson wrote:
> Hello, my name is Samson Haruna and I am from Nigeria.I have a problem with
> my python 3.8, any time I click on it to write my python code I get this
> error message "IDLE subprocess didn't make connection". I have uninstalled
> and reinstalled several ti
What is your os? Where have you downloaded it from? What type of package
did you download?
Souvik flutter dev
On Thu, May 14, 2020, 5:36 PM aduojo samson wrote:
> Hello, my name is Samson Haruna and I am from Nigeria.I have a problem with
> my python 3.8, any time I click on it to write my pytho
On 20/01/20 7:35 PM, coolguy 12336 wrote:
hi I can not install the py launcher and I really need it for something I
used repair and tried it again but it still didn't work.Do you know how to
fix my issue and if you do please email me back as soon as possible thank
you.
Hi, are you a student -
Please install below. in my case, it is resolved.
sudo apt install texinfo
sudo apt install texlive-binaries
2017년 2월 11일 토요일 오전 8시 49분 36초 UTC+9, stalker5 님의 말:
> Yes, I have a Tex engine on my system.
> How can i fix the problem with the PATH ?
> Even if i execute the .py script directly by pyt
Yes, I have a Tex engine on my system.
How can i fix the problem with the PATH ?
Even if i execute the .py script directly by python (I mean :not inside
a LateX file) pyx need to reach the TeX system ?
Is there a config file to fix the PATH ? Where ?
Thanks a lot !! Ciao
--
Olivier
PyX requ
stalker5 writes:
> I'm have a problem with this little program
> ...
> raise child_exception_type(errno_num, err_msg)
> FileNotFoundError: [Errno 2] No such file or directory: 'tex'
PyX requires TeX to render textual glyphs into the image. Do you have it
installed? If so, is it "reachable" b
On 18/03/2016 16:56, nasrin maarefi via Python-list wrote:
HelloI installed the python 3.5.0(32bit) on 64bit win10 but I dont know how to
install numpy pakage for this? I did not find something good on internet.
could you please guide me?where can I find the suitable numpy for that? and
wher
On 18 Mar 2016 17:42, "Mark Lawrence" wrote:
>
> On 18/03/2016 16:56, nasrin maarefi via Python-list wrote:
>>
>> HelloI installed the python 3.5.0(32bit) on 64bit win10 but I dont know
how to install numpy pakage for this? I did not find something good on
internet. could you please guide me?wher
On 11 October 2015 at 18:12, eetix letix wrote:
> Hi,
>
> I'm sorry but the last version of Python (3.5.0) had a problem. I start and
> I meet this problem :
>
a=5
if a>0:
> . . . print("a is a positive.")
> . . . if a<0:
> ^
> SyntaxError: invalid syntax
>
> Normally
Le 11/10/2015 19:12, eetix letix a écrit :
Hi,
I'm sorry but the last version of Python (3.5.0) had a problem. I
start and I meet this problem :
>>>a=5
>>>if a>0:
. . . print("a is a positive.")
. . . if a<0:
^
SyntaxError: invalid syntax
>>>
Normally this should work but pr
On Sun, Oct 11, 2015 at 1:12 PM, eetix letix wrote:
> Hi,
>
> I'm sorry but the last version of Python (3.5.0) had a problem. I start
> and I meet this problem :
>
> >>>a=5
> >>>if a>0:
> . . . print("a is a positive.")
> . . . if a<0:
> ^
> SyntaxError: invalid syntax
> >>>
> No
On 3/7/2011 12:49 PM, Mathew Coyle wrote:
Everything seems to roll along fine, a few tweaks are still needed, but
an issue I cannot resolve has come up. It seems that the checklist items
are being selected and added twice to the list, once for a mouse button
click, and again for a mouse button r
"Rafael Durán Castañeda" wrote...
Thank you for your answer Frank, I think I've found the problem. I was
calling modules from inside subpackages, and I need to use them from
outside, so I have package in PYTHONPATH. is that correct? But now I have
another question: Can I execute an script insi
Thank you for your answer Frank, I think I've found the problem. I was
calling modules from inside subpackages, and I need to use them from
outside, so I have package in PYTHONPATH. is that correct? But now I have
another question: Can I execute an script inside subpackage1 importig
modules from su
On February 28 2011 Rafael Durán Castañeda wrote
I'm stil totally stuck with relative imports, i' ve tried the example tree
from PEP 328 without any result:
package/
__init__.py
subpackage1/
__init__.py
moduleX.py
moduleY.py
subpackage2/
__init__.py
I'm stil totally stuck with relative imports, i' ve tried the example tree
from PEP 328 without any result:
package/
__init__.py
subpackage1/
__init__.py
moduleX.py
moduleY.py
subpackage2/
__init__.py
moduleZ.py
moduleA.py
Assuming that the
"Steven D'Aprano" wrote in message
news:4d6a56aa$0$29972$c3e8da3$54964...@news.astraweb.com...
On Sun, 27 Feb 2011 12:08:12 +0200, Frank Millman wrote:
Assume the following structure -
main.py
/pkg
__init__.py
mod1.py
mod2.py
main.py
from pkg import mod1
mod1.py
import
On Sun, 27 Feb 2011 12:08:12 +0200, Frank Millman wrote:
> Assume the following structure -
>
> main.py
> /pkg
> __init__.py
> mod1.py
> mod2.py
>
> main.py
> from pkg import mod1
>
> mod1.py
> import mod2
>
> mod2.py
> import mod1
If you change the "import mod*" lines
"Ben Finney" wrote in message
news:87aahh6401@benfinney.id.au...
"Frank Millman" writes:
Assume the following structure -
main.py
/pkg
__init__.py
mod1.py
mod2.py
main.py
from pkg import mod1
mod1.py
import mod2
mod2.py
import mod1
What are you expecting the result
"Frank Millman" writes:
> Assume the following structure -
>
> main.py
> /pkg
>__init__.py
>mod1.py
>mod2.py
>
> main.py
>from pkg import mod1
>
> mod1.py
>import mod2
>
> mod2.py
> import mod1
What are you expecting the result to be?
If it's about sharing objects between t
On Sep 19, 7:08 pm, Jason Tishler <[EMAIL PROTECTED]> wrote:
...
> There are known issues when trying to run a Windows program that
> directly accesses the console under Cygwin. For example:
>
> http://mail.python.org/pipermail/python-list/2004-June/21.html
>
> AFAICT, you will have to use
Ant,
On Fri, Sep 19, 2008 at 03:10:10AM -0700, Ant wrote:
> [snip]
> This works great in Linux, and also in Windows using the Cygwin build
> of Python, but when you call:
>
> screen -S py -s python
>
> using the Windows build of Python, the shell just hangs. Does anyone
> know if this is a known i
On Jul 23, 6:18 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Jul 22, 1:54 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]>
> > wrote:
>
> > > On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote:
>
> > > > Hi,
>
> > > > I am facing a very basic problem
On Jul 22, 1:54 pm, [EMAIL PROTECTED] wrote:
> On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote:
>
> > > Hi,
>
> > > I am facing a very basic problem with PSP. I have installedmod_python
> > > (in fedora Core 1), added the lines
On Jul 22, 5:36 pm, "Sebastian \"lunar\" Wiesner"
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> > Hi,
>
> > I am facing a very basic problem with PSP. I have installed mod_python
> > (in fedora Core 1), added the lines required for loading Python
> > modules and handling P
[EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Hi,
>
> I am facing a very basic problem with PSP. I have installed mod_python
> (in fedora Core 1), added the lines required for loading Python
> modules and handling PSP pages. I have created a hello.psp page. But
> when I try to view this hello.psp page
On Jul 22, 5:18 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > Hi,
>
> > I am facing a very basic problem with PSP. I have installedmod_python
> > (in fedora Core 1), added the lines required for loading Python
> > modules and handling P
On Jul 21, 9:42 pm, [EMAIL PROTECTED] wrote:
> Hi,
>
> I am facing a very basic problem with PSP. I have installedmod_python
> (in fedora Core 1), added the lines required for loading Python
> modules and handling PSP pages. I have created a hello.psp page. But
> when I try to view this hello.psp p
[EMAIL PROTECTED] wrote to me:
(snip)
> OK thanks mate you're the man :)
> One more question though :P
> If I write a python script in a text editor (I use Programmers
> Notepad), how do I write indentations properly? e.g.:
> ---
> temperature = input
On Mar 30, 12:34 am, [EMAIL PROTECTED] wrote:
>
> The screen is real (r-e-a-l): all manners intended. Real. Just bid
> and auction.
>
Please leave the newbies alone. They have enough trouble just getting
their Python environments running, without trying to decipher your
pseudo-profound chatterb
On Mar 29, 5:33 pm, Scott David Daniels <[EMAIL PROTECTED]> wrote:
> Lie wrote:
> > On Mar 30, 2:57 am, [EMAIL PROTECTED] wrote:
> >> Hi there.
> >> I ... started writing simple programs in the python gui... when I write
> >> python code ...[and]... double click it all that happens is a black box
Lie wrote:
> On Mar 30, 2:57 am, [EMAIL PROTECTED] wrote:
>> Hi there.
>> I ... started writing simple programs in the python gui... when I write
>> python code ...[and]... double click it all that happens is a black box
>> flashes up on the screen, but nothing else!?
>
> open the program i
On Mar 30, 2:57 am, [EMAIL PROTECTED] wrote:
> Hi there.
> I downloaded python a couple of days ago from the official site and
> have started writing simple programs in the python gui (this being my
> first attempt at programming ever). The only thing is when I write
> python code in a text editor
Andrew MacIntyre wrote:
> David P. Riedel wrote:
>
>> I tried building Python 2.5.2 using gcc 4.3.0. The build completes
>> with no problems but when I run 'make test', I get a segfault part
>> way through the test run.
>>
>> here is the last part of the output from make test
>>
>> test_softs
David P. Riedel wrote:
> I tried building Python 2.5.2 using gcc 4.3.0. The build completes with no
> problems but when I run 'make test', I get a
> segfault part way through the test run.
>
> here is the last part of the output from make test
>
> test_softspace
> test_sort
> test_sqlite
>
Thanks all for these detailed explanations.
On Oct 18, 10:48 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> dmitrey a écrit :
> Not unless these classes define their own initializers. But that's
> another problem
>
> > and there are lots of
> > those ones)
>
> > class MyClass:
> > def __i
dmitrey a écrit :
> Hi all,
> I have the code like this one:
>
> from myMisc import ooIter
> class MyClass:
Unless you have a need for compatibility with aged Python versions,
you'd be better using new-style classes:
class MyClass(object):
> def __init__(self): pass
This is the default be
On Oct 19, 8:22 am, dmitrey <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have the code like this one:
>
> from myMisc import ooIter
> class MyClass:
> def __init__(self): pass
> iterfcn = lambda *args: ooIter(self) # i.e pass the class instance
> to other func named ooIter
> field2 = val2
>
51 matches
Mail list logo