Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 12:10:13 π.μ. UTC+3, ο χρήστης Νίκος Γκρ33κ έγραψε: > Hello, iam still trying to alter the code form python 2.6 => 3.3 > > > > Everyrging its setup except that unicode error that you can see if you go to > http://superhost.gr > > > > Can anyone help with this? >

Re: [LONG] docstring-driven testing

2013-04-13 Thread zipher
On Saturday, March 6, 1999 12:00:00 AM UTC-8, Tim Peters wrote: > If you're like me, you've been using Python since '91, and every scheme > you've come up with for testing basically sucked. Some observations: > > + Examples are priceless. > > + Examples that don't work are worse than worthless.

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/14/2013 12:34 AM, Chris Angelico wrote: On Sun, Apr 14, 2013 at 5:34 AM, someone wrote: I think maybe I'll experiment a bit with both mySql (small/medium sized databases) and for critical/important stuff I should go with PostgreSQL PostgreSQL isn't majorly slower than MySQL, and it's a

Re: [ANNC] pynguin-0.14 python turtle graphics application

2013-04-13 Thread Miki Tebeka
> Pynguin is a python-based turtle graphics application. I wonder why Pynguin does not get more traction in the teaching sector. Looks ideal for teaching kids. -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/14/2013 12:54 AM, Chris Angelico wrote: On Sun, Apr 14, 2013 at 8:31 AM, someone wrote: Ok, thank you. I just came across a blog that said pytables is also a very good option? http://www.pytables.org/moin/PyTables?action=AttachFile&do=view&target=non-indexed.png From what I gather, th

Re: Unicode issue with Python v3.3

2013-04-13 Thread Cameron Simpson
On 13Apr2013 07:16, nagia.rets...@gmail.com wrote: | root@macgyver [/home/nikos/public_html/cgi-bin]# ls ../cgi.err.out | ../cgi.err.out I prefer "ls -ld" myself. | root@macgyver [/home/nikos/public_html/cgi-bin]# cat ../cgi.err.out | | Also i have foudn the error log and i tried to view it b

[ANNC] pynguin-0.14 python turtle graphics application

2013-04-13 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release ad

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 8:31 AM, someone wrote: > Ok, thank you. I just came across a blog that said pytables is also a very > good option? > > http://www.pytables.org/moin/PyTables?action=AttachFile&do=view&target=non-indexed.png >From what I gather, that's looking at performance of a non-indexa

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 6:01 AM, Dennis Lee Bieber wrote: > On Sun, 14 Apr 2013 00:03:25 +1000, Chris Angelico > declaimed the following in gmane.comp.python.general: > >> True ACID compliance demands support at every level: >> >> 1) The application has to operate in logical units of work, which

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/14/2013 12:22 AM, Walter Hurry wrote: On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote: On 04/13/2013 04:56 PM, Walter Hurry wrote: On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license (

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 5:34 AM, someone wrote: > I think maybe I'll experiment a bit with both mySql (small/medium sized > databases) and for critical/important stuff I should go with PostgreSQL PostgreSQL isn't majorly slower than MySQL, and it's a lot more trustworthy in terms of database cons

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Walter Hurry
On Sat, 13 Apr 2013 21:34:38 +0200, someone wrote: > On 04/13/2013 04:56 PM, Walter Hurry wrote: >> On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: >> >>> I'm not so rich, so I prefer to go for a free database solution rather >>> than an expensive license >> ( but I do care about ACID complia

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Roy Smith
In article , someone wrote: > > Some of the early Unix file systems were very fragile. One of the > > (often under-appreciated) major advances in BSD (it was certainly in > > 4.2, not sure how much earlier) was a new filesystem which was much more > > robust in the face of hardware failures and

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 10:01 PM, Dennis Lee Bieber wrote: On Sun, 14 Apr 2013 00:03:25 +1000, Chris Angelico declaimed the following in gmane.comp.python.general: [ ] * Create a table with a number of rows with an ID and a counter, initialized to 0 * Repeatedly, in parallel, perform a transaction

Issue 16061 performance regression in string replace for 3.3

2013-04-13 Thread Mark Lawrence
Fixed full details here http://bugs.python.org/issue16061 -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Microsoft accuses Google of pushing services to Android

2013-04-13 Thread 23alagmy
Microsoft accuses Google of pushing services to Android http://natigtas7ab.blogspot.com/2013/04/microsoft-accuses-google-of-pushing.html -- http://mail.python.org/mailman/listinfo/python-list

How to install/uninstall manpages with distutils/setuptools?

2013-04-13 Thread Santosh Kumar
Hey, I have an app hosted on PyPi, it actually is a small script which is in bin/ directory of the project. Here is the part of setup.py file of my app: #!/usr/bin/env python #-*- coding: utf-8 -*- import sys, os, shutil try: from setuptools import setup except ImportError: from distutil

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 07:02 PM, rusi wrote: On Apr 13, 9:15 pm, Chris Angelico wrote: On Sun, Apr 14, 2013 at 12:39 AM, someone wrote: On 04/13/2013 04:03 PM, Chris Angelico wrote: . . Failure at any level means the overall system is not ACID compliant. Ok, it would be nice to hear/read th

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 06:15 PM, Chris Angelico wrote: On Sun, Apr 14, 2013 at 12:39 AM, someone wrote: On 04/13/2013 04:03 PM, Chris Angelico wrote: Failure at any level means the overall system is not ACID compliant. Roger... But google says sqlite is supposed to be ACID compliant (although maybe n

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 04:56 PM, Walter Hurry wrote: On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: I'm not so rich, so I prefer to go for a free database solution rather than an expensive license ( but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then. Oh, ok. Th

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 04:36 PM, Roy Smith wrote: In article , Chris Angelico wrote: 2) The database engine must employ some form of write-ahead log. [...] one way or another, there must be a way to detect half-done transactions. 3) The operating system and filesystem must support a forced file sync

