Re: I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-09 Thread Terry Reedy
On 3/8/2018 7:07 PM, 노연수 wrote: If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the python is printed and i learned it's a crystal. '\r' is a control character than means 'return to the beginning of the line'. When you execute "print('hello\rpython')" in Python running

Re: I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-09 Thread Chris Warrick
On 9 March 2018 at 01:07, 노연수 wrote: > If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the > python is printed and i learned it's a crystal. However, if you type print (" > hello\ rpython ") in the python 3.7.0.b2 idle, it is output as hellopython. I

Re: I found strange thing while studying through idle

2018-03-09 Thread Chris Angelico
On Sat, Mar 10, 2018 at 5:10 AM, Paul Moore wrote: > On 9 March 2018 at 17:46, Rob Gaddi wrote: >> On 03/08/2018 07:57 PM, Steven D'Aprano wrote: >>> >>> [snip] >>> >>> But it is possible that due to differences between platforms, the >>>

Re: I found strange thing while studying through idle

2018-03-09 Thread Paul Moore
On 9 March 2018 at 17:46, Rob Gaddi wrote: > On 03/08/2018 07:57 PM, Steven D'Aprano wrote: >> >> [snip] >> >> But it is possible that due to differences between platforms, the >> OP's version of IDLE doesn't display a carriage return as \r but >> rather as an

Re: I found strange thing while studying through idle

2018-03-09 Thread Rob Gaddi
On 03/08/2018 07:57 PM, Steven D'Aprano wrote: [snip] But it is possible that due to differences between platforms, the OP's version of IDLE doesn't display a carriage return as \r but rather as an invisible zero-width space. Just to derail this conversation a bit, does anyone have a use

Re: I found strange thing while studying through idle

