On behalf of the Python development team, I'm rosy to announce the immediate
availability of Python 2.7.2.
Since the release candidate 2 weeks ago, there have been 2 changes:
1. pyexpat.__version__ has be changed to be the Python version. 2. A regression
from 3.1.3 in the handling of comments in
On behalf of the Python development team, I'm sanguine to announce a release
candidate for the fourth bugfix release for the Python 3.1 series, Python 3.1.4.
Since the 3.1.4 release candidate 2 weeks ago, there have been three changes:
1. test_zipfile has been fixed on systems with an ASCII
2011/6/12 Paul Moore p.f.mo...@gmail.com:
On 12 June 2011 18:58, Benjamin Peterson benja...@python.org wrote:
On behalf of the Python development team, I'm sanguine to announce a release
candidate for the fourth bugfix release for the Python 3.1 series, Python
3.1.4.
Is this actually a RC,
PyTexas 2011, the fourth annual Python programming conference for
Texas and the surrounding region, will take place Saturday September
10 and Sunday September 11, 2011 at Texas AM University in College
Station, Texas.
Last year with 94 attendees, PyTexas 2010 reached critical mass to
achieve an
I am pleased to announce version 2.28.6 of the Python bindings for GObject.
The new release is available from ftp.gnome.org:
http://download.gnome.org/sources/pygobject/2.28/
What’s new since PyGObject 2.28.4?
- closure: avoid double free crash (Ignacio Casal Quinteiro)
- [gi]
On Sun, Jun 12, 2011 at 9:53 PM, Kumar Mainali kpmain...@gmail.com wrote:
I have a huge dataset containing millions of rows and several dozen columns
in a tab delimited text file. I need to extract a small subset of rows and
only three columns. One of the three columns has two word string with
On 6/13/2011 12:53 AM, Kumar Mainali wrote:
I have a huge dataset containing millions of rows and several dozen
columns in a tab delimited text file. I need to extract a small subset
of rows and only three columns. One of the three columns has two word
string with header “Scientific Name”. The
On Sun, Jun 12, 2011 at 9:53 PM, Kumar Mainali kpmain...@gmail.com wrote:
I have a huge dataset containing millions of rows and several dozen columns
in a tab delimited text file. I need to extract a small subset of rows and
only three columns. One of the three columns has two word string
On 13 Giu, 06:30, Tim Roberts t...@probo.com wrote:
Studies have shown that even a
strictly alphabetical layout works perfectly well, once the typist is
acclimated.
Once the user is acclimated to move her hands much more (about 40%
more for Qwerty versus Dvorak), that is.
--
In case the File System is NFTS you might get this error because of user
mapping.There may be some other issues too.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 13, 11:30 am, Tim Roberts t...@probo.com wrote:
Xah Lee xah...@gmail.com wrote:
(a lil weekend distraction from comp lang!)
in recent years, there came this Colemak layout. The guy who created
it, Colemak, has a site, and aggressively market his layout. It's in
linuxes distro by
On Mon, Jun 13, 2011 at 6:42 PM, Yang Ha Nguyen cmp...@gmail.com wrote:
Could you show which studies? Do they do research just about habit or
other elements (e.g. movement rates, comfortablility, ...) as well?
Have they ever heard of RSI because of repetitive movements?
And did any of the
Hey,
I just released a new version of my pythonic text-editor;
Short description:
Deditor is a text-editor for python developers, deditor offers a
python interpreter, code analyzing, checking of errors on save, run
your code directly from the editor or load your module in the
interpreter for
Hello
i try to create a script to convert a date mmddHHMMSS as an UNIX
timestamp. This is an example of my log file
cat /tmp/test.log201106121122332011012614553520110126185500
here is my code:
#! /usr/bin/python
import osimport sysimport globimport reimport time
dir_log = /tmp#loop to
Kruptein wrote:
Deditor is a text-editor for python developers,
I'd like a editor that runs programs on trace and highlight the line(s)
where it step into.
Obviously, if running at normale speed it will disable or if the speed is
reduced it will works.
--
goto /dev/null
--
On Mon, 13 Jun 2011 00:21:53 -0700, Elena wrote:
On 13 Giu, 06:30, Tim Roberts t...@probo.com wrote:
Studies have shown that even a
strictly alphabetical layout works perfectly well, once the typist is
acclimated.
Once the user is acclimated to move her hands much more (about 40% more
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
The actual physical cost of typing is a small part of coding.
Productivity-wise, optimizing the distance your hands move is worthwhile
for typists who do nothing but type, e.g. if you spend their day
mechanically copying text or
On Jun 13, 6:19 pm, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Even if we accept that Dvorak is an optimization, it's a micro-
optimization.
+1
Dvorak -- like qwerty and any other keyboard layout -- assumes the
computer is a typewriter.
This means in effect at least two
Ian Kelly wrote:
If you want your output to behave that way, then all you have to do is
specify that with an explicit encode step.
ok
If we want we change default for whatever we want, but without this
default change Python should not change his behavior depending on
output. yeah I prefer
Hi Gary,
thank you for your answer but i'm using int in my file cat
/tmp/test.log201106121122332011012614553520110126185500
the problem is related to variable line_log that i use in the function,
file_brut = open(log_files_in, 'r')line_log = file_brut.readline()while
line_log:
2011/6/14 Sérgio Monteiro Basto sergi...@sapo.pt:
And see, I can send ascii and utf-8 to utf-8 output and never have problems,
but if I send ascii and utf-8 to ascii files sometimes got encode errors.
If something fits inside 7-bit ASCII, it is by definition valid UTF-8.
This is not a
On Sun, 12 Jun 2011 19:38:42 +, Andre Majorel wrote:
On 2011-06-10, Asen Bozhilov asen.bozhi...@gmail.com wrote:
Andre Majorel wrote:
Is there a way to keep the definitions of the high-level functions at
the top of the source ? I don't see a way to declare a function in
Python.
similar_headers = 0
different_headers = 0
source_headers = sorted(source_mapping.headers)
target_headers = sorted(target_mapping.headers)
# Check if the headers between the two mappings are the same
if set(source_headers) == set(target_headers):
similar_headers = len(source_headers)
else:
On Tue, Jun 14, 2011 at 12:58 AM, Zachary Dziura zcdzi...@gmail.com wrote:
if set(source_headers) == set(target_headers):
similar_headers = len(source_headers)
Since you're making sets already, I'd recommend using set operations -
same_headers is the (length of the) intersection of those two
Hi all.
I'm writing a Python script that will be used to compare two database
tables. Currently, those two tables are dumped into .csv files,
whereby my code goes through both files and makes comparisons. Thus
far, I only have functionality coded to make comparisons on the
headers to check for
On Jun 13, 11:09 am, Chris Angelico ros...@gmail.com wrote:
On Tue, Jun 14, 2011 at 12:58 AM, Zachary Dziura zcdzi...@gmail.com wrote:
if set(source_headers) == set(target_headers):
similar_headers = len(source_headers)
Since you're making sets already, I'd recommend using set operations
On 13/06/2011 14:03, miguel olivares varela wrote:
Hello
i try to create a script to convert a date mmddHHMMSS as an
UNIX timestamp. This is an example of my log file
cat /tmp/test.log
20110612112233
20110126145535
20110126185500
here is my code:
#! /usr/bin/python
import
On Jun 13, 11:06 am, Zachary Dziura zcdzi...@gmail.com wrote:
Hi all.
I'm writing a Python script that will be used to compare two database
tables. Currently, those two tables are dumped into .csv files,
whereby my code goes through both files and makes comparisons. Thus
far, I only have
Consider the following code:
for i in range(mylimit):
foo()
running pychecker gives me a
Local variable (i) not used
complaint.
If I use
for dummy in range(mylimit):
## or
for _ in range(mylimit):
I get no complaint from pychecker.
I would welcome comments on best
On Tue, Jun 14, 2011 at 1:21 AM, Zachary Dziura zcdzi...@gmail.com wrote:
Wow! That was a lot easier than I thought it would be! I guess I
should have done a little bit more research into such operations.
Thanks a bunch!!
:)
Python: Batteries Included.
(Although Python 3 is Most of the
On 13/06/2011 15:33, Steven D'Aprano wrote:
Nick Coghlan wrote:
On Mon, Jun 13, 2011 at 5:11 PM, Steven D'Aprano st...@pearwood.info
wrote:
Function parameters should be kept for actual arguments, not for
optimizing
name look-ups.
Still, the post-** shared state (Jan's option 2) is likely
On Jun 13, 2011, at 11:37 AM, Tim Johnson wrote:
NOTE: I see much on google regarding unused local variables,
however, doing a search for 'python _' hasn't proved fruitful.
Yes, Google's not good for searching punctuation. But 'python underscore dummy
OR unused' might work better.
On a
On Tue, Jun 14, 2011 at 1:37 AM, Tim Johnson t...@johnsons-web.com wrote:
On a related note: from the python interpreter if I do
help(_)
I get
Help on bool object:
class bool(int)
| bool(x) - bool
..
I'd welcome comments on this as well.
_ is special to IDLE.
1+2
3
_
3
It's
On Mon, 13 Jun 2011 07:37:02 -0800, Tim Johnson wrote:
Consider the following code:
[...]
You know Tim, if you hadn't blocked my email address in a fit of pique
over something that didn't even involve you, you would have seen my
answer to your question on the tu...@python.org mailing list
On Tue, 14 Jun 2011 01:39:50 +1000, Chris Angelico wrote:
Python: Batteries Included.
(Although Python 3 is Most of the batteries you're used to, included.)
Oh gods, you're not going to bring up sort(cmp=...) again are you
/me ducks and covers
--
Steven
--
On Tue, 14 Jun 2011 01:55:04 +1000, Chris Angelico wrote:
On Tue, Jun 14, 2011 at 1:37 AM, Tim Johnson t...@johnsons-web.com
wrote:
On a related note: from the python interpreter if I do
help(_)
I get
Help on bool object:
class bool(int)
| bool(x) - bool
..
I'd welcome comments
Did you mean to cross-post this from python-ideas to python-list?
On Mon, 13 Jun 2011 16:43:11 +0100, MRAB wrote:
Here's another way:
def do_work(args):
do_work.pr(doing spam)
spam()
do_work.pr(doing ham)
ham()
# and so on
Sure, there are lots of ways, but that
On Tue, Jun 14, 2011 at 2:02 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Mon, 13 Jun 2011 07:37:02 -0800, Tim Johnson wrote:
Consider the following code:
[...]
You know Tim, if you hadn't blocked my email address in a fit of pique
over something that didn't even
On Tue, Jun 14, 2011 at 2:04 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Tue, 14 Jun 2011 01:39:50 +1000, Chris Angelico wrote:
Python: Batteries Included.
(Although Python 3 is Most of the batteries you're used to, included.)
Oh gods, you're not going to bring up
On Tue, Jun 14, 2011 at 2:15 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Tue, 14 Jun 2011 01:55:04 +1000, Chris Angelico wrote:
_ is special to IDLE.
Not just IDLE. Also the vanilla Python command line interpreter. In fact,
you can even find the code that controls it:
On 13 Giu, 15:19, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Mon, 13 Jun 2011 00:21:53 -0700, Elena wrote:
On 13 Giu, 06:30, Tim Roberts t...@probo.com wrote:
Studies have shown that even a
strictly alphabetical layout works perfectly well, once the typist is
On Mon, Jun 13, 2011 at 9:30 AM, Chris Angelico ros...@gmail.com wrote:
On Tue, Jun 14, 2011 at 2:04 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
On Tue, 14 Jun 2011 01:39:50 +1000, Chris Angelico wrote:
Python: Batteries Included.
(Although Python 3 is Most of the
* Tim Johnson t...@johnsons-web.com [110613 07:58]:
:) I expect to be edified is so many ways, some
of them unexpected.
Thanks for all of the responses and for those which might come
later. I'm going to stick with the convention of using a variable
beginning with `dummy' and stick that
On Tue, Jun 14, 2011 at 3:46 AM, geremy condra debat...@gmail.com wrote:
On Mon, Jun 13, 2011 at 9:30 AM, Chris Angelico ros...@gmail.com wrote:
Ha! That *lengthy* thread started fairly soon after I joined this
list. It was highly... informative. I learned a bit about Python, and
a lot about
On Mon, Jun 13, 2011 at 8:09 AM, Chris Angelico ros...@gmail.com wrote:
On Tue, Jun 14, 2011 at 12:58 AM, Zachary Dziura zcdzi...@gmail.com
wrote:
if set(source_headers) == set(target_headers):
similar_headers = len(source_headers)
Since you're making sets already, I'd recommend using
On Tue, Jun 14, 2011 at 3:58 AM, Dan Stromberg drsali...@gmail.com wrote:
This is a beautiful solution, and yet I feel compelled to mention that it
disregards duplicates within a given list. If you need duplicate
detection/differencing, it's better to sort each list and then use an
algorithm
On Tue, Jun 14, 2011 at 4:11 AM, Chris Angelico ros...@gmail.com wrote:
The algorithm went
something like this:
* Start with pointers to beginnings of both lists.
PS. It wasn't C with pointers and the like; iirc it actually used
array indices as the pointers. Immaterial to the algorithm
Are there any other, better solutions?
Others are e.g.:
- Pypapi
- Camelot
- Kiwi
- Sqlkit
- Gnuenterprise
And I've just learned of another one:
- QtAlchemy
Sincerely,
Wolfgang
--
Führungskräfte leisten keine Arbeit(D'Alembert)
--
I am working on some medical image data, and I try to look into
specific slice of 3d *.raw image. I know voxels are 16 bit int, and
dimensions are 352*470*96. I checked it in some pro medical image
viewer, it is alright. However, with the code I use, I display just
white noise image.(but worked
On Mon, Jun 13, 2011 at 10:50 AM, Chris Angelico ros...@gmail.com wrote:
On Tue, Jun 14, 2011 at 3:46 AM, geremy condra debat...@gmail.com wrote:
On Mon, Jun 13, 2011 at 9:30 AM, Chris Angelico ros...@gmail.com wrote:
Ha! That *lengthy* thread started fairly soon after I joined this
list. It
On Tue, Jun 14, 2011 at 4:20 AM, geremy condra debat...@gmail.com wrote:
I know that, but I mean what were you talking about before if you
weren't talking about cmp?
Not sure what you mean. There were other threads before the cmp thread
started. That thread started with, if my memory serves me
In article mailman.188.1307988677.11593.python-l...@python.org
Chris Angelico ros...@gmail.com wrote:
If order and duplicates matter, then you want a completely different
diff. I wrote one a while back, but not in Python. ...
If order and duplicates matter, one might want to look into
difflib.
On 6/13/2011 2:18 PM, kafooster wrote:
I am working on some medical image data, and I try to look into
specific slice of 3d *.raw image. I know voxels are 16 bit int, and
dimensions are 352*470*96. I checked it in some pro medical image
viewer, it is alright. However, with the code I use, I
On Friday, June 10, 2011 7:30:06 PM UTC-7, Steven D#39;Aprano wrote:
Carl, I'm not exactly sure what your opposition is about here. Others
have already given real-world use cases for where inheriting docstrings
would be useful and valuable. Do you think that they are wrong? If so,
you
Chris Angelico wrote:
On Tue, Jun 14, 2011 at 4:20 AM, geremy condra debat...@gmail.com wrote:
I know that, but I mean what were you talking about before if you
weren't talking about cmp?
Not sure what you mean.
I suspect Geremy is referring to your most of the batteries you're used
to,
Steven D'Aprano wrote:
On Mon, 13 Jun 2011 00:21:53 -0700, Elena wrote:
On 13 Giu, 06:30, Tim Roberts t...@probo.com wrote:
Studies have shown that even a
strictly alphabetical layout works perfectly well, once the typist is
acclimated.
Once the user is acclimated to move her hands much
For this script, it's guaranteed that whatever tables the script goes
through and processes, there will be no duplicate headers. I didn't
include functionality to deal with duplicates because there won't be
any to begin with! I just wanted to find out the most efficient way of
checking for similar
Hi,
I'm having a rather obscure problem with my custom __reduce__ function. I can't
use
__getstate__ to customize the pickling of my class because I want to change the
actual
type that is put into the pickle stream. So I started experimenting with
__reduce__, but
am running into some trouble.
On Jun 13, 2:18 pm, kafooster dmoze...@gmail.com wrote:
I am working on some medical image data, and I try to look into
specific slice of 3d *.raw image. I know voxels are 16 bit int, and
dimensions are 352*470*96. I checked it in some pro medical image
viewer, it is alright. However, with
On Jun 13, 4:08 pm, Wanderer wande...@dialup4less.com wrote:
On Jun 13, 2:18 pm, kafooster dmoze...@gmail.com wrote:
I am working on some medical image data, and I try to look into
specific slice of 3d *.raw image. I know voxels are 16 bit int, and
dimensions are 352*470*96. I
On 13/06/2011 21:20, Wanderer wrote:
On Jun 13, 4:08 pm, Wandererwande...@dialup4less.com wrote:
On Jun 13, 2:18 pm, kafoosterdmoze...@gmail.com wrote:
I am working on some medical image data, and I try to look into
specific slice of 3d *.raw image. I know voxels are 16 bit int,
Wanderer: by *.raw I mean images with .raw extension, pure pixel data
without header
http://en.wikipedia.org/wiki/Raw_image_format
That is a clear and nice code however I think Image.open cannot
handle .raw since i get error
image1 = Image.open(hand.raw, rb)
File
On Jun 13, 4:41 pm, kafooster dmoze...@gmail.com wrote:
Wanderer: by *.raw I mean images with .raw extension, pure pixel data
without headerhttp://en.wikipedia.org/wiki/Raw_image_format
That is a clear and nice code however I think Image.open cannot
handle .raw since i get error
image1
On 13 Cze, 22:52, Wanderer wande...@dialup4less.com wrote:
On Jun 13, 4:41 pm, kafooster dmoze...@gmail.com wrote:
Wanderer: by *.raw I mean images with .raw extension, pure pixel data
without headerhttp://en.wikipedia.org/wiki/Raw_image_format
That is a clear and nice code however I
On Jun 13, 4:58 pm, kafooster dmoze...@gmail.com wrote:
On 13 Cze, 22:52, Wanderer wande...@dialup4less.com wrote:
On Jun 13, 4:41 pm, kafooster dmoze...@gmail.com wrote:
Wanderer: by *.raw I mean images with .raw extension, pure pixel data
without
On Tue, Jun 14, 2011 at 5:11 AM, Ethan Furman et...@stoneleaf.us wrote:
I suspect Geremy is referring to your most of the batteries you're used to,
included comment -- which batteries are missing?
Oh! There's a handful of modules that aren't yet available in 3.x,
which might surprise someone
Hi all,
newbie question here
how can i write code like this:
1 def foo():
2for index in ...
3for plsdoit in ...
4print this is a very long string that i'm going to write 5
here, it'll be for sure longer than 80 columns
the only way i've found is to use the /, but
print this \
is \
a \
test \
RESTART
this is a test
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Jun 13, 2011 at 11:31:29PM +0200, Tracubik wrote:
Hi all,
newbie question here
how can i write code like this:
1 def foo():
2for index in ...
3for plsdoit in ...
4print this is a very long string that i'm going to
write 5 here, it'll be for sure longer
On Mon, 13 Jun 2011 23:31:29 +0200, Tracubik wrote:
1 def foo():
2for index in ...
3for plsdoit in ...
4print this is a very long string that i'm going to/ 5
write here, it'll be for sure longer than 80 columns
If you're going to use the \ anyway, how about:
1 def
On 06/13/2011 04:55 PM, Tycho Andersen wrote:
On Mon, Jun 13, 2011 at 11:31:29PM +0200, Tracubik wrote:
4print this is a very long string that i'm going to
write 5 here, it'll be for sure longer than 80 columns
Is there a better way to split the string?
There is! Python (as C)
On Tue, Jun 14, 2011 at 8:33 AM, Tim Chase
python.l...@tim.thechases.com wrote:
print (this is not
such a huge line
even though it has
lots of text in it.
)
print (
this is not
such a huge line
even though it has
lots of text in it.
)
I'm not seeing
I want a list which contains n lists, which are all different. I had
read a page which was about the mutability of lists, and how the *
operator on lists just does a shallow copy. But I can't find it now.
Does anyone know of that page ?
Either way, How to get a list of list, with all original
On Tue, Jun 14, 2011 at 8:37 AM, SherjilOzair sherjiloz...@gmail.com wrote:
I want a list which contains n lists, which are all different. I had
read a page which was about the mutability of lists, and how the *
operator on lists just does a shallow copy. But I can't find it now.
Does anyone
On 06/13/2011 05:38 PM, Chris Angelico wrote:
On Tue, Jun 14, 2011 at 8:33 AM, Tim Chase
python.l...@tim.thechases.com wrote:
print (this is not
such a huge line
even though it has
lots of text in it.
)
print (
this is not
such a huge line
even though it
I'm using 2.7.1, because that's what my Ubuntu 11.04 bundles (python --
version reports 2.7.1+ though, no idea what the + means). On the other
hand, Ubuntu provides 3.2 packages via apt-get, so I'm in the process
of migrating to 3k. I really like the focus on laziness in 3k (don't
know if 'focus'
On Tue, Jun 14, 2011 at 9:03 AM, Tim Chase
python.l...@tim.thechases.com wrote:
On 06/13/2011 05:38 PM, Chris Angelico wrote:
I'm not seeing the difference between these two. Pointer, please?
*puzzled*
Sorry...tried to make that clear in the surrounding text. The first one has
the
On Tue, Jun 14, 2011 at 9:08 AM, SigmundV sigmu...@gmail.com wrote:
To the OP I'd say: learn Python through 3.2. It's the best way
forward, for the sake of yourself and others. The only way more
modules can become 3k compatible is if more people use 3k.
I skipped 3.2 and went straight to 3.3a0
On Thu, Jun 9, 2011 at 11:00 PM, harrismh777 harrismh...@charter.net wrote:
Andrew Berg wrote:
AFAICT, there are three reasons to learn Python 2:
... there is a fourth reason.
The linux distro you are using currently was customized with python 2.x
I ran into this problem this week in
Wolfgang Keller felip...@gmx.net wrote in
news:20110612191740.0de83e0e.felip...@gmx.net:
Are there any other, better solutions?
Others are e.g.:
- Pypapi
- Camelot
- Kiwi
- Sqlkit
- Gnuenterprise
etc...
Sincerely,
Wolfgang
Many thanks to all of you for the interesting
On 6/12/2011 12:38 PM, Andre Majorel wrote:
On 2011-06-10, Asen Bozhilovasen.bozhi...@gmail.com wrote:
Andre Majorel wrote:
Is there a way to keep the definitions of the high-level
functions at the top of the source ? I don't see a way to
declare a function in Python.
Languages with
Tim Johnson t...@johnsons-web.com writes:
If I use
for dummy in range(mylimit):
## or
for _ in range(mylimit):
I get no complaint from pychecker.
I would welcome comments on best practices for this issue.
I have argued in the past against overloading the name ‘_’
In article 4df669ea$0$49182$e4fe5...@news.xs4all.nl
Irmen de Jong irmen.nos...@xs4all.nl wrote:
I've pasted my test code below. It works fine if 'substitute' is True,
but as soon as it is set to False, it is supposed to call the original
__reduce__ method of the base class. However, that seems to
Steven D'Aprano wrote:
Hoisting in computing refers to the idea of lifting variables or code
outside of one block into another.
I'm not sure it's the right term for what's happening here,
though. Nothing is being lifted to a higher level -- the
functions remain at the same level they were
Chris Angelico wrote:
And did any of the studies take into account the fact that a lot of
computer users - in all but the purest data entry tasks - will use a
mouse as well as a keyboard?
What I think's really stupid is designing keyboards with two
big blocks of keys between the alphabetic
On Tue, Jun 14, 2011 at 11:45 AM, Gregory Ewing
greg.ew...@canterbury.ac.nz wrote:
Chris Angelico wrote:
And did any of the studies take into account the fact that a lot of
computer users - in all but the purest data entry tasks - will use a
mouse as well as a keyboard?
What I think's
Tim Roberts wrote:
Andre Majorel che...@halliburton.com wrote:
Anyway, it seems the Python way to declare a function is
def f ():
pass
No, that DEFINES a function.
Actually, it's more illuminating to say that it *creates* a function.
The 'def' statement in Python is an executable
Gregory Ewing greg.ew...@canterbury.ac.nz wrote in message
news:95ntrifod...@mid.individual.net...
Tim Roberts wrote:
Andre Majorel che...@halliburton.com wrote:
Anyway, it seems the Python way to declare a function is
def f ():
pass
No, that DEFINES a function.
Actually, it's
On 2011-06-14, Gregory Ewing greg.ew...@canterbury.ac.nz wrote:
Chris Angelico wrote:
And did any of the studies take into account the fact that a lot of
computer users - in all but the purest data entry tasks - will use a
mouse as well as a keyboard?
What I think's really stupid is
On 6/13/2011 5:51 PM, darnold wrote:
print this \
is \
a \
test \
this is a test
print('this'
' is'
' a'
' test')
this is a test
Python ignores \n within parentheses, brackets, and braces, so no
fragile trailing backslash needed. ('Fragile', because
I started an open source file organizer called Miranda. Miranda is
inspired by Belvedere written by Adam Pash of Lifehacker (http://
lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc). I
know you guys must be thinking Hmm, Miranda, isn't that an IM
application ?; Yep I hear you,
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
From the python docs for version 3.2:
19.12.3. ElementTree Objects
find(match)
[...] Same as getroot().find(match). [...]
This is not true: tree.find accepts an absolute path (like /*) , whereas
element.find doesn't. Also
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
Python 3.2 supports ElementPath version 1.3. The relevant documentation is
http://effbot.org/zone/element-xpath.htm. It says:
.. (New in 1.3) Selects the parent element.
However, a CHANGES document says:
The engine also
New submission from patrick vrijlandt patrick.vrijla...@gmail.com:
From http://effbot.org/zone/element-xpath.htm:
[position] (New in 1.3) Selects all elements that are located at the given
position. The position can be either an integer (1 is the first position), the
expression “last()”
New submission from DDarko ddarko...@gmail.com:
I added an example to reproduce the bug.
From the command line the same code:
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2
$ python sort_test.py
Everything fine.
Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC
Changes by Antoine Pitrou pit...@free.fr:
--
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2122
___
___
Mark Dickinson dicki...@gmail.com added the comment:
This is expected behaviour: Python 3 changed the semantics of the comparison
operators , =, , =. See:
http://docs.python.org/py3k/whatsnew/3.0.html#ordering-comparisons
for more.
--
nosy: +mark.dickinson
resolution: - invalid
DDarko ddarko...@gmail.com added the comment:
I am aware of this change.
In this example, I'm sort by item number 1, which is a list, and its first
value is an int.
$ python3 sort_test.py
class 'list'
class 'list'
class 'list'
class 'list'
class 'list'
class 'list'
...
Dict index is always
New submission from Cal Leeming cal.leem...@simplicitymedialtd.co.uk:
I believe I might have found a bug in the Python re libraries. Here is a
complete debug of what is happening (my apologies for the nature of the actual
text). I have ran this regex through RegexBuddy (and a few other tools),
Changes by Cal Leeming cal.leem...@simplicitymedialtd.co.uk:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12325
___
___
1 - 100 of 184 matches
Mail list logo