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
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
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
>
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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,
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 + : * *
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
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.
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
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
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
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
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.
>
>
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.
--
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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(
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
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
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
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
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
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
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
> 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..
Please how can I make an .exe executable app out of my python script easily
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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'
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
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
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.
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
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
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":
82 matches
Mail list logo