Re: CSV to matrix array

2013-04-13 Thread Oscar Benjamin
On 13 April 2013 16:30, Ana Dionísio wrote: > It's still not working. I still have one column with all the data inside, > like this: > > 2999;T3;3;1;1;Off;ON;OFF;ON;ON;ON;ON;Night;; > > How can I split this data in a way that if I want to print "T3" I would just > do "print array[0][1]"? Yo

Re: IDE for GUI Designer

2013-04-13 Thread Robert Kern
On 2013-04-14 00:01, Wolfgang Keller wrote: Well, I usually use the Qt Designer and it does work well for me. It generates a .ui file with it which has to be passed to pyuic to generate the actual Python code Wow. Even one more step than with code generation directly from the GUI builder. Y

Re: IDE for GUI Designer

2013-04-13 Thread Wolfgang Keller
> Well, I usually use the Qt Designer and it does work well for me. > > It generates a .ui file with it which has to be passed to pyuic to > generate the actual Python code Wow. Even one more step than with code generation directly from the GUI builder. Clumsy, tedious, static. Cocoa's Interf

Re: API design for Python 2 / 3 compatibility

2013-04-13 Thread Ethan Furman
On 04/13/2013 09:36 AM, Stefan Schwarzer wrote: * Approach 2 When opening remote text files for reading, ftputil will always return unicode strings from `read(line/s)`, regardless of whether it runs under Python 2 or Python 3. Pro: Uniform API, independent on underlying Python

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-13 Thread Ned Deily
In article , Piotr Dobrogost wrote: > On Thursday, April 11, 2013 5:12:53 PM UTC+2, donald...@gmail.com wrote: > > I just submitted a bug report on the pdb issue. > It would be nice of you to share the link to this issue. http://bugs.python.org/issue17697 -- Ned Deily, n...@acm.org -- ht

Re: API design for Python 2 / 3 compatibility

2013-04-13 Thread Terry Jan Reedy
On 4/13/2013 12:36 PM, Stefan Schwarzer wrote: Hello, I'm currently changing the FTP client library ftputil [1] so that the same code of the library works with Python 2 (2.6 and up) and Python 3. (At the moment the code is for Python 2 only.) I've run into a API design issue where I don't know w

