On Friday, August 9, 2013 9:10:18 PM UTC-4, Steven D'Aprano wrote:
> I am seeking comments on PEP 450, Adding a statistics module to Python's
> standard library:
I think it's a very good idea. Good PEP points, too. I hope it happens.
--
http://mail.python.org/mailman/listinfo/python-list
On 8/14/2013 1:05 PM, random...@fastmail.us wrote:
On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
I'm always and still be suprised by the number of hard coded
'\n' one can find in Python code when the portable (here
win)
os.linesep
'\r\n'
exists.
Because high-level code isn't
On 8/14/2013 12:36 PM, Prasad, Ramit wrote:
chandan kumar wrote:
Is there a way to validate variable values while debugging any python code.
In addition to pdb, I would imagine most Python IDEs would support debugging in
this manner.
Idle also has a debugger. It uses the same bdb base debu
On Wed, Aug 14, 2013 at 10:16 AM, climb65 wrote:
> Hello,
>
> here is a small basic question :
>
> Is it possible to have more than one constructor (__init__ function) in a
> class? For instance, to create an object with 2 different ways? If my
> memory is good, I think that with C++ it is possib
On Wed, Aug 14, 2013 at 6:29 PM, Tim Chase
wrote:
> On 2013-08-14 18:14, Chris Angelico wrote:
>> On Wed, Aug 14, 2013 at 6:05 PM, wrote:
>> > On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
>> >> I'm always and still be suprised by the number of hard coded
>> >> '\n' one can find in
On Wed, Aug 14, 2013 at 12:05 PM, wrote:
> Because high-level code isn't supposed to use the os module directly.
That seems a bit extreme. One would hope that Guido and the rest of
the crew created the os module so people would use it instead of
resorting to other lower level hacks. A quick fi
On 2013-08-14 18:14, Chris Angelico wrote:
> On Wed, Aug 14, 2013 at 6:05 PM, wrote:
> > On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
> >> I'm always and still be suprised by the number of hard coded
> >> '\n' one can find in Python code when the portable (here
> >> win)
> >>
> >> >
On Wed, Aug 14, 2013 at 6:05 PM, wrote:
> On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
>> I'm always and still be suprised by the number of hard coded
>> '\n' one can find in Python code when the portable (here
>> win)
>>
>> >>> os.linesep
>> '\r\n'
>>
>> exists.
>
> Because high-le
On Wed, Aug 14, 2013, at 10:32, wxjmfa...@gmail.com wrote:
> I'm always and still be suprised by the number of hard coded
> '\n' one can find in Python code when the portable (here
> win)
>
> >>> os.linesep
> '\r\n'
>
> exists.
Because high-level code isn't supposed to use the os module directly
chandan kumar wrote:
> Hi ,
>
> Is there a way to validate variable values while debugging any python
> code.Run below example in
> debugging mode and i would like to know the value of c (I know print is an
> option) with any other
> option other than printing.
> In C# or some other tools we c
In <40816fed-38d4-4baa-92cc-c80cd8feb...@googlegroups.com>
englishkevin...@gmail.com writes:
> I know the title doesn't make much sense, but I didnt know how to explain my
> problem.
> Anywho, I've opened a page's source in URLLIB
> starturlsource = starturlopen.read()
> string.find(starturlsou
Hi, I'd like to announce Pyrolite 1.12, a tiny (~60k) pickle and Pyro client
library for
Java and .NET.
Question: "what is a java/.net library doing in this newsgroup?"
Answer 1: This library is meant to connect a Java or .NET program to Python in
a very
simple way, using the Pyro protocol. Pyr
On 14/08/13 15:16, climb65 wrote:
Hello,
here is a small basic question :
Is it possible to have more than one constructor (__init__ function) in a
class? For instance, to create an object with 2 different ways? If my
memory is good, I think that with C++ it is possible.
Thanks for your answer
2013/8/14 climb65
> Hello,
>
> here is a small basic question :
>
> Is it possible to have more than one constructor (__init__ function) in a
> class? For instance, to create an object with 2 different ways? If my
> memory is good, I think that with C++ it is possible.
>
> Thanks for your answer.
Le mercredi 14 août 2013 13:55:23 UTC+2, Joshua Landau a écrit :
> On 14 August 2013 12:45, Peter Otten <__pete...@web.de> wrote:
>
> > Joshua Landau wrote:
>
> >> On 14 August 2013 09:30, Alister wrote:
>
> >>> I would agree with the last statement.
>
> >>> Please write list definitions as li
Awesome, thanks for the detailed response Chris.
On Tue, Aug 13, 2013 at 8:03 AM, Chris Angelico wrote:
> On Tue, Aug 13, 2013 at 12:17 AM, Demian Brecht
> wrote:
>> Hi all,
>>
>> Some work that I'm doing atm is in some serious need of
>> parallelization. As such, I've been digging into the mul
Hello,
here is a small basic question :
Is it possible to have more than one constructor (__init__ function) in a
class? For instance, to create an object with 2 different ways? If my
memory is good, I think that with C++ it is possible.
Thanks for your answer.
--
http://mail.python.org/mailm
On Wed, Aug 14, 2013, at 09:18 AM, Guy Tamir wrote:
> Hi all,
>
> I have a Ubuntu server running NGINX that logs data for me.
> I want to write a python script that reads my customized logs and after
> a little rearrangement save the new data into my DB (postgresql).
>
> The process should run
On Wed, 14 Aug 2013 11:31:01 +0100, Joshua Landau wrote:
> On 14 August 2013 09:30, Alister wrote:
>> On Tue, 13 Aug 2013 22:12:56 -0700, Gary Herron wrote:
>>
>>> On 08/13/2013 09:51 PM, eschneide...@comcast.net wrote:
How can I use the '.split()' method (am I right in calling it a
met
Hi all,
I have a Ubuntu server running NGINX that logs data for me.
I want to write a python script that reads my customized logs and after
a little rearrangement save the new data into my DB (postgresql).
The process should run about every 5 minutes and i'm expecting large chunks of
data on se
You can even use logging module in python to validate the variable values.
You can import the module and use any of the following levels in your
program
import logging
logging.CRITICAL, logging.ERROR, logging.WARNING, logging.INFO,
logging.DEBUG
For more you can refer to,
http://docs.python.or
In article ,
Chris Angelico wrote:
> On Wed, Aug 14, 2013 at 7:59 AM, Joshua Landau wrote:
> > On 14 August 2013 02:20, Gregory Ewing wrote:
> >> Ned Batchelder wrote:
> >>>
> >>> Everyone: this program seems to be a direct and misguided transliteration
> >>> from a bash script.
> >>
> >> Not
On 14 August 2013 13:07, Chris Angelico wrote:
> On Wed, Aug 14, 2013 at 7:59 AM, Joshua Landau wrote:
>>
>> What's wrong with cat? Sure it's superfluous but what makes it *bad*?
>> Personally I often prefer the pipe "cat x | y" form to "x < y"... or
>> "< y x".
>
> What's the use of it, in that
On Wed, Aug 14, 2013 at 7:59 AM, Joshua Landau wrote:
> On 14 August 2013 02:20, Gregory Ewing wrote:
>> Ned Batchelder wrote:
>>>
>>> Everyone: this program seems to be a direct and misguided transliteration
>>> from a bash script.
>>
>> Not a particularly well-written bash script, either --
>>
chandan kumar wrote:
> Hi ,
>
> Is there a way to validate variable values while debugging any python
> code.Run below example in debugging mode and i would like to know the value
> of c (I know print is an option) with any other option other than printing.
> In C# or some other tools we can v
On 14 August 2013 12:45, Peter Otten <__pete...@web.de> wrote:
> Joshua Landau wrote:
>> On 14 August 2013 09:30, Alister wrote:
>>> I would agree with the last statement.
>>> Please write list definitions as lists rather than taking a short-cut to
>>> save a few key presses
>>
>> That's true with
Joshua Landau wrote:
> On 14 August 2013 09:30, Alister wrote:
>> On Tue, 13 Aug 2013 22:12:56 -0700, Gary Herron wrote:
>>
>>> On 08/13/2013 09:51 PM, eschneide...@comcast.net wrote:
How can I use the '.split()' method (am I right in calling it a
method?) without instead of writing eac
Hi Chandan,
Python has built-in module called pdb which can be used for debugging.
Importing it in the right place will be like setting break point in code
and will change the execution to debugging mode. We can use different
debugging commands ((n)ext, (c)ontinue, (s)tep etc) to evaluate through
On 14 August 2013 09:30, Alister wrote:
> On Tue, 13 Aug 2013 22:12:56 -0700, Gary Herron wrote:
>
>> On 08/13/2013 09:51 PM, eschneide...@comcast.net wrote:
>>> How can I use the '.split()' method (am I right in calling it a
>>> method?) without instead of writing each comma between words in the
Hi ,
Is there a way to validate variable values while debugging any python code.Run
below example in debugging mode and i would like to know the value of c (I
know print is an option) with any other option other than printing.
In C# or some other tools we can verify each statement and values. I
On Tue, 13 Aug 2013 22:12:56 -0700, Gary Herron wrote:
> On 08/13/2013 09:51 PM, eschneide...@comcast.net wrote:
>> How can I use the '.split()' method (am I right in calling it a
>> method?) without instead of writing each comma between words in the pie
>> list in the following code? Also, is the
Nobody nowhere.com> writes:
>
> On Tue, 13 Aug 2013 16:10:41 -0700, Jack Bates wrote:
>
> > Is there anything like os.pipe() where you can read/write both ends?
>
> There's socket.socketpair(), but it's only available on Unix.
>
> Windows doesn't have AF_UNIX sockets, and anonymous pipes (like
On Tue, 13 Aug 2013 16:10:41 -0700, Jack Bates wrote:
> Is there anything like os.pipe() where you can read/write both ends?
There's socket.socketpair(), but it's only available on Unix.
Windows doesn't have AF_UNIX sockets, and anonymous pipes (like the ones
created by os.pipe()) aren't bidirec
On Tue, 13 Aug 2013 05:25:34 -0700, rlkling wrote:
> Or, asking another way, are there any python libraries that display images
> to 10 bit monitors as 10 bit images, and not scaled to 8 bit?
This should be possible using PyOpenGL and GLUT, with:
glutInitDisplayString("red=10 green=10 bl
On 14 August 2013 02:20, Gregory Ewing wrote:
> Ned Batchelder wrote:
>>
>> Everyone: this program seems to be a direct and misguided transliteration
>> from a bash script.
>
> Not a particularly well-written bash script, either --
> it's full of superfluous uses of 'cat'.
What's wrong with cat?
35 matches
Mail list logo