* 2011-07-18T10:54:40+10:00 * Steven D'Aprano wrote:
Back in 2007, a n00b calling himself TheFlyingDutchman who I am
*reasonably* sure was Rick decided to fork Python:
http://mail.python.org/pipermail/python-list/2007-September/1127123.html
I don't know if they are the same person but quite
Steven D'Aprano wrote:
Why 78? Because it's one less than 79, as mandated by PEP 8, and two less
than 80, the hoary old standard.
There's another possible reason for the number 78, although
hopefully it doesn't still apply today.
There's an application I work with that stores free text
in
I don't know why, but I just had to try it (even though I don't usually
use Perl and had to look up a lot of stuff). I came up with this:
/(?|
(\()(?matched)([\}\]”›»】〉》」』]|$) |
(\{)(?matched)([\)\]”›»】〉》」』]|$) |
(\[)(?matched)([\)\}”›»】〉》」』]|$) |
Rouslan Korneychuk, 18.07.2011 09:09:
I don't know why, but I just had to try it (even though I don't usually use
Perl and had to look up a lot of stuff). I came up with this:
/(?|
(\()(?matched)([\}\]”›»】〉》」』]|$) |
(\{)(?matched)([\)\]”›»】〉》」』]|$) |
(\[)(?matched)([\)\}”›»】〉》」』]|$) |
On Sunday, July 17, 2011 08:24:12 PM Dotan Cohen did opine:
On Sun, Jul 17, 2011 at 17:29, gene heskett ghesk...@wdtv.com wrote:
I'm still looking for the perfect programming font. Suggestions
welcomed.
When you find it Dotan, let me know, I've been looking since the later
'70's.
On Mon, Jul 18, 2011 at 1:33 PM, Josh English
joshua.r.engl...@gmail.com wrote:
Sadly, I'm the type of guy who almost has to re-invent the wheel. When I
started XML processing, it was on an old computer and I couldn't get things
like lxml to work, or understand the ones I did manage to
On Mon, Jul 18, 2011 at 2:12 PM, jyoun...@kc.rr.com wrote:
Can you share a website that goes into more detail on this good variable
naming?
I'd Google that one. You'll find more articles than you can read in a
lifetime...
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
On 07/18/2011 03:24 AM, Stefan Behnel wrote:
That's solid Perl. Both the code generator and the generated code are
unreadable. Well done!
Stefan
Why, thank you.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am a newbie in python and would like to learn GUI programming. I would like
to know what exactly is Partial Function Applicaton (functool.partial())? Or
how is it advantageous compared to normal functions? Or is there any
advantange? Thanks in advance.
Regards,
Kurian Thayil.
--
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're still churning out people with 80 column
minds. I'm willing to entertain arguments about readability
of long lines, but the idea that there's something
with global:
SERVER = None
A the end of Argparse declarations:
parser_check.set_defaults(action=do_the_check)
parser_build.set_defaults(action=do_the_build)
Then declare the action functions:
def do_the_check(namespace_args):
if not SERVER:
SERVER =
Here is an example by using my own library plac
(http://pypi.python.org/pypi/plac):
class Server():
def configure_logging(self, logging_file):
pass
def check(self):
pass
def deploy(self):
pass
def configure(self):
pass
def __init__(self,
Hi All,
I am new to python. Before posting i have done some google regarding
my question. But i didn't get exact information. So thought of
posting
it here. I want to open a list of urls in browser that too in same
window with out exiting. it should load one by one on same window and
also it
Partial function application (or currying) is the act of taking a function
with two or more parameters, and applying some of the arguments in order to
make a new function. The hello world example for this seems to be this:
Let's say you have a function called `add`, that takes two parameters:
Thanks for all the great suggestion.
First of all, Carl is right that it does not take much to impress a java
programmer about the expressiveness of functional programming.
Covered map, reduce and filter as Rainer suggested.
Emphasized the advantages of functional style as summarised by Steve
Bah, when I started programming
on the Apple ][+, we had no
lower-case and a 40-column limit
on the TV display.
Keyboards??? That was a luxery!
We had mechanical switches that one
had to physically push and pull to
enter commands.
And a 40 column display???
Unheard of! We were happy with
Dear Python users,
cloudnumbers.com provides researchers and companies with the access to
resources to perform high performance calculations in the cloud. As
cloudnumbers.com's community manager I may invite you to register and
test your Python application on a computer cluster in the cloud for
Can you share a website that goes into more detail on this good variable
naming?
I'd Google that one. You'll find more articles than you can read in a
lifetime...
Very true! :-)
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
whom I have to contact to get a blog aggregated in planet.python.org?
Thanks
Markus
--
http://mail.python.org/mailman/listinfo/python-list
On 07/18/2011 03:04 PM, Markus Schmidberger wrote:
Hello,
whom I have to contact to get a blog aggregated in planet.python.org?
Thanks
Markus
I quote planet.python.org (below the list of names)
To request addition or removal:
e-mail planet at python.org (note, responses can take up
On Mon, Jul 18, 2011 at 10:05 PM, srikanth srikanth0...@gmail.com wrote:
Ex: http://www.google.com - Pass/Fail.
What do you mean by Pass or Fail? If you send a URL to a web
browser, all you'll find out is whether or not the browser accepted it
- it won't tell you if the page is valid. If you
On Jul 18, 6:21 pm, Chris Angelico ros...@gmail.com wrote:
On Mon, Jul 18, 2011 at 10:05 PM, srikanth srikanth0...@gmail.com wrote:
Ex:http://www.google.com- Pass/Fail.
What do you mean by Pass or Fail? If you send a URL to a web
browser, all you'll find out is whether or not the browser
Hello Michele,
Your solution is great!
You can combine it perhaps with the use of set_defaults() method of the
argparse parser, I gave.
Cheers
karim
On 07/18/2011 01:56 PM, Michele Simionato wrote:
Here is an example by using my own library plac
(http://pypi.python.org/pypi/plac):
class
Tim Chase python.l...@tim.thechases.com wrote:
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're still churning out people with 80 column
minds. I'm willing to entertain arguments about readability
of
On Jul 17, 12:47 am, Xah Lee xah...@gmail.com wrote:
2011-07-16
folks, this one will be interesting one.
the problem is to write a script that can check a dir of text files
(and all subdirs) and reports if a file has any mismatched matching
brackets.
…
Ok, here's my solution (pasted at
Tim Chase wrote:
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're still churning out people with 80 column
minds. I'm willing to entertain arguments about readability
of long lines, but the idea that
Hello!
I would like to find a good system to keep track of my household
finance. Do Python programmers have suggestions on that? Do you use
Python to help on this task?
I am considering a large set of solutions:
- Pure spreadsheet
- Easy to start, but I know I will soon feel blocked by the
Kurian Thayil wrote:
Hi,
I am a newbie in python and would like to learn GUI programming. I would
like to know what exactly is Partial Function Applicaton
(functool.partial())? Or how is it advantageous compared to normal
functions? Or is there any advantange? Thanks in advance.
It is
On Jul 18, 8:03 pm, markolopa marko.lopa...@gmail.com wrote:
Hello!
I would like to find a good system to keep track of my household
finance. Do Python programmers have suggestions on that? Do you use
Python to help on this task?
I am considering a large set of solutions:
- Pure
On Monday, July 18, 2011 09:32:19 AM Tim Chase did opine:
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're still churning out people with 80 column
minds. I'm willing to entertain arguments about
Thorsten Kampe thors...@thorstenkampe.de writes:
The perfect programming font is just the one that looks so good that
you would also use it for writing email. Dejavu Sans Mono is pretty
good. Consolas looks also looks good but it is Windows only.
How is Consolas Windows only? Not that I'd
Rouslan Korneychuk wrote:
I don't know why, but I just had to try it (even though I don't usually
use Perl and had to look up a lot of stuff). I came up with this:
I don't know why … you replied to my posting/e-mail (but quoted nothing from
it, much less referred to its content), and posted a
* Anssi Saari (Mon, 18 Jul 2011 19:28:49 +0300)
Thorsten Kampe thors...@thorstenkampe.de writes:
The perfect programming font is just the one that looks so good that
you would also use it for writing email. Dejavu Sans Mono is pretty
good. Consolas looks also looks good but it is
On 18/07/2011 14:52, Duncan Booth wrote:
Tim Chasepython.l...@tim.thechases.com wrote:
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're still churning out people with 80 column
minds. I'm willing to
Gregory Ewing wrote:
Anders J. Munch wrote:
Cameron Simpson wrote:
Personally, I like to use the tab _key_ as an input device, but to
have my editor write real spaces to the file in consequence.
Just like in the old days:)
Most editors can be configured to do that.
True.
Where
Anssi Saari wrote:
Thorsten Kampe thors...@thorstenkampe.de writes:
The perfect programming font is just the one that looks so good that
you would also use it for writing email. Dejavu Sans Mono is pretty
good. Consolas looks also looks good but it is Windows only.
How is Consolas Windows
On 01/-10/-28163 02:59 PM, Steven D'Aprano wrote:
Tim Chase wrote:
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're still churning out people with 80 column
minds. I'm willing to entertain arguments
On 07/17/2011 03:47 AM, Xah Lee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
import sys, os
pairs = {'}':'{', ')':'(', ']':'[', '':'', ':', '':''}
valid = set( v for pair in pairs.items() for v in pair )
for
I am out of the office until 27/07/2011.
I will respond to your message when I return.
If you require assitance in relation to the SPEAR Integration project
please contact Terry Mandalios.
Note: This is an automated response to your message Re: Tabs -vs- Spaces:
Tabs should have won. sent on
On Mon, Jul 18, 2011 at 11:12 AM, Billy Mays
81282ed9a88799d21e77957df2d84bd6514d9...@myhashismyemail.com wrote:
I gave it a shot. It doesn't do any of the Unicode delims, because let's
face it, Unicode is for goobers.
Uh, okay...
Your script also misses the requirement of outputting the
On 07/18/2011 12:46 PM, Thomas 'PointedEars' Lahn wrote:
Rouslan Korneychuk wrote:
I don't know why, but I just had to try it (even though I don't usually
use Perl and had to look up a lot of stuff). I came up with this:
I don't know why … you replied to my posting/e-mail (but quoted nothing
Thomas 'PointedEars' Lahn wrote:
I am getting the idea here that you mean the right thing, but that you
explain it wrong.
Feel free to write the much longer essay that explains it all unambiguously, I'm
not going to.
regards, Anders
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jul 18, 2011 at 02:55, Andrew Berg I think the reason the
idea isn't dead is because of the emergence of
new devices with small displays (tablets/smartphones/etc.) and their
increasing popularity. When writing code that is meant to be run on
desktops or servers, the 80-column limit is
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
On 2011.07.18 01:51 PM, Dotan Cohen wrote:
Let me see if I understand: because there exists a possibility that
someone might want (not need) to edit code on a telephone to make a
quick edit to code being interpreted on that machine, _all_
On Tue, Jul 19, 2011 at 5:06 AM, Andrew Berg bahamutzero8...@gmail.com wrote:
Personally, I think that 80 is pretty arbitrary now, and not the best
limit. I'm more comfortable with 120-130 myself. In any case, Python
won't complain about how many characters are on a line, and that's the
way it
I am out of the office until 27/07/2011.
I will respond to your message when I return.
If you require assitance in relation to the SPEAR Integration project
please contact Terry Mandalios.
Why, thank you Craig. I will definitely contact Terry ;-)
Br.
Waldek
PS. Sorry, couldn't stop myself.
Partial can be used in a GUI program, like Tkinter, to send arguments
to functions. There are other ways to do that as well as using
partial. The following program uses partial to send the color to the
change_buttons function.
from Tkinter import *
from functools import partial
class App:
On Sun, 17 Jul 2011 00:47:42 -0700 (PDT), Xah Lee xah...@gmail.com wrote:
2011-07-16
folks, this one will be interesting one.
the problem is to write a script that can check a dir of text files
(and all subdirs) and reports if a file has any mismatched matching
brackets.
[snip]
i hope you'll
That would be one of mine, probably.
http://code.google.com/p/pyxmlcheck/
It's an old version. I haven't updated it in a while.
And while my program worked fine at home, my test environment gave me some
grief. Apparently the lock files are being deleted properly. I have a few ideas
about
On 7/18/2011 8:24 AM, Paul Woolcock wrote:
Partial function application (or currying) is the act of taking a
function with two or more parameters, and applying some of the arguments
in order to make a new function. The hello world example for this
seems to be this:
Let's say you have a
On 7/18/2011 8:20 AM, Anthony Kong wrote:
Thanks for all the great suggestion.
First of all, Carl is right that it does not take much to impress a
java programmer about the expressiveness of functional programming.
Covered map, reduce and filter as Rainer suggested.
Emphasized the
On 7/18/2011 3:23 PM, woooee wrote:
Partial can be used in a GUI program, like Tkinter, to send arguments
to functions. There are other ways to do that as well as using
partial. The following program uses partial to send the color to the
change_buttons function.
from Tkinter import *
from
On 18 juil, 07:54, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Mon, 18 Jul 2011 08:54 am ΤΖΩΤΖΙΟΥ wrote:
Jumping in:
What if a construct
xx(*args1, **kwargs1)yy(*args2, **kwargs2)
was interpreted as
xxyy(*(args1+args2), **(kwargs1+kwargs2))
(Note: with
On 01/-10/-28163 02:59 PM, Terry Reedy wrote:
On 7/18/2011 8:24 AM, Paul Woolcock wrote:
Partial function application (or currying) is the act of taking a
function with two or more parameters, and applying some of the arguments
in order to make a new function. The hello world example for this
Ian Kelly wrote:
Billy Mays wrote:
I gave it a shot. It doesn't do any of the Unicode delims, because let's
face it, Unicode is for goobers.
Uh, okay...
Your script also misses the requirement of outputting the index or row
and column of the first mismatched bracket.
Thanks to
Dave Angel wrote:
On 01/-10/-28163 02:59 PM, Terry Reedy wrote:
def makeadder(y)
def _add(x): return x+y
add2 = makeadder(2)
A couple of typos in that code:
def makeaddr(y):
def _add(x): return x+y
return _add
I agree about the `return' statement, but not about the
Thomas 'PointedEars' Lahn wrote:
Dave Angel wrote:
On 01/-10/-28163 02:59 PM, Terry Reedy wrote:
def makeadder(y)
def _add(x): return x+y
add2 = makeadder(2)
A couple of typos in that code:
def makeaddr(y):
def _add(x): return x+y
return _add
I agree about the
In article Xns9F2695C6AAA73duncanbooth@127.0.0.1,
Duncan Booth duncan.booth@invalid.invalid wrote:
Tim Chase python.l...@tim.thechases.com wrote:
On 07/17/2011 08:01 PM, Steven D'Aprano wrote:
Roy Smith wrote:
We don't have that problem any more. It truly boggles my
mind that we're
Billy Mays wrote:
On 07/17/2011 03:47 AM, Xah Lee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
Goobers... that would be one of those new-fangled slang terms that the young
kids today use to mean its opposite,
On 7/18/2011 7:56 PM, Steven D'Aprano wrote:
Billy Mays wrote:
On 07/17/2011 03:47 AM, Xah Lee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
Goobers... that would be one of those new-fangled slang terms that
On Jul 19, 7:07 am, Billy Mays no...@nohow.com wrote:
On 7/18/2011 7:56 PM, Steven D'Aprano wrote:
Billy Mays wrote:
On 07/17/2011 03:47 AM, Xah Lee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
On 19/07/2011 03:07, Billy Mays wrote:
On 7/18/2011 7:56 PM, Steven D'Aprano wrote:
Billy Mays wrote:
On 07/17/2011 03:47 AM, Xah Lee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
Goobers... that would be one
rusi wrote:
Every time I try to understand unicode and remain stuck I come to the
conclusion that I must be an imbecile.
http://www.joelonsoftware.com/articles/Unicode.html
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jul 18, 2011 at 7:07 PM, Billy Mays no...@nohow.com wrote:
On 7/18/2011 7:56 PM, Steven D'Aprano wrote:
Billy Mays wrote:
On 07/17/2011 03:47 AM, Xah Lee wrote:
2011-07-16
I gave it a shot. It doesn't do any of the Unicode delims, because
let's face it, Unicode is for goobers.
I want to make sure that folder exists.
'2011-07-03' is really exists. but 'os.path.isdir' say false
Does anyone know why?
os.path.isdir(C:\Users\조창준\Desktop\logs)
True
os.path.isdir(C:\Users\조창준\Desktop\logs\2011-07-03)
False
--
http://mail.python.org/mailman/listinfo/python-list
Billy Mays wrote:
TL;DR version: international character sets are a problem, and Unicode
is not the answer to that problem).
Shorter version: FUD.
Yes, having a rich and varied character set requires work. Yes, the Unicode
standard itself, and any interface to it (including Python's) are
2011/7/19 Nulpum changjun@gmail.com:
I want to make sure that folder exists.
'2011-07-03' is really exists. but 'os.path.isdir' say false
Does anyone know why?
os.path.isdir(C:\Users\조창준\Desktop\logs)
True
os.path.isdir(C:\Users\조창준\Desktop\logs\2011-07-03)
False
Works here. Are
What is the output of:
os.path.exists(C:\Users\조창준\Desktop\logs\2011-07-03)
? One possible issue here is that for some reason os.path.isdir()
can't even access the directory either because of permissions,
misinterpretation of the path, or some other reason.
Michael
2011/7/19 Nulpum
Nulpum wrote:
I want to make sure that folder exists.
'2011-07-03' is really exists. but 'os.path.isdir' say false
Does anyone know why?
Yes.
print logs/2011-07-03
logs/2011-07-03
print logs\2011-07-03
logs�1-07-03
Don't use backslashes as path separators in Python. Backslashes are
Nulpum wrote in news:0bf400a3-735c-487a-8d74-
feb3b56be...@g5g2000prn.googlegroups.com in gmane.comp.python.general:
I want to make sure that folder exists.
'2011-07-03' is really exists. but 'os.path.isdir' say false
Does anyone know why?
os.path.isdir(C:\Users\Á¶Ã¢ÁØ\Desktop\logs)
True
On Jul 19, 8:11 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
rusi wrote:
Every time I try to understand unicode and remain stuck I come to the
conclusion that I must be an imbecile.
http://www.joelonsoftware.com/articles/Unicode.html
--
Steven
Yes Ive read that and
On Tue, Jul 19, 2011 at 2:59 PM, rusi rustompm...@gmail.com wrote:
Some evidences of leakiness:
code point vs character vs byte
encoding and decoding
UTF-x and UCS-y
Very important and necessary distinctions? Maybe... But I did not need
them when my world was built of the 127 bricks of
Andrew Berg bahamutzero8...@gmail.com wrote:
I'm not saying it's wise
Why not?
It just makes it more difficult to follow the pattern when you add new
code. If you have an editor mnaging that for you, then you might as well
have the editor go all tabs or all spaces to avoid trouble.
Vi and
Matt Joiner anacro...@gmail.com added the comment:
Feel like a total noob: Where do I get the latest source? I can't find any
pre-release tarballs for 3.3, and the suggested py3k checkout doesn't work: $
hg clone http://hg.python.org/cpython#py3k py3k
abort: unknown revision 'py3k'!
Ned Deily n...@acm.org added the comment:
See the developer's guide:
http://docs.python.org/devguide/setup.html#getting-the-source-code
hg clone http://hg.python.org/cpython directory_name
--
nosy: +ned.deily
___
Python tracker
Matt Joiner anacro...@gmail.com added the comment:
This version is fixed for me:
$ ./python
Python 3.3.0a0 (default:7520f1bf0a81, Jul 18 2011, 17:12:12)
[GCC 4.1.2 20070115 (SUSE Linux)] on linux2
--
versions: +Python 3.2
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
@pitrou: Antoine, do you think that the following commit should be backported
from 3.3 to 3.2?
New changeset 3c7792ec4547 by Victor Stinner in branch 'default':
Issue #12175: BufferedReader.read(-1) now calls raw.readall() if
STINNER Victor victor.stin...@haypocalc.com added the comment:
I reopen the issue.
--
resolution: fixed - accepted
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12133
STINNER Victor victor.stin...@haypocalc.com added the comment:
(Oh, I missed Antoine's comment, yes, reopen a new issue)
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12133
Catalin Iacob iacobcata...@gmail.com added the comment:
Senthil's proposal in msg140543 has +1 from me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12577
___
Ugra Dániel daniel.u...@gmail.com added the comment:
Sorry, I've forgotten to post a reference to the new bug: #12576
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12133
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
h.close() (HTTPConnection.close) in the finally block of
AbstractHTTPHandler.do_open() calls indirectly r.close() (HTTPResponse.close).
The problem is that the content of the response cannot be read if its close()
method was
STINNER Victor victor.stin...@haypocalc.com added the comment:
ValueError('I/O operation on closed file') error comes from
HTTPResponse.__enter__() which is implemented in IOBase:
def __enter__(self): # That's a forward reference
self._checkClosed()
return self
--
Changes by Davide Rizzo sor...@gmail.com:
--
nosy: +davide.rizzo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12576
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
imdb.com and python.org use HTTP/1.1. imdb.com server sends a
Transfer-encoding: chunked header whereas python.org doesn't. python.org has
a Connection: close header, whereas imdb.com doesn't.
The more revelant difference for this
Antoine Pitrou pit...@free.fr added the comment:
Antoine, do you think that the following commit should be backported
from 3.3 to 3.2?
No, I don't think so.
--
versions: -Python 3.0
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
No, I don't think so.
The issue is already fixed in 3.3, so you agree to not fix it in Python 3.2?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5505
Steve Hill python.20.hi...@spamgourmet.com added the comment:
Why has this bug been resolved as won't fix? It seems to me that this is a
valid issue with something that has not been deprecated, yet it has been
decided neither to fix it (despite there being an offer by the originator to
submit
R. David Murray rdmur...@bitdance.com added the comment:
I haven't reviewed your tests, but a couple quick comments: we generally prefer
duck typing to the use of isintance or ABCs, but sometimes the latter is better
(it's a judgement call). I haven't done a deep dive in the code you
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12581
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
I would call .copy() on the original dicts rather than remembering an
explicit empty dict.
I thought about that and decided to use an empty dict as a way to add a check
that the caches should start empty. Maybe it was misguided and I should
Éric Araujo mer...@netwok.org added the comment:
On Windows, scripts run with whatever name -- no extension or other
extensions.
Thanks, this means that the docs can continue to say just “pysetup3”, without
“.py”.
(I wonder how Windows manages to run the script without file extension!)
I
New submission from Paul Weiss psw...@gmail.com:
I am trying to install python 2.7 on my Redhat machine. It installs most of the
files, but it doesn't install the lib-dynload directory. I have set every path,
done every install and clean I could think of but I can't get it to work. I
have
Éric Araujo mer...@netwok.org added the comment:
I’m assuming you’re installing a Python from python.org, not the one from Red
Hat. Can you give us the configure and make commands you ran?
--
nosy: +eric.araujo
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
It seems to me that the doc after the patch is barely more helpful. It does
not explain when and how one would see or use the class, nor what it does.
--
nosy: +eric.araujo
___
Python tracker
Paul Weiss psw...@gmail.com added the comment:
Correct, I am using the source from
http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
make clean
./configure --prefix=/opt/Python-2.7
make
sudo make install
I get this:
/usr/bin/install -c -m 644 ./LICENSE
Éric Araujo mer...@netwok.org added the comment:
Ah, I see that the class is referenced earlier in the file, and that its
methods come after. I’d put the class definition just before the methods. (I
would even refactor the reST to use nested class/method combo, but that’s a
minor markup
R. David Murray rdmur...@bitdance.com added the comment:
Also, are you using a linux3 kernel?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12582
___
Paul Weiss psw...@gmail.com added the comment:
No, Redhat's 2.6.9. Could that be the issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12582
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12576
___
___
Python-bugs-list
1 - 100 of 172 matches
Mail list logo