Re: cx_Oracle, callfunc and varray

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 12:24 PM, Dom wrote: > Hi > > I'm trying to return a simple array of numbers from a package using cx_oracle > (5.1.2). I believe this is possible. I've not been able to find anything that > suggest it isn't I'm afraid I don't have an answer for you, but you would probably

Re: class-based class decorator

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 2:26 PM, Albert-Jan Roskam wrote: > > > Hi, > > I am trying to write a class decorator that checks whether deprecated > parameters with non-default > > arguments are used. More complete code is here: http://pastebin.com/ZqnMis6M. > In the code below, > > how should I modif

Re: Decimals and other numbers

2015-01-09 Thread Devin Jeanpierre
On Fri, Jan 9, 2015 at 7:05 PM, Gregory Ewing wrote: > It's far from clear what *anything* multiplied by > itself zero times should be. > > A better way of thinking about what x**n for integer > n means is this: Start with 1, and multiply it by > x n times. The result of this is clearly 1 when n >

Re: Why do the URLs of posts here change?

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 2:21 PM, Gregory Ewing wrote: > Skip Montanaro wrote: >> >> The way this is done, is >> that the message is removed from the underlying mbox file, and the >> archive regenerated. That changes the counter for every message after >> that point > > > Would it help to replace t

Re: Begginer Question , what i need for web app and site

2015-01-09 Thread Jason Friedman
> Hello all > coming from java and c++ now going with python > what setup do i need to run full python stack for web application . > what i need is web framework and back-end . > what usually be in the java world tomcat and servlets or jsp and pure java > backend for processing data . > what will

Re: Why do the URLs of posts here change?

2015-01-09 Thread Gregory Ewing
Skip Montanaro wrote: The way this is done, is that the message is removed from the underlying mbox file, and the archive regenerated. That changes the counter for every message after that point Would it help to replace the message with a stub instead of deleting it altogether? -- Greg -- http

Re: Decimals and other numbers

2015-01-09 Thread Gregory Ewing
Steven D'Aprano wrote: I'm just sketching an informal proof. If you want to make it vigorous I think the usual term is "rigorous", unless the mathematician is taking some kind of stimulant... :-) -- Greg -- https://mail.py

Re: Decimals and other numbers

2015-01-09 Thread Gregory Ewing
Steven D'Aprano wrote: Arguably, *integer* 0**0 could be zero, on the basis that you can't take limits of integer-valued quantities, and zero times itself zero times surely has to be zero. It's far from clear what *anything* multiplied by itself zero times should be. A better way of thinking a

Re: Is anyone else unable to log into the bug tracker?

2015-01-09 Thread Steven D'Aprano
Ethan Furman wrote: > On 01/09/2015 05:48 PM, Steven D'Aprano wrote: >> >> I'm having trouble logging into the bug tracker. Is anyone else having >> the same problem, that is, your user name and password worked earlier but >> doesn't work now? > > I was just able to log in both using the Google s

Re: Is anyone else unable to log into the bug tracker?

2015-01-09 Thread Ethan Furman
On 01/09/2015 05:48 PM, Steven D'Aprano wrote: > > I'm having trouble logging into the bug tracker. Is anyone else having the > same problem, that is, your user name and password worked earlier but > doesn't work now? I was just able to log in both using the Google short cut, and with my name/pas

Is anyone else unable to log into the bug tracker?

2015-01-09 Thread Steven D'Aprano
I'm having trouble logging into the bug tracker. Is anyone else having the same problem, that is, your user name and password worked earlier but doesn't work now? http://bugs.python.org/ (Yes, I've checked the capslock key.) Before I request a new password, I want to check whether it is me or

Re: Decimals and other numbers

