Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Ian Kelly
On Jun 3, 2014 11:27 PM, Steven D'Aprano st...@pearwood.info wrote: For technical reasons which I don't fully understand, Unicode only uses 21 of those 32 bits, giving a total of 1114112 available code points. I think mainly it's to accommodate UTF-16. The surrogate pair scheme is sufficient

Re: Lock Windows Screen GUI using python

2014-06-04 Thread Ian Kelly
On Jun 3, 2014 11:46 PM, Jaydeep Patil patil.jay2...@gmail.com wrote: Below is the sample function which doing copy paste in my case. I am copying data directly by column, not reading each every value. Data is too big in heavy. The approach I suggested also operates on ranges, not individual

Re: immutable vs mutable

2014-06-04 Thread Deb Wyatt
-Original Message- From: et...@stoneleaf.us Sent: Tue, 03 Jun 2014 18:24:01 -0700 To: python-list@python.org Subject: Re: immutable vs mutable Deb, do yourself a favor and just trash-can anything from Mark Harris. And keep asking questions. -- ~Ethan~ Oh, I will. I found

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Gregory Ewing
Chris Angelico wrote: On Wed, Jun 4, 2014 at 11:18 AM, Roy Smith r...@panix.com wrote: sarcasm style=regex-pedantUm, you mean cent(er|re), don't you? The pattern you wrote also matches centee and centrr./sarcasm Maybe there's someone who spells it that way! Come visit Pirate Island, the

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Terry Reedy
On 6/4/2014 1:55 AM, Ian Kelly wrote: On Jun 3, 2014 11:27 PM, Steven D'Aprano st...@pearwood.info mailto:st...@pearwood.info wrote: For technical reasons which I don't fully understand, Unicode only uses 21 of those 32 bits, giving a total of 1114112 available code points. I think

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 5:00 PM, Terry Reedy tjre...@udel.edu wrote: On 6/4/2014 1:55 AM, Ian Kelly wrote: On Jun 3, 2014 11:27 PM, Steven D'Aprano st...@pearwood.info mailto:st...@pearwood.info wrote: For technical reasons which I don't fully understand, Unicode only uses 21 of those 32

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 2:40 PM, Rustom Mody rustompm...@gmail.com wrote: On Wednesday, June 4, 2014 9:22:54 AM UTC+5:30, Chris Angelico wrote: On Wed, Jun 4, 2014 at 1:37 PM, Rustom Mody wrote: And so a pure BMP-supporting implementation may be a reasonable compromise. [As long as no

Re: Having trouble in expressing constraints in Python

2014-06-04 Thread Ian Kelly
On Tue, Jun 3, 2014 at 7:44 AM, varun...@gmail.com wrote: I have a problem in writing a constraint in Python. Firstly, I wrote the code in AMPL and it was working and I'm using Python for the reason that it is more suitable to handle large data. I managed to write the code quite fine

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 3:02 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Jun 3, 2014 at 10:40 PM, Rustom Mody rustompm...@gmail.com wrote: 1) Most or all Chinese and Japanese characters Dont know how you count 'most' | One possible rationale is the desire to limit the size of the full

Re: Benefits of asyncio

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 3:10 PM, Burak Arslan burak.ars...@arskom.com.tr wrote: Ah ok. Well, a couple of years of writing async code, my not-so-objective opinion about it is that it forces you to split your code into functions, just like Python forces you to indent your code properly. This in

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Steven D'Aprano
On Wed, 04 Jun 2014 17:16:13 +1000, Chris Angelico wrote: On Wed, Jun 4, 2014 at 2:40 PM, Rustom Mody rustompm...@gmail.com wrote: On Wednesday, June 4, 2014 9:22:54 AM UTC+5:30, Chris Angelico wrote: On Wed, Jun 4, 2014 at 1:37 PM, Rustom Mody wrote: And so a pure BMP-supporting

Re: Benefits of asyncio

2014-06-04 Thread Paul Rubin
Marko Rauhamaa ma...@pacujo.net writes: That's a good reason to avoid threads. Once you realize you would have been better off with an async approach, you'll have to start over. That just hasn't happened to me yet, at least in terms of program organization. Python threads get too slow once

Re: OT: This Swift thing

