On Thu, Dec 3, 2009 at 12:57 PM, M.-A. Lemburg wrote:
> geremy condra wrote:
>> On Thu, Dec 3, 2009 at 7:04 AM, M.-A. Lemburg wrote:
>>> I think the only major CS data type missing from Python is some
>>> form of (fast) directed graph implementation à
On Fri, Dec 4, 2009 at 2:52 PM, geremy condra wrote:
> On Fri, Dec 4, 2009 at 11:17 AM, MRAB wrote:
>> M.-A. Lemburg wrote:
>>>
>>> geremy condra wrote:
>>>>
>>>> On Thu, Dec 3, 2009 at 12:57 PM, M.-A. Lemburg wrote:
>>>>>
>&
On Fri, Dec 4, 2009 at 3:10 PM, Lie Ryan wrote:
> On 12/5/2009 6:53 AM, geremy condra wrote:
>>
>> To be fair, I don't think you'd have to look very far to find places
>> where a graph representation is approximated using some
>> combination of dicts, sets,
On Fri, Dec 4, 2009 at 5:41 PM, Carl Banks wrote:
> On Dec 4, 12:46 pm, geremy condra wrote:
> more common than full-blown graph package).
>> Sure, its a tree, which is also a graph. In this case it looks to
>> me more like a directed acyclic graph than anything, but its
&
On Fri, Dec 4, 2009 at 7:42 PM, Lie Ryan wrote:
> On 12/5/2009 9:41 AM, Carl Banks wrote:
>>
>> On Dec 4, 12:46 pm, geremy condra wrote:
>> more common than full-blown graph package).
>>>
>>> Sure, its a tree, which is also a graph. In this case it looks
On Fri, Dec 4, 2009 at 8:38 PM, Carl Banks wrote:
> On Dec 4, 4:42 pm, Lie Ryan wrote:
>> On 12/5/2009 9:41 AM, Carl Banks wrote:
>>
>>
>>
>>
>>
>> > On Dec 4, 12:46 pm, geremy condra wrote:
>> > more common than full-blown graph package
a tree or a graph.
In any event, I think we can agree that for some tasks (I would say
many) a graph or tree is the most suitable data structure. To me,
that says that we need to be having a discussion about whether to
include those tools in the standard library, and how best to do so if
that's the decision. Would you agree?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Dec 5, 2009 at 4:39 PM, Raymond Hettinger wrote:
> [geremy condra]
>> I actually considered using dependencies as an example on the
>> "graphine for pythonistas"[1] article, but decided to do the maze
>> run instead. In any event, the uses of graphs in gener
bine them?
>
> I am learning Python and I need your advice.
> Thanks in advance.
>
> Sorry if my English isn't very proper
I use unittest, but mostly because its so close to junit and cppunit,
which I also use extensively. Having said that, it *is* in the standard
library
On Sat, Dec 5, 2009 at 7:18 PM, Raymond Hettinger wrote:
> On Dec 5, 3:22 pm, geremy condra wrote:
>> On Sat, Dec 5, 2009 at 4:39 PM, Raymond Hettinger wrote:
>> > [geremy condra]
>> >> I actually considered using dependencies as an example on the
>> >
On Sat, Dec 5, 2009 at 6:37 PM, Paul Rubin wrote:
> geremy condra writes:
>> I use unittest, but mostly because its so close to junit and cppunit,
>> which I also use extensively. Having said that, it *is* in the standard
>> library and is a common denominator between all y
in Python, which all implementations can use,
>> with speed-critical parts written in C for speed and imported by the
>> Python code.
>
> I don't think you are speaking for Python developers in general.
I believe he's referring to the core developers.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Dec 7, 2009 at 12:05 PM, M.-A. Lemburg wrote:
> geremy condra wrote:
>> On Mon, Dec 7, 2009 at 7:51 AM, M.-A. Lemburg wrote:
>>> Terry Reedy wrote:
>>>> M.-A. Lemburg wrote:
>>>>
>>>>> Integrating an easy-to-use graph library in
On Mon, Dec 7, 2009 at 2:51 PM, M.-A. Lemburg wrote:
> geremy condra wrote:
>> How interested are you in a C port of graphine? I haven't had
>> any specific requests for it, but if its something you need I
>> can shuffle it towards the top of the to do pile.
>
> Th
On Mon, Dec 7, 2009 at 5:48 PM, Steven D'Aprano
wrote:
> On Mon, 07 Dec 2009 17:23:24 -0500, geremy condra wrote:
>
>
>>> * Graph.__iter__ could be mapped to an iterator using
>>> the fastest traversal method for the graph nodes (ie. order does not
>>&g
On Mon, Dec 7, 2009 at 6:28 PM, M.-A. Lemburg wrote:
> geremy condra wrote:
>> On Mon, Dec 7, 2009 at 2:51 PM, M.-A. Lemburg wrote:
>>> geremy condra wrote:
>>>> How interested are you in a C port of graphine? I haven't had
>>>> any specific r
On Mon, Dec 7, 2009 at 11:28 PM, geremy condra wrote:
> On Mon, Dec 7, 2009 at 6:28 PM, M.-A. Lemburg wrote:
>> geremy condra wrote:
>>> On Mon, Dec 7, 2009 at 2:51 PM, M.-A. Lemburg wrote:
>>>> geremy condra wrote:
>>>>> How interested are you in
On Tue, Dec 8, 2009 at 7:27 AM, Robin Becker wrote:
> geremy condra wrote:
> ...
>>
>> I don't have a problem with adding this if there's a strong desire for it,
>> but at the moment I'm leaning towards a wait-and-see approach, for
>> all t
On Tue, Dec 8, 2009 at 8:42 PM, Rhodri James
wrote:
> On Tue, 08 Dec 2009 04:28:05 -0000, geremy condra
> wrote:
>
>> On Mon, Dec 7, 2009 at 6:28 PM, M.-A. Lemburg wrote:
>
>>> I wasn't thinking of anything clever :-) ...
>>>
>>>
> numpy/scipy etc... are quite useful for Euler :)
I've come to love sympy, personally.
> They contain a function to do factorials (and loads more).
>>> from math import factorial
>>> factorial(5)
120
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Dec 9, 2009 at 6:04 PM, Rhodri James
wrote:
> On Wed, 09 Dec 2009 03:47:03 -0000, geremy condra
> wrote:
>
>> On Tue, Dec 8, 2009 at 8:42 PM, Rhodri James
>> wrote:
>>>
>>> g = Graph(
>>> nodes=[Node("a", colour="red&
On Wed, Dec 9, 2009 at 7:02 PM, Rhodri James
wrote:
> On Wed, 09 Dec 2009 23:42:13 -0000, geremy condra
> wrote:
>
>> On Wed, Dec 9, 2009 at 6:04 PM, Rhodri James
>> wrote:
>>>
>>> On Wed, 09 Dec 2009 03:47:03 -, geremy condra
>>> wrote:
&g
ke the change.
>> Hmm. Sounds like a plausible use case to me, although I'm
>> not sure its one that should be encouraged. The bigger
>> question in my mind is whether all attribute lookups should
>> have to pay the extra lookup cost to support a somewhat
>> nar
ecipes/466329/
>
> Bye,
> bearophile
Huh, I don't think I've ever seen that before, and I'm pretty
sure I'd remember if I had. With your permission, I'd like to
go ahead and start integrating some of the features from
that into graphine, especially a topo traversal. Do you
mind?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
e last link you imply that you can't run
Python on android, when you can do so either via ASE or through the
JNI.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Dec 9, 2009 at 11:09 PM, geremy condra wrote:
> On Wed, Dec 9, 2009 at 8:59 PM, Bearophile wrote:
>> Robin Becker:
>>
>>> There are already very many implementations eg
>>>
>>> http://code.google.com/p/igraphhttp://www.boost.org/doc/libs/relea
On Thu, Dec 10, 2009 at 5:18 AM, Bearophile wrote:
> geremy condra:
>
>> Since that's released under the python license, I'm going to
>> go ahead and commit the version that includes the topo
>> traversal, but if you have any objections you only need to
>
ance, while networkx has a more python-only
> approach.
>
> Cheers,
> Tiago
Well, we all seem to have reinvented the wheel differently ;)
Bearophile, Tiago- any interest in trying to combine the
best parts of our libraries, with an eye towards eventual
integration into the standard library?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
ing adjacency list format, pickle and/or graphml).
Huh. Using graphine- which should be somewhat more memory hungry
than networkx- I generated a naive million node 4-cycle graph and wound
up using something under 600 meg of ram. Can you post some code?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 10, 2009 at 10:57 AM, Bearophile wrote:
> Geremy Condra:
>
>> is there a particular way you want your attribution line to read?
>
> You can just use my nickname (in all lowercase), with the list of
> parts you have used. Don't worry.
>
>
>> We
On Sun, Dec 13, 2009 at 3:38 AM, Terry Reedy wrote:
> geremy condra wrote:
>
>> Well, I've just concluded a short conversation with Raymond Hettinger,
>> and I think its fair to characterize him as being opposed to the idea
>> at present. In addition to the populari
Also, I'm not sure I like your abuse of the + operator to modify the
> object in place and return a flag. It is an API not shared by (as far as
> I can see) any other data type in Python.
Could probably just abuse an odict as cleanly. The other option that
leaps to mind is to use a bloo
http://www.python.org/dev/peps/pep-3003/
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
> Yes, we know that PEP 3003 applies but I see no harm in discussing possible
> enhancements.
I don't think the OP knew that the moratorium was in effect. That's why I
brought it up.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
might be related to this: http://code.google.com/p/rchi-zui/
geremy condra
--
http://mail.python.org/mailman/listinfo/python-list
-3.1.1.dmg
>
> This tells me nothing.
>
>>
>> or (for MacPorts fans):
>>
>> $ sudo port install python31
>
>
> And since I haven't got one, this also tells me nothing.
He just told you what it meant, as if it weren't already obvious.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
Not sure why in the world you would homebrew something like this- a
small dependency isn't that bad, and aes can be pretty simple to use.
Might as well go for the industrial strength approach.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Jan 10, 2010 at 3:26 PM, Paul Rubin wrote:
> geremy condra writes:
>> Not sure why in the world you would homebrew something like this- a
>> small dependency isn't that bad, and aes can be pretty simple to use.
>> Might as well go for the industrial st
On Sat, Jan 23, 2010 at 4:38 AM, Alf P. Steinbach wrote:
> Hm, it would be nice if the Python docs offered complexity (time)
> guarantees in general...
>
> Cheers,
>
> - Alf
This would be a very welcome improvement IMHO- especially
in collections.
Geremy Condra
--
http
go
here.
I'd also note that you aren't supposed to use RandomPool anymore,
and that AES-192 is frequently recommended over AES-256 for
new applications due to a number of recent developments in
the cryptanalysis of its key schedule.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
t is, unless someone has obtained the key,
> in which case I have a bigger problem to worry about.
>
Not to sound pedantic, but the fact that somebody is executing
exactly the malware they sent you is kind of cold comfort.
Might I suggest that a warning to that effect would be prudent?
Gere
On Tue, Jan 26, 2010 at 4:00 PM, M.-A. Lemburg wrote:
>
>
> geremy condra wrote:
>> On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote:
>>
>>
>>
>>> You are also using CBC mode, even though you are really after
>>> ECB mode (your code doesn
way to conduct a development effort.
>
> Out of curiosity, and completely off-topic, why has Perl 6 gone so badly?
>
>
> --
> Steven
> --
Too much like Perl.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
g the dict:
>
> __setitem__
> __delitem__
> clear
> pop
> popitem
> setdefault
> update
>
> Of course I can subclass dict to do this, but if there's an existing way,
> that would be better.
>
d1 = {"a": "b", "c": "d"}
d2 = d1
disk utility to inspect the raw bytes on disk to read the data
> in the database (or that the government will swoop in and seize your
> computer and do the same), then encrypting the entire database may be a
> good idea.
>
> (But if your threat model is the government, then what are
result, the total time of
generation and comparison for *two* sentences of size N (remember that we're
not concerned about two sentences of unequal length) will be O(L*2N), and is
likely to be quite fast in practice.
Further optimizations- especially revolving around Bloom filters if a small
Aaagh! Did it without thinking. Should be O(S*N) and O(S*2N).
On Sep 28, 2009 12:09 PM, "geremy condra" wrote:
On Mon, Sep 28, 2009 at 9:53 AM, John Posner wrote: >
> >> If you can enumera...
1) I honestly wouldn't know, seeing as how I wasn't alive ;).
2)
twork programming-
narrowly targeted, but practical and full of good examples.
Geremy Condra
>
--
http://mail.python.org/mailman/listinfo/python-list
Sorry for the toppost, I'm on a mobile, but if I'm understanding you then
you might want to try graphine- its a graph theory library with experimental
dot language support, which you can use to draw your graphs. Give it a try-
graphine.org.
On Oct 7, 2009 2:12 AM, "Dylan Palmboom" wrote:
Hi eve
re'
> print s
> t = Crypt(s)
> print t
> u = Decrypt(t)
> print s
> --
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
For the love of baby kittens, please, please, please tell me that
you do not believe this securely encrypts your data.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote:
> On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote:
>> For the love of baby kittens, please, please, please tell me that
>> you do not believe this securely encrypts your data.
> Yeah, I think it's pretty go
uctors
> or
> 2. a ctypes definition could be exported to a .h file.
>
> So my question is - is there a way to do this in the std-lib or even pypi?
>
>
> --yuv
I wrote a bit of code a while ago that does something similar.
You can find it here: http://code.activestate.com/r
/listinfo/python-list
>
Found this: http://starship.python.net/crew/theller/ctypes/old/codegen.html
which I take to be the module you're talking about. From the docs it doesn't
appear to have worked with gccxml since before 0.6, which is more than 5
years old. Am I at the wrong place?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
nza & Boekelheide, Inc.
>
Apologies, I didn't intend to imply that *you* don't know any better,
which I'm sure you do, but rather that the OP probably doesn't.
And always apply ROT13 twice for extra security.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Oct 20, 2009 at 2:06 AM, Robert Kern wrote:
> Steven D'Aprano wrote:
>>
>> On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote:
>>
>>> For the love of baby kittens, please, please, please tell me that you do
>>> not believe this securely e
On Tue, Oct 20, 2009 at 3:54 PM, Aahz wrote:
> In article ,
> geremy condra wrote:
>>
>>And always apply ROT13 twice for extra security.
>
> Can't you tell? I'm already doing that!
> --
> Aahz (a...@pythoncraft.com) <*> http:/
On Wed, Oct 21, 2009 at 3:28 AM, Processor-Dev1l
wrote:
> On Oct 18, 8:13 am, Toff wrote:
>> On 18 oct, 02:13, geremy condra wrote:
>>
>>
>>
>> > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote:
>> > > On Sat, Oct 17, 2009 at 7:48 PM, gerem
I decided to play around with nonlocal declarations today, and was
somewhat surprised when a call to nonlocals() resulted in 'nonlocals
is not defined'. Is there an a standard equivalent to globals() or
locals() for variables in outer nested scopes?
Geremy Condra
--
http://mail.
de
3) w3schools.com, for a bit more of the web stuff
4) docs.python.org, for the python stuff
5) http://wiki.developers.facebook.com/index.php/PythonPyFacebookTutorial,
for getting python and facebook to play nicely together.
Good luck.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
f I create something decent I can
> publish it.
>
> Thank you in advance for any help
Could always port it to CUDA ;)
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
>>
>>
>> HTH
>> Philip
Was surprised to see that PyGUI didn't make it onto the list. Pretty nice,
IMHO- and I say that as somebody who prefers Qt in C++.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
far, I am not convinced that
> a framework offers anything that is not already easily accomplished in
> Python.
Using a framework helps to ensure that your code is easy to maintain.
DRY isn't about saving time now, its about saving time six months
from now.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Oct 27, 2009 at 11:56 AM, Aweks wrote:
> what do you use?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
On console only: vim + screen
On X: (vim or gedit) + terminator
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
sly difficult it is to
do automated testing for web development, that's essential.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
to see how using a
> framework would reduce the need to use classes, provided that the need
> exists.
...frameworks use classes. They just don't make you write all of them.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
tags.
> 2)Convert tags into dictionary-like objects.
> Said process would allow me to then modify the objects and in the same
> sequence print out the string along with the objects to stdout.
>
Taken a look at xml.dom.minidom? Should do everything you're asking.
Geremy Condra
ove away from functional programming techniques as a minor
misstep, the cleanliness of it all more than makes up for that.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
), help messages from docstrings, and knows how to convert
> multiple functions into subcommands. The code's compatible and tested
> on python 2.3 - 3.1. There are probably more things we could support
> [7], but I'd like to get some feedback on what we have so
> far. Some spe
s + [L[0]]
else:
yield []
def subsets3(iterable):
s = list(iterable)
return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))
"""
#timeit.timeit("subsets1(x)", setup) doesn't appear to terminate
timeit.timeit("subsets2(x)", setup)
timeit.timeit("subsets3(x)", setup)
I'm getting numbers roughly 3:1 in Dan's favor.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Nov 8, 2009 at 12:31 PM, geremy condra wrote:
> On Sun, Nov 8, 2009 at 11:52 AM, Dan Bishop wrote:
>> On Nov 8, 4:43 am, Ozz wrote:
>>> Hi,
>>>
>>> > My first question is:
>>> > 1. given a list of invoives I=[500, 400, 450, 200, 600,
On Sun, Nov 8, 2009 at 12:01 PM, NGABONZIZA PROSPER
wrote:
> Hi all;
>
>
> Help!
>
> Could you Tell me where I may find documentation on Solving
> Differential equations with Scipy or Numpy.
>
>
>
> Thank you all
> --
> http://mail.python.org/mailman/listinfo/python-list
>
http://lmgtfy.com/?q=
On Tue, Nov 10, 2009 at 8:59 AM, Steven D'Aprano
wrote:
> On Sun, 08 Nov 2009 12:31:26 -0500, geremy condra wrote:
>
>> What you're describing is the powerset operation. Here's the example
>> from the python docs:
> [...]
>> What I find interesting is
xplain to me that
the person who was storing windows administrative passwords using a
40 byte xor cipher with the hardcoded password might not be doing
something stupid because I didn't know what their threat model was?
Yeah- what you just said is what I was trying to explain then.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Nov 10, 2009 at 2:08 PM, Steven D'Aprano
wrote:
> On Tue, 10 Nov 2009 12:28:49 -0500, geremy condra wrote:
>
>> Steven, remember a few weeks ago when you tried to explain to me that
>> the person who was storing windows administrative passwords using a 40
>
such as the curly brackets all over the place.
>
> Duh.
>
>> And
>> among the un-Pythonlike stuff there's a lot that looks like nothing
>> else that I've ever seen...
>
> Go look at a C++ program sometime.
Go doesn't support inheritance, so C++ is pretty much out. C
is a lot closer, but still not all that close.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Nov 12, 2009 at 12:27 AM, Mensanator wrote:
> On Nov 11, 9:56 pm, geremy condra wrote:
>> On Wed, Nov 11, 2009 at 9:00 PM, Mensanator wrote:
>> > On Nov 11, 6:53 pm, kj wrote:
>> >> I'm just learning about Google's latest: the GO (Go?) lang
help with less explaining from the appropriate
OS support channels.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
node(i)
# generate all the edges
for i in range(n):
for j in range(i+1, n):
k.add_edge(i, j, (i,j), is_directed=False)
# return the graph
return k
Disclaimer: I'm the author of graphine.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Nov 23, 2009 at 9:03 PM, geremy condra wrote:
> On Mon, Nov 23, 2009 at 7:05 PM, Paul Miller
> wrote:
>> I was wondering if there were any neat tools (like for instance,
>> something from itertools) that would help me write the following function
>> more eleg
On Mon, Nov 23, 2009 at 9:10 PM, geremy condra wrote:
> On Mon, Nov 23, 2009 at 9:03 PM, geremy condra wrote:
>> On Mon, Nov 23, 2009 at 7:05 PM, Paul Miller
>> wrote:
>>> I was wondering if there were any neat tools (like for instance,
>>> something from iterto
on't use them at all. You might never
>> get an answer, even without alienating people. Complaining after six DAYS
>> might be acceptable, if you do it with a sense of humour, but after six
>> minutes?
>
> Well, it's 4 days now. I would be happy to get 50% response rate. Apparently
> nobody is really using threads.
>
> regards,
> mk
I use threads.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
> obfuscate is released under the MIT licence.
>
> Requires Python 2.5 or 2.6.
>
>
> --
> Steven D'Aprano
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Nice! Maybe someday you can extend it with a pen-and-paper
signature scheme ;)
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
Ok, I'll admit- my hand hovered over the 'initiate flamewar' button
for a moment before
I figured out what you were actually asking.
And I know I'm working on it, which probably means 8 or 9 others are as well.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
on to feel more concerned about the
code that I write in python, and I use it for crypto research.
> Anyway I would appreciate any views or tips that people have?
I'd worry about developing a product worth stealing before I
worried about people stealing it ;)
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
Skype client.
Most of the people I know who were interested in REing skype were
a lot more interested in either interoperating with the protocol or ensuring
that skype wasn't deliberately including malware or a backdoor. In any
even I don't see this having anything to do with Python.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
> Thanks again,
> Dan
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
You could drill down through everything in globals() etc, replacing
functions as you went,
but its fragile (there are probably unworkable corner cases), ugly,
and likely to be slow.
What exactly is it you're trying to do?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
ks,
> Elias
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>From sage:
>>> x = var('x')
>>> g = x**2 + x
>>> g(x=5)
30
>>> g.factor
... (x + 1)*x
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
nitions to ctypes data types.
for structures:
http://code.activestate.com/recipes/576734-c-struct-decorator/?in=user-417
for functions:
http://code.activestate.com/recipes/576731-c-function-decorator/?in=user-417
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
saying you don't know what you're doing, but be careful when
rolling your own cryptosystems- even very good cryptographers make
implementation mistakes!
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
366305511581086089650628117463925776754560048454991130443047)
> makes python go crazy. Is there any way just like above, i can have it
> calculated it in no time.
>
>
> thanks for the support.
If you're just looking for the largest prime factor I would suggest using
a fermat factorization attack. In the example you gave, it returns
nearly immediately.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Mar 8, 2010 at 2:05 PM, geremy condra wrote:
> On Mon, Mar 8, 2010 at 2:15 AM, Fahad Ahmad wrote:
>> Thanks Geremy,
>>
>> That has been an absolute bump... GOD i cant sit on my chair, it has
>> worked even on 512 bit number and with no time.
ate, insert or delete
>> data better than what BDBs and PostgreSQL can give you.
>>
>> --
>> Jonathan Gardner
>> jgard...@jonathangardner.net
>
> Thank you. I tried BDB, it seems to get very very slow as you scale.
>
> Thank you,
> Krishna
Have you tried any of the big key-value store systems, like couchdb etc?
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
ggestion would be greatly appreciated.
>
> Kind Regards,
>
> --
> Ludolph Neethling
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Maybe something like http://www.pypes.org/?
They were at pycon and sounded pretty into what they were
talking about- I'd send them an email.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
> In the process I developed some very general techniques for
> solving this kind of problem, which I've written about here
> if anyone's interested:
>
> http://www.cosc.canterbury.ac.nz/greg.ewing/essays/CRC-Reverse-Engineering.html
>
> Thanks for everyone
ked for? Seems a bit dodgy to
advocate a closed solution when the alternative has 100%
market share.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
ty.
>
> -- Hari
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Yes- I write new code in 3.x and backport it PRN.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
check out evpy,
which is a set of ctypes bindings for openssl's evp interface and a very
easy to use wrapper. It's available at http://gitorious.org/evpy, and will
be up for a first release in a few weeks.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
.6.6/library/ctypes.html#module-ctypes
This. You may also want to check out [0] and [1], which use ctypes and
generally make short work of writing C bindings. For a more complete
example, see [2].
Geremy Condra
[0]: http://code.activestate.com/recipes/576731-c-function-decorator/
[1]: http:/
#x27;: 2, 'c': 3})
c = AugmentedDict({'a': 1})
assert( (a|(b|c)) == (b|(a|c)))
assert( (a&(b&c)) == (b&(a&c)))
assert( (b&c) == (c&b))
assert( (a - b) == c)
assert( (a ^ b) == ((a-b) | (b-a)))
Truth be told, I was under the impression that this was actually going
to be a part of dictionary behavior at some point, maybe I was
thinking of the .items() behavior.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
7;re not
wedded to the C extension, though, I've had very good luck writing C
interfaces with with ctypes and a few useful decorators [1], [2].
Others prefer Cython[3], which I like for speed but which sometimes
seems to get in my way when I'm trying to interface with existing
co
101 - 200 of 413 matches
Mail list logo