On Sunday, January 31, 2016 at 9:15:38 PM UTC-6, Chris Angelico wrote:
> That said, though, I would GREATLY prefer Rick to post
> less provocatively.
I'll admit that my tone can "sometimes" be acerbic, but
it's not like i was attacking someone for *NO* justifiable
reason, in fact, my response was
On Sunday, January 31, 2016 at 9:35:17 PM UTC-6, MRAB wrote:
> In [jmf's] defence, he _was_ the one who drew attention to
> the unexpected slowness of the FSR under certain
> circumstances in the Windows build of Python 3.3, albeit
> in a rather over-dramatized way.
Thanks MRAB. You and Terry may
Hello,
>http://www.barnesandnoble.com/w/perl-to-python-migration-martin-c-brown/1004847881?ean=9780201734881
>
>Given that this was published in 2001, surely it is time for a
>second edition.
How many times do you think somebody migrates from Perl to Python?!
;)
-Martin
P.S. I was amused
On Jan 29, 2016 6:51 AM, "Dennis Lee Bieber" wrote:
>
>
http://www.barnesandnoble.com/w/perl-to-python-migration-martin-c-brown/1004847881?ean=9780201734881
Given that this was published in 2001, surely it is time for a second
edition.
--
https://mail.python.org/mailman/listinfo/python-list
On 2016-02-01 03:15:10, "Chris Angelico" wrote:
On Mon, Feb 1, 2016 at 1:59 PM, Rustom Mody
wrote:
On Saturday, January 30, 2016 at 3:57:28 PM UTC+5:30, wxjmf wrote:
Python 3.5.1 is still suffering from the same buggy
behaviour as in Python 3.0 .
is banned
whereas this is not:
On
On Sunday, January 31, 2016 at 11:15:50 PM UTC+5:30, Paul Rubin wrote:
> Rustom Mody writes:
> > I would guess it needs more recoding than explicit compilation!
> > Maybe something like http://www.colm.net/open-source/ragel/
> > Unfortunately no python binding so far :-(
>
> Neat, that looks kind
On Monday, February 1, 2016 at 8:45:38 AM UTC+5:30, Chris Angelico wrote:
> There are a lot of people here who post good content but phrase things
> poorly. And everyone has a bad day. (Terry Reedy, I'm hoping this was
> just a bad day - there were several rather caustic posts from you.
> Sorry to
On Mon, Feb 1, 2016 at 1:59 PM, Rustom Mody wrote:
> On Saturday, January 30, 2016 at 3:57:28 PM UTC+5:30, wxjmf wrote:
>
>> Python 3.5.1 is still suffering from the same buggy
>> behaviour as in Python 3.0 .
>
> is banned
>
> whereas this is not:
>
> On Saturday, January 30, 2016 at 3:01:09 AM UT
On Monday, February 1, 2016 at 5:22:22 AM UTC+5:30, Terry Reedy wrote:
> On 1/31/2016 5:34 PM, Fillmore wrote:
> > On 01/30/2016 05:26 AM, wxjmfauth wrote:
> >
> >>> Python 2 vs python 3 is anything but "solved".
> >> Python 3.5.1 is still suffering from the same buggy
> >> behaviour as in Python 3
On 1/31/2016 5:34 PM, Fillmore wrote:
On 01/30/2016 05:26 AM, wxjmfa...@gmail.com wrote:
Python 2 vs python 3 is anything but "solved".
Python 3.5.1 is still suffering from the same buggy
behaviour as in Python 3.0 .
Can you elaborate?
Please do not propagate jmf's repeated trolls to pytho
On Mon, Feb 1, 2016 at 9:34 AM, Fillmore wrote:
> On 01/30/2016 05:26 AM, wxjmfa...@gmail.com wrote:
>
>>> Python 2 vs python 3 is anything but "solved".
>>
>>
>>
>> Python 3.5.1 is still suffering from the same buggy
>> behaviour as in Python 3.0 .
>
>
>
> Can you elaborate?
This is jmf. His pos
On 01/30/2016 05:26 AM, wxjmfa...@gmail.com wrote:
Python 2 vs python 3 is anything but "solved".
Python 3.5.1 is still suffering from the same buggy
behaviour as in Python 3.0 .
Can you elaborate?
--
https://mail.python.org/mailman/listinfo/python-list
On 01/31/2016 03:34 PM, Fillmore wrote:
> On 01/30/2016 05:26 AM, wxjmfa...@gmail.com wrote:
>
>>> Python 2 vs python 3 is anything but "solved".
>>
>>
>> Python 3.5.1 is still suffering from the same buggy
>> behaviour as in Python 3.0 .
> Can you elaborate?
Sad to say jmf is a long-time troll o
On 31Jan2016 09:49, Paul Rubin wrote:
Cameron Simpson writes:
Adzapper. It has many many regexps matching URLs. (Actually a more
globlike syntax, but it gets turned into a regexp.) You plug it into
your squid proxy.
Oh cool, is that out there in circulation?
Yes:
http://adzapper.sourcefo
Cameron Simpson writes:
> Adzapper. It has many many regexps matching URLs. (Actually a more
> globlike syntax, but it gets turned into a regexp.) You plug it into
> your squid proxy.
Oh cool, is that out there in circulation?
It sounds like the approach of merging all the regexes into one and
c
Rustom Mody writes:
> I would guess it needs more recoding than explicit compilation!
> Maybe something like http://www.colm.net/open-source/ragel/
> Unfortunately no python binding so far :-(
Neat, that looks kind of like lex/flex but with more backends.
--
https://mail.python.org/mailman/listi
On 1/30/2016 10:22 PM, Rustom Mody wrote:
On Sunday, January 31, 2016 at 7:27:06 AM UTC+5:30, Steven D'Aprano wrote:
On Sunday 31 January 2016 09:18, Gregory Ewing wrote:
Correct. The re module keeps a cache of the last N regexes used, for some
value of N (possibly 10?) so for casual use ther
True...
$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re._MAXCACHE
100
But 100 is still large enough that for most normal users/uses re-compilation is
pointless.
--
On 30Jan2016 19:53, rusi wrote:
On Sunday, January 31, 2016 at 9:18:31 AM UTC+5:30, Cameron Simpson wrote:
On 30Jan2016 19:22, rusi wrote:
>Have you ever seen a program that uses 512 re's?
>I havent :-)
I have. I've got one right here. It happens to be in perl, but it has been in
need of a rec
On 31Jan2016 20:23, Steven D'Aprano wrote:
On Sun, 31 Jan 2016 02:48 pm, Cameron Simpson wrote:
I have. I've got one right here. It happens to be in perl, but it has been
in need of a recode in Python for a long time. It has about 3000 regexps.
Wow. What's the code do?
Adzapper. It has many
On Sun, 31 Jan 2016 02:48 pm, Cameron Simpson wrote:
> I have. I've got one right here. It happens to be in perl, but it has been
> in need of a recode in Python for a long time. It has about 3000 regexps.
Wow. What's the code do?
--
Steven
--
https://mail.python.org/mailman/listinfo/python-
On 30Jan2016 19:22, rusi wrote:
Python 3.4.3+ (default, Oct 14 2015, 16:03:50)
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
python.el: native completion setup loaded
import re
re._MAXCACHE
512
Have you ever seen a program that uses 512
On 2016-01-31 01:56:51, "Steven D'Aprano"
wrote:
On Sunday 31 January 2016 09:18, Gregory Ewing wrote:
Rustom Mody wrote:
1. One can use string-re's instead of compiled re's
And I gather that string REs are compiled on first use and
cached, so you don't lose much by using them most of
On Sunday, January 31, 2016 at 9:18:31 AM UTC+5:30, Cameron Simpson wrote:
> On 30Jan2016 19:22, rusi wrote:
> >Python 3.4.3+ (default, Oct 14 2015, 16:03:50)
> >[GCC 5.2.1 20151010] on linux
> >Type "help", "copyright", "credits" or "license" for more information.
> python.el: native completi
On Sunday, January 31, 2016 at 7:27:06 AM UTC+5:30, Steven D'Aprano wrote:
> On Sunday 31 January 2016 09:18, Gregory Ewing wrote:
>
> > Rustom Mody wrote:
> >> 1. One can use string-re's instead of compiled re's
> >
> > And I gather that string REs are compiled on first use and
> > cached, so yo
On Sunday 31 January 2016 09:18, Gregory Ewing wrote:
> Rustom Mody wrote:
>> 1. One can use string-re's instead of compiled re's
>
> And I gather that string REs are compiled on first use and
> cached, so you don't lose much by using them most of the
> time.
Correct. The re module keeps a cache
On Friday, January 29, 2016 at 9:38:23 PM UTC-6, Rustom Mody wrote:
> JustForTheRecord[1]: Rick is someone who I sometimes agree with...
Thanks for reacting in a rational, cool-headed manner.
Many folks, especially the new members of this group, may
not understand *WHY* i react so passionately w
Rustom Mody wrote:
1. One can use string-re's instead of compiled re's
And I gather that string REs are compiled on first use and
cached, so you don't lose much by using them most of the
time.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On 29.01.2016 23:49, Ben Finney wrote:
"Sven R. Kunze" writes:
On 29.01.2016 01:01, Fillmore wrote:
How was the Python 2.7 vs Python 3.X solved? which version should I
go for?
Python 3 is the new and better one.
More importantly: Python 2 will never improve; Python 3 is the only one
that is
On Sat, 30 Jan 2016 09:47 am, Ben Finney wrote:
> Steven D'Aprano writes:
>
>> You should have started with the official tutorial:
>>
>> https://docs.python.org/2/tutorial/
>
> And these days the default recommendation should be to start with the
> official tutorial for the current stable versi
On 01/28/2016 04:01 PM, Fillmore wrote:
I learned myself Perl as a scripting language over two decades ago. All through
this time, I
would revert to it from time to time whenever I needed some text manipulation
and data analysis
script.
My problem? maybe I am stupid, but each time I have to g
On Saturday, January 30, 2016 at 3:01:09 AM UTC+5:30, Rick Johnson wrote:
> On Friday, January 29, 2016 at 6:21:21 AM UTC-6, Ulli Horlacher wrote:
> > I nearly gave up with Python at the very beginning before
> > I realised that OO-programming is optional in Python! :-)
> > Most tutorials I found s
On Sat, Jan 30, 2016 at 2:08 PM, Terry Reedy wrote:
> On 1/29/2016 3:51 PM, Chris Angelico wrote:
>>
>> On Sat, Jan 30, 2016 at 7:42 AM, Fillmore
>> wrote:
>
>
>>> - Is there a good IDE that can be used for debugging? all free IDEs for
>>> Perl
>>> suck and it would be awesome if Python was bette
On 1/29/2016 3:51 PM, Chris Angelico wrote:
On Sat, Jan 30, 2016 at 7:42 AM, Fillmore wrote:
- Is there a good IDE that can be used for debugging? all free IDEs for Perl
suck and it would be awesome if Python was better than that.
Debugging Python code is generally easy enough without an I
On Saturday, January 30, 2016 at 3:01:09 AM UTC+5:30, Rick Johnson wrote:
> On Friday, January 29, 2016 at 6:21:21 AM UTC-6, Ulli Horlacher wrote:
> > I nearly gave up with Python at the very beginning before
> > I realised that OO-programming is optional in Python! :-)
> > Most tutorials I found s
Fillmore writes:
> On 1/29/2016 4:30 PM, Rick Johnson wrote:
> > People who are unwilling to "expanding their
> > intellectual horizons" make me sick!!!
>
> did I miss something or is this aggressiveness unjustified?
Indeed it is unjustified. The person to whom you respond is best ignored
(auto
On Friday, January 29, 2016 at 4:50:25 PM UTC-5, Cody Piersall wrote:
> On Fri, Jan 29, 2016 at 2:42 PM, Fillmore
> wrote:
> > I actually have a few followup question.
>
> > - will iNotebook also work in Python 3?
> Yes! And just FYI, it's called they Jupyter Notebook now, but pretty much
> ever
On 29Jan2016 18:12, Steven D'Aprano wrote:
On Fri, 29 Jan 2016 11:25 am, Chris Angelico wrote:
Probably the biggest thing to take note of is the Python object model
- how names and objects and assignment work. It's pretty
straight-forward, but if it's not what you're used to, you'll need to
ge
On 2016-01-30 00:57:10, "Fillmore" wrote:
On 1/29/2016 4:30 PM, Rick Johnson wrote:
People who are unwilling to "expanding their
intellectual horizons" make me sick!!!
did I miss something or is this aggressiveness unjustified?
In the past, he has posted under the name "Ranting Rick", whic
On 1/29/2016 4:30 PM, Rick Johnson wrote:
People who are unwilling to "expanding their
intellectual horizons" make me sick!!!
did I miss something or is this aggressiveness unjustified?
--
https://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
> You should have started with the official tutorial:
>
> https://docs.python.org/2/tutorial/
And these days the default recommendation should be to start with the
official tutorial for the current stable version of the Python language,
Python 3 https://docs.python.org/3/
On Friday, January 29, 2016 at 2:49:24 PM UTC-6, sohca...@gmail.com wrote:
> I'm convinced that anyone who actually prefers Perl's
> syntax over Python is suffering from Stockholm Syndrome.
>
> [...]
>
> Readability counts. I'd say readability is one of the
> most important features of a language
sohcahto...@gmail.com wrote:
On Thursday, January 28, 2016 at 6:34:34 PM UTC-8, Chris Angelico wrote:
https://xkcd.com/353/
I have this comic pinned to the outside wall of my cubicle at work, where I
use Python for 98% of my work.
Another good thing to pin to your wall:
http://www.gentooge
On Fri, Jan 29, 2016 at 2:42 PM, Fillmore
wrote:
> I actually have a few followup question.
> - will iNotebook also work in Python 3?
Yes! And just FYI, it's called they Jupyter Notebook now, but pretty much
everyone still (colloquially) calls it the IPython Notebook so you're in
good company.
On Sat, Jan 30, 2016 at 7:41 AM, wrote:
> It's funny...when I first started using Python, I hated it because it held
> your hand and made everything too easy. I was a major C, C++ and Java
> fanatic. Now, I LOVE Python because it holds your hand and makes everything
> so easy.
>
Exactly.
>
"Sven R. Kunze" writes:
> On 29.01.2016 01:01, Fillmore wrote:
> > How was the Python 2.7 vs Python 3.X solved? which version should I
> > go for?
>
> Python 3 is the new and better one.
More importantly: Python 2 will never improve; Python 3 is the only one
that is actively developed.
--
\
Random832 wrote:
The main source of confusion is that $foo[5] is an element of @foo.
$foo{'x'} is an element of %foo. Both of these have absolutely nothing
to do with $foo.
And this is where Perl seems totally insane to me. Obviously
it knows from the square brackets that foo[5] is referring
to
On Fri, Jan 29, 2016 at 3:42 PM, Fillmore
wrote:
>
> I actually have a few followup question.
>
> - will iNotebook also work in Python 3?
>
> - What version of Python 3 do you recommend I install on Windows?
>
> - Is Python 3 available also for CygWin?
>
> - I use Ubuntu at home. Will I be able t
On Friday, January 29, 2016 at 6:21:21 AM UTC-6, Ulli Horlacher wrote:
> I nearly gave up with Python at the very beginning before
> I realised that OO-programming is optional in Python! :-)
> Most tutorials I found so far makes OO mandatory.
Just more evidence that old dogs are incapable of learn
On Sat, Jan 30, 2016 at 7:42 AM, Fillmore wrote:
> I actually have a few followup question.
>
> - will iNotebook also work in Python 3?
You mean the IPython notebook? Yep!
> - What version of Python 3 do you recommend I install on Windows?
The latest stable - currently, that's 3.5.
> - Is Pyth
On Friday, January 29, 2016 at 1:12:34 AM UTC-8, Ulli Horlacher wrote:
> Steven D'Aprano wrote:
>
> > Every time I make a half-hearted attempt to learn enough Perl syntax to get
> > started, I keep running into the differences between $foo, %foo and @foo
> > and dire warnings about what happens i
On Thursday, January 28, 2016 at 6:34:34 PM UTC-8, Chris Angelico wrote:
> On Fri, Jan 29, 2016 at 1:06 PM, Paul Rubin wrote:
> > Fillmore writes:
> >> I look and Python and it looks so much more clean
> >
> > Yes it is, I forgot everything I knew about Perl shortly after starting
> > to use
I actually have a few followup question.
- will iNotebook also work in Python 3?
- What version of Python 3 do you recommend I install on Windows?
- Is Python 3 available also for CygWin?
- I use Ubuntu at home. Will I be able to install Python 3 with apt-get?
will I need to uninstall previo
+1
On 1/29/2016 10:07 AM, Random832 wrote:
The main source of confusion is that $foo[5] is an element of @foo.
$foo{'x'} is an element of %foo. Both of these have absolutely nothing
to do with $foo.
--
https://mail.python.org/mailman/listinfo/python-list
So many answers. So much wisdom...thank you everyone
On 01/28/2016 07:01 PM, Fillmore wrote:
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
On 29.01.2016 01:01, Fillmore wrote:
I look and Python and it looks so much more clean
add to that that it is the language of choice of data miners...
add to that that iNotebook looks powerful
All true. :)
Does Python have Regexps?
"import re"
https://docs.python.org/3.5/li
On Fri, Jan 29, 2016, at 04:12, Ulli Horlacher wrote:
> Steven D'Aprano wrote:
>
> > Every time I make a half-hearted attempt to learn enough Perl syntax to get
> > started, I keep running into the differences between $foo, %foo and @foo
> > and dire warnings about what happens if you use the wro
James Harris wrote:
> I nearly gave up with Python at the very beginning before I realised not
> to mix tabs and spaces.
I nearly gave up with Python at the very beginning before I realised that
OO-programming is optional in Python! :-)
Most tutorials I found so far makes OO mandatory.
--
Ul
On Fri, 29 Jan 2016 11:21 pm, Ulli Horlacher wrote:
> Most tutorials I found so far makes OO mandatory.
You should have started with the official tutorial:
https://docs.python.org/2/tutorial/
which doesn't get into classes until Chapter 9, after:
- using Python as a calculator;
- numbers, st
On 29/01/2016 09:12, Ulli Horlacher wrote:
Steven D'Aprano wrote:
Every time I make a half-hearted attempt to learn enough Perl syntax to get
started, I keep running into the differences between $foo, %foo and @foo
and dire warnings about what happens if you use the wrong sigil
I have starte
On Fri, Jan 29, 2016 at 6:12 PM, Steven D'Aprano wrote:
> On Fri, 29 Jan 2016 11:25 am, Chris Angelico wrote:
>
>> Probably the biggest thing to take note of is the Python object model
>> - how names and objects and assignment work. It's pretty
>> straight-forward, but if it's not what you're used
Steven D'Aprano wrote:
> Every time I make a half-hearted attempt to learn enough Perl syntax to get
> started, I keep running into the differences between $foo, %foo and @foo
> and dire warnings about what happens if you use the wrong sigil
I have started learning Python several times and surre
Fillmore writes:
> Does Python have Regexps?
Start by importing the re module (as said). Find its documentation at
the following link (together with a list of many other modules that come
standard with Python). Also, once imported to the interactive session,
help(re), dir(re).
https://docs.pytho
On Fri, 29 Jan 2016 11:25 am, Chris Angelico wrote:
> Probably the biggest thing to take note of is the Python object model
> - how names and objects and assignment work. It's pretty
> straight-forward, but if it's not what you're used to, you'll need to
> get your head around it. Here's a good ta
On 01/28/2016 07:34 PM, Chris Angelico wrote:
> On Fri, Jan 29, 2016 at 1:06 PM, Paul Rubin wrote:
>> Fillmore writes:
>>> I look and Python and it looks so much more clean
>>
>> Yes it is, I forgot everything I knew about Perl shortly after starting
>> to use Python.
>
> https://xkcd.com/35
On Thursday, January 28, 2016 at 6:28:25 PM UTC-6, Nathan Hilterbrand wrote:
> Python 2 vs python 3 is anything but "solved". You will hear arguments
> in favor of both. I will not make a suggestion, because I do not have
> on my flame-resistant clothing
Indeed. About the only subject more vol
On Fri, Jan 29, 2016 at 2:23 PM, Rick Johnson
wrote:
> On Thursday, January 28, 2016 at 6:28:25 PM UTC-6, Nathan Hilterbrand wrote:
>> Python 2 vs python 3 is anything but "solved". You will hear arguments
>> in favor of both. I will not make a suggestion, because I do not have
>> on my flame-re
On Fri, Jan 29, 2016 at 11:01 AM, Fillmore wrote:
> Does Python have Regexps?
Yes! Although there are often other ways of doing things, so you don't
*have* to use a regex for everything. But yes, Python has a powerful
regular expression library.
> How was the Python 2.7 vs Python 3.X solved? whi
On Fri, Jan 29, 2016 at 1:06 PM, Paul Rubin wrote:
> Fillmore writes:
>> I look and Python and it looks so much more clean
>
> Yes it is, I forgot everything I knew about Perl shortly after starting
> to use Python.
https://xkcd.com/353/
Particularly the hover text. :)
ChrisA
--
https://m
On Thu, Jan 28, 2016 at 5:01 PM, Fillmore wrote:
>
> I learned myself Perl as a scripting language over two decades ago. All
> through this time, I would revert to it from time to time whenever I needed
> some text manipulation and data analysis script.
>
> My problem? maybe I am stupid, but each
Fillmore writes:
> I look and Python and it looks so much more clean
Yes it is, I forgot everything I knew about Perl shortly after starting
to use Python.
> add to that that it is the language of choice of data miners...
There are a bunch of statistical libraries and that sort of thing but
I learned myself Perl as a scripting language over two decades ago. All
through this time, I would revert to it from time to time whenever I
needed some text manipulation and data analysis script.
My problem? maybe I am stupid, but each time I have to go back and
re-learn the syntax, the got
On 28Jan2016 19:01, Fillmore wrote:
I learned myself Perl as a scripting language over two decades ago. All
through this time, I would revert to it from time to time whenever I needed
some text manipulation and data analysis script.
My problem? maybe I am stupid, but each time I have to go b
On 01/28/2016 07:01 PM, Fillmore wrote:
I learned myself Perl as a scripting language over two decades ago.
All through this time, I would revert to it from time to time whenever
I needed some text manipulation and data analysis script.
My problem? maybe I am stupid, but each time I have t
74 matches
Mail list logo