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 >

Problem with python

2021-09-04 Thread Igor Korot
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() File "", line 1 print sysc

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

PROBLEM WITH PYTHON IDLE

2020-05-14 Thread aduojo samson
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 times, I have even deleted and downloaded a new one

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-13 Thread Mats Wichmann
On 5/11/20 9:25 PM, Michael Torrie wrote: > On 5/11/20 8:33 PM, Buddy Peacock wrote: >> I am trying to install python on my surface with windows 10, version 1903, >> build 18362.778. The installer seems to think everything worked. But there >> is no Python folder anywhere on the system. I looked

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-12 Thread Terry Reedy
On 5/11/2020 11:34 PM, Michael Torrie wrote: On 5/11/20 9:25 PM, Michael Torrie wrote: On 5/11/20 8:33 PM, Buddy Peacock wrote: I am trying to install python on my surface with windows 10, version 1903, build 18362.778. The installer seems to think everything worked. But there is no Python fol

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Michael Torrie
On 5/11/20 9:25 PM, Michael Torrie wrote: > On 5/11/20 8:33 PM, Buddy Peacock wrote: >> I am trying to install python on my surface with windows 10, version 1903, >> build 18362.778. The installer seems to think everything worked. But there >> is no Python folder anywhere on the system. I looked

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Michael Torrie
On 5/11/20 8:33 PM, Buddy Peacock wrote: > I am trying to install python on my surface with windows 10, version 1903, > build 18362.778. The installer seems to think everything worked. But there > is no Python folder anywhere on the system. I looked in the root directory > as well as "Program Fil

Help Problem with python : python-3.8.3rc1-amd64

2020-05-11 Thread Buddy Peacock
I am trying to install python on my surface with windows 10, version 1903, build 18362.778. The installer seems to think everything worked. But there is no Python folder anywhere on the system. I looked in the root directory as well as "Program Files" and "Program Files (x86)" and not in any user

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 -

problem with python 3.8.1

2020-01-20 Thread coolguy 12336
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. -- https://mail.python.org/mailman/listinfo/python-list

Re: Installation problem with python 3.7 in windows 7 ultimate p.c(32 bit) showing unspecified error 0x80072ee7...

2019-05-22 Thread eryk sun
On 5/22/19, Sirso Bhatto wrote: > >I am Shirsendu. I encountered a problem while installing python 3.7 > in my windows 7 ultimate p.c(32 bit) . It is showing an unspecified error > of 0x80072ee7 when i am trying to initialize it in my pc. Please help me. A status code with only the high b

Installation problem with python 3.7 in windows 7 ultimate p.c(32 bit) showing unspecified error 0x80072ee7...

2019-05-22 Thread Sirso Bhatto
Hi.. I am Shirsendu. I encountered a problem while installing python 3.7 in my windows 7 ultimate p.c(32 bit) . It is showing an unspecified error of 0x80072ee7 when i am trying to initialize it in my pc. Please help me. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help? How do i solve this problem with Python List Concept

2019-05-14 Thread Peter J. Holzer
On 2019-05-11 22:02:39 +0100, Ben Bacarisse wrote: > Donald Tripdarlinq writes: > > In the traditional Yoruba tribal Set-Up in Nigeria,West Africa the > > tradition of inheritance is very important. Now, The relative position > > of a child in the family counts when the issue of inheritance is > >

Re: Help? How do i solve this problem with Python List Concept

2019-05-11 Thread Gregory Ewing
Chris Angelico wrote: Given that we're dealing with a Nigerian inheritance, your Python program will probably need to start with "import smtplib", and the list in question will be the addresses of the people to send your 419 to Obviously it's a Nigerian homework scam. "Dearest Sir,I am the

Re: Help? How do i solve this problem with Python List Concept

2019-05-11 Thread Chris Angelico
On Sun, May 12, 2019 at 10:33 AM Donald Tripdarlinq wrote: > > In the traditional Yoruba tribal Set-Up in Nigeria,West Africa the tradition > of inheritance is very important. Now, The relative position of a child in > the family counts when the issue of inheritance is considered. > > Question:

Re: Help? How do i solve this problem with Python List Concept

2019-05-11 Thread Ben Bacarisse
Donald Tripdarlinq writes: > In the traditional Yoruba tribal Set-Up in Nigeria,West Africa the > tradition of inheritance is very important. Now, The relative position > of a child in the family counts when the issue of inheritance is > considered. > > Question: Now a farmer with 10 children die

Help? How do i solve this problem with Python List Concept