2015-01-09 Thread Devin Jeanpierre
On Fri, Jan 9, 2015 at 2:20 AM, Steven D'Aprano wrote: -snip- > I don't understand what you're trying to say here. You can't just > arbitrarily declare that 0**1 equals something other than 0 (or for that > matter, doesn't equal anything at all). You can, actually. It's just silly. (Similarly, yo

Re: class-based class decorator

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 8:26 AM, Albert-Jan Roskam wrote: > I am trying to write a class decorator that checks whether deprecated > parameters with non-default > > arguments are used. More complete code is here: http://pastebin.com/ZqnMis6M. > In the code below, > Any particular reason to make

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-09 Thread André Roberge
On Friday, 9 January 2015 19:09:15 UTC-4, stephen...@gmail.com wrote: > On Wednesday, December 31, 2014 at 4:24:50 PM UTC-6, André Roberge wrote: > > EasyGUI_Qt version 0.9 has been released. This is the first announcement > > about EasyGUI_Qt on this list. > > > > Like the original EasyGUI (wh

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-09 Thread André Roberge
On Friday, 9 January 2015 19:09:15 UTC-4, stephen...@gmail.com wrote: > Very nice, thanks. > > One issue is the format returned for the calendar selection. For today, the > string returned is "Fri Jan 9 2015". My script needs to convert the date to a > datetime.date, and having the month retur

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread stephen . boulet
On Friday, January 9, 2015 at 8:58:59 AM UTC-6, stephen...@gmail.com wrote: > I've installed Microsoft Visual Studio 10.0. Here are the steps I've been > taking. > > My python version is Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, > 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32. > > (Sorry

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-09 Thread stephen . boulet
On Wednesday, December 31, 2014 at 4:24:50 PM UTC-6, André Roberge wrote: > EasyGUI_Qt version 0.9 has been released. This is the first announcement > about EasyGUI_Qt on this list. > > Like the original EasyGUI (which used Tkinter), > EasyGUI_Qt seeks to provide simple GUI widgets > that can b

Re: Non-unique dirs in sys.path

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 2:24 PM, Gisle Vanem wrote: > Ian Kelly wrote: > >> I checked my own Python 2.7 installation and discovered that I have >> the same problem, although without the different casing. Perusing the >> .pth files in site-packages turns up setuptools.pth, which just >> contains the

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Mark Lawrence
On 09/01/2015 21:51, semeon.ri...@gmail.com wrote: [As per Dave Angel snip all the double spaced nonsence] Please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Mark Lawrence
On 09/01/2015 22:14, stephen.bou...@gmail.com wrote: This page helped me sort everything out: http://www.falatic.com/index.php/120/a-guide-to-building-python-2-x-and-3-x-extensions-for-windows. That's good to know both for you and me but in future could you please quote some context, thanks

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Dan Sommers
> Unfortunately getting a new error. > > Traceback (most recent call last): > File "C:\Users\Owner\Desktop\Stimuli Generation\Coordinates\Generate_w > corr.py", line 68, in > makeimg(length, orientation) > File "C:\Users\Owner\Desktop\Stimuli Generation\Coordinates\Generate_w > corr.py

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Dave Angel
On 01/09/2015 04:51 PM, semeon.ri...@gmail.com wrote: On Friday, 9 January 2015 12:18:46 UTC-6, Joel Goldstick wrote: On Fri, Jan 9, 2015 at 12:49 PM, wrote: (double-spaced nonsense mostly trimmed) i = 0 a = [] b = [] What are a and b supposed to contain? Please use more informative

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread stephen . boulet
This page helped me sort everything out: http://www.falatic.com/index.php/120/a-guide-to-building-python-2-x-and-3-x-extensions-for-windows. -- https://mail.python.org/mailman/listinfo/python-list

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread semeon . risom
On Friday, 9 January 2015 12:18:46 UTC-6, Joel Goldstick wrote: > On Fri, Jan 9, 2015 at 12:49 PM, wrote: > > > On Thursday, 8 January 2015 20:54:38 UTC-6, Denis McMahon  wrote: > > > On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: > > > > > > > On Thu, 08 Jan 2015 09:09:18 -0800,

Re: [OT] x**y == y**x

2015-01-09 Thread Marko Rauhamaa
Peter Pearson : > If you've never looked at the set of reals (x,y) satisfying x**y == > y**x, it's worth a visit. Thanks, it was. The graph's something like this: | : * | : * | : * | : * 6 + : * *

class-based class decorator

2015-01-09 Thread Albert-Jan Roskam
Hi, I am trying to write a class decorator that checks whether deprecated parameters with non-default arguments are used. More complete code is here: http://pastebin.com/ZqnMis6M. In the code below, how should I modify __call__ such that f.bar(old="oh no") prints "hello world"? I thought it

Re: Non-unique dirs in sys.path

2015-01-09 Thread Gisle Vanem
Ian Kelly wrote: I checked my own Python 2.7 installation and discovered that I have the same problem, although without the different casing. Perusing the .pth files in site-packages turns up setuptools.pth, which just contains the site-packages path. Removing that file solves the issue for me.

Re: cx_Oracle, callfunc and varray

2015-01-09 Thread John Gordon
In Dom writes: > create or replace PACKAGE SIMPLEPACKAGE > AS > FUNCTION DoSomethingSimple( > cust_id INTEGER) > RETURN numarray; > FUNCTION DoSomethingSimpler( > cust_id INTEGER) > RETURN INTEGER; > END SIMPLEPACKAGE; > / > Any ideas what I'm doing wrong? Is RETURN IN

cx_Oracle, callfunc and varray

2015-01-09 Thread Dom
Hi I'm trying to return a simple array of numbers from a package using cx_oracle (5.1.2). I believe this is possible. I've not been able to find anything that suggest it isn't create or replace TYPE NUMARRAY -- Simple VArray of numbers is VARRAY(3) OF NUMBER; / create or replace PACKAGE SIMPLE

Re: hello please can you help me with the below problem am facing

2015-01-09 Thread gcptesthp
On Friday, January 9, 2015 at 3:47:27 AM UTC-8, mubarak idris wrote: > Please how can I make an .exe executable app out of my python script easily http://www.py2exe.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread Joel Goldstick
On Fri, Jan 9, 2015 at 12:49 PM, wrote: > On Thursday, 8 January 2015 20:54:38 UTC-6, Denis McMahon wrote: > > On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: > > > > > On Thu, 08 Jan 2015 09:09:18 -0800, semeon.risom wrote: > > > > > >> Simple question. I hope. . > > > > To follow

Re: Generate jpg files using line length (pixels) and orientation (degrees)

2015-01-09 Thread semeon . risom
On Thursday, 8 January 2015 20:54:38 UTC-6, Denis McMahon wrote: > On Thu, 08 Jan 2015 22:07:03 +, Denis McMahon wrote: > > > On Thu, 08 Jan 2015 09:09:18 -0800, semeon.risom wrote: > > > >> Simple question. I hope. . > > To follow up, below is a solution to the problem you stated. > >

[OT] x**y == y**x

2015-01-09 Thread Peter Pearson
On 09 Jan 2015 11:07:51 +0200, Jussi Piitulainen wrote: [snip] > Which reminds me of a question that once made me smile, even laugh, > and still does: 2**3 is almost 3**2 but not quite - what gives? If you've never looked at the set of reals (x,y) satisfying x**y == y**x, it's worth a visit. --

Re: Why do the URLs of posts here change?

2015-01-09 Thread Rustom Mody
On Friday, January 9, 2015 at 10:27:53 PM UTC+5:30, Chris Angelico wrote: > On Sat, Jan 10, 2015 at 3:52 AM, Rustom Mody wrote: > > Is it? > > Ok lets test that. > > This is posted from google-groups. > > After posting I shall remove it > > Remove it from GG, maybe, but I doubt very much it'll be

Re: Why do the URLs of posts here change?

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 3:52 AM, Rustom Mody wrote: > Is it? > Ok lets test that. > This is posted from google-groups. > After posting I shall remove it Remove it from GG, maybe, but I doubt very much it'll be removed from the python.org archive. It's virtually impossible to remove something from

Re: Why do the URLs of posts here change?

2015-01-09 Thread Rustom Mody
On Friday, January 9, 2015 at 7:46:42 PM UTC+5:30, Skip Montanaro wrote: > On Fri, Jan 9, 2015 at 8:09 AM, Rustom Mody wrote: > > Theres a new app/service that should solve your problem: > > Its from google... and called groups > It solves one problem (moving archive URLs) by, I think, ignoring

Re: Non-unique dirs in sys.path

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 6:14 AM, Gisle Vanem wrote: > Why are these listed twice with different casing? One > would assume that Python on Win32 would be case-insensitive. > Some .pth-file to blame here? I checked my own Python 2.7 installation and discovered that I have the same problem, although

Re: what is Jython?

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 3:06 AM, Grant Edwards wrote: > Just to clarify, Jython > > 1) is a Python compiler that compiles Python source code into JVM > bytecode (class, jar, whatever) that runs on a standard Java > runtime. Python programs compiled with Jython can call standard >

Re: what is Jython?

2015-01-09 Thread Grant Edwards
On 2015-01-09, Chris Angelico wrote: > Jython isn't a combination of Python and Java; it's Python, > implemented in Java. Does that answer your question? Just to clarify, Jython 1) is a Python compiler that compiles Python source code into JVM bytecode (class, jar, whatever) that runs o

Re: Why does argparse return None instead of [] if an append action isn't used?

2015-01-09 Thread Wolfgang Maier
On 01/09/2015 03:44 PM, Adam Funk wrote: I noticed in use that if an option with the 'append' action isn't used, argparse assigns None to it rather than an empty list, & confirmed this interactively: #v+ import argparse parser = argparse.ArgumentParser() parser.add_argument('--foo', action='app

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 2:23 AM, Mark Lawrence wrote: > I'll admit to being a little annoyed that scandir says it supports Python 3 > but only provides a 2.7 exe on pypi. If you can wait for 3.5, you might find it in the standard library. PEP 471 was accepted, and I believe that means scandir wil

Re: Why does argparse return None instead of [] if an append action isn't used?

2015-01-09 Thread Adam Funk
On 2015-01-09, Skip Montanaro wrote: >> I noticed in use that if an option with the 'append' action isn't >> used, argparse assigns None to it rather than an empty list, & >> confirmed this interactively: > > I don't use argparse (or optparse), being a getopt Luddite myself, but > can you set the

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Mark Lawrence
On 09/01/2015 14:58, stephen.bou...@gmail.com wrote: I've installed Microsoft Visual Studio 10.0. Here are the steps I've been taking. My python version is Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32. (Sorry for the long output.) cd "c:\Pro

Re: Comparisons and sorting of a numeric class....

2015-01-09 Thread Marko Rauhamaa
Paul Rubin : > Marko's suggestion > > rv = f() > if rv is not None: > return rv > rv = g() > if rv is not None: > return rv > return h() > > seems unspeakably ugly. Well, "unspeakably" is exaggeration IMO. It is a bit lengthy but it is crystal clear. While the

Re: Why does argparse return None instead of [] if an append action isn't used?

2015-01-09 Thread Ned Batchelder
On 1/9/15 9:44 AM, Adam Funk wrote: This makes it a bit more trouble to use: if options.bar: for b in options:bar do_stuff(b) instead of for b in options.bar do_stuff(b) This doesn't answer why the value defaults to None, and some people may recoil at it, but I've

Re: Comparisons and sorting of a numeric class....

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 2:06 AM, Paul Rubin wrote: > Chris Angelico writes: >> for instance, I might have a socket object, and I might not, so I can >> use "if not self.socket: self.connect()" ... > > This sounds like you want a Maybe or Option object. That's exactly what it is - a name that's a

Re: Comparisons and sorting of a numeric class....

2015-01-09 Thread Paul Rubin
Chris Angelico writes: > for instance, I might have a socket object, and I might not, so I can > use "if not self.socket: self.connect()" ... This sounds like you want a Maybe or Option object. Marko's suggestion rv = f() if rv is not None: return rv rv = g() if rv is no

Help configuring visual studio to compile python extensions

2015-01-09 Thread stephen . boulet
I've installed Microsoft Visual Studio 10.0. Here are the steps I've been taking. My python version is Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32. (Sorry for the long output.) >cd "c:\Program Files (x86)\Microsoft Visual Studio 10.0"\vc >vcva

Re: Why does argparse return None instead of [] if an append action isn't used?

2015-01-09 Thread Skip Montanaro
> I noticed in use that if an option with the 'append' action isn't > used, argparse assigns None to it rather than an empty list, & > confirmed this interactively: I don't use argparse (or optparse), being a getopt Luddite myself, but can you set the default for an action in the add_argument call

Why does argparse return None instead of [] if an append action isn't used?

2015-01-09 Thread Adam Funk
I noticed in use that if an option with the 'append' action isn't used, argparse assigns None to it rather than an empty list, & confirmed this interactively: #v+ >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', action='append') _AppendAction(option_strin

Re: Comparisons and sorting of a numeric class....

2015-01-09 Thread Marko Rauhamaa
Chris Angelico : > I'd have to explicitly check "if self.socket is None:". That is the only way in Python. Wrong: return f() or g() or h() Right: rv = f() if rv is not None: return rv rv = g() if rv is not None: return rv return h() > I'm not advocatin

Re: Why do the URLs of posts here change?

2015-01-09 Thread Skip Montanaro
On Fri, Jan 9, 2015 at 8:09 AM, Rustom Mody wrote: > Theres a new app/service that should solve your problem: > Its from google... and called groups > It solves one problem (moving archive URLs) by, I think, ignoring the other (archive posts which should really be removed). Skip -- https://ma

Re: Why do the URLs of posts here change?

2015-01-09 Thread Rustom Mody
On Friday, January 9, 2015 at 4:26:58 PM UTC+5:30, Steven D'Aprano wrote: > I have come across this in the past, but today it annoyed me enough that I'm > asking for an explanation. > > Posts on this newsgroup/mailing list are archived on the web, but the URLs > seem to change, which leaves dead l

Begginer Question , what i need for web app and site

2015-01-09 Thread meiry242
Hello all coming from java and c++ now going with python what setup do i need to run full python stack for web application . what i need is web framework and back-end . what usually be in the java world tomcat and servlets or jsp and pure java backend for processing data . what will be the Equiv

Non-unique dirs in sys.path

2015-01-09 Thread Gisle Vanem
I'm having some trouble understanding why my Python 2.7.9 has the '%PYTHONHOME%\lib\site-packages' listed multiple times. I cooked up this .bat file to demonstrate the issue: @echo off setlocal set PYTHONPATH= python -c "import sys; [sys.stdout.write('%%s\n' %% p) for (i,p) in enumerate(

Re: Comparisons and sorting of a numeric class....

2015-01-09 Thread Chris Angelico
On Fri, Jan 9, 2015 at 11:27 PM, Steven D'Aprano wrote: > Chris Kaynor wrote: > >> Lately, I've been doing quite a bit of work in lua, and many times have >> wished that empty strings, tables, and 0 acted "falsey", but at the same >> time, previously working in Python, there were plenty of times I

Re: Decimals and other numbers

2015-01-09 Thread Chris Angelico
On Fri, Jan 9, 2015 at 11:24 PM, Steven D'Aprano wrote: >> 5 * 0 * 0 * 0 * 0 = 0 > > Where did the 5 come from? > > You're effectively saying that 0**0 becomes 5*0**0, then cancelling the 0**0 > because they're all zeroes and so don't matter, leaving 5. And that simply > doesn't work. If it did wo

ANN: eGenix pyOpenSSL Distribution 0.13.7

2015-01-09 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.7 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface for Op

Re: Comparisons and sorting of a numeric class....

2015-01-09 Thread Steven D'Aprano
Chris Kaynor wrote: > Lately, I've been doing quite a bit of work in lua, and many times have > wished that empty strings, tables, and 0 acted "falsey", but at the same > time, previously working in Python, there were plenty of times I wished > they acted "truthy". It merely depends on what algori

Re: Why do the URLs of posts here change?

2015-01-09 Thread Steven D'Aprano
Skip Montanaro wrote: >> Posts on this newsgroup/mailing list are archived on the web, but the >> URLs seem to change, which leaves dead links if you search for things. [...] > That all said, I don't know if Mailman 3 (or some other archiver than > pipermail) will improve on this problem. I sugges

Re: Decimals and other numbers

2015-01-09 Thread Steven D'Aprano
I want to emphasis that I'm not really arguing that 0**0 should evaluate as 0. That's probably the least useful thing we can have out of the four possibilities: - return 1 - return NAN - raise an exception - return 0 But in the spirit of the Devil's Advocate, I mentioned that there was an argumen

Re: Why do the URLs of posts here change?

2015-01-09 Thread Peter Otten
Steven D'Aprano wrote: > I have come across this in the past, but today it annoyed me enough that > I'm asking for an explanation. > > Posts on this newsgroup/mailing list are archived on the web, but the URLs > seem to change, which leaves dead links if you search for things. > > For example, t

Re: Why do the URLs of posts here change?

2015-01-09 Thread Skip Montanaro
> Posts on this newsgroup/mailing list are archived on the web, but the URLs > seem to change, which leaves dead links if you search for things. Steven, It's a known issue, but one which appears to be somewhat unavoidable, at least in Mailman 2.x. The problem is that every now and then, postmas..

hello please can you help me with the below problem am facing

2015-01-09 Thread mubarak idris
Please how can I make an .exe executable app out of my python script easily -- https://mail.python.org/mailman/listinfo/python-list

Re: Announce: PyPrimes 0.2.1a

2015-01-09 Thread alister
On Fri, 09 Jan 2015 22:01:38 +1100, Ben Finney wrote: > alister writes: > >> why not simply cheat & call it V 0.2.3 :-) it is not as if there is any >> regulation concerning what can & cannot constitute a minor release it >> is all at your own discretion. > > Not a regulation, but a convention

Re: Announce: PyPrimes 0.2.1a

2015-01-09 Thread Ben Finney
alister writes: > why not simply cheat & call it V 0.2.3 :-) it is not as if there is > any regulation concerning what can & cannot constitute a minor release > it is all at your own discretion. Not a regulation, but a convention which it is good etiquette to follow http://semver.org/>. Version