2014-06-04 Thread Andrea D'Amore
On 2014-06-03 20:43:06 +, Sturla Molden said: I see no reason to use Swift instead of Python and PyObjC Most likely there'll be better integration with Xcode and its tools. -- Andrea -- https://mail.python.org/mailman/listinfo/python-list

Re: Benefits of asyncio

2014-06-04 Thread Paul Rubin
Marko Rauhamaa ma...@pacujo.net writes: Mostly asyncio is a way to deal with anything you throw at it. What do you do if you need to exit the application immediately and your threads are stuck in a 2-minute timeout? Eh? When the main thread exits, all the child threads go with it. Sometimes

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Paul Rubin
Steven D'Aprano st...@pearwood.info writes: Maybe there's a use-case for a microcontroller that works in ISO-8859-5 natively, thus using only eight bits per character, That won't even make the Russians happy, since in Russia there are multiple incompatible legacy encodings. I've never

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Wolfgang Maier
On 04.06.2014 09:16, Chris Angelico wrote: The point is not that you might be able to get away with sticking your head in the sand and wishing Unicode would just go away. Even if you can, it's not something Python 3 can ever do. Exactly. These endless discussions about different encodings

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Mark Lawrence
On 04/06/2014 01:39, Chris Angelico wrote: A current discussion regarding Python's Unicode support centres (or centers, depending on how close you are to the cent[er]{2} of the universe) around one critical question: Is string indexing common? Python strings can be indexed with integers to

Re: immutable vs mutable

2014-06-04 Thread Mark Lawrence
On 04/06/2014 06:02, Steven D'Aprano wrote: On Wed, 04 Jun 2014 12:27:36 +1000, Chris Angelico wrote: Want to be sure your questions are smart? Willing to put in a bit of effort to make yourself welcomed not just courteously, but enthusiastically? Check out this essay, one of the more famous

Re: immutable vs mutable

2014-06-04 Thread Mark Lawrence
On 04/06/2014 04:56, Deb Wyatt wrote: Thank you for this link. I will do my best to ask *smart* questions. I struggle with explaining myself sometimes, especially when trying to grasp something that baffles me. Deb in WA, USA Welcome to the wonderful world of computing :) -- My fellow

RE: Python 3.3 shuts down

2014-06-04 Thread Ramas Sami
Hi all, Python 3.3 IDLE opens perfectly from that If I am try to open any-python-file.py or New file the python IDLE closes automatically. Python Version 3.3OS Windows 7 This problem happened when I had installed py2exe to convert into Python executables, since I have tried other packages like

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 6:22 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: Single characters quite often, iteration rarely if ever, slicing all the time, but does that last one count? Yes, slicing counts. What matters here is the potential impact of internally representing strings as UTF-8

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Robin Becker
On 04/06/2014 08:58, Paul Rubin wrote: Steven D'Aprano st...@pearwood.info writes: Maybe there's a use-case for a microcontroller that works in ISO-8859-5 natively, thus using only eight bits per character, That won't even make the Russians happy, since in Russia there are multiple

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Peter Otten
Mark Lawrence wrote: On 04/06/2014 01:39, Chris Angelico wrote: A current discussion regarding Python's Unicode support centres (or centers, depending on how close you are to the cent[er]{2} of the universe) around one critical question: Is string indexing common? Python strings can be

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 8:10 PM, Peter Otten __pete...@web.de wrote: The indices used for slicing typically don't come out of nowhere. A simple example would be def strip_prefix(text, prefix): if text.startswith(prefix): text = text[len(prefix):] return text If both prefix

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread alister
On Tue, 03 Jun 2014 21:18:12 -0400, Roy Smith wrote: In article mailman.10656.1401842403.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: A current discussion regarding Python's Unicode support centres (or centers, depending on how close you are to the cent[er]{2} of

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread alister
On Wed, 04 Jun 2014 18:48:29 +1200, Gregory Ewing wrote: Chris Angelico wrote: On Wed, Jun 4, 2014 at 11:18 AM, Roy Smith r...@panix.com wrote: sarcasm style=regex-pedantUm, you mean cent(er|re), don't you? The pattern you wrote also matches centee and centrr./sarcasm Maybe there's

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Tim Chase
On 2014-06-04 00:58, Paul Rubin wrote: Steven D'Aprano st...@pearwood.info writes: Maybe there's a use-case for a microcontroller that works in ISO-8859-5 natively, thus using only eight bits per character, That won't even make the Russians happy, since in Russia there are multiple