2019-05-11 Thread Donald Tripdarlinq
In the traditional Yoruba tribal Set-Up in Nigeria,West Africa the tradition of inheritance is very important. Now, The relative position of a child in the family counts when the issue of inheritance is considered. Question: Now a farmer with 10 children died without leaving a will and the Fa

Re: Help? How do i solve this problem with Python List Concept

2019-05-11 Thread Richard Damon
On 5/11/19 5:02 PM, Ben Bacarisse wrote: > Donald Tripdarlinq writes: > >> In the traditional Yoruba tribal Set-Up in Nigeria,West Africa the >> tradition of inheritance is very important. Now, The relative position >> of a child in the family counts when the issue of inheritance is >> considered

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

problem with Python 3.6 + PyX

2017-02-10 Thread stalker5
Hello everybody ! I'm have a problem with this little program #---début--- from pyx import * g = graph.graphxy(width=8, x=graph.axis.linear(min=-15, max=15)) g.plot(graph.data.function("y(x)=sin(x)/x")) g.writeEPSfile("function") g.writePDFfile("function") g.writeSVGfile("function") #--- fin---

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

problem with python 3.5.0

2016-03-19 Thread nasrin maarefi via Python-list
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 where is the path and pip and? best regards.  -- https://mai

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: Hi Im having a problem with python it keeps telling me I need a python interpreter installed Im using windows 10. Can you help?

2016-03-14 Thread Sibylle Koczian
Am 13.03.2016 um 20:19 schrieb mrihustle12: Sent from my Sprint Samsung Galaxy S® 6. Not with this information, we'd need much more. The OS is necessary information, but not sufficient. Have you got Python installed? If yes, which version? Where did you get it and how did you install it?

Hi Im having a problem with python it keeps telling me I need a python interpreter installed Im using windows 10. Can you help?

2016-03-14 Thread mrihustle12
Sent from my Sprint Samsung Galaxy S® 6. -- https://mail.python.org/mailman/listinfo/python-list

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

Problem with Python 3.5.0

2015-10-11 Thread eetix letix
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 problem

Re: stressing problem with Python < 3.3.3 / 2.7.6 and Mac OS 10.9 Mavericks

2014-10-14 Thread Wolfgang Maier
On 14.10.2014 22:30, Ned Deily wrote: In article , Wolfgang Maier wrote: I'm not a regular MacPython user, but today I had to build Mac wheels for different versions of Python. To test the wheel files I set up a fresh Mac OS 10.9 Mavericks and and installed Python 3.2, 3.3, 3.4 from the pytho

Re: stressing problem with Python < 3.3.3 / 2.7.6 and Mac OS 10.9 Mavericks

2014-10-14 Thread Ned Deily
In article , Wolfgang Maier wrote: > I'm not a regular MacPython user, but today I had to build Mac wheels > for different versions of Python. To test the wheel files I set up a > fresh Mac OS 10.9 Mavericks and and installed Python 3.2, 3.3, 3.4 from > the python.org download page on it. Then

stressing problem with Python < 3.3.3 / 2.7.6 and Mac OS 10.9 Mavericks

2014-10-14 Thread Wolfgang Maier
Hi, I'm not a regular MacPython user, but today I had to build Mac wheels for different versions of Python. To test the wheel files I set up a fresh Mac OS 10.9 Mavericks and and installed Python 3.2, 3.3, 3.4 from the python.org download page on it. Then I struggled for the rest of the after

Re: Flask import problem with Python 3 and __main__.py

2014-08-26 Thread Jon Ribbens
On 2014-08-26, Terry Reedy wrote: > On 8/26/2014 12:03 PM, Jon Ribbens wrote: >> Flask suggests the following file layout: >> >> runflaskapp.py >> flaskapp/ >> __init__.py >> >> runflaskapp.py contains: >> >> from flaskapp import app >> app.run(debug=True) >> >> flaska

Re: Flask import problem with Python 3 and __main__.py

2014-08-26 Thread Terry Reedy
On 8/26/2014 12:03 PM, Jon Ribbens wrote: Flask suggests the following file layout: runflaskapp.py flaskapp/ __init__.py runflaskapp.py contains: from flaskapp import app app.run(debug=True) flaskapp/__init__.py contains: from flask import Flask app = F

Flask import problem with Python 3 and __main__.py

2014-08-26 Thread Jon Ribbens
Flask suggests the following file layout: runflaskapp.py flaskapp/ __init__.py runflaskapp.py contains: from flaskapp import app app.run(debug=True) flaskapp/__init__.py contains: from flask import Flask app = Flask(__name__) Running this with 'python3 runflask

Re: Newbie problem with Python pandas

