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. --

Re: scipy error undefined symbol: lsame_

2010-04-19 Thread Joaquin Abian
On Apr 19, 7:15 pm, gerardob gberbeg...@gmail.com 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

Re: py2exe and msvcp90.dll

2010-04-15 Thread Joaquin Abian
On Apr 15, 6:19 am, Alex Hall mehg...@gmail.com 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

Re: packaging multiple python scripts as Windows exe file

2010-04-13 Thread Joaquin Abian
On Apr 13, 9:56 pm, Mike Driscoll kyoso...@gmail.com wrote: On Apr 12, 5:20 pm, Alex Hall mehg...@gmail.com 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

Re: 2.7 beta 1

2010-04-11 Thread Joaquin Abian
On Apr 11, 6:53 pm, Steven D'Aprano st...@remove-this- cybersource.com.au 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

Re: Pythonic list reordering

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

Re: Why these don't work??

2010-04-08 Thread Joaquin Abian
On Apr 8, 10:08 pm, M. Hamed mohammed.elshou...@microchip.com 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

Re: Pythonic list reordering

2010-04-08 Thread Joaquin Abian
On Apr 9, 12:52 am, Ben Racine i3enha...@gmail.com 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

Re: Simplify Python

2010-04-06 Thread Joaquin Abian
On Apr 6, 9:04 pm, ja1lbr3ak superheroco...@gmail.com 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

Re: Simplify Python

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

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 vlad_...@yahoo.com 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):

no module named exceptions?

2010-04-01 Thread Joaquin Abian
In python 3.1, import exceptions Traceback (most recent call last): File pyshell#6, line 1, in module 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 --

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

2010-03-31 Thread Joaquin Abian
On Mar 31, 1:18 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand 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 ugly? By the way, you don’t need

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

2010-03-30 Thread Joaquin Abian
On Mar 30, 5:40 pm, gentlestone tibor.b...@hotmail.com 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)

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

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

Re: How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
On Mar 20, 5:39 pm, Terry Reedy tjre...@udel.edu 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 success. The points knocking me

Re: How User-defined method objects are created?

2010-03-20 Thread Joaquin Abian
On Mar 20, 5:24 pm, Duncan Booth duncan.bo...@invalid.invalid wrote: Joaquin Abian gatoyga...@gmail.com 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

Re: to pass self or not to pass self

2010-03-17 Thread Joaquin Abian
On Mar 17, 3:43 pm, Patrick Maupin pmau...@gmail.com wrote: On Mar 17, 4:12 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Patrick Maupin a écrit : On Mar 16, 1:59 pm, Jason Tackaberry t...@urandom.ca wrote: Why not create the bound methods at instantiation

Re: to pass self or not to pass self

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

Re: Python bindings tutorial

2010-03-16 Thread Joaquin Abian
On Mar 16, 5:20 pm, Johny pyt...@hope.cz 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 ? --

Re: Python bindings tutorial

2010-03-16 Thread Joaquin Abian
On Mar 16, 5:20 pm, Johny pyt...@hope.cz 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 ? --

Re: Breaking the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 12:34, vsoler vicente.so...@gmail.com 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,

Re: Breaking the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 20:35, Michael Rudolf spamfres...@ch3ka.de 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 --

Re: Breaking the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 20:35, Michael Rudolf spamfres...@ch3ka.de 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

Re: Python unicode and Windows cmd.exe

2010-03-14 Thread Joaquin Abian
On 14 mar, 22:22, Guillermo guillermo.lis...@googlemail.com 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