Re: Problem with python

2021-09-06 Thread Grant Edwards
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

Re: Problem with python

2021-09-04 Thread Grant Edwards
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

Re: Problem with python

2021-09-04 Thread Terry Reedy
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

Re: Problem with python

2021-09-04 Thread Dennis Lee Bieber
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

Re: Problem with python

2021-09-04 Thread Hope Rouselle
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

Re: Problem with python

2021-09-04 Thread Peter J. Holzer
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 >  

Re: Problem with python

2021-09-04 Thread Rob Cliffe via Python-list
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

Re: Problem with python

2021-09-04 Thread Peter J. Holzer
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

Re: Problem with python

2021-09-04 Thread Igor Korot
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

Re: Problem with python

2021-09-04 Thread Igor Korot
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) >

Re: Problem with python

2021-09-04 Thread dn via Python-list
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

Re: Problem with python

2021-09-04 Thread Mats Wichmann
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()

Re: Problem with python

2021-09-04 Thread Joel Goldstick
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 >

Re: PROBLEM WITH PYTHON IDLE

2020-05-14 Thread Mats Wichmann
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

Re: PROBLEM WITH PYTHON IDLE

2020-05-14 Thread Souvik Dutta
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

Re: problem with python 3.8.1

2020-01-20 Thread DL Neil via Python-list
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 -

Re: problem with Python 3.6 + PyX

2017-10-06 Thread skysign
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

Re: problem with Python 3.6 + PyX

2017-02-10 Thread 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 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

Re: problem with Python 3.6 + PyX

2017-02-10 Thread Lele Gaifax
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

Re: problem with python 3.5.0

2016-03-19 Thread Mark Lawrence
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

Re: problem with python 3.5.0

2016-03-18 Thread Oscar Benjamin
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

Re: Problem with Python 3.5.0

2015-10-11 Thread Matt Wheeler
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

Re: Problem with Python 3.5.0

2015-10-11 Thread Vincent Vande Vyvre
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

Re: Problem with Python 3.5.0

2015-10-11 Thread Joel Goldstick
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

Re: Problem with Python GUI checklist, Tkinter

2011-03-07 Thread Terry Reedy
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

Re: Problem with python 3.2 and circular imports

2011-03-06 Thread Frank Millman
"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

Re: Problem with python 3.2 and circular imports

2011-03-05 Thread Rafael Durán Castañeda
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

Re: Problem with python 3.2 and circular imports

2011-03-04 Thread Frank Millman
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

Re: Problem with python 3.2 and circular imports

2011-02-28 Thread Rafael Durán Castañeda
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

Re: Problem with python 3.2 and circular imports

2011-02-27 Thread Frank Millman
"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

Re: Problem with python 3.2 and circular imports

2011-02-27 Thread Steven D'Aprano
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

Re: Problem with python 3.2 and circular imports

2011-02-27 Thread Frank Millman
"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

Re: Problem with python 3.2 and circular imports

2011-02-27 Thread Ben Finney
"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

Re: Problem with Python shell through Cygwin Screen (Python/Vim/Screen combo)

2008-09-21 Thread Ant
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

Re: Problem with Python shell through Cygwin Screen (Python/Vim/Screen combo)

2008-09-19 Thread Jason Tishler
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

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread barun . saha04
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

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread Graham Dumpleton
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

Re: Problem with Python Server Pages (PSP)

2008-07-23 Thread barun . saha04
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

Re: Problem with Python Server Pages (PSP)

2008-07-22 Thread Sebastian "lunar" Wiesner
[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

Re: Problem with Python Server Pages (PSP)

2008-07-21 Thread barun . saha04
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

Re: Problem with Python Server Pages (PSP)

2008-07-21 Thread Graham Dumpleton
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

Re: Problem with python

2008-03-30 Thread Lie
[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

Re: Problem with python

2008-03-30 Thread Paul McGuire
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

Re: Problem with python

2008-03-29 Thread castironpi
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

Re: Problem with python

2008-03-29 Thread Scott David Daniels
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

Re: Problem with python

2008-03-29 Thread Lie
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

Re: problem with Python 2.5.2 and gcc 4.3

2008-03-13 Thread David P. Riedel
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

Re: problem with Python 2.5.2 and gcc 4.3

2008-03-13 Thread Andrew MacIntyre
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 >

Re: problem with Python class creating

2007-10-19 Thread dmitrey
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

Re: problem with Python class creating

2007-10-18 Thread Bruno Desthuilliers
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

Re: problem with Python class creating

2007-10-18 Thread timaranz
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 >