Re: Passing a list into a list .append() method

2014-09-09 Thread JBB
Frank Millman chagford.com> writes: > > > "JBB" gmail.com> wrote in message > news:loom.20140909T073428-713 post.gmane.org... > >I have a list with a fixed number of elements which I need to grow; ie. add > > rows of a fixed number of elements, some of which will be blank. ... > I am sure th

Re: Passing a list into a list .append() method

2014-09-09 Thread Peter Otten
JBB wrote: > I have a list with a fixed number of elements which I need to grow; ie. > add rows of a fixed number of elements, some of which will be blank. > > e.g. [['a','b','c','d'], ['A','B','C','D'], ['', 'aa', 'inky', ''], ['', > 'bb', 'binky', ''], ... ] > > This is a reduced representatio

Re: Passing a list into a list .append() method

2014-09-09 Thread Paul Kroeger
Hello, I'm myself still learning Python, so others may please correct me, if I'm wrong. Consider the following sentence of your link "jeffknupp.com/...": "some_guy and first_names[0] both refer to the same object" This is what is going on here. Am Dienstag, den 09.09.2014, 05:50 + schrieb

Re: Passing a list into a list .append() method

2014-09-09 Thread JBB
Paul Kroeger prz-wugen.com> writes: > > Hello, > > I'm myself still learning Python, so others may please correct me, if > I'm wrong. ... > I hope, the above helps to understand why this behaviour.is to be > expected. > To Peter Otten and Paul Kroeger: Thank you both, very much. I think I no

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Mark Lawrence
On 09/09/2014 03:45, kjs wrote: You're right, a dictionary can do everything I need and more. This happened to be the first thing I thought of, and I didn't imagine it would be very expensive. I figured it was simply a different way of defining and retrieving a class variable. IE setattr(self, f

Re: Newer Debian versions of python on older Debian distros?

2014-09-09 Thread Rustom Mody
On Tuesday, September 9, 2014 12:35:27 AM UTC+5:30, Travis Griggs wrote: > (I realize that this may be seen as off topic for as a general > python question, but given my historical experience with the Debian > community's predilection to answer all questions with a grumpy "go > read the very very v

Re: Passing a list into a list .append() method

2014-09-09 Thread JBB
Peter Otten <__peter__ web.de> writes: [Deletia] To Peter Otten and Paul Kroeger: Thank you both, very much. I think I now get why the binding works as it does in addition to why the list() approach worked. (Third attempt - priors not going through, please excuse any repetition) JBB -- h

How to create python web framework for ERP

2014-09-09 Thread Vimal Rughani
Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. C

Re: How to create python web framework for ERP

2014-09-09 Thread Stéphane Wirtel
On 9 Sep 2014, at 10:25, Vimal Rughani wrote: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to cr

Python 3.41 and web3py framework

2014-09-09 Thread Φώντας Λαδοπρακόπουλος
Hello, i'm trying to install and work with web3py as i have Python 3.4.1 installed. [/code] [nikos@dell web3py-master]$ ls apps contrib gluon Makefile runme.py TODO vars web3py [nikos@dell web3py-master]$ python -V Python 3.4.1 [nikos@dell web3py-master]$ python runme.py Traceback (most r

Re: Newer Debian versions of python on older Debian distros?

2014-09-09 Thread Chris Angelico
On Tue, Sep 9, 2014 at 6:09 PM, Rustom Mody wrote: >> Does anyone have experience with using newer versions of python >> debian packages (in particular, python3 and python3-bson-ext from >> 'testing') on older stable versions ('wheezy' in this case)? If >> someone's figured out how to do this eas

Re: How to create python web framework for ERP

2014-09-09 Thread Vimal Rughani
On Tuesday, 9 September 2014 14:09:48 UTC+5:30, Stéphane Wirtel wrote: > On 9 Sep 2014, at 10:25, Vimal Rughani wrote: > > > > > Hi All, > > > > > > Greetings ! > > > > > > I am bit familiar with Django and Python. I want to create ERP on > > > python. Initially I feel Django will be good

Re: How to create python web framework for ERP

2014-09-09 Thread Adam Nešpůrek
I would say you can still use Django. See django-oscar for instance, it is 'ecommerce framework', based od Django. I would highly recommend to stick around Django, because of its huge ecosystem. You can still add/write some missing parts yourself. Can you be more specific, why Django does not suit

Re: Passing a list into a list .append() method

2014-09-09 Thread Rustom Mody
On Tuesday, September 9, 2014 11:25:29 AM UTC+5:30, JBB wrote: > I have a list with a fixed number of elements which I need to grow; ie. add > rows of a fixed number of elements, some of which will be blank. > e.g. [['a','b','c','d'], ['A','B','C','D'], ['', 'aa', 'inky', ''], ['', > 'bb', 'bink

Re: How to create python web framework for ERP

2014-09-09 Thread Matteo Boscolo
Use the only odoo framework.. without addons .. will be the best choice .. do not reinvent the whell if you do not need web interface, you can have a look at http://www.tryton.org/ otherwise you could have flask for the top of flexibility regards, Matteo Il 09/09/2014 12:06, Vimal Rughani ha

exit code of a script that raises an Exception?

2014-09-09 Thread thequietcenter
Hello, after looking at the docs for Exception: https://docs.python.org/2/library/exceptions.html I do not see any information on the guaranteed exit code a script that exits because Python threw an exception. I wonder if all exceptions throw the exact same non-zero exit code, or whether a spec

Re: How to create python web framework for ERP

2014-09-09 Thread thequietcenter
On Tuesday, September 9, 2014 6:53:37 AM UTC-4, Adam Nešpůrek wrote: > I would highly recommend to stick around Django, because of its huge > ecosystem. Django's ORM layer does not perform intelligent object creation does it? It naively creates two instances for the same row and does not handle

Re: How to create python web framework for ERP

2014-09-09 Thread Andre Duarte
Vimal, Django is a more generic framework(was built initialy for content management). Odoo is a valid sugestion but take some time to see Frappe.io. ERPNext was built on top of this framework and is a great application for small bussiness. []'s André -- https://mail.python.org/mailman/listinfo

Re: How to create python web framework for ERP

2014-09-09 Thread Gerd Niemetz
Am Dienstag, 9. September 2014 10:25:24 UTC+2 schrieb Vimal Rughani: > Hi All, > > > > Greetings ! > > > > I am bit familiar with Django and Python. I want to create ERP on python. > Initially I feel Django will be good option for My Own ERP, but after working > bit on that I feel it doesn'

Re: [ANN] pathlib 1.0.1

2014-09-09 Thread thequietcenter
On Wednesday, September 3, 2014 11:58:47 AM UTC-4, Antoine Pitrou wrote: > > pathlib offers a set of classes to handle filesystem paths. How does it differ from path.py? -- https://mail.python.org/mailman/listinfo/python-list

Re: exit code of a script that raises an Exception?

2014-09-09 Thread thequietcenter
On Tuesday, September 9, 2014 9:56:04 AM UTC-4, thequie...@gmail.com wrote: > I wonder if all exceptions throw the exact same non-zero exit code, or > whether a specific exit code is assigned to each exception uniquely. Or > whether the exit code behavior is undefined (especially since it appear

cx_freeze and architecture

2014-09-09 Thread Nagy László Zsolt
Is it possible to create executeable for different architectures on the same windows OS? What I mean is that I can install Python 3 amd64 and then create 64 bit executeables with cx_freeze. But I cannot create 32bit x86 executeables. It would be great to install Python 3 x86 on the same system

pycrypto 3.4 binaries for windows x86

2014-09-09 Thread Nagy László Zsolt
Where can I find compiled installer for pycrypto for python 3.4 windows 32bit? Voidspace does not have compiled installers for 3.4, only 3.3. pip cannot install it because it wants to compile it from source. (I need a binary installer, and I don't have MSVC.) It is not present at Gholke's websi

Re: exit code of a script that raises an Exception?

2014-09-09 Thread Ned Batchelder
On 9/9/14 9:55 AM, thequietcen...@gmail.com wrote: Hello, after looking at the docs for Exception: https://docs.python.org/2/library/exceptions.html I do not see any information on the guaranteed exit code a script that exits because Python threw an exception. I wonder if all exceptions throw

Re: Newer Debian versions of python on older Debian distros?

2014-09-09 Thread Rustom Mody
On Tuesday, September 9, 2014 2:53:53 PM UTC+5:30, Chris Angelico wrote: > On Tue, Sep 9, 2014 at 6:09 PM, Rustom Mody wrote: > >> Does anyone have experience with using newer versions of python > >> debian packages (in particular, python3 and python3-bson-ext from > >> 'testing') on older stable

Re: Newer Debian versions of python on older Debian distros?

2014-09-09 Thread Chris Angelico
On Wed, Sep 10, 2014 at 1:23 AM, Rustom Mody wrote: > I thought so too viz that the problems were teething troubles. > However the rants on debian-dev seem to be following from extensive breakage > from systemd. > > Also there is this thread in which systemd broke the standard > kernel debugging o

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
Reposting to list, instead of directly to kjs On 09/08/2014 08:45 PM, kjs wrote: > Thanks for the consideration Michael. If you do get the data, and are > able to run the code, let me know if you notice anything interesting. Yeah I don't think I'll be able to have the time to download a 3 GB file

Re: pycrypto 3.4 binaries for windows x86

2014-09-09 Thread Christian Heimes
On 09.09.2014 16:45, Nagy László Zsolt wrote: > Where can I find compiled installer for pycrypto for python 3.4 windows > 32bit? Voidspace does not have compiled installers for 3.4, only 3.3. > pip cannot install it because it wants to compile it from source. (I > need a binary installer, and I don

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
On 09/08/2014 08:45 PM, kjs wrote: > You're right, a dictionary can do everything I need and more. Actually I am wrong in suggesting a dictionary. A list or an array would probably be more appropriate. Thinking about it this morning, one additional reason why getattr and setattr aren't appropria

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Chris Angelico
On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie wrote: > Yes you're correct. It is the equivalent. But it always involves > lookup in the object's dictionary, which is big O order O(n log n) > complexity for each and every access. Where do you get that figure from? A CPython dictionary is imple

Re: cx_freeze and architecture

2014-09-09 Thread MRAB
On 2014-09-09 14:36, Nagy László Zsolt wrote: Is it possible to create executeable for different architectures on the same windows OS? What I mean is that I can install Python 3 amd64 and then create 64 bit executeables with cx_freeze. But I cannot create 32bit x86 executeables. It would be great

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
On 09/09/2014 09:37 AM, Chris Angelico wrote: > On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie wrote: >> Yes you're correct. It is the equivalent. But it always involves >> lookup in the object's dictionary, which is big O order O(n log n) >> complexity for each and every access. > > Where do

Re: installing python 3

2014-09-09 Thread Guido van Rossum
Dear Ashley, Try describing your problem on StackOverflow.com. I'm sure someone there will help you. Good luck! --Guido On Sep 9, 2014 2:27 AM, "Ashley Forman" wrote: > Hello, > My name is Ashley Forman, and I am emailing because I cannot install > python onto my Mac laptop! I have installed

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread kjs
On September 9, 2014 8:57:02 AM PDT, Michael Torrie wrote: >On 09/09/2014 09:37 AM, Chris Angelico wrote: >> On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie >wrote: >>> Yes you're correct. It is the equivalent. But it always involves >>> lookup in the object's dictionary, which is big O order

Re: installing python 3

2014-09-09 Thread Volker Birk
Ashley Forman wrote: > My name is Ashley Forman, and I am emailing because I cannot install > python onto my Mac laptop! I have installed Active-TCl 8.5 along with > Python 3.3 and tried with 3.4, and couldn't figure out a solution to my > problem. When I click on IDLE to open, it does not open a

How to exit from embedded IPython shell?

2014-09-09 Thread Andy Zhang
Hi, I am embedding IPython inside a c application, by running PYTHONSTARTUP file which is: import IPython IPython.embed() Then the application interact with user input via stdin. After the user is done, she would type EOF. The program should exit, but keep all the python objects in memory, and

Bad comment on Enigmatic Code

2014-09-09 Thread blindanagram
Hi Jim, When you get a moment, can you please remove the wrongly formatted Python comment I made on your site? Thanks Brian -- https://mail.python.org/mailman/listinfo/python-list

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Terry Reedy
On 9/9/2014 11:34 AM, Michael Torrie wrote: On 09/08/2014 08:45 PM, kjs wrote: You're right, a dictionary can do everything I need and more. Actually I am wrong in suggesting a dictionary. A list or an array would probably be more appropriate. Thinking about it this morning, one additional r

Re: cx_freeze and architecture

2014-09-09 Thread Nagy László Zsolt
Then what should I do? Is there a way around this other than installing a completely new OS and synchronizing source files between them? It _is_ possible to install you 32-bit and 64-bit Python on a 64-bit Windows. Just install them in different folders. And then how should I select the one fr

Re: Bad comment on Enigmatic Code

2014-09-09 Thread Steven D'Aprano
blindanagram wrote: > Hi Jim, > > When you get a moment, can you please remove the wrongly formatted > Python comment I made on your site? > > Thanks > > Brian Who is Jim, and what comment are you talking about? Perhaps you have sent this message to the wrong address? -- Steven -- h