2013-01-06 Thread Roy Smith
In article <_dudntfyxdvclhtnnz2dnuvz_ocdn...@giganews.com>, RueTheDay wrote: > On Sun, 06 Jan 2013 11:45:34 -0500, Roy Smith wrote: > > > In article <_dudnttyxduonxtnnz2dnuvz_ocdn...@giganews.com>, > > RueTheDay wrote: > > > >> On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote: > >> > >

Re: Newbie problem with Python pandas

2013-01-06 Thread RueTheDay
On Sun, 06 Jan 2013 11:45:34 -0500, Roy Smith wrote: > In article <_dudnttyxduonxtnnz2dnuvz_ocdn...@giganews.com>, > RueTheDay wrote: > >> On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote: >> >> > On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote: >> >> I am getting the followi

Re: Newbie problem with Python pandas

2013-01-06 Thread Roy Smith
In article <_dudnttyxduonxtnnz2dnuvz_ocdn...@giganews.com>, RueTheDay wrote: > On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote: > > > On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote: > >> I am getting the following error when running on Python 2.7 on Ubuntu > >> 12.04: > >> >

Re: Newbie problem with Python pandas

2013-01-06 Thread RueTheDay
On Sun, 06 Jan 2013 08:05:59 -0800, Miki Tebeka wrote: > On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote: >> I am getting the following error when running on Python 2.7 on Ubuntu >> 12.04: >> >> >> >> >> AttributeError: 'Series' object has no attribute 'str' > I would *guess*

Re: Newbie problem with Python pandas

2013-01-06 Thread Miki Tebeka
On Sunday, January 6, 2013 5:57:17 AM UTC-8, RueTheDay wrote: > I am getting the following error when running on Python 2.7 on Ubuntu > 12.04: > >> > > AttributeError: 'Series' object has no attribute 'str' I would *guess* that you have an older version of pandas on your Linux machine. Try "p

Newbie problem with Python pandas

2013-01-06 Thread RueTheDay
I'm working my way through the examples in the O'Reilly book Python For Data Analysis and have encountered a snag. The following code is supposed to analyze some web server log data and produces aggregate counts by client operating system. ### import json # used to process json

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

Problem with Python GUI checklist, Tkinter

2011-03-07 Thread Mathew Coyle
Hi all, I am trying to create a checklist which allows users to select a specific feature of a dataset in a database, and export that feature out of the database to their PC. This is my first GUI attempt, and I don't imagine my issue is too complicated, mostly just my inexperience. Everything

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

Problem with python 3.2 and circular imports

2011-02-27 Thread Frank Millman
Hi all I thought I was getting the hang of circular imports, but after upgrading to python 3.2 I am stumped again. I know some people think that circular imports are always bad, but others suggest that, provided you understand the potential problems, they can be acceptable. Assume the follow

Re: How to debug a problem with python crashing under windows

2011-02-04 Thread Terry Reedy
On 2/4/2011 11:41 AM, Miki Tebeka wrote: With crashing I mean, that windows pops up a screen saying, that python.exe failed. I do not have any usable trace on stdout / stderr. What are the best means to analyze such errors? You can use sys.excepthook to catch uncaught exceptions. See http://py

Re: How to debug a problem with python crashing under windows

2011-02-04 Thread Miki Tebeka
> With crashing I mean, that windows pops up a screen saying, that > python.exe failed. > I do not have any usable trace on stdout / stderr. > > What are the best means to analyze such errors? You can use sys.excepthook to catch uncaught exceptions. See http://pythonwise.blogspot.com/2008/12/cras

How to debug a problem with python crashing under windows

2011-02-04 Thread gelonida
Hi, I have a python application, which occasionally crashes. With crashing I mean, that windows pops up a screen saying, that python.exe failed. I do not have any usable trace on stdout / stderr. What are the best means to analyze such errors? Is there any way to get something like a core dump

possible circular import problem with python-3, but not python-2

2010-09-27 Thread Darren Dale
I am attempting to contribute to the h5py project by porting the code for python-3. The code is available in a branch at github: http://github.com/darrendale/h5py/tree/py3k . That code uses cython to wrap the hdf5 library. So far, only a few minor changes have been needed (relative imports, change

Re: [Python-Dev] problem with python 3.1

