Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Alec Taylor
On Sun, Jun 10, 2012 at 8:44 AM, Yesterday Paid wrote: > > I'm planning to learn one more language with my python. > Someone recommended to do Lisp or Clojure, but I don't think it's a > good idea(do you?) > So, I consider C# with ironpython or Java with Jython. > It's a hard choice...I like Visua

Komodo, Python

2012-06-15 Thread Isaac@AU
I just started learning python. I have komodo2.5 in my computer. And I installed python2.7. I tried to write python scripts in komodo. But every time I run the code, there's always the error: Traceback (most recent call last): File "C:\Program Files\ActiveState Komodo 2.5\callkomodo\kdb.py", l

is the same betweent python3 and python3.2?

2012-06-15 Thread contro opinion
when i download python-3.2.3.tgz extract ./configure prefix=/usr/lib/python-3.2 make make install when ls /usr/lib/python-3.2.3/bin/ /usr/lib/python-3.2.3/bin/python3.2m /usr/lib/python-3.2.3/bin/python3-config /usr/lib/python-3.2.3/bin/python3 /usr/lib/python-3.2.3/bin/python3.2m-config /usr/lib

Re: Academic citation of Python

2012-06-15 Thread Alec Taylor
I think it's more like when you see articles with a passage like: The C programming language[1] or the C++ programming language[2] are both > examples of... > Are both easy to find the proper reference for. On Sat, Jun 16, 2012 at 2:13 PM, Ben Finney wrote: > Mark Livingstone writes: > > > I

Re: Academic citation of Python

2012-06-15 Thread Ben Finney
Mark Livingstone writes: > I wish to properly cite Python in an academic paper I am writing. > > Is there a preferred document etc to cite? I think you're best positioned to answer that. Python isn't a document, so what specifically are you citing it as? -- \ “A ‘No’ uttered from deepes

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Tomasz Rola
On Fri, 15 Jun 2012, Terry Reedy wrote: > On 6/15/2012 1:03 PM, Tomasz Rola wrote: > > > Last time I checked, Python didn't have linked lists - arrayed lists are > > nice, but their elements can't be automatically GC-ed (or, this requires > > very nontrivial GC algorithm), the easiest way I can t

Re: Academic citation of Python

2012-06-15 Thread Alec Taylor
Maybe quote the "Programming Python" book, since Guido wrote the forward? http://www.python.org/doc/essays/foreword2/ On Sat, Jun 16, 2012 at 1:24 PM, Mark Livingstone wrote: > Hello! > > I wish to properly cite Python in an academic paper I am writing. > > Is there a preferred document etc to c

Academic citation of Python

2012-06-15 Thread Mark Livingstone
Hello! I wish to properly cite Python in an academic paper I am writing. Is there a preferred document etc to cite? Thanks in advance, MArkL -- http://mail.python.org/mailman/listinfo/python-list

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Terry Reedy
On 6/15/2012 3:04 PM, Paul Rubin wrote: Terry Reedy writes: Python iterators can do lazy evaluation. All the builtin classes come with a corresponding iterator. ... I wouldn't say iterators do lazy evaluation in the Scheme or Haskell sense. Lazy evaluation imho means evaluation is deferred u

Re: python3 raw strings and \u escapes

