Enable unicode

2014-01-28 Thread Igor Korot
Hi, ALL, In here: http://stackoverflow.com/questions/21397035/set-utf8-on-mysql, I got a suggestion to enable "use_unicode". Problem is I'm developing on Windows and it's not that I can recompile my python. I'm using Python2.7 on Windows XP. Any pointer on how do I enable "use_unicode"? Thank you

Re: Enable unicode

2014-01-28 Thread Chris Angelico
On Tue, Jan 28, 2014 at 7:26 PM, Igor Korot wrote: > Hi, ALL, > In here: http://stackoverflow.com/questions/21397035/set-utf8-on-mysql, > I got a suggestion to enable "use_unicode". > Problem is I'm developing on Windows and it's not that I can recompile > my python. > I'm using Python2.7 on Windo

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Mark Lawrence
On 28/01/2014 07:19, wxjmfa...@gmail.com wrote: Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style") the different graphemes of a glyph is very interesting. Python with its absurd Flexible String Repres

Re: Enable unicode

2014-01-28 Thread Chris Angelico
On Tue, Jan 28, 2014 at 7:56 PM, Igor Korot wrote: > Hi, Chris, Hi! I'm hoping it was oversight that led to this email coming to me personally instead of to the list, and hoping that you won't mind me responding on-list. > On Tue, Jan 28, 2014 at 12:35 AM, Chris Angelico wrote: >> On Tue, Jan 2

Re: Enable unicode

2014-01-28 Thread Igor Korot
Hi, Chris, On Tue, Jan 28, 2014 at 1:00 AM, Chris Angelico wrote: > On Tue, Jan 28, 2014 at 7:56 PM, Igor Korot wrote: >> Hi, Chris, > > Hi! I'm hoping it was oversight that led to this email coming to me > personally instead of to the list, and hoping that you won't mind me > responding on-list

Re: Enable unicode