2010-09-15 Thread James Mills
(Posting to python general discussion). On Thu, Sep 16, 2010 at 10:17 AM, João Vitor wrote: > I made a program that, according to my teacher, is correct but is not > running properly. > The program is really simple: > import math > x = input ("Coloque o valor do primeiro cateto:") > y = input ("C

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-08 Thread Philip Semanchuk
On Jul 7, 2010, at 11:26 PM, Terry Reedy wrote: On 7/7/2010 5:29 AM, geremy condra wrote: On Tue, Jul 6, 2010 at 1:37 AM, Terry Reedy wrote: On 7/5/2010 9:00 PM, Philip Semanchuk wrote: On Jul 5, 2010, at 6:41 PM, Chris Rebert wrote: On Mon, Jul 5, 2010 at 3:38 PM, Philip Semanchu I port

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-08 Thread Giampaolo Rodolà
2010/7/8 Michele Simionato : > On Jul 7, 10:55 pm, Carl Banks wrote: >> On Jul 7, 1:31 am, Paul McGuire wrote: >> > I just >> > couldn't get through on the python-dev list that I couldn't just >> > upgrade my code to 2.6 and then use 2to3 to keep in step across the >> > 2-3 chasm, as this would l

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-08 Thread Steven D'Aprano
On Wed, 07 Jul 2010 14:10:57 -0700, Brendan Abel wrote: > The entire fact that 3.x was *designed* to be incompatible should tell > you that supporting 2.x and 3.x with a single code base is a bad idea, > except for the very smallest of projects. I don't see that follows at all. If the incompatibi

Re: The real problem with Python 3 - no business case for conversion

2010-07-08 Thread Ben Finney
"Martin v. Loewis" writes: > > The point, one more time with feeling, is that the incompatibilities > > between 2.x and 3.x will *increase* over time. > > I think this is unfounded, and actually false. Since many other people have responded with similar sentiments, I can only think I must have b

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Martin v. Loewis
> I just > couldn't get through on the python-dev list that I couldn't just > upgrade my code to 2.6 and then use 2to3 to keep in step across the > 2-3 chasm, as this would leave behind my faithful pre-2.6 users. Not sure whom you had been talking to. But I would have tried to explain that you don

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Martin v. Loewis
> The point, one more time with feeling, is that the incompatibilities > between 2.x and 3.x will *increase* over time. I think this is unfounded, and actually false. Instead, the incompatibilities will *decrease* over the next few years. Suppose you support 2.x and 3.x from a single code base. T

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Martin v. Loewis
> Python 3.x will continue to change. The incompatibilities between 3.x > and 2.x will only become more numerous. If your goal is to support > 2.x, and 3.x, you'd be best supporting them separately. I don't think that's a particularly good approach. Having a single code base for both likely redu

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Michele Simionato
On Jul 7, 10:55 pm, Carl Banks wrote: > On Jul 7, 1:31 am, Paul McGuire wrote: > > I just > > couldn't get through on the python-dev list that I couldn't just > > upgrade my code to 2.6 and then use 2to3 to keep in step across the > > 2-3 chasm, as this would leave behind my faithful pre-2.6 user

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Martin v. Loewis
Am 07.07.2010 23:10, schrieb Brendan Abel: One thing that would be very useful is how to maintain something that works on 2.x and 3.x, but not limiting yourself to 2.6. Giving up versions below 2.6 is out of the question for most projects with a significant userbase IMHO. As suc

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Terry Reedy
On 7/7/2010 10:49 PM, Ben Finney wrote: Yes, that's what I meant. Python 3 is deliberately under no obligation to support code that works in Python 2. If something needs fixing, and that fix would involve breaking Python 2 code, then that's not a consideration any more. Code that works in 3.1

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Zooko O'Whielacronx
Dear Paul McGuire: Thank you very much for these notes! See also a few other notes: Michael Foord: http://www.voidspace.org.uk/python/weblog/arch_d7_2010_03_20.shtml#e1167 Ned Batchelder: http://nedbatchelder.com/blog/200910/running_the_same_code_on_python_2x_and_3x.html I was wondering if it

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Terry Reedy
On 7/7/2010 9:14 PM, Ben Finney wrote: The point, one more time with feeling, is that the incompatibilities between 2.x and 3.x will *increase* over time. For the purpose of maintaining least-common-denominator multi-version code, it is only deletions and semantic changes that matter. Feature

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread geremy condra
On Wed, Jul 7, 2010 at 11:32 PM, Ben Finney wrote: > geremy condra writes: > >> On Wed, Jul 7, 2010 at 9:14 PM, Ben Finney >> wrote: >> > [backward-]incompatibilities between 2.x and 3.x will *increase* >> > over time. >> >> ...and? I don't get to use features from 2.7, why would I expect to >>

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Paul Rubin
Ben Finney writes: >> On the other hand, the door appears closed for Python 3 adding more >> stuff that breaks Python 2 code. > > What gives you that idea? Can you reference a specific statement from > the PYthon developers that says that? It's just logic. As I understand it, future versions of

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Terry Reedy
On 7/7/2010 4:31 AM, Paul McGuire wrote: [snip interesting report on how Paul suppost pyparsing for 2.3 to 3.1] Thank you for this. Do you think such cross-version support would have been easier or harder if the major changes and deletions in 3.0 has been spread over several versions, such as

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Ben Finney
geremy condra writes: > On Wed, Jul 7, 2010 at 9:14 PM, Ben Finney wrote: > > [backward-]incompatibilities between 2.x and 3.x will *increase* > > over time. > > ...and? I don't get to use features from 2.7, why would I expect to > use features from 3.3? Conversely, why would you support Python

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Terry Reedy
On 7/7/2010 5:29 AM, geremy condra wrote: On Tue, Jul 6, 2010 at 1:37 AM, Terry Reedy wrote: On 7/5/2010 9:00 PM, Philip Semanchuk wrote: On Jul 5, 2010, at 6:41 PM, Chris Rebert wrote: On Mon, Jul 5, 2010 at 3:38 PM, Philip Semanchu I ported two pure C extensions from 2 to 3 and was even

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread David Cournapeau
On Wed, Jul 7, 2010 at 10:55 PM, Carl Banks wrote: > On Jul 7, 1:31 am, Paul McGuire wrote: >> On Jul 6, 3:30 am, David Cournapeau wrote:> On Tue, Jul >> 6, 2010 at 4:30 AM, D'Arcy J.M. Cain wrote: >> >> > One thing that would be very useful is how to maintain something that >> > works on 2.x

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Ben Finney
Paul Rubin writes: > Ben Finney writes: > > The point, one more time with feeling, is that the incompatibilities > > between 2.x and 3.x will *increase* over time. > > The issue is less the "incompatibilities" than the -backwards- > incompatibilities. Yes, that's what I meant. Python 3 is delib

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread geremy condra
On Wed, Jul 7, 2010 at 9:14 PM, Ben Finney wrote: > geremy condra writes: > >> On Wed, Jul 7, 2010 at 8:26 PM, Brendan Abel <007bren...@gmail.com> wrote: >> > Python 3.x will continue to change.  The incompatibilities between >> > 3.x and 2.x will only become more numerous.  If your goal is to >>

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Paul Rubin
Ben Finney writes: > The point, one more time with feeling, is that the incompatibilities > between 2.x and 3.x will *increase* over time. The issue is less the "incompatibilities" than the -backwards- incompatibilities. Yes, Python 3 may introduce forward incompatibilities by adding features ab

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Carl Banks
On Jul 7, 2:10 pm, Brendan Abel <007bren...@gmail.com> wrote: > > > > One thing that would be very useful is how to maintain something that > > > > works on 2.x and 3.x, but not limiting yourself to 2.6. Giving up > > > > versions below 2.6 is out of the question for most projects with a > > > > si

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Fuzzyman
On Jul 5, 1:34 am, sturlamolden wrote: > On 5 Jul, 01:58, John Nagle wrote: > > >      Exactly. > > >      The "incompatible with all extension modules I need" part > > is the problem right now.  A good first step would be to > > identify the top 5 or 10 modules that are blocking a move to > > Py

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread MRAB
geremy condra wrote: On Wed, Jul 7, 2010 at 8:26 PM, Brendan Abel <007bren...@gmail.com> wrote: On Jul 7, 3:00 pm, MRAB wrote: Brendan Abel wrote: One thing that would be very useful is how to maintain something that works on 2.x and 3.x, but not limiting yourself to 2.6. Giving up versions b

Re: The real problem with Python 3 - no business case for conversion

2010-07-07 Thread Ben Finney
geremy condra writes: > On Wed, Jul 7, 2010 at 8:26 PM, Brendan Abel <007bren...@gmail.com> wrote: > > Python 3.x will continue to change.  The incompatibilities between > > 3.x and 2.x will only become more numerous.  If your goal is to > > support 2.x, and 3.x, you'd be best supporting them sep

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread geremy condra
On Wed, Jul 7, 2010 at 8:26 PM, Brendan Abel <007bren...@gmail.com> wrote: > On Jul 7, 3:00 pm, MRAB wrote: >> Brendan Abel wrote: >> One thing that would be very useful is how to maintain something that >> works on 2.x and 3.x, but not limiting yourself to 2.6. Giving up >> version

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread Brendan Abel
On Jul 7, 3:00 pm, MRAB wrote: > Brendan Abel wrote: > One thing that would be very useful is how to maintain something that > works on 2.x and 3.x, but not limiting yourself to 2.6. Giving up > versions below 2.6 is out of the question for most projects with a > significant us

  1   2   3   >