Re: Cheat Engine In Python

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 6:21 PM, wrote: > Why there isn't any replys ? . Because you posted it only a couple of hours ago, for one :) My initial guess is: No. Feel free to disprove me by searching on Google and finding one. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Andreas Röhler
Am 01.02.2013 00:59, schrieb Vinay Sajip: Thomas Heller ctypes.org> writes: What I meant to write is this: when the shebang line in script.py contains this: #!/usr/bin/python3.1-32 then emacs SHOULD run py.exe -3.1-32 script.py and the launcher runs c:\Python31\python.exe script.p

Re: Help the visibility of Python in computational science

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 4:00 PM, Steven D'Aprano wrote: > dg.google.gro...@thesamovar.net wrote: > >> If you could take one minute to make sure you >> are signed in to your Google+ account > > Which Google+ account would that be? I have so few. > It's a thing non-nerds do, Steven. You wouldn't und

Re: Help the visibility of Python in computational science

2013-01-31 Thread Steven D'Aprano
dg.google.gro...@thesamovar.net wrote: > If you could take one minute to make sure you > are signed in to your Google+ account Which Google+ account would that be? I have so few. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: why no pydoc python?

2013-01-31 Thread Ben Finney
rh writes: > pydoc can be invoked from the operating system shell. Which is irrelevant to what ‘pydoc’ produces, since it is looking in the Python documentation. You'll notice that ‘pydoc pydoc’ does not give the contents of the ‘pydoc’ manpage. Instead, it gives documentation for the ‘pydoc’ m

Python 2 multiprocessing examples in docs.python.org

2013-01-31 Thread Xavier Ho
Hey all, I ran the example code on multiprocessing. On the "Pool example", an assertion failed with "testing garbage collection". Traceback (most recent call last): File "test.py", line 314, in test() File "test.py", line 295, in test assert not worker.is_alive() AssertionError The

Re: Help the visibility of Python in computational science

2013-01-31 Thread dg . google . groups
On Thursday, January 31, 2013 10:06:44 PM UTC-5, Terry Reedy wrote: > On 1/31/2013 8:05 PM, dg.google.gro...@thesamovar.net wrote: > > Here's the link to the article: > > http://www.scholarpedia.org/article/Brian_simulator > > 'Brian' is obviously a play on 'brain', with two letters transposed. Bu

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 6:16 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > > Normally, subclasses should extend functionality, not take it away. A > fundamental principle of OO design is that anywhere you could sensibly > allow an instance, should also be able to use a subcl

Re: Help the visibility of Python in computational science

2013-01-31 Thread Terry Reedy
On 1/31/2013 8:05 PM, dg.google.gro...@thesamovar.net wrote: Hi everyone, There is currently a competition running that could help give Python in computational science a bit of visibility. The competition is for the most popular recently published article on the Scholarpedia website, one of whic

Re: why no pydoc python?

2013-01-31 Thread Ben Finney
rh writes: > I installed python from tarball and I wonder if I did something wrong. > pydoc pydoc works fine but there's no pydoc python. What would you expect ‘pydoc python’ to show? The word “python” is not a keyword, is not a built-in identifier, is not a standard library module. > There is

Re: Help the visibility of Python in computational science

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 12:05 PM, wrote: > "Brian" is a package I wrote (with several others) to do simulations of > spiking neural networks in Python. Read the article if you want to know > more! :) Ah, I don't need to read it. You're simulating a brain; the rest is mere appendix! (couldn't res

Help the visibility of Python in computational science

2013-01-31 Thread dg . google . groups
Hi everyone, There is currently a competition running that could help give Python in computational science a bit of visibility. The competition is for the most popular recently published article on the Scholarpedia website, one of which is about a Python package "Brian" for computational neuroscie

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Vinay Sajip
Thomas Heller ctypes.org> writes: > What I meant to write is this: > > when the shebang line in script.py contains this: >#!/usr/bin/python3.1-32 > then emacs SHOULD run >py.exe -3.1-32 script.py > and the launcher runs >c:\Python31\python.exe script.py IMO it would be better for em

Re: confusion with decorators

2013-01-31 Thread Steven D'Aprano
Jason Swails wrote: > On Thu, Jan 31, 2013 at 12:46 AM, Steven D'Aprano < > steve+comp.lang.pyt...@pearwood.info> wrote: >> Well, that surely isn't going to work, because it always decorates the >> same function, the global "fcn". > > I don't think this is right. It certainly isn't. Sorry fo

Re: (any)dbm module lacks a context manager

2013-01-31 Thread Terry Reedy
On 1/31/2013 2:03 PM, python.l...@tim.thechases.com wrote: I don't know if this has been remedied in a more recent version than I've got on my box (Debian Stable), but it seems like it should work out of the box: Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07) [GCC 4.4.5] on linux2 Type "help",

