status of new python.org

2013-10-26 Thread Joaquin Abian
Is there any updated roadmap/schedule for the new python.org site ? It has been in beta mode at http://preview.python.org/ for several months but I can not find in there any indication of the progress or the possible date for publishing it. Most paragraphs are still with Lore Ipsum. -- https://m

Re: scipy error undefined symbol: lsame_

2010-04-19 Thread Joaquin Abian
On Apr 19, 7:15 pm, gerardob wrote: > I installed scipy (and all the required libraries) and the following error > appears when i tried run a simple example which uses the optimize package of > scipy. I tried also numpy alone and it works ( at least for printing > numpy.array([10,20,10])) > > erro

Re: py2exe and msvcp90.dll

2010-04-15 Thread Joaquin Abian
On Apr 15, 6:19 am, Alex Hall wrote: > Hi all, > I am still fighting with py2exe; I keep getting "error: msvcp90.dll: > no such file or directory" right after it says it is searching for > required dlls. I have followed the py2exe tutorial, though, and I am > not sure why it is not finding the dll

Re: packaging multiple python scripts as Windows exe file

2010-04-13 Thread Joaquin Abian
On Apr 13, 9:56 pm, Mike Driscoll wrote: > On Apr 12, 5:20 pm, Alex Hall wrote: > > > > > Hi all, > > While my project is still suffering from major import problems, I will > > soon have to try to package it as a Windows executable file. I do not > > want an installer; I want the user to be able

Re: 2.7 beta 1

2010-04-11 Thread Joaquin Abian
On Apr 11, 6:53 pm, Steven D'Aprano wrote: > > In any case, IDLE is one IDE out of many, and not really up to > professional quality -- it's clunky and ugly. It isn't Python, it is a > tool written in Python. > > -- > Steven But this is a tool that is a part of the python distribution and often r

Re: Pythonic list reordering

