On 05/10/2013 09:07 AM, rusi wrote:
On May 10, 8:32 pm, Chris Angelico wrote:
On Sat, May 11, 2013 at 1:24 AM, Ned Batchelder wrote:
On 5/10/2013 11:06 AM, jmfauth wrote:
On 8 mai, 15:19, Roy Smith wrote:
Apropos to any of the myriad unicode threads that have been going on
recently:
On 05/13/2013 02:44 PM, Fábio Santos wrote:
I have followed the process of the new PEP closely, and as such I know
that there is a repository containing the reference implementation, a
link to which was posted on the python-dev list. Is it okay to link to
this repository in my new blog post about
On 05/21/2013 08:39 AM, Skip Montanaro wrote:
Don't confuse the use of "static" in Python with its use in C/C++. From a post
on StackOverflow:
A staticmethod is a method that knows nothing about the class or instance
it was called on. It just gets the
arguments that were passed, no im
On 05/21/2013 12:06 PM, Chris “Kwpolska” Warrick wrote:
On Tue, May 21, 2013 at 8:49 PM, Carlos Nepomuceno wrote:
Thank you, but let me rephrase it. I'm already using str.format() but I'd like
to use '%' (BINARY_MODULO) operator instead.
There is no real reason to do this. `str.format()` is
On 05/21/2013 07:26 PM, Carlos Nepomuceno wrote:
I was looking for something else and just found what I think is the place where
I was first exposed to the myth[1]:
"Since str.format() is quite new, a lot of Python code still uses the % operator.
However, because this old style of formatting w
On 05/23/2013 12:20 PM, Neil Cerutti wrote:
On 2013-05-23, Matthew Gilson wrote:
That's fine, but what is a keyword argument? According to the glossary
(http://docs.python.org/3.3/glossary.html):
/"keyword argument/: an argument preceded by an identifier (e.g. name=)
in a function call or pa
On 05/30/2013 05:58 AM, Chris Angelico wrote:
On Thu, May 30, 2013 at 10:40 PM, Roy Smith wrote:
if somebody were to accidentally drop three zeros into the source code:
x = 1000
while x < 173:
print(x)
x += 1
should the loop just quietly not execute (which is what it will do
here)
On 05/30/2013 08:56 AM, Chris Angelico wrote:
On Fri, May 31, 2013 at 1:02 AM, Ethan Furman wrote:
On 05/30/2013 05:58 AM, Chris Angelico wrote:
If you iterate from 1000 to 173, you get nowhere. This is the expected
behaviour; this is what a C-style for loop would be written as, it's
On 06/10/2013 05:57 AM, Robert Kern wrote:
On 2013-06-08 22:31, Malte Forkel wrote:
Hello,
I have written a small utility to locate errors in regular expressions
that I want to upload to PyPI. Before I do that, I would like to learn
a litte more about the legal aspects of open-source software.
While I agree with Chris that 3.x is best, there is a free class from Udacity that is actually pretty good, even if it
does target Python2 (.7 I believe).
https://www.udacity.com/course/cs101
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On 06/12/2013 05:04 PM, Mark Janssen wrote:
Steven D'Aprono wrote:
Apart from Erlang, got any other examples? Because it seems to me that in
languages with nested scopes or namespaces, shadowing higher levels is
exactly the right thing to do.
Really?
--> int="five"
--> [int(i) for i in ["1",
On 06/12/2013 10:30 PM, Modulok wrote:
If he wants to learn game programming, teach him game programming. [. . .]
Oh, that reminds me:
http://inventwithpython.com/
Which has a number of free books; the two of interest for your son being:
Invent Your Own Computer Games with
On 06/13/2013 06:23 PM, Steven D'Aprano wrote:
I consider IDEs to be an attractive nuisance. It's like learning to be a
chef by putting food in a microwave and pushing the pre-set buttons.
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
On 06/23/2013 12:05 PM, Ian Kelly wrote:
On Sun, Jun 23, 2013 at 12:46 PM, Steven D'Aprano
wrote:
All is not lost, there are ways to make your classes cooperative. The
trick is to have your classes' __init__ methods ignore keyword arguments
they don't know what to do with. object used to do the
On 06/23/2013 11:50 AM, Steven D'Aprano wrote:
On Sun, 23 Jun 2013 12:04:35 -0600, Ian Kelly wrote:
On Sun, Jun 23, 2013 at 11:36 AM, Steven D'Aprano
wrote:
On Sun, 23 Jun 2013 11:18:41 -0600, Ian Kelly wrote:
Incidentally, although super() is useful, it's not perfect, and this
is one of my
On 06/26/2013 04:54 PM, Steven D'Aprano wrote:
On Wed, 26 Jun 2013 13:14:44 -0700, Ethan Furman wrote:
On 06/23/2013 11:50 AM, Steven D'Aprano wrote:
What else would you call a function that does lookups on the current
object's superclasses?
Well, I would call it super
On 06/27/2013 11:39 AM, Terry Reedy wrote:
On 6/27/2013 2:18 PM, Dave Angel wrote:
On 06/27/2013 02:05 PM, Terry Reedy wrote:
On 6/27/2013 8:54 AM, Andrew Berg wrote:
I've begun writing a program with an interactive prompt, and it needs
to parse input from the user. I thought the argparse mod
On 06/28/2013 03:48 AM, Thomas Heller wrote:
trying out the enum34 module.
What I want to create is a subclass of enum.Enum that is also
based on ctypes.c_int so that I can better use enum instances
in ctypes api calls.
Have you tried using enum.IntEnum? If you were able to pass ints in befor
On 06/28/2013 08:32 AM, Thomas Heller wrote:
Am 28.06.2013 17:25, schrieb Thomas Heller:
Robert Kern:
enum.EnumMeta uses super() in its __new__() implementation but
_ctypes.PyCSimpleType doesn't. Thus, only
_ctypes.PyCSimpleType.__new__() gets a chance to run. Switching the
order of the two m
On 06/27/2013 03:49 PM, Steven D'Aprano wrote:
[rant]
I think it is lousy design for a framework like argparse to raise a
custom ArgumentError in one part of the code, only to catch it elsewhere
and call sys.exit. At the very least, that ought to be a config option,
and off by default.
Librarie
On 06/28/2013 10:28 PM, Steven D'Aprano wrote:
I'm willing to concede that, just maybe, something like argparse could
default to "catch exceptions and exit" ON rather than OFF.
On this we can agree. :)
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On 07/07/2013 06:43 AM, Chris Angelico wrote:
On Sun, Jul 7, 2013 at 11:13 PM, Wayne Werner wrote:
Which you would then use like:
conn = create_conn()
with new_transaction(conn) as tran:
rows_affected = do_query_stuff(tran)
if rows_affected == 42:
tran.commit()
Yep. T
On 07/07/2013 06:43 AM, Chris Angelico wrote:
The 'with' statement doesn't allow this. I would need to use some kind
of magic to rebind the old transaction to the name, or else use a list
that gets magically populated:
with new_transaction(conn) as tran:
tran[-1].query("blah")
with su
On 07/08/2013 03:39 AM, Joshua Landau wrote:
On 8 July 2013 00:32, Xue Fuqiao wrote:
Hi all,
(English is not my native language; please excuse typing errors.)
I'm a Python newbie and just started reading PEP 8. PEP says:
--
On 07/09/2013 01:38 AM, Frank Millman wrote:
"Ian Kelly" wrote in message
news:CALwzid=fzgjpebifx1stdbkh8iwltwggwwptphz1ykyg+05...@mail.gmail.com...
On Tue, Jul 9, 2013 at 1:35 AM, Frank Millman wrote:
When any of them need any database access, whether for reading or for
updating, they execu
On 07/09/2013 10:03 AM, L O'Shea wrote:
Hi all,
Howdy!
I'm interning and have been given the job of extending a program that has been
written by someone else. I've never used Python before so it's a bit of a
struggle but I've got to say I'm loving the language so far.
Excellent way to st
On 07/09/2013 09:44 AM, Ian Kelly wrote:
On Tue, Jul 9, 2013 at 10:07 AM, Ethan Furman wrote:
You could also do it like this:
def updating(self):
self.transaction_active = True
return self
Yes, that would be simpler. I was all set to point out why this
doesn't
On 07/09/2013 11:41 AM, Ian Kelly wrote:
On Tue, Jul 9, 2013 at 11:23 AM, Ethan Furman wrote:
On 07/09/2013 09:44 AM, Ian Kelly wrote:
On Tue, Jul 9, 2013 at 10:07 AM, Ethan Furman wrote:
You could also do it like this:
def updating(self):
self.transaction_active = True
On 07/09/2013 03:01 PM, Russel Walker wrote:
This is a simplified example of what I want to do:
# THIS DOESN'T WORK
from random import choice
class Expr(object):
"""
Expr(expr, op, val) -> an expression object.
"""
def __init__(self, expr, op='', val=''):
self.ex
On 07/09/2013 10:54 PM, Frank Millman wrote:
"Ian Kelly" wrote in message
news:calwzidnf3obe0enf3xthlj5a40k8hxvthveipecq8+34zxy...@mail.gmail.com...
On Tue, Jul 9, 2013 at 10:07 AM, Ethan Furman wrote:
You could also do it like this:
def upd
On 07/10/2013 08:54 AM, Joshua Landau wrote:
On 10 July 2013 10:00, Steven D'Aprano wrote:
On Wed, 10 Jul 2013 07:55:05 +, Mats Peterson wrote:
A moderator who calls himself “animuson” on Stack Overflow doesn’t want
to face the truth. He has deleted all my postings regarding Python
regula
Back in Python 2.x days I had a good grip on dict and dict.keys(), and when to
use one or the other.
Then Python 3 came on the scene with these things called 'views', and while range couldn't be bothered, dict jumped up
and down shouting, "I want some!"
So now, in Python 3, .keys(), .values()
On 07/24/2013 05:51 AM, Oscar Benjamin wrote:
On Jul 24, 2013 7:25 AM, "Peter Otten" <__pete...@web.de
<mailto:pete...@web.de>> wrote:
Ethan Furman wrote:
> So, my question boils down to: in Python 3 how is dict.keys() different
> from dict? What are the use ca
On 07/24/2013 10:23 AM, Stefan Behnel wrote:
Peter Otten, 24.07.2013 08:23:
Ethan Furman wrote:
So, my question boils down to: in Python 3 how is dict.keys() different
from dict? What are the use cases?
To me it looks like views are a solution waiting for a problem.
They reduce the API
On 07/24/2013 12:59 PM, Stefan Behnel wrote:
I think the question is: how else would you implement an interface that
doesn't restrict itself to returning a list? I mean, previously, the
following was totally inefficient in terms of memory:
value in d.values()
It now avoids creating an int
On 07/24/2013 01:34 PM, Prasad, Ramit wrote:
I am still not clear on the advantage of views vs. iterators. What
makes d.viewkeys() better than d.iterkeys()? Why did they decide
not to rename d.iterkeys() to d.keys() and instead use d.viewkeys()?
Is the iteration over a set operation on keys real
On 07/23/2013 07:11 PM, Steven D'Aprano wrote:
On Tue, 23 Jul 2013 18:16:08 -0700, Ethan Furman wrote:
So now, in Python 3, .keys(), .values(), even .items() all return these
'view' thingies.
And everything I thought I knew about when to use one or the other went
out the windo
On 07/24/2013 11:01 PM, alex23 wrote:
On 25/07/2013 4:31 AM, Ethan Furman wrote:
2) Hopefully learn something about when a view is useful.
I haven't seeen this mentioned - forgive me if it's a repeat - but views are
constant references to whichever set they
represent.
Python
On 07/24/2013 10:48 PM, Steven D'Aprano wrote:
On Wed, 24 Jul 2013 08:57:11 -0700, Ethan Furman wrote:
My point is that in 2.x .keys() did something different from the dict,
while in 3.x it appears to me that they are the same.
Then you aren't looking very closely.
Actually, I a
On 07/25/2013 09:11 AM, Prasad, Ramit wrote:
Terry Reedy wrote:
On 7/24/2013 4:34 PM, Prasad, Ramit wrote:
I am still not clear on the advantage of views vs. iterators.
A1: Views are iterables that can be iterated more than once. Therefore,
they can be passed to a function that re-iterates
On 07/28/2013 10:57 AM, Chris Angelico wrote:
.
.
.
Okay, how did you get confused that this was a Python List question? ;)
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
Excerpt from http://meta.stackoverflow.com/q/190442/176681:
Janrain no longer actively supports MyOpenID, and announced on Twitter that
their users should proceed with caution.
This decision was made by Janrain, [snip]
I know the Python bug tracker allows MyOpenID logins; if that is your only
On 07/29/2013 02:11 AM, Antoine Pitrou wrote:
Le Mon, 29 Jul 2013 00:55:53 -0700,
Ethan Furman a écrit :
Excerpt from http://meta.stackoverflow.com/q/190442/176681:
Janrain no longer actively supports MyOpenID, and announced on
Twitter that their users should proceed with caution.
This
On 07/29/2013 04:34 PM, Devyn Collier Johnson wrote:
On 07/29/2013 05:53 PM, Grant Edwards wrote:
On 2013-07-29, Devyn Collier Johnson wrote:
On Python3, how can I perform bitwise operations? For instance, I want
something that will 'and', 'or', and 'xor' a binary integer.
http://www.google
On 07/30/2013 11:18 AM, Bas van der Wulp wrote:
Using the enum34 0.9.13 package from PyPi in Python 2.7.3, the examples for
OrderedEnum seem to be broken.
Thanks for catching that, I'll get it fixed asap.
Also, in the example in the Python 3.4 library documentation (section 8.17.2)
has the
On 07/30/2013 11:38 AM, Ethan Furman wrote:
Thanks for catching that, I'll get it fixed asap.
Latest code is on PyPI.
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On 07/30/2013 11:58 AM, Ian Kelly wrote:
On Tue, Jul 30, 2013 at 12:18 PM, Bas van der Wulp wrote:
Replacing each occurrence of self._value with either self._value_ or
self.value in the examples seems to make them work as expected.
Are both examples incorrect, or not intended to work in Python
Charles Hixson wrote:
On 06/25/2012 12:48 AM, Steven D'Aprano wrote:
"Catch any exception" is almost certainly the wrong thing to do, almost
always.
This time it was the right thing
No, it wasn't. If you hadn't caught it, Python would have printed it
out for you, along with the full tra
Ben Finney wrote:
Chris Angelico writes:
梦幻草 wrote:
why can't I send images to python-list@python.org??
>>
It's a text-only list.
I'll take this opportunity to give heartfelt thanks to the
administrators for that policy; please keep this a text-only forum.
+1000
--
http://mail.python
Ian Kelly wrote:
def del_b(self, b):
for i, x in enumerate(self.array):
if b is x:
del self.array[i]
break
Nice work, Ian.
--
http://mail.python.org/mailman/listinfo/python-list
I'm looking for some free advice. ;)
My dbf module has three basic containers, all of which support list-like
access: Table, List, and Index, each of which is filled with _DbfRecords.
The fun part is that a _DbfRecord can compare equal to another
_DbfRecord, a _DbfRecordTemplate, a tuple wi
MRAB wrote:
On 06/07/2012 22:34, Ethan Furman wrote:
I'm looking for some free advice. ;)
My dbf module has three basic containers, all of which support list-like
access: Table, List, and Index, each of which is filled with
_DbfRecords.
The fun part is that a _DbfRecord can compare
Devin Jeanpierre wrote:
On Fri, Jul 6, 2012 at 6:46 PM, Ethan Furman wrote:
It's checking for equality, not identity.
>>> x = float('nan')
>>> x in [x]
True
It's checking for equality OR identity.
Good point. In my case, checking for equality w
Jean-Michel Pichavant wrote:
Why would you want to hire someone that knows something pointless as the
version where feature X has been introduced ?
As an example from today, if someone claimed to have 5+ years of Python
experience, but didn't know that 'with' was standard in 2.6 (or at least
Chris Angelico wrote:
On Wed, Jul 11, 2012 at 2:34 AM, Steven D'Aprano
wrote:
Of course, if they try to sell themselves as having
five years experience with Python 3.2...
... then they've been borrowing Guido's time machine for personal purposes.
Reminds me of a job posting a few years ago
Mark Lawrence wrote:
Google tells me that various certifications are available but I'd like
to know if any of these are approved by the PSF or whoever would be
responsible? If there's anything out there I've missed it :-(
There is an O'Reilly Python Certification class offered in conjunctio
Steven D'Aprano wrote:
On Sun, 15 Jul 2012 10:19:16 -0600, Ian Kelly wrote:
On Sun, Jul 15, 2012 at 4:56 AM, Steven D'Aprano wrote:
(For the record, I can only think of one trap for the unwary: time
objects are false at *exactly* midnight.)
>>
Ugh, that's irritating. I can't think of any sce
Andrew Berg wrote:
On 7/15/2012 9:38 PM, Steven D'Aprano wrote:
I would expect None to mean "doesn't exist" or "unknown" or
something like that - e.g., a value of 0 means 0 jelly beans in the jar
and None means there isn't a jar.
>>
How you interpret some_variable = None depends on what some_va
Andrew Berg wrote:
To put it in duck-typing terms, why should everything have to quack like
True or False? Sure, I can see why 1 quacks like True or [] quacks like
False, but I don't see why say, a Logger or function should quack like
either. Should a Thread object be True if it's been started an
Terry Reedy wrote:
On 7/17/2012 10:23 AM, Lipska the Kat wrote:
Well 'type-bondage' is a strange way of thinking about compile time type
checking and making code easier to read (and therefor debug
'type-bondage' is the requirement to restrict function inputs and output
to one declared type,
Mark Lawrence wrote:
On 17/07/2012 18:29, Ethan Furman wrote:
Terry Reedy wrote:
On 7/17/2012 10:23 AM, Lipska the Kat wrote:
Well 'type-bondage' is a strange way of thinking about compile time
type
checking and making code easier to read (and therefor debug
'type-
In Foxpro if you do a
GOTO 7
with deleted off and record 7 is deleted, the record pointer doesn't
move (at least in version 6).
I don't like that.
I see four other options:
0) don't move the pointer (listed for completeness)
1) go to that record anyway
2) go to the next undeleted record
3) go
Ian Kelly wrote:
On Tue, Jul 17, 2012 at 4:57 PM, Ethan Furman wrote:
In Foxpro if you do a
GOTO 7
with deleted off and record 7 is deleted, the record pointer doesn't
move (at least in version 6).
I don't like that.
I see four other options:
0) don't move the poin
MRAB wrote:
On 17/07/2012 23:57, Ethan Furman wrote:
In Foxpro if you do a
GOTO 7
with deleted off and record 7 is deleted, the record pointer doesn't
move (at least in version 6).
I don't like that.
I see four other options:
0) don't move the pointer (listed for complet
MRAB wrote:
On 18/07/2012 03:19, Ethan Furman wrote:
MRAB wrote:
On 17/07/2012 23:57, Ethan Furman wrote:
In Foxpro if you do a
GOTO 7
with deleted off and record 7 is deleted, the record pointer doesn't
move (at least in version 6).
I don't like that.
I see four other options:
Lipska the Kat wrote:
On 18/07/12 14:05, Steven D'Aprano wrote:
Even with a break, why bother continuing through the body of the function
when you already have the result? When your calculation is done, it's
done, just return for goodness sake. You wouldn't write a search that
keeps going after
Ed Leafe wrote:
On Jul 17, 2012, at 5:57 PM, Ethan Furman wrote:
In Foxpro if you do a
GOTO 7
with deleted off and record 7 is deleted, the record pointer doesn't
move (at least in version 6).
I don't like that.
I see four other options:
0) don't move the pointer (listed f
Getting closer to a stable release.
Latest version has a simpler, cleaner API, and works on PyPy (and
hopefully the other implementations as well ;), as well as CPython.
Get your copy at http://python.org/pypi/dbf.
Bug reports, comments, and kudos welcome! ;)
~Ethan~
--
http://mail.python.o
Steven D'Aprano wrote:
On Fri, 20 Jul 2012 16:59:21 -0700, Ethan Furman wrote:
Getting closer to a stable release.
Excellent! That's fantastic news! I've been waiting for a stable release
of dbf for months! I just have one question.
What is dbf?
:)
dbf (also known as pyt
Steven D'Aprano wrote:
This mailing list is about helping our fellow Python developers improve
their skills and solve problems. That doesn't just mean *coding*
problems, it also means helping them to write better documentation and
promote their software better.
Indeed it is, and your reminder
Simon Cropper wrote:
Question 1 - What version of VFP will dbf work with? Is VFP9 OK?
As long as you don't use auto-incrementing fields nor varchar fields
you'll be fine.
Question 2 - You statement of compatibility is unclear.
Works with CPython 2.4 - 2.7. (Tested)
Works with PyPy 1.8.
Chris Angelico wrote:
On Sat, Jul 21, 2012 at 6:02 PM, Ethan Furman wrote:
Works with CPython 2.4 - 2.7. (Tested)
Have you considered supporting 3.2/3.3 at all? It's often not
difficult to make your code compatible with both. Or is there some
dependency that is locked to 2.X?
I'
Alex Strickland wrote:
Hi
Getting closer to a stable release.
Latest version has a simpler, cleaner API, and works on PyPy (and
hopefully the other implementations as well ;), as well as CPython.
Get your copy at http://python.org/pypi/dbf.
Bug reports, comments, and kudos welcome! ;)
"No
Ethan Furman wrote:
Alex Strickland wrote:
"Not supported: index files":
I have been using http://sourceforge.net/projects/harbour-project/ for
years where a guy called Przemyslaw Czerpak has written an absolutely
bullet proof implementation of NTX and CDX for DBF. Maybe it will
Chris Angelico wrote:
On Sun, Jul 22, 2012 at 4:15 AM, Ethan Furman wrote:
I'll support 3.3+, but not with the same code base: I want to use all the
cool features that 3.3 has! :)
The trouble with double-codebasing is that you have double
maintenance. But sure. So long as your time
Terry Reedy wrote:
Leaving aside the point that this is not directly related to Python, my
opinion is that if the authors will not make past and future papers
freely available, not even an abstract, they should not ask for valuable
free data from freely donated time.
Thanks, Terry! Save me s
Ian Kelly wrote:
On Tue, Jul 24, 2012 at 8:50 AM, Chris Angelico wrote:
Americans celebrate March 14th as 3.14; some Europeans celebrate July
22nd as 22/7 (which is 3.142857, fairly close to 3.14159). We claim
both, and also June 28th (aka Tau Day or Two Pi Day, 6.28).
Hey now, Tau Day is an
Ulrich Eckhardt wrote:
I just had an idea, it occurred to me that the pass statement is pretty
similar to the print statement, and similarly to the print() function,
there could be a pass() function that does and returns nothing.
Example:
def pass():
return
try:
do_somethi
Ross Ridge wrote:
Ross Ridge wrote:
No, they're very much alike. That's why all your arguments for print
as function also apply just as well to pass a function. Your arguments
had very little to do what what print actually did.
Chris Angelico wrote:
Except that print / print() is executa
A few more bug fixes, and I actually included the documentation this
time. :) It can be found at http://python.org/pypi/dbf, and has been
tested on CPythons 2.4 - 2.7, and PyPy 1.8.
dbf v0.94.003
=
dbf (also known as python dbase) is a module for reading/writing
dBase III, FP,
Chris Angelico wrote:
On Tue, Jul 24, 2012 at 1:20 AM, Steven D'Aprano
wrote:
(Although if you think about the implementation of dicts as hash tables,
it does seem likely that it is trivial to enforce this -- one would have
to work *harder* to break that promise than to keep it.)
However, it
Steven D'Aprano wrote:
Python's promise is much stronger than merely "deterministic": while it
does not promise what order the keys will be returned, it does promise
that whatever that order turns out to be, they will returned in the same
order as the matching values (unless you modify the dict
John Ladasky wrote:
On Wednesday, July 25, 2012 9:32:33 PM UTC-7, Ethan Furman wrote:
What code does `pass` run? When do we pass parameters to `pass`? When
do we need to override `pass`?
Answers: None. Never. Still waiting for a reply from the OP for a use
case.
When I brought up
John Ladasky wrote:
I had very similar thoughts about eight months ago, and posted them here:
https://groups.google.com/forum/?fromgroups#!topic/comp.lang.python/CB_5fek2b8A
I'm no computer science guru, but the idea that pass should be a function
rather than a statement continues to appeal to
Simon Cropper wrote:
On 27/07/12 05:31, Ethan Furman wrote:
A few more bug fixes, and I actually included the documentation this
time. :) It can be found at http://python.org/pypi/dbf, and has been
tested on CPythons 2.4 - 2.7, and PyPy 1.8.
[snip]
Ethan,
That's great.
Can you comme
Pedro Kroger wrote:
Pyknon is a simple music library for Python hackers.
Sounds cool. How is 'Pyknon' pronounced?
It's available on PyPI and its homepage is
http://kroger.github.com/pyknon/
I would suggest you change the theme -- using Firefox 3.6 the page is
very difficult to read.
~E
Pedro Kroger wrote:
On Jul 30, 2012, at 3:33 PM, Ethan Furman <mailto:et...@stoneleaf.us>> wrote:
Pedro Kroger wrote:
Pyknon is a simple music library for Python hackers.
Sounds cool. How is 'Pyknon' pronounced?
I pronounce it similarly as google translate do
Terry Reedy wrote:
On 7/31/2012 4:49 PM, Chris Kaynor wrote:
On Tue, Jul 31, 2012 at 1:21 PM, Terry Reedy wrote:
Another example: KeyError and IndexError are both subscript errors,
but there is no SubscriptError superclass, even though both work
thru the same mechanism -- __getitem__. The reas
SQLite has a neat feature where if you give it a the file-name of
':memory:' the resulting table is in memory and not on disk. I thought
it was a cool feature, but expanded it slightly: any name surrounded by
colons results in an in-memory table.
I'm looking at the same type of situation with
Peter Otten wrote:
Ethan Furman wrote:
SQLite has a neat feature where if you give it a the file-name of
':memory:' the resulting table is in memory and not on disk. I thought
it was a cool feature, but expanded it slightly: any name surrounded by
colons results in an in-memory t
Mark Lawrence wrote:
On 21/07/2012 00:59, Ethan Furman wrote:
Getting closer to a stable release.
Latest version has a simpler, cleaner API, and works on PyPy (and
hopefully the other implementations as well ;), as well as CPython.
Get your copy at http://python.org/pypi/dbf.
Bug reports
subhabangal...@gmail.com wrote:
On Friday, August 3, 2012 5:19:46 PM UTC+5:30, Subhabrata wrote:
Dear Group,
I am trying to call the values of one function in the another function in the
following way:
def func1():
num1=10
num2=20
print "The Second Number is:",num
Ole Martin Bjørndalen wrote:
On Thu, Aug 2, 2012 at 5:55 PM, Ethan Furman wrote:
SQLite has a neat feature where if you give it a the file-name of ':memory:'
the resulting table is in memory and not on disk. I thought it was a cool
feature, but expanded it slightly: any name sur
Mark Lawrence wrote:
With arrogance like that German by any chance?
Comments like that are not appropriate on this list. Please don't make
them.
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
[redirecting back to list]
Ole Martin Bjørndalen wrote:
On Sun, Aug 5, 2012 at 4:09 PM, Ethan Furman wrote:
Ole Martin Bjørndalen wrote:
You can do this by implementing either __getitem__ or __iter__, unless the
streaming flag would also make your table not in memory.
Cool!
Wow! I realize
John Mordecai Dildy wrote:
I am currently using python 2.6 and am not going to install the newer versions
of python and i am looking for people that are still using ver 2.6 in python to
help with with the code line:
sentence = "All good things come to those who wait."
then im getting this err
Tom P wrote:
consider a nested loop algorithm -
for i in range(100):
for j in range(100):
do_something(i,j)
Now, suppose I don't want to use i = 0 and j = 0 as initial values, but
some other values i = N and j = M, and I want to iterate through all
10,000 values in sequence - is t
Ed Leafe wrote:
When converting from paradigms in other languages, I've often been
tempted to follow the accepted pattern for that language, and I've almost
always regretted it.
+1
When in doubt, make it as Pythonic as possible.
+1 QOTW
~Ethan~
--
http://mail.python.org/
Indexes have a new method (rebirth of an old one, really):
.index_search(
match,
start=None,
stop=None,
nearest=False,
partial=False )
The defaults are to search the entire index for exact matches and raise
NotFoundError if it can't find anything.
match is the search
Tim Chase wrote:
On 08/15/12 18:26, Ethan Furman wrote:
.index_search(
match,
start=None,
stop=None,
nearest=False,
partial=False )
The defaults are to search the entire index for exact matches and raise
NotFoundError if it can't find anything.
The questi
1 - 100 of 1928 matches
Mail list logo