xlrd 0.9.0 released, now with Python 3 support!

2013-01-31 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.0: http://pypi.python.org/pypi/xlrd/0.9.0 This release means the supported versions of Python supported by xlrd are 2.6, 2.7, 3.2 and 3.3! Very exciting stuff, and a massive thank you to Thomas Kluyver (@takluyver on GitHub) for doing t

Re: confusion with decorators

2013-01-31 Thread Steven D'Aprano
Steven D'Aprano wrote: >> def _protector_decorator(fcn): >> def newfcn(self, *args, **kwargs): >> return fcn(self, *args, **kwargs) >> return newfcn > > Well, that surely isn't going to work, because it always decorates the > same function, the global "fcn". Good grief, I can't b

RE: (any)dbm module lacks a context manager

2013-01-31 Thread Nick Cash
> >>> import dbm > >>> with dbm.open("mydb", 'c') as d: > ... d["hello"] = "world" > ... > Traceback (most recent call last): > File "", line 1, in > AttributeError: '_dbm.dbm' object has no attribute '__exit__' This error message is somewhat misleading... it actually means you're trying to

(any)dbm module lacks a context manager

2013-01-31 Thread python . list
I don't know if this has been remedied in a more recent version than I've got on my box (Debian Stable), but it seems like it should work out of the box: Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >

Re: Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
On Thursday, January 31, 2013 6:55:05 PM UTC+1, Peter Pearson wrote: > On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote: > > > > > I'm wondering if anyone can help me as I can't seem to get > > > this to work. There is an online dice game that is > > > provably fair b

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Andreas Röhler
Am 31.01.2013 17:35, schrieb Thomas Heller: Am 31.01.2013 12:05, schrieb Andreas Röhler: Am 31.01.2013 10:03, schrieb Thomas Heller: Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edi

Re: Need some help confirming transactions using sha256

2013-01-31 Thread Peter Pearson
On Thu, 31 Jan 2013 08:43:03 -0800 (PST), kryptox.excha...@gmail.com wrote: > I'm wondering if anyone can help me as I can't seem to get > this to work. There is an online dice game that is > provably fair by calculating the 'dice roll' using using a > sha256 hash calculated against my transaction

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 11:00 AM, Jason Swails wrote: > > > On Thu, Jan 31, 2013 at 10:28 AM, Chris Angelico wrote: > >> >> >> Well, that surely isn't going to work, because it always decorates the >> >> same function, the global "fcn". >> > >> > >> > I don't think this is right. fcn is a passed

Re: advice, python for binary to xml

2013-01-31 Thread noydb
:-) yeah... -- http://mail.python.org/mailman/listinfo/python-list

Re: Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
Ok, I'm still stuck! :( I do however now think that I'm not supposed to use hmac here. -- http://mail.python.org/mailman/listinfo/python-list

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
On Thursday, January 31, 2013 4:05:43 PM UTC+1, noydb wrote: > > I assume that you've looked into GPSBabel? http://www.gpsbabel.org/ > > Yes, I have. Was hoping to use it, but client is very resistent to adding > such things to their system - python is desireable. So what GPSbabel does is > wh

Need some help confirming transactions using sha256

2013-01-31 Thread kryptox . exchange
I'm wondering if anyone can help me as I can't seem to get this to work. There is an online dice game that is provably fair by calculating the 'dice roll' using using a sha256 hash calculated against my transaction ID generated by me. The secret used to make the calculation is revealed at the en

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Thomas Heller
Am 31.01.2013 12:05, schrieb Andreas Röhler: Am 31.01.2013 10:03, schrieb Thomas Heller: Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edited python script and pass the corresponding

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 10:28 AM, Chris Angelico wrote: > > >> Well, that surely isn't going to work, because it always decorates the > >> same function, the global "fcn". > > > > > > I don't think this is right. fcn is a passed function (at least if it > acts > > as a decorator) that is declare

Re: confusion with decorators

2013-01-31 Thread Chris Angelico
On Fri, Feb 1, 2013 at 12:25 AM, Jason Swails wrote: > On Thu, Jan 31, 2013 at 12:46 AM, Steven D'Aprano > wrote: >> >> On Wed, 30 Jan 2013 19:34:03 -0500, Jason Swails wrote: >> >> > Hello, >> > >> > I was having some trouble understanding decorators and inheritance and >> > all that. This is w

