On Apr 26, 12:16 pm, Lawrence D'Oliveiro l...@geek-
central.gen.new_zealand wrote:
Just been looking at this review of Visual Studio 2010
http://www.theregister.co.uk/2010/04/26/blowing_bubbtles/:
... the 2GB ISO was quicker to download than it was to install - not
even counting the
On Apr 20, 1:06 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Dodo wrote:
Hello,
I don't understand why this won't execute
import urllib.request as u
import socket
socket.setdefaulttimeout(10)
l = http://img144.imageshack.us/my.php?image=koumakandg8.jpg; #
supposed to timeout
try:
On Apr 14, 10:11 pm, pyt...@bdurham.com wrote:
I just stumbled across the following page which seems to indicate that
the MS VC 2008 runtime files[1] required to distribute Python
applications compiled with Py2exe and similar tools can be shipped
without the license restriction many previously
experience with generating functionality this way,
and could you give me some pointers in the right direction? Any tips,
advice, book recommendations are more than welcome.
Kind regards,
Andrej Mitrovic
--
http://mail.python.org/mailman/listinfo/python-list
I forgot to mention, I'm using Python 2.5.x. I can't use Python 3
unfortunately, the 3rd party application uses Py2.5.x internally, so I
have to limit the functionality to that version.
--
http://mail.python.org/mailman/listinfo/python-list
There is this peace of code in a 3rd party module:
MidiIn.SetFilter(pypm.FILT_ACTIVE | pypm.FILT_CLOCK |
pypm.FILT_PITCHBEND |
pypm.FILT_NOTE)
What are the vertical lines in a function call such as this? This
actually calls a function from a Pyrex module that was compiled
Well I hate it when this happens. I ask a question, and literally 2
seconds later I bump into the answer.
This explains it a bit:
http://docs.python.org/library/stdtypes.html#bit-string-operations-on-integer-types
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 26, 9:18 am, Alf P. Steinbach al...@start.no wrote:
* Andrej Mitrovic:
I would like to traverse through the entire structure of dir(), and
write it to a file.
Now, if I try to write the contents of dir() to a file (via pickle), I
only get the top layer. So even if there are lists
I use both, really. I started by learning and using Python 3, but I
ended up using Python 2 much more often compared to Py3. Not because
of the functionality of the language, but because most software that
embeds Python or is extendable in some way is usually using Python 2.
+ There's the whole
I would like to traverse through the entire structure of dir(), and
write it to a file.
Now, if I try to write the contents of dir() to a file (via pickle), I
only get the top layer. So even if there are lists within the returned
list from dir(), they get written as a list of strings to the file.
On Mar 20, 12:32 am, Steve Holden st...@holdenweb.com wrote:
Steve Holden wrote:
Andrej Mitrovic wrote:
On Mar 17, 6:41 pm, Andrej Mitrovic andrej.mitrov...@gmail.com
wrote:
Hi,
What happened to the sidebar on the left of the documentation website?
It seems to be gone:
http
Hi,
What happened to the sidebar on the left of the documentation website?
It seems to be gone:
http://docs.python.org/py3k/index.html
I found it quite useful since I can quickly swap between Python2/3
documentation, and between other parts of the documentation as well.
--
On Mar 17, 6:41 pm, Andrej Mitrovic andrej.mitrov...@gmail.com
wrote:
Hi,
What happened to the sidebar on the left of the documentation website?
It seems to be gone:
http://docs.python.org/py3k/index.html
I found it quite useful since I can quickly swap between Python2/3
documentation
Hi,
I couldn't figure out a better description for the Subject line, but
anyway, I have the following:
_num_frames = 32
_frames = range(0, _num_frames) # This is a list of actual objects,
I'm just pseudocoding here.
_values = [0, 1, 2, 3, 4]
I want to call a function of _frames for each frame
On Feb 17, 8:24 pm, John Posner jjpos...@optimum.net wrote:
On 2/17/2010 1:10 PM, Andrej Mitrovic wrote:
Hi,
I couldn't figure out a better description for the Subject line, but
anyway, I have the following:
_num_frames = 32
_frames = range(0, _num_frames) # This is a list
On Feb 17, 11:56 pm, Dave Angel da...@ieee.org wrote:
Andrej Mitrovic wrote:
On Feb 17, 8:24 pm, John Posner jjpos...@optimum.net wrote:
On 2/17/2010 1:10 PM, Andrej Mitrovic wrote:
snip
However the values list might have an uneven number of items. I would
like to make it as evenly
On Feb 16, 7:38 pm, Casey Hawthorne caseyhhammer_t...@istar.ca
wrote:
Interesting talk on Python vs. Ruby and how he would like Python to
have just a bit more syntactic flexibility.
http://blog.extracheese.org/2010/02/python-vs-ruby-a-battle-to-the-de...
--
Regards,
Casey
Gary's friend
The book covers Python 2.x syntax.
You might have downloaded Python 3.1, which has different syntax then
Python 2.x. From what I can tell, the first example on page 7 is
print 1 + 1.
Try issuing this command:
print(1 + 1)
If everything goes well, and you get '2' as the answer, then you're
On Feb 8, 10:14 pm, David Malcolm dmalc...@redhat.com wrote:
On Mon, 2010-02-08 at 12:53 -0800, Andrej Mitrovic wrote:
The book covers Python 2.x syntax.
You might have downloaded Python 3.1, which has different syntax then
Python 2.x. From what I can tell, the first example on page 7
On Feb 7, 8:22 pm, Kev Dwyer kevin.p.dw...@gmail.com wrote:
On Sun, 07 Feb 2010 19:36:10 +0100, Pablo Recio Quijano wrote:
Hi!
I'm finishing a project writen in Python, and I realize about the
document PEP8 - Style Guide for Python Code [1].
Is there any app or script that checks if my
On Feb 8, 1:26 am, escalation746 escalation...@yahoo.com wrote:
I am having a heck of a time doing the simplest thing: installing
Python and the pywin extensions, including the PythonWin editor I have
always relied on, into my new Windows 7 Professional 64-bit OS. I
tried the Python package
Sweet, something to keep my brain busy for the next couple of weeks.
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 6, 9:31 pm, Alf P. Steinbach al...@start.no wrote:
Just trying to delve into the CPython source code.
Pleasant surprise: while e.g. the gcc compiler is written in KR C (1975 style
C), CPython seems to be written in almost modern C (1989 and on).
But, hey, TABS used for indenting,
Hey, it's really simple! Just like the excerpt from the Learning
Python book says:
Really, the built-in scope is just a built-in module called builtins,
but
you have to import builtins to query built-ins because the name
builtins is not itself
built-in
:)
--
On Feb 1, 4:03 am, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On Feb 1, 2:59 am, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Hi,
I've made a similar post on the Cython mailing list, however I think
this is more python-specific. I'm having trouble setting up distutils
I've found the problem:
For the windows Python 3.1.1 x86 installation, the file \Python31\Lib
\Distutils\command\build_ext.py, has this:
Line 313:
self.compiler = new_compiler(compiler=None,
But Python 2.6 has this line:
Line 306:
self.compiler =
On Feb 1, 5:44 pm, casevh cas...@gmail.com wrote:
On Feb 1, 8:31 am, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On Feb 1, 4:03 am, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On Feb 1, 2:59 am, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Hi,
I've made
Well, in any case this seems to be working ok for me now.
--
http://mail.python.org/mailman/listinfo/python-list
Leave magic to the witches of Perl. :)
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've made a similar post on the Cython mailing list, however I think
this is more python-specific. I'm having trouble setting up distutils
to use MinGW instead of Visual Studio when building a module. Even tho
I've just uninstalled VS, and cleared out any leftover VS environment
variables,
On Feb 1, 2:59 am, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Hi,
I've made a similar post on the Cython mailing list, however I think
this is more python-specific. I'm having trouble setting up distutils
to use MinGW instead of Visual Studio when building a module. Even tho
I've just
I've noticed that when running Python in interactive mode (via cmd on
windows), the first time I hit tab it will move 4 spaces to the right,
however each new tab will move 8 spaces instead of 4. Why this
inconsistent behavior? And how could I change this to be consistent
and always move only 4
On Jan 29, 6:47 pm, Steve Holden st...@holdenweb.com wrote:
Andrej Mitrovic wrote:
I've noticed that when running Python in interactive mode (via cmd on
windows), the first time I hit tab it will move 4 spaces to the right,
however each new tab will move 8 spaces instead of 4. Why
On Jan 29, 10:07 pm, Steve Holden st...@holdenweb.com wrote:
Andrej Mitrovic wrote:
On Jan 29, 6:47 pm, Steve Holden st...@holdenweb.com wrote:
Andrej Mitrovic wrote:
I've noticed that when running Python in interactive mode (via cmd on
windows), the first time I hit tab it will move 4
34 matches
Mail list logo