Re: Python pdb bug, followed by bug in bugs.python.org

2013-04-13 Thread Piotr Dobrogost
On Thursday, April 11, 2013 5:12:53 PM UTC+2, donald...@gmail.com wrote: > > I just submitted a bug report on the pdb issue. It would be nice of you to share the link to this issue. -- http://mail.python.org/mailman/listinfo/python-list

Re: SimpleHTTPRequestHandler used with HTTP/1.1 hangs after the second resource on a page.

2013-04-13 Thread Piotr Dobrogost
On Saturday, April 13, 2013 12:21:33 AM UTC+2, Terry Jan Reedy wrote: > I find the doc slightly confusing. The SO code uses BaseHTTPServer. The > doc says "Usually, this module isn’t used directly," On the other hand, > SimpleHTTPServer only defines a request handler and not a server itself. Tha

Re: Message passing syntax for objects | OOPv2

2013-04-13 Thread Michael Torrie
On 04/13/2013 12:28 AM, Mark Janssen wrote: >> Mark, this proposal is out of place on a Python list, because it proposes an >> object methodology radically different from any that is implemented in >> Python now, or is even remotely likely to be implemented in Python in the >> future. > > Wow, you

Re: CSV to matrix array

2013-04-13 Thread cantorp
Dear Ana, your example data could be transformed into a matrix with >>>import csv >>>rows = csv.reader(open("your_data_file.csv"), delimiter=" ") >>>array = [row for row in rows] >>>array[0][3] 4 HTH Paolo Am Freitag, 12. April 2013 19:29:05 UTC+2 schrieb Ana Dionísio: > That only puts the data

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread rusi
On Apr 13, 9:15 pm, Chris Angelico wrote: > On Sun, Apr 14, 2013 at 12:39 AM, someone wrote: > > On 04/13/2013 04:03 PM, Chris Angelico wrote: > >> Failure at any level means the overall system is not ACID compliant. > > > Roger... But google says sqlite is supposed to be ACID compliant (although

Re: CSV to matrix array

2013-04-13 Thread Mark Lawrence
On 13/04/2013 16:30, Ana Dionísio wrote: It's still not working. I still have one column with all the data inside, like this: 2999;T3;3;1;1;Off;ON;OFF;ON;ON;ON;ON;Night;; How can I split this data in a way that if I want to print "T3" I would just do "print array[0][1]"? I said before

Re: splinter web browser simulator causing constant BSODs

2013-04-13 Thread Kev Dwyer
matt.topolin...@gmail.com wrote: > Hello, > > I'm trying to torubleshoot this issue for a user I support. He is running > the splinter web browser simulator trough Google Chrome, and it appears to > be causing his workstation to constantly BSOD. > > His machine has the following hardware: > > D

API design for Python 2 / 3 compatibility

2013-04-13 Thread Stefan Schwarzer
Hello, I'm currently changing the FTP client library ftputil [1] so that the same code of the library works with Python 2 (2.6 and up) and Python 3. (At the moment the code is for Python 2 only.) I've run into a API design issue where I don't know which API I should offer ftputil users under Pytho

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 12:39 AM, someone wrote: > On 04/13/2013 04:03 PM, Chris Angelico wrote: >> Failure at any level means the overall system is not ACID compliant. > > Roger... But google says sqlite is supposed to be ACID compliant (although > maybe not "fully" as you indicate, I'm not sure

Re: Invalid syntax with print "Hello World"

2013-04-13 Thread andygong . happy
On Thursday, March 12, 2009 3:25:53 PM UTC+8, John Machin wrote: > On Mar 12, 5:57 pm, Henrik Bechmann wrote: > > obviously total mewbiew: > > > > My first program in Python Windows > > What is that you are callind "Python Windows"? What version of Python > are you running? > > 2.X: print "Hello

Re: Unicode issue with Python v3.3

2013-04-13 Thread Chris Angelico
On Sun, Apr 14, 2013 at 12:16 AM, wrote: > Also i have foudn the error log and i tried to view it but it was empty and > then i removed it and then run the script both from shell and broswer but it > didnt reappeared. > > root@macgyver [/home/nikos/public_html/cgi-bin]# cat /var/log/httpd/error

Re: CSV to matrix array

2013-04-13 Thread Ana Dionísio
It's still not working. I still have one column with all the data inside, like this: 2999;T3;3;1;1;Off;ON;OFF;ON;ON;ON;ON;Night;; How can I split this data in a way that if I want to print "T3" I would just do "print array[0][1]"? -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Walter Hurry
On Sat, 13 Apr 2013 16:39:12 +0200, someone wrote: > I'm not so rich, so I prefer to go for a free database solution rather > than an expensive license ( but I do care about ACID compliance) Sounds to me that PostgreSQL is your man, then. -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 04:03 PM, Chris Angelico wrote: On Sat, Apr 13, 2013 at 11:30 PM, someone wrote: On 04/13/2013 01:39 PM, Chris Angelico wrote: Note that there's a caveat: You have to tell SQLite to be ACID compliant, effectively. So, you're saying to me that by default SQLite isn't ACID compl

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Roy Smith
In article , Chris Angelico wrote: > 2) The database engine must employ some form of write-ahead log. > [...] > one way or another, there must be a way to detect half-done > transactions. > > 3) The operating system and filesystem must support a forced file > synchronization (fsync/fdatasync),