Re: advice, python for binary to xml

2013-01-31 Thread noydb
On Thursday, January 31, 2013 8:41:34 AM UTC-5, Maarten wrote: > On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote: > > > I'm looking for knowlegde about how best to go about converting a binary > > file (from a GPS unit) to GPX/XML. I am completely clueless on this, so > > any start-

"Writing Idiomatic Python" book now available

2013-01-31 Thread jknupp
Just wanted to let everyone know I've just released a book: Writing Idiomatic Python (http://www.jeffknupp.com/writing-idiomatic-python-ebook/). It's presented as a series of examples of Pythonic code broken down by topic (e.g. lists, strings, classes, arranging your code, etc.). There are separ

Re: security quirk

2013-01-31 Thread Gandalf Parker
RichD contributed wisdom to news:badd4188-196b- 45e3-ba8a-511d47128...@nh8g2000pbc.googlegroups.com: > On Jan 30, Gandalf Parker > wrote: >> > Web gurus, what's going on? >> >> That is the fault of the site itself. >> If they are going to block access to users then they should also block >> ac

PyGresql 4.1.1 for python2.7

2013-01-31 Thread alexandra
Hello, I'm trying to upgrade to python2.7. Installed PyGresql 4.1.1 for python 2.7. When running "import pg" command I get the following error: from _pg import * ImportError: DLL load failed: The operating system cannot run %1. I'm using Windows XP

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote: > I'm looking for knowlegde about how best to go about converting a binary file > (from a GPS unit) to GPX/XML. I am completely clueless on this, so any > start-from-the-beginning info would be greatly appreciated! I'm guessing the >

Re: The best, friendly and easy use Python Editor.

2013-01-31 Thread Wayne Werner
On Thu, 24 Jan 2013, Tim Chase wrote: On 01/24/13 13:34, Leonard, Arah wrote: All true (especially the holy wars bit!). OP didn't (as far as I can see) even say which OS he is using. Anyway, my suggestion is generally that people use the editor with which they are already comfortable. Sound a

advice, python for binary to xml

2013-01-31 Thread noydb
I'm looking for knowlegde about how best to go about converting a binary file (from a GPS unit) to GPX/XML. I am completely clueless on this, so any start-from-the-beginning info would be greatly appreciated! I'm guessing the level of effort will be huge? Python 2.7, Windows 7 -- http://mail.

Re: confusion with decorators

2013-01-31 Thread Jason Swails
On Thu, Jan 31, 2013 at 12:46 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Wed, 30 Jan 2013 19:34:03 -0500, Jason Swails wrote: > > > Hello, > > > > I was having some trouble understanding decorators and inheritance and > > all that. This is what I was trying to do: > >

Re: Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Andreas Röhler
Am 31.01.2013 10:03, schrieb Thomas Heller: Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edited python script and pass the corresponding arguments to py.exe. Yes, that's the way py

Arpex Capital seleciona:Programador Python Jr.

2013-01-31 Thread zughumancapital
Arpex Capital seleciona para uma de suas startups: Programador Python Jr. Requisitos: - Python/Lua/Lisp/Go/Erlang, etc qualquer linguagem exótica vale, mesmo não sendo python; - Interesse por Software Livre; - Inglês fluente. Local de Trabalho: Centro/RJ. Formação: Gradução completa e/ou cursa

Re: [Distutils] A new script which creates Python 3.3 venvs with Distribute and pip installed in them

2013-01-31 Thread Philippe Ombredanne
On Wed, Jan 30, 2013 at 9:09 PM, Vinay Sajip wrote: > Python 3.3 includes a script, pyvenv, which is used to create virtual > environments. > However, Distribute and pip are not installed in such environments - because, > though they are popular, they are third-party packages - not part of Python

Python launcher (PEP 397) and emacs python-mode.el

2013-01-31 Thread Thomas Heller
Has someone managed to patch python-mode.el to use the PEP 397 python launcher when you hit C-c C-c? It seems that emacs should parse the shebang line in the edited python script and pass the corresponding arguments to py.exe. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: looping versus comprehension

2013-01-31 Thread Roy Smith
In article <5109fe6b$0$11104$c3e8...@news.astraweb.com>, Steven D'Aprano wrote: > On Thu, 31 Jan 2013 02:49:31 +1100, Chris Angelico wrote: > > > it's worth > > noting that list appending is not going to be O(N*N), because it's going > > to allow room for expansion. > > This is true for list.a