Re: Decimals and other numbers

2015-01-09 Thread Steven D'Aprano
Marko Rauhamaa wrote: > Steven D'Aprano : > >> mathematicians with a pragmatic bent > > You shouldn't call engineers and scientists mathematicians ("with a > pragmatic bent"). Rigor is an absolute requirement for any mathematics. I wasn't referring to engineers, scientists, short-order cooks or

Why do the URLs of posts here change?

2015-01-09 Thread Steven D'Aprano
I have come across this in the past, but today it annoyed me enough that I'm asking for an explanation. Posts on this newsgroup/mailing list are archived on the web, but the URLs seem to change, which leaves dead links if you search for things. For example, today I searched for a quote about floa

PythonFOSDEM 2015 and Plush Snake

2015-01-09 Thread Stéphane Wirtel
Hi all, I am really happy to announce we found a correct plush snake for Python. There is a survey and a post about this plush: http://pythonfosdem.tumblr.com/post/107584468521/survey-will-you-be-interested-by-a-plush-snake If you come at PythonFOSDEM 2015 and you think you will buy this snak

Re: Decimals and other numbers

2015-01-09 Thread Chris Angelico
On Fri, Jan 9, 2015 at 9:20 PM, Steven D'Aprano wrote: > On the basis that m**n means m multiplied by itself n times: > > 5**4 = 5*5*5*5 = 625 > > that gives us: > > 0**0 = zero multiplied by itself zero times. > > You can multiply 0 by any number you like, and the answer will always be 0, > not 1

