Dan Sommers wrote:
> On Tue, 27 Jan 2015 11:11:45 +1100, Steven D'Aprano wrote:
>
>> random...@fastmail.us wrote:
>
>>> (header files in the 1970s didn't even actually include function
>>> signature information) - which did not even participate in
>>> compilation at all.
>
>> If C compilers did
On Mon, 26 Jan 2015 17:10:18 -0800, Rick Johnson wrote:
> On Monday, January 26, 2015 at 6:12:00 PM UTC-6, Steven D'Aprano wrote:
>
>> Stub files are a second-rate solution for the problem of annotating
>> functions where you are unable (or unwilling) to annotate the source
>> code directly. They
On Tue, Jan 27, 2015 at 4:17 PM, Rehab Habeeb
wrote:
> Hi there python staff
> does python support arabic language for texts ? and what to do if it support
> it?
> i wrote hello in Arabic using codeskulptor and the powershell just for
> testing and the same error appeared( a sytanx error in unicod
Hi there python staff
does python support arabic language for texts ? and what to do if it
support it?
i wrote hello in Arabic using codeskulptor and the powershell just for
testing and the same error appeared( a sytanx error in unicode)!!
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, January 24, 2015 at 6:38:50 PM UTC-6, Denis McMahon wrote:
> Observations:
>
> a) There is no need to import array, you are only using a list.
I'm just pondering here... (and pinky, i'm looking at you!),
but there "may" be a good excuse for "import array". I have a
feeling it's mere
On Mon, Jan 26, 2015 at 4:47 PM, Andrew Robinson
wrote:
> Hmmm That's not much different than the tuple object I made as a
> container and which Ian complained about. In fact, you did overload the
> comparison operators, just like I did...
Yeah, I know I said I was done with this thread, bu
On Monday, January 26, 2015 at 6:12:00 PM UTC-6, Steven D'Aprano wrote:
> Stub files are a second-rate solution for the problem of
> annotating functions where you are unable (or unwilling)
> to annotate the source code directly. They suffer from
> similar problems:
>
> - you have to manage the st
On Tue, 27 Jan 2015 11:11:45 +1100, Steven D'Aprano wrote:
> random...@fastmail.us wrote:
>> (header files in the 1970s didn't even actually include function
>> signature information) - which did not even participate in
>> compilation at all.
> If C compilers didn't use the header files, what we
BartC wrote:
> how do you represent a raise of 10% exactly if
> not with binary floating point?
In Python today, the best solution is probably to use Decimals:
from decimal import Decimal
raise = Decimal("0.1")
But the traditional solution is to track money in cents, or a fixed fraction
of a
random...@fastmail.us wrote:
> On Thu, Jan 22, 2015, at 23:23, Steven D'Aprano wrote:
>> Rick Johnson wrote:
>>
>> > The solution is move the type
>> > hinting syntax completely out of the source file and into
>> > another file -- think of it as a "Python Type Hinting Header
>> > File".
>>
>> Th
Hi, Rob.
Sorry I'm so slow in getting back to you there's too much to read
and I can't catch up with the backlog. But I wanted to reply to you, at
least as I think you made some very good points that make more sense to
me than other people's replies.
On 01/15/2015 09:54 AM, Rob Gaddi wro
On 26Jan2015 13:10, varun...@gmail.com wrote:
Thanks a lot Mark but that would be a bit trivial. How can I run the same file
multiple times? Or if I need to run two commands:
srva@hades:~$ python NFV_nw_eu_v3_14_1_15.py --output eu_v3_14_1_15 --demand
demands_v3_21_1_15.xml --xml nobel-eu.xml
On Jan 26, 2015 6:42 AM, "Andrew Robinson" wrote:
> ...
If you're going to descend into insults and name-calling, then I'm not
going to waste any more of my time on this thread. The restriction on
inheriting from bool isn't likely to change. There have been several
suggestions as to how you can d
Thanks a lot Mark but that would be a bit trivial. How can I run the same file
multiple times? Or if I need to run two commands:
srva@hades:~$ python NFV_nw_eu_v3_14_1_15.py --output eu_v3_14_1_15 --demand
demands_v3_21_1_15.xml --xml nobel-eu.xml
srva@hades:~$ python NFV_v3_7_10_14.py -l log --
On 26/01/2015 19:52, varun...@gmail.com wrote:
Hello Everyone,
I am running a python script as of now and I have to change three global values
repeatedly. I'm tired of doing this manually. SO, I was wondering if there is a
way to run a python command repeatedly. In my case, the command would b
Hi Mark !
I hope you are well, and haven't been injured falling out of your chair
laughing.
There are probably 12 to 14 emails that I haven't been able to read in
my inbox from the python list on the subject of this 'drivel', because I
have a real life besides the semi-comedy act that goes on h
On 01/23/2015 04:57 PM, Chris Angelico wrote:
> On Sat, Jan 24, 2015 at 9:51 AM, Tim Daneliuk wrote:
>> On 01/21/2015 05:55 PM, Chris Angelico wrote:
>>> On Thu, Jan 22, 2015 at 10:37 AM, Tim Daneliuk
>>> wrote:
I find these kinds of discussions sort of silly. Once there is a critical
Hello Everyone,
I am running a python script as of now and I have to change three global values
repeatedly. I'm tired of doing this manually. SO, I was wondering if there is a
way to run a python command repeatedly. In my case, the command would be
srva@hades:~$ python NFV_v3_7_10_14.py -l log
On Mon, Jan 26, 2015 at 11:23 AM, Ian Kelly wrote:
> $ python3 -m timeit 't = (1000, 2000, 3000)'
> 1 loops, best of 3: 0.0147 usec per loop
> $ python3 -m timeit 't = [1000, 2000, 3000]'
> 1000 loops, best of 3: 0.0678 usec per loop
> $ python3 -m timeit 't = tuple(range(1))'
> 10
On Mon, Jan 26, 2015 at 10:18 AM, Mark Lawrence wrote:
> IIRC, and probably from this list, creating tuples is way faster than
> creating lists, but accessing items is slower. Can anybody confirm this for
> us?
The first seems to be true as long as the tuples are small.
$ python3 -m timeit 't =
On Saturday, January 24, 2015 at 4:16:27 PM UTC-8, Salem Alqahtani wrote:
> Hi Guys,
>
> I just joined the group and I hope that I can help and be active.
>
> I have a question about python. I wrote a code on python 2.7 and I want to
> choose from the list of names that I provide n!. I execute t
On 01/26/2015 06:32 AM, Norah Jones wrote:
> Now my problem is the HTTP request which to be sent must go through
> AF_UNIX socket.
The Python Twisted framework may be of use to you. It's got a very
steep learning curve, but it's fairly easy to change the underlying byte
transport for any protoco
On 26/01/2015 16:29, Jussi Piitulainen wrote:
I've used tuples to convey the intention of immutability, as opposed
to using lists. For all I know, collecting a generator (from groupby)
into a tuple might be slower than collecting it into a list. I have no
intention to measure this. The programs
[Reposting. First attempt went direct to poster, perhaps via email, not
sure why as I don't have a button to do that. If this does the same then
please ignore.]
On 23/01/2015 10:59, Steven D'Aprano wrote:
> Chris Angelico wrote:
>
>> On Fri, Jan 23, 2015 at 1:16 AM, Steven D'Aprano
>> wrote:
On 26/01/2015 13:38, Andrew Robinson wrote:
*plonk*
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
Ian Kelly writes:
> On Mon, Jan 26, 2015 at 8:50 AM, Adam Funk wrote:
> > On 2015-01-26, Peter Otten wrote:
> >
> >> Adam Funk wrote:
> >>
> >>> On 2015-01-09, Ned Batchelder wrote:
> for b in options.bar or ():
> do_stuff(b)
> >>>
> >>> Do you mean "for b in options.bar or
On Mon, Jan 26, 2015 at 8:50 AM, Adam Funk wrote:
> On 2015-01-26, Peter Otten wrote:
>
>> Adam Funk wrote:
>>
>>> On 2015-01-09, Ned Batchelder wrote:
for b in options.bar or ():
do_stuff(b)
>>>
>>> Do you mean "for b in options.bar or []:" ?
>>
>> Doesn't matter; in the c
On 2015-01-26, Peter Otten wrote:
> Adam Funk wrote:
>
>> On 2015-01-09, Ned Batchelder wrote:
>>
>>> 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
On Thu, Jan 22, 2015, at 23:23, Steven D'Aprano wrote:
> Rick Johnson wrote:
>
> > The solution is move the type
> > hinting syntax completely out of the source file and into
> > another file -- think of it as a "Python Type Hinting Header
> > File".
>
> The 1970s called, they want their bad idea
Hi all,
This week-end is FOSDEM and especially the PythonFOSDEM 2015,
PythonFOSDEM will take place in Brussels, in Belgium, in Europe.
If you don't know FOSDEM, here is the site https://fosdem.org/2015/
About the PythonFOSDEM, the site http://www.python-fosdem.org/
The last blog post with som
Norah Jones :
> But this cannot work since normal socket will not work and thus i
> thought of `asyncore` module in python. To use asyncore module again i
> will have to subclass asyncore.dispatcher. This class also contains
> connect() method.
>
> Another problem is I don't know how asyncore modu
Adam Funk wrote:
> On 2015-01-09, Ned Batchelder wrote:
>
>> 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)
On 2015-01-09, Ned Batchelder wrote:
> 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
On 2015-01-09, Wolfgang Maier wrote:
> 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 = arg
Original Message
Subject:Re: Comparisons and sorting of a numeric class
Date: Mon, 26 Jan 2015 05:38:22 -0800
From: Andrew Robinson
To: Steven D'Aprano
On 01/24/2015 12:27 AM, Steven D'Aprano wrote:
Andrew Robinson wrote:
But let me explain a bit mo
Hi,
The problem description:
There are set of processes running on my system say `process_set_1`. Build a
process agent which runs an `asynchronous` socket listening to incoming
requests from process_set_1. Each process sends an `id`. The agent stores these
ids in a dictionary and sends respo
On 24/01/2015 15:09, Mario Figueiredo wrote:
>def myfunction(arg1, arg2):
> """
> Normal docstring.
> @typehint: (str, int) -> bool"""
> return True
>
>One of the problems with this is that it put the information about
>parameters far away from the parameter list itself.
Then mo
On 24/01/2015 13:43, Steven D'Aprano wrote:
Mario Figueiredo wrote:
> class Sub:
> pass
>
> foo = Sub()
>
> Sub.__bases__
> foo.__bases__
>
>The last statement originates the following error:
>
> AttributeError: 'Sub' object has no attribute '
On 26/01/2015 00:32, Ben Finney wrote:
Johannes Bauer writes:
So, I would like to ask if you have a Pythonic approach to
backtracking problems? If so, I'd love to hear your solutions!
I'm not aware of what the problem is. “Back-tracking” doesn't have a
general meaning I recognise beyond rand
39 matches
Mail list logo