Re: What is the meaning of Building Wheel for ?

2020-02-29 Thread Terry Reedy
On 2/29/2020 11:23 AM, Souvik Dutta wrote: What is the meaning of the subject I mean what does python internally do when it says this? Python does not normally 'build wheels'. So you must be running some particular program. Check the docs for that program. -- Terry Jan Reedy

What is the meaning of Building Wheel for ?

2020-02-29 Thread Souvik Dutta
What is the meaning of the subject I mean what does python internally do when it says this? -- https://mail.python.org/mailman/listinfo/python-list

Re: What is the meaning of @@?

2017-12-24 Thread Richard Damon
On 12/24/17 8:33 PM, Peng Yu wrote: See for example this file. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py On Sat, Dec 23, 2017 at 12:03 AM, Steve D'Aprano wrote: On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: Hi, I only can find the doc for @. What

Re: What is the meaning of @@?

2017-12-24 Thread Ian Kelly
On Sun, Dec 24, 2017 at 7:33 PM, Peng Yu wrote: > See for example this file. > > https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py > > On Sat, Dec 23, 2017 at 12:03 AM, Steve D'Aprano > wrote: >> On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: >> >>> Hi, I only c

Re: What is the meaning of @@?

2017-12-24 Thread Peng Yu
See for example this file. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py On Sat, Dec 23, 2017 at 12:03 AM, Steve D'Aprano wrote: > On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: > >> Hi, I only can find the doc for @. What does @@ mean in python? > > I don'

Re: What is the meaning of @@?

2017-12-22 Thread Ian Kelly
@@ is a syntax error. Where did you encounter this? On Fri, Dec 22, 2017 at 10:38 PM, Peng Yu wrote: > Hi, I only can find the doc for @. What does @@ mean in python? > > -- > Regards, > Peng > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/

Re: What is the meaning of @@?

2017-12-22 Thread Steve D'Aprano
On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: > Hi, I only can find the doc for @. What does @@ mean in python? I don't think that @@ means anything yet. There was a proposal to use @@ for matrix exponentiation in Numpy, as @ is used for matrix multiplication, but that was left on hold to see whe

What is the meaning of @@?

2017-12-22 Thread Peng Yu
Hi, I only can find the doc for @. What does @@ mean in python? -- Regards, Peng -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] Changing the meaning of bool.__invert__

2016-04-18 Thread Ian Kelly
On Sun, Apr 17, 2016 at 12:24 PM, Pavol Lisy wrote: > 2016-04-09 17:43 GMT+02:00, Steven D'Aprano : >> flag ^ flag is useful since we don't have a boolean-xor operator and >> bitwise-xor does the right thing for bools. And I suppose some people >> might prefer & and | over boolean-and and boolean-

Re: What is the meaning of Py_INCREF a static PyTypeObject?

2015-11-13 Thread Oscar Benjamin
On 13 November 2015 at 03:08, Xiang Zhang <18518281...@126.com> wrote: > I think the meaning of Py_INCREF a static type object is to prevent it from > being deallocated when it is Py_DECREFed somehow later. Just as you said, it > may be somehow deallocated when using. > >

Re: What is the meaning of Py_INCREF a static PyTypeObject?

2015-11-13 Thread Xiang Zhang
Thanks for your reply jason. Your reply does give me hints and then I read more code and find maybe you are wrong in some points. I think the meaning of Py_INCREF a static type object is to prevent it from being deallocated when it is Py_DECREFed somehow later. Just as you said, it may be

Re: What is the meaning of Py_INCREF a static PyTypeObject?

2015-11-12 Thread Jason Swails
On Thu, Nov 12, 2015 at 3:05 AM, Xiang Zhang <18518281...@126.com> wrote: > Recently I am learning Python C API. > > When I read the tutorial < > https://docs.python.org/3/extending/newtypes.html#the-basics>, defining > new types, I feel confused. After PyType_Ready(&noddy_NoddyType) comes > Py_IN

What is the meaning of Py_INCREF a static PyTypeObject?

2015-11-12 Thread Xiang Zhang
Recently I am learning Python C API. When I read the tutorial , defining new types, I feel confused. After PyType_Ready(&noddy_NoddyType) comes Py_INCREF(&noddy_NoddyType). Actually noddy_NoddyType is a static struct so I don't und