Re: Decimals and other numbers

2015-01-09 Thread Steven D'Aprano
I think we're in violent agreement here, nevertheless I think you're right for the wrong reasons. See below... Devin Jeanpierre wrote: > On Fri, Jan 9, 2015 at 12:49 AM, Steven D'Aprano > wrote: >> Devin Jeanpierre wrote: >> >>> On Thu, Jan 8, 2015 at 6:43 PM, Dave Angel wrote: What you d

Re: Decimals and other numbers

2015-01-09 Thread Marko Rauhamaa
Steven D'Aprano : > Devin Jeanpierre wrote: > No you can't -- that would make arithmetic inconsistent. 0**1 is > perfectly well defined as 0 however you look at it: You *could* leave 0**1 undefined. You *could* leave 7+0 undefined. However, that would make mathematical proofs more complex as they

Re: Decimals and other numbers

2015-01-09 Thread Marko Rauhamaa
Steven D'Aprano : > mathematicians with a pragmatic bent You shouldn't call engineers and scientists mathematicians ("with a pragmatic bent"). Rigor is an absolute requirement for any mathematics. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Decimals and other numbers

2015-01-09 Thread Marko Rauhamaa
Chris Angelico : > I'm not a mathematical expert, so I don't quite 'get' this. How does > this justify 0**0 being equal to 0.5? Many operations like this are defined in terms of some very strong argument of uniqueness. Ultimately, the key point is safety in mathematical deductions. One minimal re