2014-01-28 Thread Chris Angelico
On Tue, Jan 28, 2014 at 8:20 PM, Igor Korot wrote: >>> So instead of using 'utf8' just use 'utf8mb4'? >> >> Yes, that's right. Unless utf8mb4 isn't supported, in which case try >> utf8 and see if you can use the full range (something might be >> translating it for you, which would probably be a go

Coordinates TK and Turtle

2014-01-28 Thread duxbuz
Hello I have some weird results when I run my code which is meant to display a canvas and a turtle and some text with the turtles coordinates. Basically the turtle coordinates do not seem to correspond with the TK create_text coordinates. t1.goto(100,100) canvas_id = cv1.create_text(t1.xcor(

ANN: EmPy 3.3.2 released (Python 3.x compatibility)

2014-01-28 Thread Erik Max Francis
Summary A powerful and robust templating system for Python. Overview EmPy is a system for embedding Python expressions and statements in template text; it takes an EmPy source file, processes it, and produces output. This is accomplished via expansions, which are special s

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Steven D'Aprano
On Mon, 27 Jan 2014 23:19:03 -0800, wxjmfauth wrote: > Different, but a little bit related. The work which is done actually on > the possibility (not implemented but alreay realized) to colorize > (style") the different graphemes of a glyph is very interesting. > > Python with its absurd Flexible

uninstalling python27 killed vim (actual issue was more complicated and involves Mercurial)

2014-01-28 Thread Peter
I'm posting this information to help others who are transitioning from Python 2.x to Python 3.x and are using Vim and Mercurial on Windows. BACKGROUND Old workstation configuration: 32-bit Windows XP/SP3, Python 2.7.6 and 3.3.3, Mercurial 2.8.2, PATH contained Python before Mercurial, dual bo

Wikipedia XML Dump

2014-01-28 Thread kevingloveruk
Hi I have downloaded and unzipped the xml dump of Wikipedia (40+GB). I want to use Python and the SAX module (running under Windows 7) to carry out off-line phrase-searches of Wikipedia and to return a count of the number of hits for each search. Typical phrase-searches might be "of the dog" an

Re: Coordinates TK and Turtle

2014-01-28 Thread Peter Otten
dux...@gmail.com wrote: > Hello > > I have some weird results when I run my code which is meant to display a > canvas and a turtle and some text with the turtles coordinates. > > Basically the turtle coordinates do not seem to correspond with the TK > create_text coordinates. > > > t1.goto(100

MailingLogger 3.8.0 Released!

2014-01-28 Thread Chris Withers
I'm pleased to announce a new release of Mailinglogger. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the following features

Re: Enable unicode

2014-01-28 Thread Ben Finney
Igor Korot writes: > On Tue, Jan 28, 2014 at 1:00 AM, Chris Angelico wrote: > > Hi! I'm hoping it was oversight that led to this email coming to me > > personally instead of to the list, and hoping that you won't mind me > > responding on-list. > > Sorry about that. > I keep forgetting that gmai

Re: Enable unicode

2014-01-28 Thread Rustom Mody
On Tuesday, January 28, 2014 2:50:20 PM UTC+5:30, Igor Korot wrote: > Hi, Chris, > On Tue, Jan 28, 2014 at 1:00 AM, Chris Angelico wrote: > > On Tue, Jan 28, 2014 at 7:56 PM, Igor Korot wrote: > >> Hi, Chris, > > Hi! I'm hoping it was oversight that led to this email coming to me > > personally

Re: uninstalling python27 killed vim (actual issue was more complicated and involves Mercurial)

2014-01-28 Thread Steven D'Aprano
On Tue, 28 Jan 2014 06:13:06 -0500, Peter wrote: > I'm posting this information to help others who are transitioning from > Python 2.x to Python 3.x and are using Vim and Mercurial on Windows. [...] Thank you Peter for posting your experiences here! We need more of these sorts of informational p

Re: Enable unicode

2014-01-28 Thread Chris Angelico
On Wed, Jan 29, 2014 at 3:06 AM, Rustom Mody wrote: >> Sorry about that. >> I keep forgetting that gmail web mail is stupid and does not use the >> list address on "Reply". >> Does not happen to other list, only this one. > > In gmail: Gear-icon -> Settings -> Default-reply behavior select all Th

ANN: eGenix pyOpenSSL Distribution 0.13.3.1.0.1.6

2014-01-28 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.3.1.0.1.6 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface fo

Re: Wikipedia XML Dump

2014-01-28 Thread Rustom Mody
On Tuesday, January 28, 2014 5:15:32 PM UTC+5:30, Kevin Glover wrote: > Hi > I have downloaded and unzipped the xml dump of Wikipedia (40+GB). I want to > use Python and the SAX module (running under Windows 7) to carry out off-line > phrase-searches of Wikipedia and to return a count of the num

Re: Wikipedia XML Dump

2014-01-28 Thread Skip Montanaro
> Another point: > sax is painful to use compared to full lxml (dom) > But then sax is the only choice when files cross a certain size > Thats why the above question No matter what the choice of XML parser, I suspect you'll want to convert it to some other form for processing. Skip -- https://ma

boost-python: exposing constructor with an array of other class as argument

2014-01-28 Thread Ester Lopez
Hello there, I have two different classes that I want to expose using boost-python, but the constructor of the second class takes and array of the first one as argument and I can't figure out how to do it. This is the definition of the classes: class INT96{ public: uint64_t value

Documenting descriptors

2014-01-28 Thread Joseph L. Casale
I am documenting a few classes with Sphinx that utilize methods decorated with custom descriptors. These properties return data when called and Sphinx is content with a :returns: and :rtype: markup in the properties doc string. They also accept input, but parameter (not really applicable) nor var

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Ned Batchelder
On 1/28/14 2:19 AM, wxjmfa...@gmail.com wrote: Different, but a little bit related. The work which is done actually on the possibility (not implemented but alreay realized) to colorize (style") the different graphemes of a glyph is very interesting. Python with its absurd Flexible String Represe

Re: ANN: eGenix pyOpenSSL Distribution 0.13.3.1.0.1.6

2014-01-28 Thread Denis McMahon
On Tue, 28 Jan 2014 17:47:39 +0100, eGenix Team: M.-A. Lemburg wrote: > It comes with an easy-to-use installer that includes the most recent > OpenSSL library versions in pre-compiled form Hmm, well it all sounds very good, but how would I know that the pre- compiled library doesn't contain a bac

PyDev 3.3.3 Released

2014-01-28 Thread Fabio Zadrozny
Hi All, PyDev 3.3.3 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com LiClipse (PyDev standalone with goodies such as support for Django Templates, Kivy Language, Mako Templates, Html, Javascript, etc): http://brainwy.github.io/liclipse/

Pyro4 - reading files

2014-01-28 Thread ganea . ionut . iulian
Hello there. I am currently working on a project involving the use of Pyro4. I have a scenario. We have the pc named A, and a pc named B. On pc B lies a python script, that includes pyro, and a method for reading files. On pc A, we create an instance to the pyro object on pc B. And we call th

Re: Highlighting program variables instead of keywords?

2014-01-28 Thread Michael Torrie
On 01/28/2014 12:38 PM, Ned Batchelder wrote: > JMF, seriously, stop it. You've convinced no one because you have no > convincing arguments. > > It's obnoxious to continue to make this claim. Stop it. Please. > > If you want to try to convince someone, convince me. Write to me > offline: n.

Re: Wikipedia XML Dump

2014-01-28 Thread Kevin Glover
Thanks for the comments, guys. The Wikipedia download is a single XML document, 43.1GB. Any further thoughts? Kevin -- https://mail.python.org/mailman/listinfo/python-list

Re: Wikipedia XML Dump

2014-01-28 Thread Burak Arslan
hi, On 01/29/14 00:31, Kevin Glover wrote: > Thanks for the comments, guys. The Wikipedia download is a single XML > document, 43.1GB. Any further thoughts? > > in that case, http://lxml.de/tutorial.html#event-driven-parsing seems to be your only option. hth, burak -- https://mail.python.org/m

Development infrastructure - need python packaging gurus help, please

2014-01-28 Thread Eugene Sajine
Hi! I'm trying to create a development infrastructure that would allow for simple and unified ways of sharing, *deploying* and *reusing* the code within private entity. I can see that pip with virtual environments and requirements.txt is very similar to dependency management provided by maven o

Re: Wikipedia XML Dump

2014-01-28 Thread alex23
On 28/01/2014 9:45 PM, kevinglove...@gmail.com wrote: I have downloaded and unzipped the xml dump of Wikipedia (40+GB). I want to use Python and the SAX module (running under Windows 7) to carry out off-line phrase-searches of Wikipedia and to return a count of the number of hits for each searc

Re: Wikipedia XML Dump

2014-01-28 Thread Rustom Mody
On Wednesday, January 29, 2014 4:17:47 AM UTC+5:30, Burak Arslan wrote: > hi, > On 01/29/14 00:31, Kevin Glover wrote: > > Thanks for the comments, guys. The Wikipedia download is a single XML > > document, 43.1GB. Any further thoughts? > in that case, http://lxml.de/tutorial.html#event-driven-p

Re: Experiences/guidance on teaching Python as a first programming language

2014-01-28 Thread David Combs
In article <20131216213225.2006b30246e3a08ee241a...@gmx.net>, Wolfgang Keller wrote: >> > And ever after that experience, I avoided all languages that were >> > even remotely similar to C, such as C++, Java, C#, Javascript, PHP >> > etc. >> >> I think that's disappointing, for two reasons. First

Re: Experiences/guidance on teaching Python as a first programming language

2014-01-28 Thread David Combs
In article , Neil Cerutti wrote: >On 2013-12-17, Steven D'Aprano > wrote: >> I would really like to see good quality statistics about bugs >> per program written in different languages. I expect that, for >> all we like to make fun of COBOL, it probably has few bugs per >> unit-of-useful-work-don

Re: Enable unicode

2014-01-28 Thread Cameron Simpson
On 29Jan2014 02:47, Ben Finney wrote: > Igor Korot writes: > > On Tue, Jan 28, 2014 at 1:00 AM, Chris Angelico wrote: > > > Hi! I'm hoping it was oversight that led to this email coming to me > > > personally instead of to the list, and hoping that you won't mind me > > > responding on-list. > >

Large Two Dimensional Array

2014-01-28 Thread Ayushi Dalmia
Hello, I am trying to implement IBM Model 1. In that I need to create a matrix of 5*5 with double values. Currently I am using dict of dict but it is unable to support such high dimensions and hence gives memory error. Any help in this regard will be useful. I understand that I cannot s

Re: Large Two Dimensional Array

2014-01-28 Thread Ayushi Dalmia
On Wednesday, January 29, 2014 10:55:54 AM UTC+5:30, Ayushi Dalmia wrote: > Hello, > > > > I am trying to implement IBM Model 1. In that I need to create a matrix of > 5*5 with double values. Currently I am using dict of dict but it is > unable to support such high dimensions and hence

Eclipse IDE printing values automatically

2014-01-28 Thread mick verdu
I am using Pydev 2.8 on Eclipse IDE. It is printing some values that haven't been printed with print command. How to deal with this problem? -- https://mail.python.org/mailman/listinfo/python-list

Re: Large Two Dimensional Array

2014-01-28 Thread David Froger
Quoting Ayushi Dalmia (2014-01-29 06:25:54) > Hello, > > I am trying to implement IBM Model 1. In that I need to create a matrix of > 5*5 with double values. Currently I am using dict of dict but it is > unable to support such high dimensions and hence gives memory error. Any help > in

Re: Development infrastructure - need python packaging gurus help, please

2014-01-28 Thread dieter
Eugene Sajine writes: > ... > Here is what i'm trying to achieve: > 1. I want to be able to specify the set of dependencies for the project i'm > currently developing and make them available for the import. Think java jar - > having it in class path allows for the code reuse (import packages pro

Re: Large Two Dimensional Array

2014-01-28 Thread Ayushi Dalmia
On Wednesday, January 29, 2014 10:55:54 AM UTC+5:30, Ayushi Dalmia wrote: > Hello, > > > > I am trying to implement IBM Model 1. In that I need to create a matrix of > 5*5 with double values. Currently I am using dict of dict but it is > unable to support such high dimensions and hence