Re: Unicode issue with Python v3.3

2013-04-13 Thread nagia . retsina
Τη Σάββατο, 13 Απριλίου 2013 1:28:07 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: > On 12Apr2013 21:50, nagia.rets...@gmail.com wrote: > > | Ookey after that is corrected, i then tried the plain solution and i got > this response back form the shell: > > | > > | Traceback (most recent call

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sat, Apr 13, 2013 at 11:30 PM, someone wrote: > On 04/13/2013 01:39 PM, Chris Angelico wrote: >> Note that there's a caveat: You have to tell SQLite to be ACID >> compliant, effectively. > > > So, you're saying to me that by default SQLite isn't ACID compliant, if I > begin to use it in my own

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 01:39 PM, Chris Angelico wrote: On Sat, Apr 13, 2013 at 9:08 PM, someone wrote: I just had to google what ACID compliance means and accordingly to this: http://en.wikipedia.org/wiki/SQLite "SQLite is ACID-compliant and implements most of the SQL standard, using a dynamically and

Re: CSV to matrix array

2013-04-13 Thread giacomo boffi
Ana Dionísio writes: > Hello! > > I have a CSV file with 20 rows and 12 columns and I need to store it > as a matrix. array=numpy.array([row for row in csv.reader(open('Cenarios.csv'))]) NB: i used "array=" as in your sample code, BUT -- http://mail.python.org/mailman/listinfo/python-list

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread Chris Angelico
On Sat, Apr 13, 2013 at 9:08 PM, someone wrote: > I just had to google what ACID compliance means and accordingly to this: > > http://en.wikipedia.org/wiki/SQLite > > "SQLite is ACID-compliant and implements most of the SQL standard, using a > dynamically and weakly typed SQL syntax that does not

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-13 Thread someone
On 04/13/2013 03:44 AM, Steven D'Aprano wrote: On Fri, 12 Apr 2013 23:26:05 +, Cousin Stanley wrote: The firefox browser keeps different sqlite database files for various uses Yes, and I *really* wish they wouldn't. It's my number 1 cause of major problems with Firefox. E.g. h

Re: Unicode issue with Python v3.3

2013-04-13 Thread Cameron Simpson
On 12Apr2013 21:50, nagia.rets...@gmail.com wrote: | Ookey after that is corrected, i then tried the plain solution and i got this response back form the shell: | | Traceback (most recent call last): | File "metrites.py", line 213, in | htmldata = f.read() | File "/root/.local/l

Re: Functional vs. Object oriented API

2013-04-13 Thread Rui Maciel
Max Bucknell wrote: > Hi, > I'm currently learning Python, and it's going great. I've dabbled before, > but really getting into it is good fun. > > To test myself, and not detract too much from my actual studies > (mathematics), I've been writing my own package to do linear algebra, and > I am un