2012-06-15 Thread Jason Friedman
>> This is a related question. >> >> I perform an octal dump on a file: >> $ od -cx file >> 000   h   e   l   l   o       w   o   r   l   d  \n >>            6568    6c6c    206f    6f77    6c72    0a64 >> >> I want to output the names of those characters: >> $ python3 >> Python 3.2.3 (default,

Re: python3 raw strings and \u escapes

2012-06-15 Thread MRAB
On 16/06/2012 00:42, Jason Friedman wrote: This is a related question. I perform an octal dump on a file: $ od -cx file 000 h e l l o w o r l d \n 65686c6c206f6f776c720a64 I want to output the names of those characters: $ python3 Pyth

Re: python3 raw strings and \u escapes

2012-06-15 Thread Jason Friedman
This is a related question. I perform an octal dump on a file: $ od -cx file 000 h e l l o w o r l d \n 65686c6c206f6f776c720a64 I want to output the names of those characters: $ python3 Python 3.2.3 (default, May 19 2012, 17:01:30) [GCC

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-15 Thread CM
Dietmar quotes: > With Python not having an easy-to-use GUI builder, > The point is, that if you want to promote Python as replacement > for e.g. VB, Labview etc., then an easy-to-use GUI builder is required. > The typical GUI programs will just have an input mask, a button and one > or two outpu

RE: Hashable object with self references OR how to create a tuple that refers to itself

2012-06-15 Thread Prasad, Ramit
> > I am trying to create a collection of hashable objects, where each > > object contains references to > > other objects in the collection. The references may be circular. > > > > To simplify, one can define > > x= list() > > x.append(x) > > which satisfies x == [x]. > > Can I create a s

Re: usenet reading

2012-06-15 Thread Albert van der Horst
In article , Colin Higwell wrote: >On Fri, 25 May 2012 15:38:55 -0700, Jon Clements wrote: > >> >> Is there a server out there where I can get my news groups? I use to be >> with an ISP that hosted usenet servers, but alas, it's no longer >> around... >> >I use Albasani.net (free and very reliabl

Re: PyDoc - Python Documentation Plugin for Eclipse

2012-06-15 Thread Alexey Gaidamaka
On Sun, 10 Jun 2012 15:37:50 +, Alexey Gaidamaka wrote: > On Sun, 10 Jun 2012 05:02:35 -0500, Andrew Berg wrote: > >> On 6/10/2012 4:22 AM, Alexey Gaidamaka wrote: >>> Practically the plugin is a simple html archive from python >>> documentation website running >>> inside Eclipse so you can

Re: PyDoc - Python Documentation Plugin for Eclipse

2012-06-15 Thread Alexey Gaidamaka
On Sun, 10 Jun 2012 12:14:15 +0300, Alexey Gaidamaka wrote: > Greets! > > Since i'm new to Python, i've decided to create a handy plugin for > Elipse SDK which is my primary dev environment. Practically the plugin > is a simple html archive from python documentation website running > inside Ecli

Re: Installing numpy over an older numpy

2012-06-15 Thread Miki Tebeka
> Any ideas on how to install a newer version over an older version? pip uninstall numpy pip install numpy -- http://mail.python.org/mailman/listinfo/python-list

Installing numpy over an older numpy

2012-06-15 Thread Tom Kacvinsky
I am having problems installing a newer version of numpy over an older installation. The general problem is that the older version's distutils code is being used instead of the distutils code in the newer version, no matter how much I play around with sys.path in setup.py and the like. Any ide

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Paul Rubin
Terry Reedy writes: > Python iterators can do lazy evaluation. All the builtin classes come > with a corresponding iterator. ... I wouldn't say iterators do lazy evaluation in the Scheme or Haskell sense. Lazy evaluation imho means evaluation is deferred until you actually try to use the value,

Re: Use of internal ctypes objects

2012-06-15 Thread Terry Reedy
On 6/15/2012 4:28 AM, RICHARD MOSELEY wrote: To check whether the function has been previously converted, I make use of internal objects within the ctypes module, namely, _SimpleCData and _CFuncPtr. Is this a safe thing to do, bearing in mind that the objects are documentated as internal? It d

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Terry Reedy
On 6/15/2012 1:03 PM, Tomasz Rola wrote: Last time I checked, Python didn't have linked lists - arrayed lists are nice, but their elements can't be automatically GC-ed (or, this requires very nontrivial GC algorithm), the easiest way I can think would be replacing them with None manually. I'm no

Re: Need a Python Developer...

2012-06-15 Thread Chris Withers
On 05/06/2012 19:18, o2kcompliant wrote: Hi Guys, I have a need for a Python Developer... How about using the Python job board rather than spamming the mailing list: http://www.python.org/community/jobs/howto/ cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Cons

RE: Threads vs subprocesses

2012-06-15 Thread Prasad, Ramit
> > > My question is, on a single core machine, what are the pros and cons of > > > threads vs subprocesses in a setup like this? > > > > [...] > > > > Two key phrases in your message; CPU-intensive, > > single-core-machine. If these have the conventional meaning, you're > > better off doing all

Re: Hashable object with self references OR how to create a tuple that refers to itself

2012-06-15 Thread Dieter Maurer
"Edward C. Jones" writes: > I am trying to create a collection of hashable objects, where each > object contains references to > other objects in the collection. The references may be circular. > > To simplify, one can define > x= list() > x.append(x) > which satisfies x == [x]. > Can I

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Paul Rubin
Alexander Blinne writes: > An Element of s could be discarded, after every one of the three (k*j > for k in s)-generators went over it. I don't think that this is possible > with one deque (at least with the built-in merger of heapq, a > self-written one could be adapted). Storing everything three

Re: Threads vs subprocesses

2012-06-15 Thread John O'Hagan
On Fri, 15 Jun 2012 11:51:01 -0400 Dave Angel wrote: > On 06/15/2012 09:49 AM, John O'Hagan wrote: > > I have a program in which the main thread launches a number of CPU-intensive > > worker threads. For each worker thread two python subprocesses are started, [...] > > > > So far so good, but it

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Tomasz Rola
On Fri, 15 Jun 2012, Alexander Blinne wrote: > How do Haskell or Scheme determine when elements are not longer needed? Just like Python, they use garbage collection - in one sentence, if it can be proved the object (not a OO-object, just a piece of data) will no longer be needed, it can be safe

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-15 Thread Dietmar Schwertberger
Am 13.06.2012 18:30, schrieb rdst...@mac.com: about Google's "Blockly" a drag and drop tool for building apps that outputs Python or Javascript code (among others) and it might be usable along these lines...I'm sure serious programmers would not use it but maybe engineers looking to make web fron

tiffany 0.4 released

2012-06-15 Thread Christian Tismer
Tiffany - Read/Write Multipage-Tiff with PIL without PIL Tiffany stands for any tiff. The tiny module solves a large set of problems, has no dependencies and just works wherever Python works. Tiffany was developed in the course of the *DiDo

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-15 Thread Dietmar Schwertberger
Am 15.06.2012 01:07, schrieb Dennis Lee Bieber: Visual Basic was essentially developed as a unified whole (drop a Sure. I prefer modular approaches. I don't see why this should not be possible (e.g. an IDE like Wing integrates well with other tools and frameworks; I'm sure it could also

Re: Threads vs subprocesses

2012-06-15 Thread Dave Angel
On 06/15/2012 09:49 AM, John O'Hagan wrote: > I have a program in which the main thread launches a number of CPU-intensive > worker threads. For each worker thread two python subprocesses are started, > each of which runs in its own terminal: one displays output received from the > worker thread vi

Re: Python script for device automatic update.

2012-06-15 Thread Michael Hrivnak
Let udev run your script when the appropriate device is connected. http://www.reactivated.net/writing_udev_rules.html Then you just need to run an ssh command against the correct mount point. Honestly, python might be overkill for this. Consider writing a very small bash script. Michael On Fr

RE: does python have bright future?

2012-06-15 Thread Prasad, Ramit
> I'm very new to programing though I learn very little of java,C > I love python and have fun to do something with it > but some people said python's future perhaps not that bright. > I know this question maybe looks like an idiot:( > I really hope the python rules long~ time. > what do you think

Python script for device automatic update.

2012-06-15 Thread LoadWalker
Hi, I am completly new to python. I need to create and script that needs to do the following steps and would apreciate if someone can give me the guidelines to do it as will be my first python script: The script will be in a linux machine. Will wait for a device to conect on the usb. So needs t

Hashable object with self references OR how to create a tuple that refers to itself

2012-06-15 Thread Edward C. Jones
I am trying to create a collection of hashable objects, where each object contains references to other objects in the collection. The references may be circular. To simplify, one can define x= list() x.append(x) which satisfies x == [x]. Can I create a similar object for tuples which sa

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Alexander Blinne
On 15.06.2012 09:00, Paul Rubin wrote: > Alexander Blinne writes: >>> def gen_s(): >>> s = [1] >>> m = skipdups(heapq.merge(*[(lambda j: (k*j for k in s))(n) for n in >>> [2,3,5]])) >>> yield s[0] >>> while True: >>> k = m.next() >>> s.append(k) >>> yield k > > Nice. I

Re: python's future?

2012-06-15 Thread Michael Torrie
On 06/15/2012 01:04 AM, Yesterday Paid wrote: > I'm very new to programing though I learn very little of java,C > I love python and have fun to do something with it > but some people said python's future perhaps not that bright. > I know this question maybe looks like an idiot:( > I really hope the

PyPyODBC 0.5 alpha released! (A Pure Python ODBC module)

2012-06-15 Thread 江文
PyPyODBC - A Pure Python ctypes ODBC module Features -Pure Python, compatible with PyPy (tested on Win32) -Almost totally same usage as pyodbc You can simply try pypyodbc in your existing pyodbc powered script with the following changes: #import pyodbc        

Threads vs subprocesses

2012-06-15 Thread John O'Hagan
I have a program in which the main thread launches a number of CPU-intensive worker threads. For each worker thread two python subprocesses are started, each of which runs in its own terminal: one displays output received from the worker thread via a socket, the other takes text input to control th

Re: PIL for the Python 3.2.3

2012-06-15 Thread Alec Taylor
On Fri, Jun 15, 2012 at 10:18 PM, Gonzalo de Soto wrote: > Dear Python Org, > > It wanted to know if already PIL's > version is available for Python 3.2.3. > > ** ** > > Thanks. > >Gonzalo > > > > ** ** > > * * > >

Re: PIL for the Python 3.2.3

2012-06-15 Thread Emile van Sebille
On 6/15/2012 5:18 AM Gonzalo de Soto said... Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Not yet. See http://www.pythonware.com/products/pil/ Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for the Python 3.2.3

2012-06-15 Thread Mark Lawrence
On 15/06/2012 13:18, Gonzalo de Soto wrote: Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Thanks. Gonzalo Please refer to Matthew 7:7 for a way forward. -- Cheers. Mark Lawrence. -- http:/

PIL for the Python 3.2.3

2012-06-15 Thread Gonzalo de Soto
Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Thanks. Gonzalo -- http://mail.python.org/mailman/listinfo/python-list

Use of internal ctypes objects

2012-06-15 Thread RICHARD MOSELEY
I have a module which makes use of ctypes to interface to the IBM C-ISAM library under linux. I have created a libpyisam.so library which combines the two official libraries, libifisam.so and libifisamx.so and provides a SONAME for the ctypes module (if that is still required). My main object uses

Re: python's future?

2012-06-15 Thread Chris Angelico
On Fri, Jun 15, 2012 at 6:05 PM, Mark Lawrence wrote: > "an active and helpful mailing list/newsgroup (hi!)"?  Gmane lists 322 > entries under comp.python :) Sorry, should have said: A set of active and helpful mailing lists/newsgroups! You're quite right, there's a lot of them :) I wonder... is

does python have bright future?

2012-06-15 Thread Yesterday Paid
I'm very new to programing though I learn very little of java,C I love python and have fun to do something with it but some people said python's future perhaps not that bright. I know this question maybe looks like an idiot:( I really hope the python rules long~ time. what do you think about future

Re: python's future?

2012-06-15 Thread Mark Lawrence
On 15/06/2012 08:30, Chris Angelico wrote: On Fri, Jun 15, 2012 at 5:04 PM, Yesterday Paid wrote: I'm very new to programing though I learn very little of java,C I love python and have fun to do something with it but some people said python's future perhaps not that bright. I know this questio

Re: python's future?

2012-06-15 Thread Mark Lawrence
On 15/06/2012 08:04, Yesterday Paid wrote: I'm very new to programing though I learn very little of java,C I love python and have fun to do something with it but some people said python's future perhaps not that bright. I know this question maybe looks like an idiot:( I really hope the python rul

PyCon Australia 2012 Conference Programme Revealed!

2012-06-15 Thread Chris Neugebauer
(Hobart Tasmania, 15 June 2012) With both of our keynotes announced, PyCon Australia is very proud to be able to reveal the programme for the 2012 conference, to be held on Saturday 18 and Sunday 19 August 2012 in Hobart, Tasmania. Following an impressive response to our Call for Proposals the con

Re: python's future?

2012-06-15 Thread Chris Angelico
On Fri, Jun 15, 2012 at 5:04 PM, Yesterday Paid wrote: > I'm very new to programing though I learn very little of java,C > I love python and have fun to do something with it > but some people said python's future perhaps not that bright. > I know this question maybe looks like an idiot:( > I reall

python's future?

2012-06-15 Thread Yesterday Paid
I'm very new to programing though I learn very little of java,C I love python and have fun to do something with it but some people said python's future perhaps not that bright. I know this question maybe looks like an idiot:( I really hope the python rules long~ time. what do you think about future

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Paul Rubin
Alexander Blinne writes: >> def gen_s(): >> s = [1] >> m = skipdups(heapq.merge(*[(lambda j: (k*j for k in s))(n) for n in >> [2,3,5]])) >> yield s[0] >> while True: >> k = m.next() >> s.append(k) >> yield k Nice. I wouldn't have been sure that "for k in s" worked prop