2010-04-09 Thread Joaquin Abian
On Apr 9, 1:58 am, Chris Rebert wrote: > On Thu, Apr 8, 2010 at 4:01 PM, Joaquin Abian wrote: > > On Apr 9, 12:52 am, Ben Racine wrote: > >> I have a list... > > >> ['dir_0_error.dat', 'dir_120_error.dat', 'dir_30_error.dat', >

Re: Pythonic list reordering

2010-04-08 Thread Joaquin Abian
On Apr 9, 12:52 am, Ben Racine wrote: > I have a list... > > ['dir_0_error.dat', 'dir_120_error.dat', 'dir_30_error.dat', > 'dir_330_error.dat'] > > I want to sort it based upon the numerical value only. > > Does someone have an elegant solution to this? > > Thanks, > Ben R. not sure about elega

Re: Why these don't work??

2010-04-08 Thread Joaquin Abian
On Apr 8, 10:08 pm, "M. Hamed" wrote: > Thanks All. That clears alot of confusion. It seems I assumed that > everything that works for lists works for strings (the immutable vs > mutable hasn't sunken in yet). > > On the other hand (other than installing NumPy) is there a built-in > way to do an a

Re: Simplify Python

2010-04-06 Thread Joaquin Abian
On Apr 6, 11:04 pm, ja1lbr3ak wrote: > On Apr 6, 4:56 pm, Joaquin Abian wrote: > > > > > On Apr 6, 9:04 pm, ja1lbr3ak wrote: > > > > I'm trying to teach myself Python, and so have been simplifying a > > > calculator program that I wrote.

Re: Simplify Python

2010-04-06 Thread Joaquin Abian
On Apr 6, 9:04 pm, ja1lbr3ak wrote: > I'm trying to teach myself Python, and so have been simplifying a > calculator program that I wrote. The original was 77 lines for the > same functionality. Problem is, I've hit a wall. Can anyone help? > > loop = input("Enter 1 for the calculator, 2 for the F

Re: def method with variable no of parameters file.writeStuff(n, a1, a2, ...an)

2010-04-04 Thread Joaquin Abian
On Apr 2, 1:25 pm, "vlad_fig" wrote: > Hello all, > > I would like some help with setting up a method that would allow me to change > its number of parameters. For example: > > #- > class createfile(object): > > def __init__(self, > modelName = None, > someLines = None): > > s

no module named exceptions?

2010-04-01 Thread Joaquin Abian
In python 3.1, >>> import exceptions Traceback (most recent call last): File "", line 1, in import exceptions ImportError: No module named exceptions in 2.6 no exception is raised It should be the same in 3.1, isnt it? Joaquin -- http://mail.python.org/mailman/listinfo/python-list

Re: (a==b) ? 'Yes' : 'No'

2010-03-31 Thread Joaquin Abian
On Mar 31, 1:18 am, Lawrence D'Oliveiro wrote: > In message <7316f3d2-bcc9-4a1a-8598- > > cdd5d41fd...@k17g2000yqb.googlegroups.com>, Joaquin Abian wrote: > > (a==b) and 'YES' or 'NO' > > > Yes, ugly > > Why would you say that’s ug

How many packages there are in PyPI

2010-03-30 Thread Joaquin Abian
Hi, PyPI is reaching the 1 package figure (In the case of 3.x only about 140 packages and increasing very very slowly). Looking at available packages for 3.x I observed that some packages are listed several times. For example, lxml is listed 5 times. Are these repetitions included in the packa

Re: (a==b) ? 'Yes' : 'No'

2010-03-30 Thread Joaquin Abian
On Mar 30, 5:40 pm, gentlestone wrote: > Hi, how can I write the popular C/JAVA syntax in Python? > > Java example: >     return (a==b) ? 'Yes' : 'No' > > My first idea is: >     return ('No','Yes')[bool(a==b)] > > Is there a more elegant/common python expression for this? (a==b) and 'YES' or 'NO

Re: How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
On Mar 20, 5:24 pm, Duncan Booth wrote: > Joaquin Abian wrote: > > "User-defined method objects may be created when getting an attribute > > of a class (perhaps via an instance of that class), if that attribute > > is a user-defined function object, an unbound user-def

Re: How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
On Mar 20, 5:39 pm, Terry Reedy wrote: > On 3/20/2010 9:54 AM, Joaquin Abian wrote: > > > > > I'm trying to understand the description of method object creation in > > the python 2.6 language reference (3.2. The standard type hierarchy) > > with little

How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
I'm trying to understand the description of method object creation in the python 2.6 language reference (3.2. The standard type hierarchy) with little success. The points knocking me are: "User-defined method objects may be created when getting an attribute of a class (perhaps via an instance of t

Re: to pass self or not to pass self

2010-03-17 Thread Joaquin Abian
On Mar 18, 12:11 am, Patrick Maupin wrote: > On Mar 17, 5:34 pm, Joaquin Abian wrote: > > > > > On Mar 17, 3:43 pm, Patrick Maupin wrote: > > > > On Mar 17, 4:12 am, Bruno Desthuilliers > > > 42.desthuilli...@websiteburo.invalid> wrote: > > >

Re: to pass self or not to pass self

2010-03-17 Thread Joaquin Abian
On Mar 17, 3:43 pm, Patrick Maupin wrote: > On Mar 17, 4:12 am, Bruno Desthuilliers > 42.desthuilli...@websiteburo.invalid> wrote: > > Patrick Maupin a écrit : > > > > On Mar 16, 1:59 pm, Jason Tackaberry wrote: > > >> Why not create the bound methods at instantiation time, rather than > > >> us

Re: Python bindings tutorial

2010-03-16 Thread Joaquin Abian
On Mar 16, 5:20 pm, Johny wrote: > Is there any tutorial how to write a bindings for a exe ( dos) > program? > I would like to run it from a Python directly > ( using import command and a particular function from the binding) >  not using os.system command. > Thanks > L. subprocess ? -- http://m

Re: Python bindings tutorial

2010-03-16 Thread Joaquin Abian
On Mar 16, 5:20 pm, Johny wrote: > Is there any tutorial how to write a bindings for a exe ( dos) > program? > I would like to run it from a Python directly > ( using import command and a particular function from the binding) >  not using os.system command. > Thanks > L. subprocess ? -- http://m

Re: Python unicode and Windows cmd.exe

2010-03-14 Thread Joaquin Abian
On 14 mar, 22:22, Guillermo wrote: > >    That is what happens: the file now starts with a BOM \xEB\xBB\xBF as > > you can see with a hex editor. > > Is this an enforced convention under Windows, then? My head's aching > after so much pulling at my hair, but I have the feeling that the > problem o

Re: "Breaking" the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 20:35, Michael Rudolf wrote: > Am 14.03.2010 16:03, schrieb pyt...@bdurham.com: > > > Any reason you prefer PDB over WinPDB? > >http://winpdb.org/ > > Yes. I don't have Windows except one one PC :P Sorry, i hit the wrong key. Again: winpdb is crossplatform. It uses a wxwindows gui. Nam

Re: "Breaking" the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 20:35, Michael Rudolf wrote: > Am 14.03.2010 16:03, schrieb pyt...@bdurham.com: > > > Any reason you prefer PDB over WinPDB? > >http://winpdb.org/ > > Yes. I don't have Windows except one one PC :P WinPdb is crossplatform. Is build with -- http://mail.python.org/mailman/listinfo/pytho

Re: "Breaking" the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 12:34, vsoler wrote: > Hello, > > I am still learning python, thus developnig small scripts. > > Some of them consist only of the main module. While testing them > (debugging) I sometimes want to stop the script at a certain point, > with something like    stop, break, end   or somethin