Hi,
We're on Python 2.6 (RHEL based system...) - I don't believe this exposes
FileNotFoundError =(.
Cheers,
Victor
On Monday, 28 October 2013 17:36:05 UTC+11, Chris Angelico wrote:
> On Mon, Oct 28, 2013 at 2:43 PM, Victor Hooi wrote:
>
> > Is it acceptable to use try-except in order to achi
On Mon, Oct 28, 2013 at 5:57 PM, Victor Hooi wrote:
> Hi,
>
> We're on Python 2.6 (RHEL based system...) - I don't believe this exposes
> FileNotFoundError =(.
Ah! I forgot about 2.x, sorry for the nose. Yep, catching OSError
would be the thing to do, then!
ChrisA
--
https://mail.python.org/ma
On Mon, Oct 28, 2013 at 6:01 PM, Chris Angelico wrote:
> Ah! I forgot about 2.x, sorry for the nose. Yep, catching OSError
> would be the thing to do, then!
A "nose", apparently, is what happens when your typing stinks. I meant
"noise", of course. :)
ChrisA
--
https://mail.python.org/mailman/li
On Mon, 28 Oct 2013 18:01:49 +1100, Chris Angelico wrote:
> On Mon, Oct 28, 2013 at 5:57 PM, Victor Hooi
> wrote:
>> Hi,
>>
>> We're on Python 2.6 (RHEL based system...) - I don't believe this
>> exposes FileNotFoundError =(.
>
> Ah! I forgot about 2.x, sorry for the nose. Yep, catching OSError
On Sun, 27 Oct 2013 14:30:52 +0100, Antoon Pardon wrote:
> Op 26-10-13 23:43, Ben Finney schreef:
>> Mark Lawrence writes:
>>
>>> I could almost feel sorry for you. But the more of your time I waste
>>> the longer it'll take you to get your website working.
>>
>> Feel free to occupy your time wi
On 10/28/13 05:43, Victor Hooi wrote:
> Hi,
>
> I'd like to double-check something regarding using try-except for controlling
> flow.
>
> I have a script that needs to lookup things in a SQLite database.
>
> If the SQLite database file doesn't exist, I'd like to create an empty
> database, and th
Op 28-10-13 00:26, Ben Finney schreef:
Antoon Pardon writes:
Op 26-10-13 23:43, Ben Finney schreef:
Feel free to occupy your time with baiting Nikos. But *do not* do it
in this forum.
Would you mind telling this to others too.
I'm not in any special position of power here; I'm not beholde
Op 28-10-13 08:44, Steven D'Aprano schreef:
On Sun, 27 Oct 2013 14:30:52 +0100, Antoon Pardon wrote:
Op 26-10-13 23:43, Ben Finney schreef:
Mark Lawrence writes:
I could almost feel sorry for you. But the more of your time I waste
the longer it'll take you to get your website working.
Fe
In article ,
Ned Deily wrote:
> SInce OS X 10.9 Mavericks is now out, people are running into a severe
> problem
> when using some Python interpreters interactively. The symptom is that the
> interpreter in interactive mode crashes after typing two lines:
[...]
> The fix for the problem has b
On 28 October 2013 00:35, Marc wrote:
>>What was wrong with the answer Peter Otten gave you earlier today on the
>>tutor mailing list?
>>
>>--
>>Python is the second best programming language in the world.
>>But the best has yet to be invented. Christian Tismer
>>
>>Mark Lawrence
>>
>
>
> I did n
Op 28-10-13 07:18, Steven D'Aprano schreef:
> On Sun, 27 Oct 2013 20:43:07 -0700, Victor Hooi wrote:
>
>> Hi,
>>
>> I'd like to double-check something regarding using try-except for
>> controlling flow.
>>
>> I have a script that needs to lookup things in a SQLite database.
>>
>> If the SQLite dat
Dear all,
this is a recurring programming problem that I'm just not sure how to solve
optimally, so I thought I'd ask for your advice:
imagine you have a flag set somewhere earlier in your code, e.g.,
needs_processing = True
then in a for loop you're processing the elements of an iterable, but th
Skybuck Flying wrote:
Because it's logical.
What is logical?
If the exit condition was placed on the top, the loop would exit immediatly.
This might be the programmer's intention?
Instead the desired behaviour might be to execute the code inside the loop
first and then exit.
It
Op 26-10-13 23:22, Mark Lawrence schreef:
> On 26/10/2013 18:23, Antoon Pardon wrote:
>> Op 26-10-13 18:19, Mark Lawrence schreef:
>>> On 26/10/2013 17:00, Steven D'Aprano wrote:
On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
> On 26/10/2013 14:27, Nick the Gr33k wrote:
Due to unknown "improvements", SeaMonkey's built-in news editor meanwhile
ignores
saved changes and sends long deleted text parts rather than thwe last seen text
-
"What you See Is _Not_ What You Get"...
This is the real reply to Skybuck's posting. Please ignore the mixture of
deleted
text par
On Mon, 28 Oct 2013 09:50:19 +, Wolfgang Maier wrote:
> Dear all,
> this is a recurring programming problem that I'm just not sure how to
> solve optimally, so I thought I'd ask for your advice: imagine you have
> a flag set somewhere earlier in your code, e.g.,
>
> needs_processing = True
>
On Mon, Oct 28, 2013 at 10:14 PM, Steven D'Aprano
wrote:
> if needs_preprocessing:
> for elem in iterable:
> # If you change this block, you must remember to change the
> # block below too!
> preprocess(item)
> do_this(item)
> do_that(item)
> do_
Hi group,
in http://docs.python.org/3/reference/datamodel.html#customization the
doc reads:
> There are no swapped-argument versions of these methods (to be used when the
> left argument does not support the operation but the right argument does);
> rather, __lt__() and __gt__() are each other’
On Mon, Oct 28, 2013 at 11:00 PM, Johannes Bauer wrote:
>> There are no swapped-argument versions of these methods (to be used when the
>> left argument does not support the operation but the right argument does);
>> rather, __lt__() and __gt__() are each other’s reflection, __le__() and
>> __g
On Tuesday, October 22, 2013 4:15:05 PM UTC-5, Ian wrote:
> I used a freeware called Photoscape to open the gif, change the
> delays, and resave it.
Thanks, I have used the program before and recall some aspects of it, but as
far as gif goes I try to not deal with them much because of the headach
Am 28.10.2013 13:23, schrieb Chris Angelico:
> On Mon, Oct 28, 2013 at 11:00 PM, Johannes Bauer wrote:
>>> There are no swapped-argument versions of these methods (to be used when
>>> the left argument does not support the operation but the right argument
>>> does); rather, __lt__() and __gt__()
On 10/26/2013 01:55 AM, Yaşar Arabacı wrote:
Hi people,
I wrote this decorator: https://gist.github.com/yasar11732/7163528
When this code executes:
@debugging
def myfunc(a, b, c, d = 48):
a = 129
return a + b
print myfunc(12,15,17)
This is printed:
fun
In article ,
Chris Angelico wrote:
> If it starts with "#!/usr/bin/python", it'll get
> dropped through to Python for execution.
Even better (for most purposes), use "#!/usr/bin/env python". What that
does is (slight handwave here) search your PATH to find the same version
of Python you woul
On Mon, Oct 28, 2013 at 11:43 PM, Schneider wrote:
> 2. In the case of an assignment (but holds for the return statement too).
> think about the following code:
>
> a = 0
> @debugging
> def foo():
> a = a + 1
>
> def bar():
> #assign something else to a
>
> Imagine foo() and bar() being c
On Mon, Oct 28, 2013 at 11:51 PM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> If it starts with "#!/usr/bin/python", it'll get
>> dropped through to Python for execution.
>
> Even better (for most purposes), use "#!/usr/bin/env python". What that
> does is (slight handwave here
- Original Message -
> Hi,
>
> I have a collection of Python scripts I'm using to load various bits
> of data into a database.
>
> I'd like to move some of the common functions (e.g. to setup loggers,
> reading in configuration etc.) into a common file, and import them
> from there.
>
>
On 2013-10-27, Ben Finney wrote:
> I have no particular objection to you responding to those
> instances of bad behaviour that I've omitted.
So you omitted them, eh?
You just omitted the body of the letter, that's all! You've left
out the body of the letter, that's all. Yours is not to reason
wh
Lundh, Fredrik. (2005). An Introduction to Tkinter, Draft revision.
Retrieved from http://effbot.org/tkinterbook/
Shipman, John. (2013) Tkinter 8.5 reference.
Retrieved from http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html
Lutz, Mark. (2011) Programming Python, 4th ed. Chapters 7-
Le dimanche 27 octobre 2013 04:21:46 UTC+1, Nobody a écrit :
>
>
>
> Simply ignoring diactrics won't get you very far.
>
>
Right. As an example, these four French words :
cote, côte, coté, côté .
>
> Most languages which use diactrics have standard conversions, e.g.
>
> ö -> oe, which are
On 28/10/2013 14:01, wxjmfa...@gmail.com wrote:
Just as a reminder. They are 1272 characters considered
as Latin characters (how to count them it not a simple
task), and if my knowledge is correct, they are covering
and/or are here to cover the 17 languages, to be exact,
the 17 European language
On 2013-10-28 07:01, wxjmfa...@gmail.com wrote:
>> Simply ignoring diactrics won't get you very far.
>
> Right. As an example, these four French words :
> cote, côte, coté, côté .
Distinct words with distinct meanings, sure.
But when a naïve (naive? ☺) person or one without the easy ability
to e
On 2013-10-26, Steven D'Aprano wrote:
> On Fri, 25 Oct 2013 16:44:45 -0700, rurpy wrote:
>
>> On 10/25/2013 02:05 PM, Terry Reedy wrote:
>>> On 10/25/2013 2:57 PM, Peter Cacioppi wrote:
The default Google Group client is notoriously cruddy with quotes
attribution.
>>>
>>> So don't use i
On 2013-10-26, Mark Lawrence wrote:
> On 26/10/2013 22:25, Mark Janssen wrote:
>
> Please give it a rest Mark, nobody is falling for your pseudo babel.
I think you do him a disservice. I'm pretty sure it's genuine,
bona-fide, 24K, dyed-in-the-wool, 99 and 44/100 pure babble.
--
Grant Edwards
On Tue, Oct 29, 2013 at 1:21 AM, Grant Edwards wrote:
> On 2013-10-26, Mark Lawrence wrote:
>> On 26/10/2013 22:25, Mark Janssen wrote:
>>
>> Please give it a rest Mark, nobody is falling for your pseudo babel.
>
> I think you do him a disservice. I'm pretty sure it's genuine,
> bona-fide, 24K,
On 2013-10-28, Steven D'Aprano wrote:
> Chris is not baiting Nikos, he is giving him useful information that
> unfortunately Nikos doesn't want to hear.
So he's replying to Nikos with responses that aren't helping Nikos and
just encourage more posts from Nikos. I'm sure the _intent_ is
differe
On Tue, Oct 29, 2013 at 1:33 AM, Grant Edwards wrote:
> On 2013-10-28, Steven D'Aprano wrote:
>
>> Chris is not baiting Nikos, he is giving him useful information that
>> unfortunately Nikos doesn't want to hear.
>
> So he's replying to Nikos with responses that aren't helping Nikos and
> just en
On 2013-10-26, Antoon Pardon wrote:
> Op 26-10-13 18:00, Steven D'Aprano schreef:
>> On Sat, 26 Oct 2013 15:34:23 +0100, Mark Lawrence wrote:
>>
>>> On 26/10/2013 14:27, Nick the Gr33k wrote:
>>>
>>> Buy a sex manual.
>>
>> Mark, please resist the urge to bait Nick with insults. As entertaining
>>
On 2013-10-27, Chris Angelico wrote:
> On Sun, Oct 27, 2013 at 1:52 PM, Gary Herron
> wrote:
>> Huh? In what kind of a workflow are you running a python file without
>> knowing *what* file you are runnung?
I've been writing Python programs for 10+ years. Never have I felt a
need to know the lo
On Tue, Oct 29, 2013 at 1:49 AM, Grant Edwards wrote:
> On 2013-10-27, Chris Angelico wrote:
>> It's very common to want to know what directory you're in - it's a
>> good way to find data files.
>
> From a Unix point of view, that's also very wrong. Data files don't
> belong in the same director
On 2013-10-27, Ben Finney wrote:
> What workflow requires you to know the filename of the module, within
> the module?
If you have a utility that can be used to do several related things,
one way to tell that utility which you want to do is with command line
arguments. For example your utility
On 2013-10-28, Chris Angelico wrote:
> On Tue, Oct 29, 2013 at 1:21 AM, Grant Edwards
> wrote:
>> On 2013-10-26, Mark Lawrence wrote:
>>> On 26/10/2013 22:25, Mark Janssen wrote:
>>>
>>> Please give it a rest Mark, nobody is falling for your pseudo
>>> babel.
>>
>> I think you do him a disservi
Op 28-10-13 15:38, Chris Angelico schreef:
> On Tue, Oct 29, 2013 at 1:33 AM, Grant Edwards
> wrote:
>> On 2013-10-28, Steven D'Aprano wrote:
>>
>>> Chris is not baiting Nikos, he is giving him useful information that
>>> unfortunately Nikos doesn't want to hear.
>>
>> So he's replying to Nikos
On Monday, October 28, 2013 1:14:50 PM UTC+5:30, Steven D'Aprano wrote:
> Here's an analogy:
>
> Person A: "Clean my room for me!"
> Person B: "No. Clean it yourself. Here's the vacuum cleaner."
> Person A: "CLEAN MY ROOM!!!"
> Person B: "No. You made the mess, you're old enough to clean it yourse
On 10/28/13 11:07 AM, Antoon Pardon wrote:
Op 28-10-13 15:38, Chris Angelico schreef:
>On Tue, Oct 29, 2013 at 1:33 AM, Grant Edwards wrote:
>>On 2013-10-28, Steven D'Aprano wrote:
>>
>>>Chris is not baiting Nikos, he is giving him useful information that
>>>unfortunately Nikos doesn't want
>Hi Marc, did you actually subscribe to the tutor list or did you just
>send an email there? Peter replied to you and you can see the reply
>here:
>https://mail.python.org/pipermail/tutor/2013-October/098156.html
>
>He only sent the reply back to the tutor list and didn't email it
>directly to you
>Hi Marc, did you actually subscribe to the tutor list or did you just
>send an email there? Peter replied to you and you can see the reply
>here:
>https://mail.python.org/pipermail/tutor/2013-October/098156.html
>
>He only sent the reply back to the tutor list and didn't email it
>directly to you
In article <0799708c-59d5-41c2-9fcc-24b7ca873...@googlegroups.com>,
John Ladasky wrote:
>
> So, what other free and lightweight editing options do I have for a Mac? I
> have found a few (fairly old) discussions on comp.lang.python which suggest
> Eric (http://eric-ide.python-projects.org/) and
On Monday, October 28, 2013 10:38:45 PM UTC+5:30, Ned Batchelder wrote:
>
> We've already seen a few new people explicitly asking, "is this what
> usually happens on this list?" and they weren't referring to the
> Chris-style response, they were referring to the Mark-style
> respon
On Sunday, October 27, 2013 12:37:40 AM UTC+5:30, John Ladasky wrote:
> So, what other free and lightweight editing options do I have for a Mac? I
> have found a few (fairly old) discussions on comp.lang.python which suggest
> Eric (http://eric-ide.python-projects.org/) and Editra (http://editra
On 10/28/13 1:53 PM, rusi wrote:
On Monday, October 28, 2013 10:38:45 PM UTC+5:30, Ned Batchelder wrote:
We've already seen a few new people explicitly asking, "is this what
usually happens on this list?" and they weren't referring to the
Chris-style response, they were referring
On Mon, Oct 28, 2013, at 8:00, Johannes Bauer wrote:
> Hi group,
>
> in http://docs.python.org/3/reference/datamodel.html#customization the
> doc reads:
>
> > There are no swapped-argument versions of these methods (to be used when
> > the left argument does not support the operation but the r
Wolfgang Maier writes:
> Dear all,
> this is a recurring programming problem that I'm just not sure how to solve
> optimally, so I thought I'd ask for your advice:
> imagine you have a flag set somewhere earlier in your code, e.g.,
>
> needs_processing = True
>
> then in a for loop you're process
Just upgraded to Mavericks, the new OS X, Python is:
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
(On Mountain Lion, it was 2.7.2. You can install Python
On Mon, 28 Oct 2013 09:50:19 +, Wolfgang Maier wrote:
> So my question is: is there an agreed-upon generally best way of dealing
> with this?
Yes. Just leave the test inside the loop.
If you're sufficiently concerned about performance that you're willing to
trade clarity for it, you shouldn'
Hi all,
I have been trying to set up a python, django, mysql, virtualenvwrapper
and git development project and am really confused. All of the
documentation seems to ignore the apt-get installation methods used by
Debian Linux and its derivatives. Does pip install the same as apt-get;
I don't
I've been working on a project called curdling. It's a package manager for
python. It's pretty similar to pip but with a brand new design and way less
lines of code. It uses exciting concurrency technology to provide a
reliable and fast installer for Python packages.
The current feature set includ
Grant Edwards writes:
> On 2013-10-27, Ben Finney wrote:
>
> > What workflow requires you to know the filename of the module, within
> > the module?
>
> If you have a utility that can be used to do several related things,
> one way to tell that utility which you want to do is with command line
>
Ben Finney asked
"What workflow requires you to know the filename of the module, within
the module? "
So what I have is a project utility script in my scripts directory. I have a
distinct file structure that holds my .py source, my test.py unit tests, and
the file based data associated with the
I have a virtualenv I'm using for some Django development. Today I
switched from MacPorts to HomeBrew on my Mac. I'm thus getting a
different version of gcc and its libs. How do I reinstall the
virtualenv? I've looked around and found a few descriptions of what to
do, but as I am little more than
Gary Roach writes:
> I have been trying to set up a python, django, mysql,
> virtualenvwrapper and git development project and am really confused.
(Side note: If you have the option, avoid MySQL and begin with
PostgreSQL. It is much more standards-compliant, and avoids many of the
misfeatures an
On 10/28/2013 5:13 PM, Lincoln Clarete wrote:
I've been working on a project called curdling. It's a package manager
for python. It's pretty similar to pip but with a brand new design and
way less lines of code. It uses exciting concurrency technology to
provide a reliable and fast installer for
On 10/28/13 7:04 PM, Skip Montanaro wrote:
I have a virtualenv I'm using for some Django development. Today I
switched from MacPorts to HomeBrew on my Mac. I'm thus getting a
different version of gcc and its libs. How do I reinstall the
virtualenv? I've looked around and found a few descriptions
On 10/28/13 3:46 PM, Gary Roach wrote:
Hi all,
I have been trying to set up a python, django, mysql,
virtualenvwrapper and git development project and am really confused.
All of the documentation seems to ignore the apt-get installation
methods used by Debian Linux and its derivatives. Does p
In article
,
Skip Montanaro wrote:
> I have a virtualenv I'm using for some Django development. Today I
> switched from MacPorts to HomeBrew on my Mac.
Any particular reason for doing that? That seems like a step backwards,
especially for Python-related work.
--
Ned Deily,
n...@acm.org
> Virtualenvs aren't built to be moved from one Python installation to
> another. If you used pip to install your packages (you should), then you
> can activate the virtualenv, and run: $ pip freeze > requirements.txt
>
> Then you can create a new virtualenv using the new Python executable,
> acti
On 10/28/13 7:53 PM, Skip Montanaro wrote:
Virtualenvs aren't built to be moved from one Python installation to
another. If you used pip to install your packages (you should), then you
can activate the virtualenv, and run: $ pip freeze > requirements.txt
Then you can create a new virtualenv usi
>> I have a virtualenv I'm using for some Django development. Today I
>> switched from MacPorts to HomeBrew on my Mac.
>
> Any particular reason for doing that? That seems like a step backwards,
> especially for Python-related work.
The guy who sits next to me at work recommended HomeBrew. (Some
Skip Montanaro writes:
> Hmmm... And my git repo?
You are keeping your virtualenv separate from your working tree, right?
I put mine in ‘/var/local/devel/$USER/virtualenvs/foobar/’ where
“foobar” is the specific virtualenv name.
This allows an arbitrary number of virtualenvs separate for each u
In article ,
Ned Batchelder wrote:
> "pip install --upgrade" will upgrade your Python packages. "pip install
> -r requirements.txt" will install new packages or versions named in the
> requirements.txt file.
Yup, that's what we do. We've got a requirements.txt file that's
checked into our
Hi,
Ok, so I should be using absolute imports, not relative imports.
Hmm, I just tried to use absolute imports, and it can't seem to locate the
modules:
In the file "foo_loading/em_load/sync_em.py", I have:
from common.common_bex import setup_foo_logging
When I try to run that script:
Victor Hooi writes:
> Ok, so I should be using absolute imports, not relative imports.
I'd say it is fine to use relative imports, so long as they are
explicit. (In Python 3, the default for an import is to be absolute, and
the *only* way to do a relative import is to make it explicitly
relative
>> Hmmm... And my git repo?
>
> Usually the virtualenv is outside the git repo (and vice-versa), but git
> repos are also easy to recreate from the git server if you need to. Maybe I
> don't understand what you mean?
I'm using Heroku, following their instructions. They have a "git init"
in the mi
Hi,
If I try to use:
from .common.common_foo import setup_foo_logging
I get:
ValueError: Attempted relative import in non-package
And the absolute imports don't seem to be able to find the right modules.
Is it something to do with the fact I'm running the sync_em.py script from the
"
On 2013-10-29 11:42, Ben Finney wrote:
> You are keeping your virtualenv separate from your working tree,
> right?
This was one of the key bits I missed in most of the
virtualenv{,wrapper} documentation and only figured out after asking
several questions here on c.l.p Once I had that understandin
>> Hmmm... And my git repo?
>
> You are keeping your virtualenv separate from your working tree, right?
> I put mine in ‘/var/local/devel/$USER/virtualenvs/foobar/’ where
> “foobar” is the specific virtualenv name.
No, I'm no expert in these things. I was just following the directions
on the Herok
Sounds nice. I'll see about checking it out later. Good luck with the project.
--
https://mail.python.org/mailman/listinfo/python-list
On Tuesday, October 29, 2013 1:16:07 AM UTC+5:30, Gary Roach wrote:
> Hi all,
>
> I have been trying to set up a python, django, mysql, virtualenvwrapper
> and git development project and am really confused. All of the
> documentation seems to ignore the apt-get installation methods used by
> D
Skip Montanaro writes:
> I'm using Heroku, following their instructions. They have a "git init"
> in the midst of things, so I wind up with a git repo that matches up
> one-to-one for my Django project. ("git push" installs).
That's not a good thing; you don't want loads of third-party files in
Skip Montanaro writes:
> > You are keeping your virtualenv separate from your working tree,
> > right? I put mine in ‘/var/local/devel/$USER/virtualenvs/foobar/’
> > where “foobar” is the specific virtualenv name.
>
> No, I'm no expert in these things. I was just following the directions
> on the
On 10/28/2013 08:49 AM, Grant Edwards wrote:
> > On 2013-10-27, Chris Angelico wrote:
>> >> On Sun, Oct 27, 2013 at 1:52 PM, Gary Herron
>> >> It's very common to want to know what directory you're in - it's a
>> >> good way to find data files.
> >
> > From a Unix point of view, that's also very
On 10/28/2013 12:51 AM, rusi wrote:
> > On Monday, October 28, 2013 11:26:21 AM UTC+5:30, rusi wrote:
>> >> On Monday, October 28, 2013 11:10:21 AM UTC+5:30, ru...@yahoo.com
>> >> wrote:
>>> >>> I updated the page, hopefully it's an improvement?
>> >>
>> >> Otherwise ok I think
> >
> > Just looke
On 27/10/2013 11:31, Colin J. Williams wrote:
> On 27/10/2013 10:32 AM, David wrote:
>> I am an absolute beginner and am working through the book Python Programming
>> for the Absolute Beginner by Michael Dawson. Everything is fine except if I
>> run a scripted programme, or one I have download
On Mon, 28 Oct 2013 22:18:45 +1100, Chris Angelico wrote:
> On Mon, Oct 28, 2013 at 10:14 PM, Steven D'Aprano
> wrote:
>> if needs_preprocessing:
>> for elem in iterable:
>> # If you change this block, you must remember to change the #
>> block below too!
>> preprocess
On Mon, 28 Oct 2013 14:22:09 -0400, Ned Batchelder wrote:
> When people walk through the door, we should speak well to them. If
> they are trouble, we should deal with them without it turning into a
> negative storm. Remember that there are people looking in the windows
> trying to decide whethe
On Mon, 28 Oct 2013 07:01:16 -0700, wxjmfauth wrote:
> And of course, logically, they are very, very badly handled with the
> Flexible String Representation.
I'm reminded of Cato the Elder, the Roman senator who would end every
speech, no matter the topic, with "Ceterum censeo Carthaginem esse
Does anyone here use slices (or range/xrange) with negative strides other
than -1?
E.g. sequence[2:15:-3]
If so, there is a discussion (long, long, looong discussion) on the
python-ideas mailing list, debating whether or not to deprecate or change
the behaviour of slicing with negative st
On Mon, 28 Oct 2013 09:23:41 -0500, Tim Chase wrote:
> On 2013-10-28 07:01, wxjmfa...@gmail.com wrote:
>>> Simply ignoring diactrics won't get you very far.
>>
>> Right. As an example, these four French words : cote, côte, coté, côté
>> .
>
> Distinct words with distinct meanings, sure.
>
> But
On Mon, 28 Oct 2013 21:00:39 -0700, rurpy wrote:
> This was pointed out before but since you said you ignore posts from GG
> you probably missed it, and will probably miss this one too, and thus
> continue to post bad information.
>
> This is a small but illustrative example of why such broad-
On Mon, 28 Oct 2013 13:20:17 +, Neil Cerutti wrote:
> On 2013-10-27, Ben Finney wrote:
>> I have no particular objection to you responding to those instances of
>> bad behaviour that I've omitted.
>
> So you omitted them, eh?
>
> You just omitted the body of the letter, that's all! You've l
Steven said
"Isn't freedom of choice wonderful?"
Didn't somebody once say "we're all adults here". I forget who said that.
Eddard Stark? The guy always did keep his head in a crisis.
--
https://mail.python.org/mailman/listinfo/python-list
Nobody (yes, his name is Nobody) said:
"If you're sufficiently concerned about performance that you're willing to
trade clarity for it, you shouldn't be using Python in the first place."
I think the correct thing to say here is, IF you know this subroutine is a
bottleneck, THEN probably this sub
On Tue, Oct 29, 2013 at 3:03 PM, wrote:
> Regarding esr's "smart-questions", although I acknowledge
> it has useful advice, I have always found it elitist and
> abrasive. I wish someone would rewrite it without the
> "we are gods" attitude.
I find it actually pretty appropriate. The attitude co
On Tue, Oct 29, 2013 at 5:14 PM, Peter Cacioppi
wrote:
> Nobody (yes, his name is Nobody) said:
>
> "If you're sufficiently concerned about performance that you're willing to
> trade clarity for it, you shouldn't be using Python in the first place."
>
> I don't think it's correct to imply that peo
Chris said
" If you actually profile and find that something-or-other is a bottleneck,
chances are you can break it out into a function with minimal loss of
clarity, and then reimplement that function in C (maybe wielding
Cython for the main work). That doesn't compromise clarity. "
Well, I'm not
94 matches
Mail list logo