Re: Lock Windows Screen GUI using python

2014-06-04 Thread Chris Angelico
On Wed, Jun 4, 2014 at 1:55 PM, Jaydeep Patil patil.jay2...@gmail.com wrote: For plotting one graph, I need to use four to five excel files. Currently I am reading excel files one by one and copy data of excel files to another single master excel file. This master excel file consists of all

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Robin Becker
On 04/06/2014 12:01, Tim Chase wrote: On 2014-06-04 00:58, Paul Rubin wrote: Steven D'Aprano st...@pearwood.info writes: Maybe there's a use-case for a microcontroller that works in ISO-8859-5 natively, thus using only eight bits per character, That won't even make the Russians happy, since

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Marko Rauhamaa
Tim Chase python.l...@tim.thechases.com: On 2014-06-04 00:58, Paul Rubin wrote: I've never understood why not use UTF-8 for everything. If you use UTF-8 for everything, then you end up in a world where string-indexing (see ChrisA's other side thread on this topic) is no longer an O(1)

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Marko Rauhamaa
Robin Becker ro...@reportlab.com: u'\xc5ngstr\xf6m'==u'\xc5ngstro\u0308m' False Now *that* would be a valid reason for our resident Unicode expert to complain! Py3 in no way solves text representation issues definitively. I know this is artificial Not at all. It probably is out of scope for

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Tim Chase
On 2014-06-04 12:53, Robin Becker wrote: If you use UTF-8 for everything, then you end up in a world where string-indexing (see ChrisA's other side thread on this topic) is no longer an O(1) operation, but an O(N) operation. Some of us slice strings for a living. ;-) I believe

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Tim Chase
On 2014-06-04 14:57, Marko Rauhamaa wrote: If you use UTF-8 for everything, then you end up in a world where string-indexing (see ChrisA's other side thread on this topic) is no longer an O(1) operation, but an O(N) operation. Most string operations are O(N) anyway. Besides, you could

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Robin Becker
On 04/06/2014 13:17, Marko Rauhamaa wrote: . Note, for example, that Google manages to sort out issues like these. It sees past diacritics and even case ending. . I guess they must normalize all inputs to some standard form and then search / eigenvectorize on those. There are

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Rustom Mody
On Wednesday, June 4, 2014 4:20:01 PM UTC+5:30, alister wrote: The language is ENGLISH so the correct spelling is Centre regional variations my be common but they are incorrect my? O mee Oo my -- cockney (or Aussie) pedant?? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.2 has some deadly infection

2014-06-04 Thread Steven D'Aprano
On Tue, 03 Jun 2014 15:18:19 +0100, Robin Becker wrote: The problem is that causal readers like Robin sometimes jump from 'In Python 3, it can be hard to do something one really ought not to do' to 'Binary I/O is hard in Python 3' -- which is is not. I'm fairly causal and I did

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread wxjmfauth
Le mercredi 4 juin 2014 02:39:54 UTC+2, Chris Angelico a écrit : A current discussion regarding Python's Unicode support centres (or centers, depending on how close you are to the cent[er]{2} of the universe) around one critical question: Is string indexing common? Python strings can

Re: Python 3 is killing Python

2014-06-04 Thread wxjmfauth
Le lundi 2 juin 2014 17:01:01 UTC+2, Ian a écrit : On Jun 1, 2014 12:11 PM, wxjm...@gmail.com wrote: At least Py2 does not crash when using non ascii (eg sticking with cp1252). I just noticed this last week, Thursday, when presenting the absurdity of the Flexible String

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread alister
On Wed, 04 Jun 2014 05:52:24 -0700, Rustom Mody wrote: On Wednesday, June 4, 2014 4:20:01 PM UTC+5:30, alister wrote: The language is ENGLISH so the correct spelling is Centre regional variations my be common but they are incorrect my? O mee Oo my -- cockney (or Aussie) pedant?? I made

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Steven D'Aprano
On Wed, 04 Jun 2014 12:53:19 +0100, Robin Becker wrote: I believe that we should distinguish between glyph/character indexing and string indexing. Even in unicode it may be hard to decide where a visual glyph starts and ends. I assume most people would like to assign one glyph to one unicode,

Re: OT: This Swift thing

2014-06-04 Thread Skip Montanaro
On Tue, Jun 3, 2014 at 4:49 PM, Mark H Harris harrismh...@gmail.com wrote: I have been engaged in a minor flame debate (locally) over block delimiters (or lack thereof) which I'm loosing. Locally, people hate python's indentation block delimiting, and wish python would adopt curly braces.

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Michael Torrie
On 06/04/2014 12:50 AM, wxjmfa...@gmail.com wrote: Like many, you are not understanding unicode because you do not understand the coding of characters. If that is true, then I'm sure a well-written paragraph or two can set him straight. You continually berate people for not understanding

Re: OT: This Swift thing

2014-06-04 Thread Mark H Harris
On 6/3/14 11:54 PM, Steven D'Aprano wrote: I've been passing code snippets by email and Usenet for 15 years or more, and I've never had a problem with indentation. Of course, I've had problems with *other people's code*, because they use broken tools that break the text they send. Me

Installing modules on different versions of python??

2014-06-04 Thread Nzyme11
Running SLES 12.3 and trying to install zlib for python2.7.7. I need zlib to install setup-tools to instal virtualenv. It's driving me crazy. Is there some basics to follow when installing modules from source to specific versions of python?? Everything wants to install the python2.6.

Re: OT: This Swift thing

2014-06-04 Thread Mark H Harris
On 6/4/14 9:24 AM, Skip Montanaro wrote: Surely your local colleagues realize that Python has been around for 20-odd years now, that indentation-based block structure has been there since Day One, and that it's not going to change, right? Yup. Its the primary argument on the side for

Re: OT: This Swift thing

2014-06-04 Thread Michael Torrie
On 06/03/2014 03:49 PM, Mark H Harris wrote: I have been engaged in a minor flame debate (locally) over block delimiters (or lack thereof) which I'm loosing. Locally, people hate python's indentation block delimiting, and wish python would adopt curly braces. Yeah people do have strong

Re: OT: This Swift thing

2014-06-04 Thread Chris Angelico
On Thu, Jun 5, 2014 at 1:00 AM, Michael Torrie torr...@gmail.com wrote: Do programmers not psuedo-code on paper or white boards anymore? I pseudocode in a text editor, these days. Sometimes that pseudocode gets reworked into code; more often it becomes comments that precede the code (which may

Re: pyflakes best practices?

2014-06-04 Thread Roland Koebler
Hi, I would recommend to use Pylint (http://www.pylint.org/) in addition to pyflakes. Pylint is much more powerful than pyflakes, and largely configurable. Regards Roland -- https://mail.python.org/mailman/listinfo/python-list

Re: Unicode and Python - how often do you index strings?

2014-06-04 Thread Dave Angel
Chris Angelico ros...@gmail.com Wrote in message: On Wed, Jun 4, 2014 at 8:10 PM, Peter Otten __pete...@web.de wrote: The indices used for slicing typically don't come out of nowhere. A simple example would be def strip_prefix(text, prefix): if text.startswith(prefix): text =

Re: Missing stack frames?

2014-06-04 Thread Nikolaus Rath
Chris Angelico ros...@gmail.com writes: On Wed, Jun 4, 2014 at 12:30 PM, Nikolaus Rath nikol...@rath.org wrote: I've instrumented one of my unit tests with a conditional 'pdb.set_trace' in some circumstances (specifically, when a function is called by a thread other than MainThread). I think

Re: Corrputed stacktrace?

2014-06-04 Thread Nikolaus Rath
Chris Angelico ros...@gmail.com writes: On Wed, Jun 4, 2014 at 12:20 PM, Nikolaus Rath nikol...@rath.org wrote: File /usr/lib/python3.3/threading.py, line 878 in _bootstrap Can you replicate the problem in a non-threaded environment? Threads make interactive debugging very hairy. Hmm. I

Re: pyflakes best practices?

2014-06-04 Thread Jean-Michel Pichavant
- Original Message - We've recently started using pyflakes. The results seem to be similar to most tools of this genre. It found a few real problems. It generated a lot of noise about things which weren't really wrong, but were easy to fix (mostly, unused imports), and a few plain

Re: Missing stack frames?

2014-06-04 Thread Paul Rubin
Nikolaus Rath nikol...@rath.org writes: Is there a way to produce a stacktrace without using the interactive debugger? Yes, use the traceback module. -- https://mail.python.org/mailman/listinfo/python-list

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Paul Rubin
Tim Chase python.l...@tim.thechases.com writes: As mentioned elsewhere, I've got a LOT of code that expects that string indexing is O(1) and rarely are those strings/offsets reused I'm streaming through customer/provider data files, so caching wouldn't do much good other than waste space and

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Roy Smith
In article mailman.10673.1401853976.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: You can't ignore those. You might be able to say Well, my program will run slower if you throw these at it, but if you're going down that route, you probably want the full FSR and the

Re: immutable vs mutable

2014-06-04 Thread Mark H Harris
On 6/3/14 8:24 PM, Ethan Furman wrote: Deb, do yourself a favor and just trash-can anything from Mark Harris. Ouch, that hurt. Did someone not get their coffee this morning? :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: immutable vs mutable

2014-06-04 Thread Mark H Harris
On 6/3/14 8:14 PM, Deb Wyatt wrote: Well, I'm glad you find this concept straight-forward. I guess I'm not as smart as you. Not at all. I think you misunderstood me. I read the article and I reviewed it (although brief, I stand by what I said). To expand a bit, the article is poorly

Re: Embedding numpy works once, but not twice??

2014-06-04 Thread Andre
Any Solution? -- AL Barbieri http://scholar.google.com/citations?user=tylaKAMJ -- https://mail.python.org/mailman/listinfo/python-list

Re: Automating windows media player on win7

2014-06-04 Thread MRAB
On 2014-06-03 09:10, Deogratius Musiige wrote: Hi guys, I have been fighting with automating wmplayer but with no success. It looks to me that using the .OCX would be the best option. I found the code below on the net but I cannot get it to work. I can see from device manager that a driver is

Re: Embedding numpy works once, but not twice??

2014-06-04 Thread Mark Lawrence
On 04/06/2014 20:14, Andre wrote: Any Solution? -- AL Barbieri http://scholar.google.com/citations?user=tylaKAMJ If you'd take the trouble to give us some context you might get some answers. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for

Re: Embedding numpy works once, but not twice??

2014-06-04 Thread John Gordon
In mailman.10715.1401911306.18130.python-l...@python.org Mark Lawrence breamore...@yahoo.co.uk writes: On 04/06/2014 20:14, Andre wrote: Any Solution? -- AL Barbieri http://scholar.google.com/citations?user=tylaKAMJ If you'd take the trouble to give us some context you might

Re: Command prompt not shown when running Python script with subprocess on Windows

2014-06-04 Thread ps16thypresenceisfullnessofjoy
Thanks again for your help. I tried something similar to what you suggested: def run_app(self, app_path): args = shlex.split(app_path.replace(\\, )) args = [arg.replace(, \\) for arg in args] args[0] = os.path.expandvars(args[0]) try: if pywin32: exe =

How to use SQLite (sqlite3) more efficiently

2014-06-04 Thread ps16thypresenceisfullnessofjoy
I'm completely new to SQL, and recently started using SQLite in one of my Python programs. I've gotten what I wanted to work, but I'm not sure if I'm doing it in the best/most efficient way. I have attached some sample code and would appreciate any (polite) comments about how the SQL (or

Re: How to use SQLite (sqlite3) more efficiently

2014-06-04 Thread Chris Angelico
On Thu, Jun 5, 2014 at 6:27 AM, ps16thypresenceisfullnessof...@gmail.com wrote: I'm completely new to SQL, and recently started using SQLite in one of my Python programs. I've gotten what I wanted to work, but I'm not sure if I'm doing it in the best/most efficient way. I have attached some

Re: OT: This Swift thing

2014-06-04 Thread Terry Reedy
On 6/4/2014 10:53 AM, Mark H Harris wrote: The topic came up because the C/C++ coders were being encouraged to try Python3 as the language of choice for a new project, and someone said they would never consider Python for a project primary language because of indentation block delimiting.

Re: OT: This Swift thing

2014-06-04 Thread Mark H Harris
On 6/4/14 5:18 PM, Terry Reedy wrote: On 6/4/2014 10:53 AM, Mark H Harris wrote: The primary paradigm on this topic locally is that indents are bad because malformed or mangled code cannot be reformatted easily (if at all). Begin solution:':' as the end of a line means 'begin block; indent

Re: Python 3.2 has some deadly infection

2014-06-04 Thread Gregory Ewing
Steven D'Aprano wrote: The whole concept of stdin and stdout is based on the idea of having a console to read from and write to. Not really; stdin and stdout are frequently connected to files, or pipes to other processes. The console, if it exists, just happens to be a convenient default value

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-04 Thread Rustom Mody
On Thursday, June 5, 2014 12:12:06 AM UTC+5:30, Roy Smith wrote: Chris Angelico wrote: You can't ignore those. You might be able to say Well, my program will run slower if you throw these at it, but if you're going down that route, you probably want the full FSR and the advantages it

Re: How to use SQLite (sqlite3) more efficiently

2014-06-04 Thread Rustom Mody
On Thursday, June 5, 2014 2:53:21 AM UTC+5:30, Chris Angelico wrote: On Thu, Jun 5, 2014 at 6:27 AM, ps16thypresence wrote: I'm completely new to SQL, and recently started using SQLite in one of my Python programs. : : Happy to help out! But before I look into the code itself, two small

Re: OT: This Swift thing

2014-06-04 Thread Terry Reedy
On 6/4/2014 7:23 PM, Mark H Harris wrote: On 6/4/14 5:18 PM, Terry Reedy wrote: On 6/4/2014 10:53 AM, Mark H Harris wrote: The primary paradigm on this topic locally is that indents are bad because malformed or mangled code cannot be reformatted easily (if at all). Begin solution:':' as the

Re: Python 3.2 has some deadly infection

2014-06-04 Thread Akira Li
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Tue, 03 Jun 2014 15:18:19 +0100, Robin Becker wrote: Isn't it a bit old fashioned to think everything is connected to a console? The whole concept of stdin and stdout is based on the idea of having a console to read from and

Error while installing PIL

2014-06-04 Thread Sanjay Madhikarmi
Dear sir/madam I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem Thanks in advance -- *Regards, Sanjay Madhikarmi Url:

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem

Re: How to use SQLite (sqlite3) more efficiently

2014-06-04 Thread Demian Brecht
On Thu, Jun 5, 2014 at 6:27 AM, ps16thypresence wrote: I'm completely new to SQL, and recently started using SQLite in one of my Python programs. Unrelated to Python but as you're new to SQL I figured I'd ask: Do you have an index on the name field? If you don't, you'll incur a full

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem ... also this one; --

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry ... oops, sorry, also this one:

Re: Missing stack frames?

2014-06-04 Thread Nikolaus Rath
Chris Angelico ros...@gmail.com writes: On Wed, Jun 4, 2014 at 12:30 PM, Nikolaus Rath nikol...@rath.org wrote: I've instrumented one of my unit tests with a conditional 'pdb.set_trace' in some circumstances (specifically, when a function is called by a thread other than MainThread). I think

Re: Unicode and Python

2014-06-04 Thread Rustom Mody
On Wednesday, June 4, 2014 6:09:54 AM UTC+5:30, Chris Angelico wrote: A current discussion regarding Python's Unicode support centres (or centers, depending on how close you are to the cent[er]{2} of the universe) around one critical question: Is string indexing common? No exactly on-topic for

Re: pyflakes best practices?

2014-06-04 Thread Miki Tebeka
Greetings, So, what's the best practice here? How do people deal with the false positives? Is there some way to annotate the source code to tell pyflakes to ignore something? We use flake8 (pyflakes + pep8) as pre step for the tests. We fail the tests on any output from flake8. flake8

Re: Missing stack frames?

2014-06-04 Thread Paul Rubin
Nikolaus Rath nikol...@rath.org writes: Still no context before the ominous close() call. I'm very confused. close() could be getting called from a destructor as the top level function of a thread exits, or something like that. -- https://mail.python.org/mailman/listinfo/python-list

[issue19521] parallel build race condition on AIX since python-3.2

2014-06-04 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- hgrepos: +248 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19521 ___ ___

[issue10656] Out of tree build fails on AIX

2014-06-04 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- title: Out of tree build fails on AIX 5.3 - Out of tree build fails on AIX versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue10656] Out of tree build fails on AIX 5.3

2014-06-04 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- hgrepos: -246 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10656 ___ ___

[issue10656] Out of tree build fails on AIX

2014-06-04 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Basically the same as Tristan's patch, with a little improvement to not rely on PATH to find makexp_aix within ld_so_aix. Thanks! -- Added file: http://bugs.python.org/file35476/issue10656-out-of-source-build-on-aix.patch

[issue18292] Idle: test AutoExpand.py

2014-06-04 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35477/test-autoexpand3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18292 ___

[issue16189] ld_so_aix not found

2014-06-04 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- hgrepos: -247 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16189 ___ ___

[issue16189] ld_so_aix not found

2014-06-04 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Problem here is that LDSHARED points to $(BINLIBDEST)/config/ld_so_aix, but it should be $(LIBPL)/ld_so_aix. Although an independent problem, this diff shares context with file#35476, so this patch depends on issue #10656. -- keywords: +patch

[issue19521] parallel build race condition on AIX since python-3.2

2014-06-04 Thread Michael Haubenwallner
Changes by Michael Haubenwallner michael.haubenwall...@salomon.at: -- hgrepos: -248 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19521 ___ ___

[issue19521] parallel build race condition on AIX since python-3.2

2014-06-04 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Patch including configure update now. -- Added file: http://bugs.python.org/file35479/issue19521-parallel-build-race-on-aix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19521

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: According to my local copy of the repository, rev88617 2014 Jan 21 removed what I believe was the only line with 'if ob.im_self'. The change may have been in 2.7.5, certainly 2.7.6. I cannot find it in the current code. Please recheck your version; this may

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I guess rev #s are different on different systems. Try d55d1cbf5f9a or revd55d1cbf5f9a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21654 ___

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Line 1.20 in the correct link. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21654 ___ ___ Python-bugs-list

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file35480/fix_calltips.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21654 ___

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've checked both the recently released 2.7.7 and the current 27 head on the hg repo. They both have the error. A suggested patch is attached. -- ___ Python tracker rep...@bugs.python.org

[issue21655] Write Unit Test for Vec2 class in the Turtle Module

2014-06-04 Thread Lita Cho
New submission from Lita Cho: Ingrid and I are trying to add test coverage to the Turtle module as there isn't one currently. Going to work on testing the Vec2 module. -- components: Tests, Tkinter messages: 219747 nosy: Lita.Cho, jesstess priority: normal severity: normal status: open

[issue21656] Create test coverage for TurtleScreenBase in Turtle

2014-06-04 Thread Lita Cho
New submission from Lita Cho: Turtle module currently doesn't have any tests. This ticket is tracking the tests created for TurtleScreenBase. -- components: Tests messages: 219748 nosy: Lita.Cho, jesstess priority: normal severity: normal status: open title: Create test coverage for

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09b33fc96a50 by Terry Jan Reedy in branch '2.7': Issue #21654: Fix interaction with warnings. Patch by Raymond Hettinger. http://hg.python.org/cpython/rev/09b33fc96a50 -- nosy: +python-dev ___ Python

[issue21654] IDLE call tips emitting future warnings about ElementTree objects

2014-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is 2.7 only. Warnings may have been expanded a bit in 2.7.7. I know there are plans to widen net further in 2.7.8. We can leave this open until you are convinced it works or discover otherwise. -- ___ Python

[issue21657] pip.get_installed_distributions() Does not

2014-06-04 Thread Adam Matan
New submission from Adam Matan: Abstract: Calling pip.get_installed_distributions() from a directory with a setup.py file returns a list which does not include the package(s) listed in the setup.py file. Steps to reproduce: 1. Create a virtual environment and activate it. 2. Download any

[issue21657] pip.get_installed_distributions() Does not return packages in the current working directory

2014-06-04 Thread Adam Matan
Changes by Adam Matan a...@matan.name: -- title: pip.get_installed_distributions() Does not - pip.get_installed_distributions() Does not return packages in the current working directory ___ Python tracker rep...@bugs.python.org

  1   2   >