Re: py2c - an open source Python to C/C++ is looking for developers

2015-01-09 Thread sirak2010
On Monday, July 30, 2012 at 6:27:04 AM UTC-7, Ramchandra Apte wrote: > I created py2c ( http://code.google.com/p/py2c )- an open source Python to > C/C++ translator! > py2c is looking for developers! > To join create a posting in the py2c-discuss Google Group or email me! > Thanks > PS:I hope this

Re: Decimals and other numbers

2015-01-09 Thread Devin Jeanpierre
On Fri, Jan 9, 2015 at 12:58 AM, Devin Jeanpierre wrote: >> Arguably, *integer* 0**0 could be zero, on the basis that you can't take >> limits of integer-valued quantities, and zero times itself zero times >> surely has to be zero. I should have responded in more detail here, sorry. If you aren'

Re: Announce: PyPrimes 0.2.1a

2015-01-09 Thread alister
On Fri, 09 Jan 2015 11:50:26 +1100, Chris Angelico wrote: > On Fri, Jan 9, 2015 at 11:41 AM, Steven D'Aprano > wrote: >> "oh, pip did the wrong thing again? you can fix that by standing on one >> leg, >> sacrificing a goat to the Great Old Dark Ones, deleting these files, or >> possibly some othe

Re: Decimals and other numbers

2015-01-09 Thread Jussi Piitulainen
Devin Jeanpierre writes: [...] > domain of the natural numbers. Knuth says that thought of > combinatorially on the naturals, x**y counts the number of mappings > from a set of x values to a set of y values. It's the other way around, of course: from a set of y values to a set of x values. Whi

Re: Decimals and other numbers

2015-01-09 Thread Devin Jeanpierre
On Fri, Jan 9, 2015 at 12:49 AM, Steven D'Aprano wrote: > Devin Jeanpierre wrote: > >> On Thu, Jan 8, 2015 at 6:43 PM, Dave Angel wrote: >>> What you don't say is which behavior you actually expected. Since 0**0 >>> is undefined mathematically, I'd expect either an exception or a NAN >>> result.

Re: Decimals and other numbers

2015-01-09 Thread Devin Jeanpierre
Marko, your argument is "this function x**y(a, x) must be continuous on [0, inf), and to be continuous at 0, 0**0 must be a". Since there are many possible values of a, this is not a "justification", this is a proof by contradiction that the premise was faulty: x**y(a, x) doesn't have to be continu

Re: Decimals and other numbers

2015-01-09 Thread Steven D'Aprano
Devin Jeanpierre wrote: > On Thu, Jan 8, 2015 at 6:43 PM, Dave Angel wrote: >> What you don't say is which behavior you actually expected. Since 0**0 >> is undefined mathematically, I'd expect either an exception or a NAN >> result. > > It can be undefined, if you choose for it to be. You can a

Re: Array of hash table

2015-01-09 Thread Peter Otten
jyoti690sa...@gmail.com wrote: > Hello, > >Can any one tell me how to create >graph={ > "nodes": [ > { > "id": "n0", > "label": "A node", > "x": 0, > "y": 0, > "size": 3 > }, > { > "id": "n1", > "label": "Another node", > "x":