Re: The meaning of "doubt", was Re: Python Basic Doubt

2013-08-16 Thread David Hutto
You could say that all translated languages lose something in translation. It's all symbolism. I say sunshine, and you might say Great Ball of' Fire in the s ky. Isay x = 10 in python print x and in c++ something like unsigned int x cin << x; cout >> x; or something like that. It's someth

Re: The meaning of "doubt", was Re: Python Basic Doubt

2013-08-10 Thread Cousin Stanley
Peter Otten wrote: > > doubt > Oh bother, said Pooh, what's in a word ? http://en.wikipedia.org/wiki/Curry https://pypi.python.org/pypi/curry/ http://en.wikipedia.org/wiki/Currying -- Stanley C. Kitching Human Being Phoenix, Arizona -- http://mail.python.org/mailm

Re: The meaning of "doubt", was Re: Python Basic Doubt

2013-08-10 Thread Terry Reedy
On 8/10/2013 2:36 PM, Peter Otten wrote: Terry Reedy wrote: On 8/10/2013 11:33 AM, Krishnan Shankar wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below concept.

Re: The meaning of "doubt", was Re: Python Basic Doubt

2013-08-10 Thread Alister
On Sat, 10 Aug 2013 20:36:52 +0200, Peter Otten wrote: > Terry Reedy wrote: > >> On 8/10/2013 11:33 AM, Krishnan Shankar wrote: >>> Hi Fellow Python Friends, >>> >>> I am new to Python and recently subscribed to the mailing list.I have >>> a doubt regarding the basics of Python. Please help me in

Re: The meaning of "doubt", was Re: Python Basic Doubt

2013-08-10 Thread Roy Smith
In article , Peter Otten <__pete...@web.de> wrote: > Quoting http://en.wikipedia.org/wiki/Indian_English > > """ > doubt = question or query; e.g. one would say, 'I have a doubt' when one > wishes to ask a question. > """ > > I'd say if Brits can cope (hard as it may be) with the American vari

The meaning of "doubt", was Re: Python Basic Doubt

2013-08-10 Thread Peter Otten
Terry Reedy wrote: > On 8/10/2013 11:33 AM, Krishnan Shankar wrote: >> Hi Fellow Python Friends, >> >> I am new to Python and recently subscribed to the mailing list.I have a >> doubt regarding the basics of Python. Please help me in understanding >> the below concept. >> >> So doubt is on variabl

Re: the meaning of r?.......ï¾

2012-08-28 Thread Robert Miles
On 7/23/2012 1:10 PM, Dennis Lee Bieber wrote: On Mon, 23 Jul 2012 16:42:51 +0200, Henrik Faber declaimed the following in gmane.comp.python.general: If that was written by my coworkers, I'd strangle them. My first real assignment, 31 years ago, was porting an application to CDC MP-

Re: the meaning of rユ.......ï¾

2012-07-26 Thread Ian Kelly
On Tue, Jul 24, 2012 at 9:07 PM, Ben Finney wrote: > +1 on celebrating τ day! https://www.youtube.com/watch?v=jG7vhMMXagQ> Also: http://tauday.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: the meaning of r.......ïŸ

2012-07-26 Thread Serhiy Storchaka
On 23.07.12 18:49, Steven D'Aprano wrote: ≤ for <= ≥ for >= I insist on the use of ⩽ and ⩾ too. -- http://mail.python.org/mailman/listinfo/python-list

Re: the meaning of rユ.......ï¾