2018-03-08 Thread Ben Finney
MRAB writes: > I think the line was actually […] > (I also think that "crystal" is […] Let's not get into the warrens of responding to what the OP *didn't* write. we're in no hurry. I'd like to wait for clarification from the original poster, and not guess what they

Re: I found strange thing while studying through idle

2018-03-08 Thread MRAB
On 2018-03-09 03:57, Steven D'Aprano wrote: [snip] In IDLE 3.5 on Linux, I get this: print('hello\rpython') hello\rpython Curiously, that's not a backslash r, it's actually a carriage return: when I copy and paste it in this text, the editor treated it as a new line character: # direct

Re: I found strange thing while studying through idle

2018-03-08 Thread MRAB
On 2018-03-09 01:59, Ben Finney wrote: Welcome, and congratulations on beginning with Python. 노연수 writes: If you type print (" hello\ rpython ") into the python 3.7.0.b2 I am not using Python 3.7 (it isn't released yet); I recommend staying with the latest Python

Re: I found strange thing while studying through idle

2018-03-08 Thread Steven D'Aprano
I'm afraid the original post by 노연수 has not come through to me, so I will have to reply to Ben's reply. On Fri, 09 Mar 2018 12:59:52 +1100, Ben Finney wrote: > I am not using Python 3.7 (it isn't released yet); I recommend staying > with the latest Python release. Today,

Re: I found strange thing while studying through idle

2018-03-08 Thread Ben Finney
Welcome, and congratulations on beginning with Python. 노연수 writes: > If you type print (" hello\ rpython ") into the python 3.7.0.b2 I am not using Python 3.7 (it isn't released yet); I recommend staying with the latest Python release. Today, that is version 3.6. That

I am a student studying Python in Korea. I found strange thing while studying through idle

2018-03-08 Thread 노연수
If you type print (" hello\ rpython ") into the python 3.7.0.b2, only the python is printed and i learned it's a crystal. However, if you type print (" hello\ rpython ") in the python 3.7.0.b2 idle, it is output as hellopython. I wonder why it prints like this. I would appreciate your answer.

strange thing that disturbs

2014-10-14 Thread tntsugar
hello guys, for half an hour now i am searching for something simple... not IRC, not Fakebook, not Twitter... simply an email where i can ask a question to a problem i have in python 3.4.2 and the tkinter (it doesnt seem to be present and doesnt react to the python -m tkinter -module not

Re: strange thing that disturbs

2014-10-14 Thread Skip Montanaro
On Tue, Oct 14, 2014 at 1:13 PM, tntsu...@googlemail.com wrote: it doesnt seem to be present and doesnt react to the python -m tkinter -module not present I don't know how it's spelled in 3.4.x, but in 2.7 it's spelled Tkinter. Give that a try. (Sorry, no 3.4 install handy or I'd verify it

Re: strange thing that disturbs

2014-10-14 Thread Skip Montanaro
Adding python-list back into the CC list. I know nothing about Windows. Perhaps someone else here can help. (Sorry about the top post all you bottom post mavens. It seemed warranted in this case...) Skip On Tue, Oct 14, 2014 at 2:10 PM, tntsu...@googlemail.com wrote: hi, thank you so much

Re: strange thing that disturbs

2014-10-14 Thread Terry Reedy
i run win7 home premium. during the installation of python 3.4.2 i have seen the tcl/tk option activated! Then python -m tkinter in Command Prompt should bring up a tk windows with a bit a text and two buttons, one for exit. First try to find Python 3.4 on the Start menu and start

Re: strange thing:

2011-09-06 Thread W. eWatson
CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught in my spam on the net. -- http://mail.python.org/mailman/listinfo/python-list

Re: strange thing:

2011-09-06 Thread Chris Angelico
On Wed, Sep 7, 2011 at 12:43 PM, W. eWatson wolftra...@invalid.com wrote: CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught in my spam on the net. No, I didn't; as someone else pointed out, you'll get better results asking on a dedicated Fortran list. ChrisA --

Re: strange thing:

2011-09-06 Thread W. eWatson
On 9/6/2011 7:48 PM, Chris Angelico wrote: On Wed, Sep 7, 2011 at 12:43 PM, W. eWatsonwolftra...@invalid.com wrote: CA, Did you respond to my off-NG msg about FORTRAN? Perhaps it's caught in my spam on the net. No, I didn't; as someone else pointed out, you'll get better results asking on a

[issue5096] strange thing after call PyObject_CallMethod

2009-02-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Documented PyErr_PrintEx() in r69292. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5096 ___

[issue5096] strange thing after call PyObject_CallMethod

2009-01-29 Thread Kandalintsev Alexandre
: Interpreter Core messages: 80757 nosy: exe severity: normal status: open title: strange thing after call PyObject_CallMethod type: behavior versions: Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5096

[issue5096] strange thing after call PyObject_CallMethod

2009-01-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I think I have an explanation: When a python exception is raised, the current call stack is stored in the exception state (tstate-curexc_traceback). This includes all the living frame objects, with all their local variables. This

[issue5096] strange thing after call PyObject_CallMethod

2009-01-29 Thread Kandalintsev Alexandre
Kandalintsev Alexandre bug_hun...@messir.net added the comment: Thank you for your activity. This feature drank alot of my blood. Please document this or change behavior. PS Older python versions may be also affected so changing behavior may brake existing code :(

[issue5096] strange thing after call PyObject_CallMethod

2009-01-29 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - georg.brandl components: +Documentation -Interpreter Core nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5096

strange thing after call PyObject_CallMethod

2009-01-03 Thread Exe
Hello everybody! I'm in trouble. This code shows that ob_refcnt increased by python if on_recv method throws exception. This occurs only if base C-class subclassed in python code. == my_old_refcnt = Py_REFCNT(self); py_result = PyObject_CallMethod(self, on_recv, (y#), recvbuf, result);

Re: strange thing after call PyObject_CallMethod

2009-01-03 Thread Martin v. Löwis
Why this happenning and who makes Py_INCREF(self)? There are multiple possible explanations, but I think you have ruled out most of them: 1. on_recv might be returning self. So py_result would be the same as self, and hence be an additional reference. However, you said that on_recv raised

Re: strange thing after call PyObject_CallMethod

2009-01-03 Thread Bug Hunter
Thank you for so amazing debugging tutorial :). I owe you a beer. I found source of problem: then unhandled in python code exception occurs frame_dealloc() (Objects/frameobject.c:422) not called. Even if I call PyErr_Print(). But! If I call PyErr_Clear() then all okay! Docs says that both this

Re: Strange thing with types

2008-05-29 Thread Diez B. Roggisch
TYR wrote: I'm doing some data normalisation, which involves data from a Web site being extracted with BeautifulSoup, cleaned up with a regex, then having the current year as returned by time()'s tm_year attribute inserted, before the data is concatenated with string.join() and fed to

Re: Strange thing with types

2008-05-29 Thread alex23
On May 29, 11:09 pm, TYR [EMAIL PROTECTED] wrote: I'm doing some data normalisation, which involves data from a Web site being extracted with BeautifulSoup, cleaned up with a regex, then having the current year as returned by time()'s tm_year attribute inserted, before the data is concatenated

Strange thing with types

2008-05-29 Thread TYR
I'm doing some data normalisation, which involves data from a Web site being extracted with BeautifulSoup, cleaned up with a regex, then having the current year as returned by time()'s tm_year attribute inserted, before the data is concatenated with string.join() and fed to time.strptime().

Re: Strange thing with types

2008-05-29 Thread TYR
On May 29, 2:23 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: TYR wrote: I'm doing some data normalisation, which involves data from a Web site being extracted with BeautifulSoup, cleaned up with a regex, then having the current year as returned by time()'s tm_year attribute inserted,

Re: Strange thing with types

2008-05-29 Thread TYR
On May 29, 2:24 pm, alex23 [EMAIL PROTECTED] wrote: On May 29, 11:09 pm, TYR [EMAIL PROTECTED] wrote: I'm doing some data normalisation, which involves data from a Web site being extracted with BeautifulSoup, cleaned up with a regex, then having the current year as returned by time()'s