On Tuesday, December 5, 2017 at 2:28:44 PM UTC+5:30, Lawrence D’Oliveiro wrote:
> On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote:
> >
> > Sounds like your OS file associations are all botched-up ...
>
> Linux doesn’t do “OS file associations”.
From a strict pov thats right
On 12/4/17 10:41 PM, Rick Johnson wrote:
I think we've demonstrated the slicing semantics well.
Indeed. And i never questioned this aspect. I merely wanted
to inform the lurkers that the else-clause was handling a
non-action, and therefore, could be omitted.
Your original statement sounded lik
Ned Batchelder wrote:
[...]
> Your original statement sounded like, "The else clause can
> never be executed,"
No. Of course not. Note that i mentioned _pragmatism_. My
complaint about the else-clause was not that it could
_never_ be executed, my complaint that was that the else-
clause (in Terry
On Tue, 5 Dec 2017 11:31 pm, Rick Johnson wrote:
> Ned Batchelder wrote:
> [...]
>> Your original statement sounded like, "The else clause can
>> never be executed,"
>
> No. Of course not. Note that i mentioned _pragmatism_. My
> complaint about the else-clause was not that it could
> _never_ be
Is there a profiler for Python (2.7 in my case) which recognizes when
a process (or all threads but the profiler's) is blocked on I/O? I'm
using cProfile at the moment, which is fine as far as it goes, but the
program I'm profiling does a fair amount of I/O, so that dominates the
actual time the pr
Sir,
I am b.tech student I would like to learn python. So please send the
python software.
Thanking you sir.
Sent from Mail for Windows 10
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy
wrote:
> Sir,
> I am b.tech student I would like to learn python. So please send the
> python software.
Sorry, we don't send anything. You will have to go get it yourself. -)
Thanking you back.
> T
On Tuesday, December 5, 2017 at 2:58:44 AM UTC-6, Lawrence D'Oliveiro wrote:
> On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote:
> >
> > Sounds like your OS file associations are all botched-up ...
>
> Linux doesn't do "OS file associations".
True. But i'm not convinced that f
On Monday, December 4, 2017 at 4:49:11 AM UTC-5, dhananjays...@gmail.com wrote:
> Respected Sir/Mam,
> I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am
> double click in python program (Dhananjay.py),it is opening in Text Editor by
> Default in Ubuntu.I want to run this pro
I ran into this:
https://stackoverflow.com/questions/27707581/why-does-csv-dictreader-skip-empty-lines
# unlike the basic reader, we prefer not to return blanks,
# because we will typically wind up with a dict full of None
# values
while iterating over two files, which are line-by-line correspond
Go visit python.org to see how to download python for the operating system
you are using. Its free of course
On Tue, Dec 5, 2017 at 11:55 AM, Igor Korot wrote:
> Hi,
>
> On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy
> wrote:
> > Sir,
> > I am b.tech student I would like to learn
On 2017-12-05, Jason wrote:
> I ran into this:
> https://stackoverflow.com/questions/27707581/why-does-csv-dictreader-skip-empty-lines
>
> # unlike the basic reader, we prefer not to return blanks,
> # because we will typically wind up with a dict full of None
> # values
>
> while iterating over t
> And I want to argue that the difference of behavior should be considered a
> bug.
Sorry, that ship has sailed. If you want different behavior,
subclassing DictReader and providing your own next() implementation
should be straightforward. All you need to do is copy the existing
implementation of
After asking here, I found a mailing list post here:
https://mail.python.org/pipermail/distutils-sig/2015-May/026381.html
That post outlines a roadmap for shutting down pythonhosted. Unfortunately, it
seems that they skipped from step 1 to step 5 without bothering with steps 2,
3, & 4.
In any
On 05/12/17 16:55, Igor Korot wrote:
> Hi,
>
> On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy
> wrote:
>> Sir,
>> I am b.tech student I would like to learn python. So please send the
>> python software.
> Sorry, we don't send anything. You will have to go get it yourself. -)
>
Well,
Hi, Tony,
On Tue, Dec 5, 2017 at 11:10 AM, Tony van der Hoff wrote:
> On 05/12/17 16:55, Igor Korot wrote:
>> Hi,
>>
>> On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy
>> wrote:
>>> Sir,
>>> I am b.tech student I would like to learn python. So please send
>>> the python software.
>>
On Tue, 5 Dec 2017 07:58 pm, Lawrence D’Oliveiro wrote:
> On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote:
>>
>> Sounds like your OS file associations are all botched-up ...
>
> Linux doesn’t do “OS file associations”.
Then how does my Linux box know that when I double-cl
On Wed, 6 Dec 2017 04:20 am, Jason wrote:
> I ran into this:
>
https://stackoverflow.com/questions/27707581/why-does-csv-dictreader-skip-empty-lines
>
> # unlike the basic reader, we prefer not to return blanks,
> # because we will typically wind up with a dict full of None
> # values
>
> while
Anyone got a handy copy of Python 3.6 available to test something for me?
What does compile('f"{spam} {eggs}"', '', 'single') return?
What does eval()'ing the above compiled object do? If necessary, you may have
to define spam and eggs first.
Thanks in advance.
--
Steve
“Cheer up,” they said
On 2017-12-06 00:16, Steve D'Aprano wrote:
Anyone got a handy copy of Python 3.6 available to test something for me?
What does compile('f"{spam} {eggs}"', '', 'single') return?
What does eval()'ing the above compiled object do? If necessary, you may have
to define spam and eggs first.
Thanks
On 12/5/17 7:16 PM, Steve D'Aprano wrote:
compile('f"{spam} {eggs}"', '', 'single')
$ python3.6
Python 3.6.3 (default, Oct 4 2017, 06:03:25)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
On Wed, Dec 6, 2017 at 11:16 AM, Steve D'Aprano
wrote:
> Anyone got a handy copy of Python 3.6 available to test something for me?
>
> What does compile('f"{spam} {eggs}"', '', 'single') return?
>
> What does eval()'ing the above compiled object do? If necessary, you may have
> to define spam and
On 2017-12-06 00:06, Steve D'Aprano wrote:
On Wed, 6 Dec 2017 04:20 am, Jason wrote:
I ran into this:
https://stackoverflow.com/questions/27707581/why-does-csv-dictreader-skip-empty-lines
# unlike the basic reader, we prefer not to return blanks,
# because we will typically wind up with a d
On 06/12/2017 00:16, Steve D'Aprano wrote:
Anyone got a handy copy of Python 3.6 available to test something for me?
What does compile('f"{spam} {eggs}"', '', 'single') return?
What does eval()'ing the above compiled object do? If necessary, you may have
to define spam and eggs first.
Thanks
On Wed, Dec 6, 2017 at 11:54 AM, John Pote wrote:
>
> On 06/12/2017 00:16, Steve D'Aprano wrote:
>>
>> Anyone got a handy copy of Python 3.6 available to test something for me?
>>
>> What does compile('f"{spam} {eggs}"', '', 'single') return?
>>
>> What does eval()'ing the above compiled object do
I have a question on my homework. My homework is to write a program in which
the computer simulates the rolling of a die 50
times and then prints
(i). the most frequent side of the die
(ii). the average die value of all rolls.
I wrote the program so it says the most frequent number out of all the
On 2017-12-06 01:33, nick.martinez2--- via Python-list wrote:
I have a question on my homework. My homework is to write a program in which
the computer simulates the rolling of a die 50
times and then prints
(i). the most frequent side of the die
(ii). the average die value of all rolls.
I wrote
Steve D'Aprano wrote:
[...]
> You've already been told that there's no indication or
> reason to believe that it is a non-action. You've already
> been given at least one possible action. It isn't a non-
> action, it is two distinct actions:
>
> - the action you take when the slice is non-empty;
Announcing the immediate availability of Python 3.6.4 release candidate 1
and of Python 3.7.0 alpha 3!
Python 3.6.4rc1 is the first release candidate for Python 3.6.4, the next
maintenance release of Python 3.6. While 3.6.4rc1 is a preview release and,
thus, not intended for production environmen
On Wednesday, December 6, 2017 at 3:10:24 AM UTC+5:30, Igor Korot wrote:
> Hi, Tony,
>
> On Tue, Dec 5, 2017 at 11:10 AM, Tony van der Hoff wrote:
> > On 05/12/17 16:55, Igor Korot wrote:
> >> Hi,
> >>
> >> On Tue, Dec 5, 2017 at 9:10 AM, Jyothiswaroop Reddy wrote:
> >>> Sir,
> >>> I am b
I dont know how these students are selected into b tech stream in India.
they are so dumb. All they know is a to open a program we need to double
click it and it runs.- windoze legacy. most of the time they pay huge
amount to a greedy college and get into tech stream.
Now that Java boom (jobs) is o
On Wed, Dec 6, 2017 at 10:08 AM, km wrote:
> I dont know how these students are selected into b tech stream in India.
> they are so dumb. All they know is a to open a program we need to double
> click it and it runs.
>
> We were all once "dumb". We learnt it because someone Taught us. I'd
rather
import random
def rollDie(num):
sides = {'One':0, 'Two':0,'Three':0,'Four':0,'Five':0,'Six':0}
for i in range(num):
rolls = int(random.randint(1, 6))
if rolls == 1:
sides['One'] += 1
if rolls == 2:
sides['Two'] += 1
if rolls == 3:
Remember that you are wasting time of lakhs of python subscribers by
asking such dumb questions being tech students. You people can Google and
watch movies / songs online and you can't find how to download and install
python ? That's ridiculous!
On Dec 6, 2017 10:15 AM, "Abhiram R" wrote:
>
>
Congrats to all involved! -- H
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Dec 6, 2017 at 4:27 PM, km wrote:
> Remember that you are wasting time of lakhs of python subscribers by
> asking such dumb questions being tech students. You people can Google and
> watch movies / songs online and you can't find how to download and install
> python ? That's ridiculous!
On 12/05/2017 09:27 PM, km wrote:
[snip]
Many things in this world are frustrating, but being hateful will not solve
anything. Please control yourself.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 6 Dec 2017 11:54 am, John Pote wrote:
[...]
> Ran above test file and got,
> >>python36 compiletest.py
> at 0x02120E40, file "", line 1>
>
>
> SPAM scrambled
Thanks everyone, that's what I wanted to see.
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered
On Wed, 6 Dec 2017 11:43 am, MRAB wrote:
> A blank line could be a record if there's only one field and it's empty.
That's technically correct, but if you have only one field, its barely a CSV
file at all.
Given that CSV technically requires at least two fields (in order to have a
separator bet
39 matches
Mail list logo