2012-07-25 Thread Mark Lawrence
On 25/07/2012 07:43, Ben Finney wrote: Mark Lawrence writes: Any civil engineers reading this who would find 22/7 perfectly adequate for their task? Civil engineering? Pffft, that deals with only a few orders of magnitude range at most. “π is roughly 3” is usually good enough in that arena :

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Ben Finney
Mark Lawrence writes: > Any civil engineers reading this who would find 22/7 perfectly > adequate for their task? Civil engineering? Pffft, that deals with only a few orders of magnitude range at most. “π is roughly 3” is usually good enough in that arena :-) -- \ “You don't need a book o

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Mark Lawrence
On 25/07/2012 07:07, Steven D'Aprano wrote: On Wed, 25 Jul 2012 13:07:03 +1000, Ben Finney wrote: Maarten writes: You just missed it: 22/7 Which is appropriate, since 22/7 misses π by a wide margin. (355/113 is my favourite approximation to π, and is far more accurate.) Approximation? Pf

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Steven D'Aprano
On Wed, 25 Jul 2012 13:07:03 +1000, Ben Finney wrote: > Maarten writes: > >> You just missed it: >> 22/7 > > Which is appropriate, since 22/7 misses π by a wide margin. (355/113 is > my favourite approximation to π, and is far more accurate.) Approximation? Pffft. I use the exact value: π = 1

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Chris Angelico
On Wed, Jul 25, 2012 at 1:07 PM, Ben Finney wrote: > Which is appropriate, since 22/7 misses π by a wide margin. (355/113 is > my favourite approximation to π, and is far more accurate.) 22/7 is no worse than 3.14, though. Sure, 355/113 is closer still, but how often do really need more accuracy

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Ben Finney
Maarten writes: > You just missed it: > 22/7 Which is appropriate, since 22/7 misses π by a wide margin. (355/113 is my favourite approximation to π, and is far more accurate.) −1 on associating 22/7 as anything to do with π. +1 on celebrating τ day! https://www.youtube.com/watch?v=jG7vhMMXagQ

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Ethan Furman
Ian Kelly wrote: On Tue, Jul 24, 2012 at 8:50 AM, Chris Angelico wrote: Americans celebrate March 14th as 3.14; some Europeans celebrate July 22nd as 22/7 (which is 3.142857, fairly close to 3.14159). We claim both, and also June 28th (aka Tau Day or Two Pi Day, 6.28). Hey now, Tau Day is an

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Chris Angelico
On Wed, Jul 25, 2012 at 2:36 AM, Ian Kelly wrote: > On Tue, Jul 24, 2012 at 8:50 AM, Chris Angelico wrote: >> Americans celebrate March 14th as 3.14; some Europeans celebrate July >> 22nd as 22/7 (which is 3.142857, fairly close to 3.14159). We claim >> both, and also June 28th (aka Tau Day or Tw

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Ian Kelly
On Tue, Jul 24, 2012 at 8:50 AM, Chris Angelico wrote: > Americans celebrate March 14th as 3.14; some Europeans celebrate July > 22nd as 22/7 (which is 3.142857, fairly close to 3.14159). We claim > both, and also June 28th (aka Tau Day or Two Pi Day, 6.28). Hey now, Tau Day is an American invent

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Maarten
On Tuesday, July 24, 2012 4:35:29 PM UTC+2, Ben Finney wrote: > Chris Angelico writes: > > > […] Pi Day, has two different dates (the American and the European - > > of course, here in Australia, we celebrate both). > > What would be the two days? The 14th day of the 3rd month, and, um, > what? >

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Chris Angelico
On Wed, Jul 25, 2012 at 12:35 AM, Ben Finney wrote: > Chris Angelico writes: > >> […] Pi Day, has two different dates (the American and the European - >> of course, here in Australia, we celebrate both). > > What would be the two days? The 14th day of the 3rd month, and, um, > what? Americans ce

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Ben Finney
Chris Angelico writes: > […] Pi Day, has two different dates (the American and the European - > of course, here in Australia, we celebrate both). What would be the two days? The 14th day of the 3rd month, and, um, what? Or do you Australians have the third day of the fourteenth month? -- \

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 12:09 PM, Chris Angelico wrote: > It is, in many places. It's one of the few truly international > holidays. The next nearest, Pi Day, has two different dates (the > American and the European - of course, here in Australia, we celebrate > both). Here in Canada we celebrate

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Chris Angelico
On Tue, Jul 24, 2012 at 1:56 AM, John Gordon wrote: > In Mark Lawrence > writes: > >> Sorry not with you is there something special about April 1st next year? > > In the United States, April 1st (also known as April Fool's Day) is an > occasion for practical jokes, faked 'news' stories, and gen

Re: the meaning of r`.......`

2012-07-24 Thread Thomas Rachel
Am 23.07.2012 17:59 schrieb Steven D'Aprano: >> Before you get a language that uses full Unicode, you'll need to have fairly generally available keyboards that have those keys. Or at least keys or key combinations for the stuff you need, which might differ e. g. with the country you live in.

Re: the meaning of rユ.......�¾

2012-07-24 Thread Larry Hudson
On 07/23/2012 06:22 AM, Dave Angel wrote: On 07/23/2012 09:06 AM, Chris Angelico wrote: On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Right now, we're working in ASCII and creating

Re: the meaning of r’.......‘

2012-07-23 Thread John Roth
On Monday, July 23, 2012 1:59:42 AM UTC-6, Chris Angelico wrote: > On Fri, Jul 20, 2012 at 5:56 PM, levi nie <levinie...@gmail.com> wrote: > > the meaning of r’...‘? > > It's a raw string. > > http://docs.python.org/py3k/tutorial/introduction.html#st

Re: the meaning of r’.......‘

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 7:07 AM, Terry Reedy wrote: > On 7/23/2012 3:59 AM, Chris Angelico wrote: >> >> On Fri, Jul 20, 2012 at 5:56 PM, levi nie wrote: >>> >>> the meaning of r’...‘? >> >> >> It's a raw string. >> >

Re: the meaning of r’.......‘

2012-07-23 Thread Terry Reedy
On 7/23/2012 3:59 AM, Chris Angelico wrote: On Fri, Jul 20, 2012 at 5:56 PM, levi nie wrote: the meaning of r’...‘? It's a raw string. http://docs.python.org/py3k/tutorial/introduction.html#strings Strictly speaking, it is a raw string literal, which should be parsed as

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Ross Ridge
Steven D'Aprano wrote: >Hey, if the Japanese and Chinese can manage it, English speakers can >surely find a way to enter π or ∞ without a keyboard the size of a >battleship. Japanese and Chinese programmers don't use (and don't seem to want to) use non-ASCII characters outside of strin

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Jan Riechers
On 23.07.2012 16:55, Henrik Faber wrote: On 23.07.2012 15:52, Henrik Faber wrote: but I would hate for Python to include them into identifiers. Then again, I'm pretty sure this is not planned anytime soon. Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type "h

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 16:29:33 +0100, Mark Lawrence wrote: > On 23/07/2012 15:43, Henrik Faber wrote: [...] >> I might wait until April 1st next year with that ;-) >> >> Best regards, >> Henrik >> >> > Sorry not with you is there something special about April 1st next year? As a Brit (or at least s

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 15:52:32 +0200, Henrik Faber wrote: > If you allow for UTF-8 identifiers you'll have to be horribly careful > what to include and what to exclude. Is the non-breaking space a valid > character for a identifier? Technically it's a different character than > the normal space, so

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 15:24:21 +0200, Henrik Faber wrote: > I disagree. Firstly, Python could already support the different types of > strings even with the ASCII character set. For example, the choice could > have made to treat the apostophe string 'foo' differently from the > double quote string "

Re: the meaning of rユ.......��

2012-07-23 Thread Ross Ridge
Roy Smith wrote: >When I first started writing C code, it was on ASR-33s which did not >support curly baces. We wrote ¥( for { and ¥) for } (although I think the >translation was >handled entirely in the TTY driver and the compiler was never in on the >joke). 20 or 30 years from now,

Re: the meaning of rユ.......�¾

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 1:59 AM, Steven D'Aprano wrote: >> http://www.rexswain.com/rexx.html#operators > > Only one? Pfft. > > What's the difference between >> "Strictly greater than" and < "Greater > than"? The non-strict forms strip trailing spaces off strings before comparing. I can't remember

Re: the meaning of rユ.......�¾

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 23:06:45 +1000, Chris Angelico wrote: > On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith wrote: >> Some day, we're going to have programming languages that take advantage >> of the full unicode character set. Right now, we're working in ASCII >> and creating silly digrams/trigrams

Re: the meaning of rユ.......ï¾

2012-07-23 Thread John Gordon
In Mark Lawrence writes: > Sorry not with you is there something special about April 1st next year? In the United States, April 1st (also known as April Fool's Day) is an occasion for practical jokes, faked 'news' stories, and general silliness. I don't know if it is observed outside the U.S.

Re: the meaning of r.......ïŸ

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 08:55:22 -0400, Roy Smith wrote: > Some day, we're going to have programming languages that take advantage > of the full unicode character set. I don't know about the full Unicode character set, since there are many more than 1 characters, and few languages require that m

Re: the meaning of r?.......ï¾

2012-07-23 Thread MRAB
On 23/07/2012 14:24, Henrik Faber wrote: [snip] And if I think of PHP's latest fiasco that happened with unicode characters, it makes me shudder to think you'd want that stuff in Python. If I remember correctly, it was the Turkish locale that they stuggled with: Turkey apparently does not have a

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Mark Lawrence
On 23/07/2012 15:43, Henrik Faber wrote: On 23.07.2012 16:43, Mark Lawrence wrote: Apparently, not all characters are fine with Python. Why can I not have domino tiles are identifier characters? 🀻 = 9 File "", line 1 🀻 = 9 ^ SyntaxError: invalid character in identifier

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 10:40 AM, Henrik Faber wrote: > No, you misunderstood me. I didn't say people are going to write > gibberish. What I'm saying is that as a foreigner (who doesn't know most > of these characters), it can be hard to accurately choose which one is > the correct one. This is es

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Chris Angelico
On Tue, Jul 24, 2012 at 12:40 AM, Henrik Faber wrote: > No, you misunderstood me. I didn't say people are going to write > gibberish. What I'm saying is that as a foreigner (who doesn't know most > of these characters), it can be hard to accurately choose which one is > the correct one. This is es

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 16:43, Mark Lawrence wrote: >> Apparently, not all characters are fine with Python. Why can I not have >> domino tiles are identifier characters? >> > 🀻 = 9 >>File "", line 1 >> 🀻 = 9 >> ^ >> SyntaxError: invalid character in identifier >> >> I think there ne

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 16:10, Devin Jeanpierre wrote: > On Mon, Jul 23, 2012 at 9:52 AM, Henrik Faber wrote: >> If you allow for UTF-8 identifiers you'll have to be horribly careful >> what to include and what to exclude. Is the non-breaking space a valid >> character for a identifier? Technically it's a d

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 16:19, Chris Angelico wrote: > On Mon, Jul 23, 2012 at 11:52 PM, Henrik Faber wrote: >> What about × vs x? Or Ì vs Í vs Î vs Ï vs Ĩ vs Ī vs ī vs Ĭ vs ĭ vs Į vs >> į vs I vs İ? Do you think if you need to maintain such code you'll >> immediately know the difference between the 13 (!)

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Mark Lawrence
On 23/07/2012 14:59, Henrik Faber wrote: On 23.07.2012 15:55, Henrik Faber wrote: Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. fööbär = 3 fööbär 3 I didn't know this. How awful.

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 11:52 PM, Henrik Faber wrote: > What about × vs x? Or Ì vs Í vs Î vs Ï vs Ĩ vs Ī vs ī vs Ĭ vs ĭ vs Į vs > į vs I vs İ? Do you think if you need to maintain such code you'll > immediately know the difference between the 13 (!) different "I"s I just > happened to pull out ran

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Alain Ketterlin
Henrik Faber writes: > On 23.07.2012 15:55, Henrik Faber wrote: > >> Dear Lord. >> >> Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) >> [GCC 4.5.2] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. > fööbär = 3 > fööbär >> 3 >> >> I didn't know thi

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Devin Jeanpierre
On Mon, Jul 23, 2012 at 9:52 AM, Henrik Faber wrote: > If you allow for UTF-8 identifiers you'll have to be horribly careful > what to include and what to exclude. Is the non-breaking space a valid > character for a identifier? Technically it's a different character than > the normal space, so why

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 15:55, Henrik Faber wrote: > Dear Lord. > > Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) > [GCC 4.5.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. fööbär = 3 fööbär > 3 > > I didn't know this. How awful. Apparently, not all c

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 15:52, Henrik Faber wrote: > but I would hate for > Python to include them into identifiers. Then again, I'm pretty sure > this is not planned anytime soon. Dear Lord. Python 3.2 (r32:88445, Dec 8 2011, 15:26:58) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "licens

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 15:35, Chris Angelico wrote: > That said, though, there's good argument in allowing full Unicode in > *identifiers*. If I'm allowed to name something "foo", then a German > should be allowed to name something "foö". And since identifiers are > case sensitive (at least, they are in a

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 11:24 PM, Henrik Faber wrote: > And if I think of PHP's latest fiasco that happened with unicode > characters, it makes me shudder to think you'd want that stuff in > Python. If I remember correctly, it was the Turkish locale that they > stuggled with: Turkey apparently doe

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 14:55, Roy Smith wrote: > Some day, we're going to have programming languages that take advantage > of the full unicode character set. Plus, if I may add this: It's *your* newsreader that broke the correctly declared ISO-8859-7 encoded subject of the OP. What a bitter irony that de

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Henrik Faber
On 23.07.2012 14:55, Roy Smith wrote: > In article <500d0632$0$1504$c3e8da3$76491...@news.astraweb.com>, > Steven D'Aprano wrote: > >> Technically, no, it's a SyntaxError, because the Original Poster has used >> some sort of "Smart Quotes" characters r’‘ instead of good old fashion

Re: the meaning of r�.......?3�4

2012-07-23 Thread Roy Smith
In article , Chris Angelico wrote: > But personally, I've always used backslash. It's nothing to do with > ASCII and everything to do with having it on the keyboard. Before you > get a language that uses full Unicode, you'll need to have fairly > generally available keyboards that have those key

Re: the meaning of rユ.......�¾

2012-07-23 Thread Dave Angel
On 07/23/2012 09:06 AM, Chris Angelico wrote: > On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith wrote: >> Some day, we're going to have programming languages that take advantage >> of the full unicode character set. Right now, we're working in ASCII >> and creating silly digrams/trigrams like r'' for

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Alex Strickland
On 2012/07/23 02:55 PM, Roy Smith wrote: Some day, we're going to have programming languages that take advantage of the full unicode character set. Right now, we're working in ASCII and creating silly digrams/trigrams like r'' for raw strings (and triple-quotes for multi-line strings). Not to

Re: the meaning of rユ.......�¾

2012-07-23 Thread Chris Angelico
On Mon, Jul 23, 2012 at 10:55 PM, Roy Smith wrote: > Some day, we're going to have programming languages that take advantage > of the full unicode character set. Right now, we're working in ASCII > and creating silly digrams/trigrams like r'' for raw strings (and > triple-quotes for multi-line >

Re: the meaning of rユ.......��

2012-07-23 Thread Roy Smith
In article <500d0632$0$1504$c3e8da3$76491...@news.astraweb.com>, Steven D'Aprano wrote: > Technically, no, it's a SyntaxError, because the Original Poster has used > some sort of "Smart Quotes" characters r’‘ instead of good old fashioned > typewriter-style quotes r'' or r"". > > If

Re: the meaning of r’.......‘

2012-07-23 Thread Steven D'Aprano
On Mon, 23 Jul 2012 17:59:42 +1000, Chris Angelico wrote: > On Fri, Jul 20, 2012 at 5:56 PM, levi nie wrote: >> the meaning of r’...‘? > > It's a raw string. Technically, no, it's a SyntaxError, because the Original Poster has used some sort of "

Re: the meaning of r’.......‘

2012-07-23 Thread Chris Angelico
On Fri, Jul 20, 2012 at 5:56 PM, levi nie wrote: > the meaning of r’...‘? It's a raw string. http://docs.python.org/py3k/tutorial/introduction.html#strings Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list

Re: parse html:what is the meaning of "//"?

2011-09-16 Thread Terry Reedy
On 9/16/2011 7:02 AM, Stefan Behnel wrote: 0.00 N/A N/A 115 2,411 Highlighted options are in-the-money. I don't see any highlighting in your text above, Gone with the ascii conversion. and I don't know what you mean by "in-the-money". If a stock sells now for $20, an option to buy it f

Re: parse html:what is the meaning of "//"?

2011-09-16 Thread 守株待兔
- Original -- From: "Miki Tebeka"; Date: Fri, Sep 16, 2011 09:08 PM To: "python-list"; Cc: "python-list"; Subject: Re: parse html:what is the meaning of "//"? As a side note, it's way easier to get this data using YQL. See for example:

Re: parse html:what is the meaning of "//"?

2011-09-16 Thread Miki Tebeka
As a side note, it's way easier to get this data using YQL. See for example: http://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys#h=SELECT%20*%20FROM%20yahoo.finance.options%20WHERE%20symbol%3D%27C%27%20AND%20expiration%3D%272011-09%27 Which gives y

Re: parse html:what is the meaning of "//"?

2011-09-16 Thread Stefan Behnel
alias, 16.09.2011 08:39: code1: import lxml.html import urllib down='http://finance.yahoo.com/q/op?s=C+Options' content=urllib.urlopen(down).read() root=lxml.html.document_fromstring(content) I see this quite often, but many people don't know that this can be simplified to import lxml.ht

Re: parse html:what is the meaning of "//"?

2011-09-16 Thread Kev Dwyer
alias wrote: > > > > Highlighted options are in-the-money. > (omit something) > there is only one difference between code1 and code2 : > in code1 is : tds=table.xpath("tr[@valign='top']//td") > in code2 is: tds=table.xpath("//tr[@valign='top']//td") > > i want to know why t

parse html:what is the meaning of "//"?

2011-09-16 Thread alias
code1: import lxml.html import urllib down='http://finance.yahoo.com/q/op?s=C+Options' content=urllib.urlopen(down).read() root=lxml.html.document_fromstring(content) table = root.xpath("//table[@class='yfnc_mod_table_title1']")[0] tds=table.xpath("tr[@valign='top']//td") for td in tds: print

Re: The meaning of "="

2009-07-15 Thread Aahz
In article , Piet van Oostrum wrote: >> a...@pythoncraft.com (Aahz) (A) wrote: > >>A> In article , Piet van Oostrum >>wrote: > a...@pythoncraft.com (Aahz) (A) wrote: >>A> In article , Piet van Oostrum >>A> wrote: >>> And to get c.x = 4 working you also need a __se

Re: The meaning of "="

2009-07-15 Thread Piet van Oostrum
> a...@pythoncraft.com (Aahz) (A) wrote: >A> In article , Piet van Oostrum >wrote: a...@pythoncraft.com (Aahz) (A) wrote: >>> >A> In article , Piet van Oostrum >A> wrote: >>> >> And to get c.x = 4 working you also need a __setitem__. >>> >A> Nope. You do need __setitem__

Re: The meaning of "="

2009-07-14 Thread Aahz
In article , Piet van Oostrum wrote: >> a...@pythoncraft.com (Aahz) (A) wrote: > >>A> In article , Piet van Oostrum >>A> wrote: > And to get c.x = 4 working you also need a __setitem__. > >>A> Nope. You do need __setitem__ so that this works: > >>A> c['x'] = 4 > >Sorry, I meant such

Re: The meaning of "="

2009-07-14 Thread Piet van Oostrum
> a...@pythoncraft.com (Aahz) (A) wrote: >A> In article , Piet van Oostrum >A> wrote: >>> And to get c.x = 4 working you also need a __setitem__. >A> Nope. You do need __setitem__ so that this works: >A> c['x'] = 4 Sorry, I meant such that c.x = 4 does the same as c['x'] = 4 because th

Re: The meaning of "="

2009-07-14 Thread Aahz
In article , Piet van Oostrum wrote: >> Lawrence D'Oliveiro (LD) wrote: > >>LD> In message , Aahz wrote: > >>Aahz> class AttrDict: >>Aahz> def __getitem__(self, key): >>Aahz> return getattr(self, key) > >>LD> OK, let's try it: > >>LD> >>> c = {} >>LD> >>> c["x"] = 3 >>LD> >>> c.x

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-14 Thread Lawrence D'Oliveiro
In message , Steven D'Aprano wrote: > Are we supposed to interpret that post as Dumb Insolence or just Dumb? "Insolence" indeed ... another wanker to plonk, I think. -- http://mail.python.org/mailman/listinfo/python-list

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-13 Thread Steven D'Aprano
On Mon, 13 Jul 2009 23:22:36 +1200, Lawrence D'Oliveiro wrote: [stupidity omitted] > Nope, still doesn't work... Are we supposed to interpret that post as Dumb Insolence or just Dumb? -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: The meaning of "="

2009-07-13 Thread Piet van Oostrum
> Lawrence D'Oliveiro (LD) wrote: >LD> In message , Aahz wrote: >Aahz> class AttrDict: >Aahz> def __getitem__(self, key): >Aahz> return getattr(self, key) >LD> OK, let's try it: >LD> >>> c = {} >LD> >>> c["x"] = 3 >LD> >>> c.x = 4 >LD> Traceback (most recent call last): >LD> F

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-13 Thread Lawrence D'Oliveiro
In message , Aahz wrote: > In article , > Lawrence D'Oliveiro wrote: >>In message , Aahz wrote: >>> >>> It helps to remember that names and namespaces are in many >>> ways syntactic sugar for dicts or lists. >> >>Interesting, though, that Python insists on maintaining a distinction >>between c["

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-11 Thread Aahz
In article , Lawrence D'Oliveiro wrote: >In message , Aahz wrote: >> >> It helps to remember that names and namespaces are in many >> ways syntactic sugar for dicts or lists. > >Interesting, though, that Python insists on maintaining a distinction >between c["x"] and c.x, whereas JavaScript does

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-11 Thread greg
Lawrence D'Oliveiro wrote: Interesting, though, that Python insists on maintaining a distinction between c["x"] and c.x, whereas JavaScript doesn't bother. And that distinction is a good thing. It means, for example, that dictionaries can have methods without colliding with the key space of th

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-11 Thread Lawrence D'Oliveiro
In message , Aahz wrote: > It helps to remember that names and namespaces are in many > ways syntactic sugar for dicts or lists. Interesting, though, that Python insists on maintaining a distinction between c["x"] and c.x, whereas JavaScript doesn't bother. -- http://mail.python.org/mailman/li

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-10 Thread Aahz
[excessive quoting ahead, I'm too tired to trim] In article , kj wrote: >In a...@pythoncraft.com (Aahz) writes: >>In article , kj wrote: >>> >>>OK, so, scratching from my original post the case >>> >>>. = >>> >>>(as being a special case of = ), still, >>>to the extent that I understand your

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-09 Thread Lawrence D'Oliveiro
In message , kj wrote: > .., Lundh writes: > > Assignment statements modify namespaces, not objects. >>> a = [3] >>> b = a These may indeed modify a namespace, not any object. However: >>> a[:] = [4] >>> a [4] >>> b [4] What change has happened to the namespace

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-08 Thread Terry Reedy
kj wrote: To clarify, this comes from my reading of Fredrik Lundh's pages "Python Objects" (http://effbot.org/zone/python-objects.htm) and "Call By Object" (http://effbot.org/zone/call-by-object.htm). [snip] [END OF LENGTHY QUOTE] Therefore, extending just a bit beyond Lundh's explanation, if

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-08 Thread kj
In a...@pythoncraft.com (Aahz) writes: >In article , kj wrote: >> >>OK, so, scratching from my original post the case >> >>. = >> >>(as being a special case of = ), still, >>to the extent that I understand your post, the "=" in >> >> x = 1 >> >>means something fundamentally different (in ter

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-08 Thread Aahz
In article , kj wrote: > >OK, so, scratching from my original post the case > >. = > >(as being a special case of = ), still, >to the extent that I understand your post, the "=" in > > x = 1 > >means something fundamentally different (in terms of Python's >underlying implementation) from the "

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-08 Thread Aahz
In article <0778f257-d36c-4e13-93ea-bf8d448c8...@b15g2000yqd.googlegroups.com>, Paul Boddie wrote: > >Almost. The latter can modify namespaces - the objects themselves - >but through properties or dynamic attribute access, they may choose >not to modify such a namespace. Really, we can phrase ass

Re: The meaning of "=" (Was: tough-to-explain Python)

2009-07-08 Thread kj
In <0778f257-d36c-4e13-93ea-bf8d448c8...@b15g2000yqd.googlegroups.com> Paul Boddie writes: >On 8 Jul, 16:04, kj wrote: >> >> =A0 =3D >> >> and not to those like, for example, >> >> =A0 [] =3D >> >> or >> >> =A0 . =3D >> >> The former are syntatic sugar for certain namespace modifications >>

  1   2   >