In article ,
Lawrence D'Oliveiro wrote:
>In message , Aahz wrote:
>>
>> It helps to remember that names and namespaces are in many
>> ways syntactic sugar for dicts or lists.
>
>Interesting, though, that Python insists on maintaining a distinction
>between c["x"] and c.x, whereas JavaScript does
Roland Hedberg catalogix.se> writes:
> I have a problem with zlib and compressing/decompressing according to
> RFC 1951.
>
> It seems like I can decompress, something compressed according to RFC
> 1951 by someone else, provided I set wbits to something negative (used
> -8 but I guess any n
On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert
wrote:
>On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
>> What is the Python equivalent of the PHP explode() function?
>
>some_string.split("separator")
>
>Cheers,
>Chris
Thanks,
Fr
On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
> What is the Python equivalent of the PHP explode() function?
some_string.split("separator")
Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list
What is the Python equivalent of the PHP explode() function?
Fred
--
http://mail.python.org/mailman/listinfo/python-list
Lawrence D'Oliveiro wrote:
Interesting, though, that Python insists on maintaining a distinction
between c["x"] and c.x, whereas JavaScript doesn't bother.
And that distinction is a good thing. It means, for
example, that dictionaries can have methods without
colliding with the key space of th
Hendrik van Rooyen wrote:
The creativity could, arguably, be in the "Design".
Not in the translation to python, or assembler.
No way. That is just coding.
No, the mechanical part of the process is called compiling,
and we have programs to do it for us.
By the time you've specified the design
In message , Aahz wrote:
> It helps to remember that names and namespaces are in many
> ways syntactic sugar for dicts or lists.
Interesting, though, that Python insists on maintaining a distinction
between c["x"] and c.x, whereas JavaScript doesn't bother.
--
http://mail.python.org/mailman/li
In message <87hbxkm7n2@benfinney.id.au>, Ben Finney wrote:
> For this and other differences introduced in the Python 3.x series, see
> http://www.python.org/dev/peps/pep-3100/>.
People never thank you for an "RTFM" response.
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Platz writes:
> I do not know the Python bindings of gnuplot and Veusz.
A web search does, though.
http://clusty.com/search?query=gnuplot+python>
http://clusty.com/search?query=veusz+python>
--
\“The problem with television is that the people must sit and |
`\kee
Hi,
thanks for your repleys. I have tried matplotlib but it is extremely
slow. I think it is more optimized for good looking plots instead of
speed. I do not know the Python bindings of gnuplot and Veusz. To
clarify the issue again, by 25000 data points I mean 25000 pixels,
i.e. corresponding (x,y
> Gabriel Rossetti (GR) wrote:
>GR> Sorry if this appears twice, I sent it once with an attachment and it never
>GR> arrived so maybe the attachment is posing problems. I inlined the code this
>GR> time (at the bottom), thank you,
>GR> Gabriel
>GR> ## Original messag
2009/7/11 Steven D'Aprano :
> So is design-by-contract just another way of saying "let's hope the data
> is valid, because if it's not, we're screwed"?
Not at all. Design By Contract is about assigning responsibility for
checking. If you don't assign responsibility then a pile of things end
up ge
Okay so below is the acutal code. I am starting to think there is no
reason why I can't install the post_save signal in signals.py itself
and thereby avoid this issue entirely.
models.py:
class Link(CommonAbstractModel):
...
class Menu(CommonAbstractModel):
class StaticPage(CommonA
Ryan K wrote:
Thanks for your help Peter.
I'm thinking that perhaps this isn't a circular import and that I
don't understand importing. Here is a better explanation of my case (I
am using Django):
I have file x.py that declares classes A, B, C.
There is also a file y.py that contains two metho
Is there any good reason why sendto() and recvfrom() aren't wrapped by
asyncore? Obviously, recvfrom() cannot be replaced by recv(), but even
sendto() cannot be replace by connect() and send(), either:
I'm writing a traceroute module, and I found out that under the
current firewall configuration o
John O'Hagan wrote:
>The drawings produced by an architect, the script of a play, the score of a
piece of music, and the draft of a piece of >legislation are all examples of
other things which are "useless" until they are interpreted in some way.
Granted.
But...
>There are countless human act
"D'Arcy J.M. Cain"
> One might also argue that divorcing the design from the code is the
> problem in a lot of legacy code. See Agile Programming methods. Now
> you could say that there is a design step still in talking to the
> client and making a plan in your head or in some notes but that's
Scott David Daniels wrote:
> jacopo mondi wrote:
>> Roger Binns wrote:
>>> jacopo mondi wrote:
Hi all, I need to patch socketmodule.c (the _socket module) in order to
add support to an experimental socket family.
>>> You may find it considerably easier to use ctypes since that will avoid
On Sat, 11 Jul 2009 14:01:25 +0200
"Hendrik van Rooyen" wrote:
> "Programming" is the step of going from the "design" to something
> that tells the machine how to implement the design.
>
> The creativity could, arguably, be in the "Design".
> Not in the translation to python, or assembler.
> No w
Ryan K wrote:
> I'm thinking that perhaps this isn't a circular import and that I
> don't understand importing. Here is a better explanation of my case (I
> am using Django):
>
> I have file x.py that declares classes A, B, C.
Classes in Python are executable code, just like import-statements. T
Steven D'Aprano wrote:
Even *soup stock* fits the same profile as what Hendrik claims is almost
unique to programming. On its own, soup stock is totally useless. But you
make it, now, so you can you feed it into something else later on.
Or instant coffee.
I think I'll avoid coming to your ho
larudwer, is that time_subdist subdist(i) a bad worsening? Something
to be fixed in Psyco2?
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Possible! With Pywin32.
I see two ways:
- add a "toolBar" ; see the exemple for Internet-Explorer (it run for
both, IE & explorer)
- add an entry in the context menu (right click)
@-salutations
--
Michel Claveau
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listi
Thanks for your help Peter.
I'm thinking that perhaps this isn't a circular import and that I
don't understand importing. Here is a better explanation of my case (I
am using Django):
I have file x.py that declares classes A, B, C.
There is also a file y.py that contains two methods T, U and the
There's a working app at http://cl1p.net/tkinter_table_headers/
Thank you for this example. However, one issue to that...
When resizing the window (vertical) then the header moves away
from the table. How can I avoid this with the grid? With "pack"
I now this...
Oops ... packing can be tricky
"pdpi" wrote;
>I've always found cooking an apt metaphor for programming.
No this is wrong.
Writing a recipe or a cookbook is like programming.
Cooking, following a recipe, is like running a program.
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
"Steven D'Aprano" wrote:
>On Fri, 10 Jul 2009 12:54:21 +0200, Hendrik van Rooyen wrote:
>
>> "Steven D'Aprano" wrote:
>>
>>>On Wed, 08 Jul 2009 22:05:57 -0700, Simon Forman wrote:
>>>
> persistent idea "out there" that programming is a very accessible
> skill, like cooking or gardening,
On Jul 10, 2:22 pm, walterbyrd wrote:
> I believe Guido himself has said that all indentions should be four
> spaces - no tabs.
>
> Since backward compatibility is being thrown away anyway, why not
> enforce the four space rule?
>
There is a routine in the Scripts directory, reindent.py, that wil
> Blocking Ctrl-Alt-Del leaves the power switch or maybe the plug as the
> only way for the user to regain control. Why would you want to do that?
ONly for the reason that I explaine above...is for my little joke
application !
And I want disable all keys for about 30 seconds (time to erase
backgr
In article <3af970b1-b454-4d56-a33f-889ecfaca...@l28g2000vba.googlegroups.com>,
Bryan wrote:
>
>rsyncExec = '/usr/bin/ssh'
>source = 'r...@10.0.45.67:/home/bry/jquery.lookup'
>dest = '/home/bry/tmp'
>rshArg = '-e "/usr/bin/ssh -i /home/bry/keys/brybackup.key"'
>args = [rsyncExec, '-a', '-v', '--d
2009/7/11 Laurent Luce :
> Do you know if it is possible to write a plugin for windows explorer using
> win32 module ?
Yes, I believe it is. There are a number of Python projects (I believe
TortoiseHg is one) that do this sort of thing.
However, I don't know anything about how to do it - you sho
>
> There's a working app at http://cl1p.net/tkinter_table_headers/
>
> -John
Thank you for this example. However, one issue to that...
When resizing the window (vertical) then the header moves away
from the table. How can I avoid this with the grid? With "pack"
I now this...
--
http://mail.pytho
> I V (IV) wrote:
>IV> On Fri, 10 Jul 2009 16:27:12 -0400, Terry Reedy wrote:
>>> a bug, bug a limitation due to using limited-range numbers. If one uses
>>> residue classes instead of integers, and makes no adjustment, I consider
>>> it wrong to blame Bentley.
>IV> But it was Bentley himsel
34 matches
Mail list logo