Re: Can't match str/unicode

2017-01-07 Thread CM
On Sunday, January 8, 2017 at 1:17:56 AM UTC-5, Steven D'Aprano wrote: > On Sunday 08 January 2017 15:33, CM wrote: > > > On Saturday, January 7, 2017 at 7:59:01 PM UTC-5, Steve D'Aprano wrote: > [...] > >> Start by printing repr(candidate_text) and see what you r

What is PyOleMissing object? (win32com)

2017-01-07 Thread CM
Trying to manipulate z-order for MSOffice with win32com and wasn't sure what argument was needed. Using help on that ZOrder method gives: >>> Help on method ZOrder in module win32com.client.dynamic: ZOrder(self, ZOrderCmd=) method of win32com.client.CDispatch instance So, what does " mean in

Re: Can't match str/unicode

2017-01-07 Thread CM
On Saturday, January 7, 2017 at 7:59:01 PM UTC-5, Steve D'Aprano wrote: > On Sun, 8 Jan 2017 08:40 am, CM wrote: > > > So what's going on here? Why isn't a string with the content 'match' equal > > to another string with the content 'match'? > > You don't know that the

Re: Can't match str/unicode

2017-01-07 Thread CM
On Saturday, January 7, 2017 at 6:42:25 PM UTC-5, Chris Angelico wrote: > What happens if you print the repr of each string? Or, if one of them > truly is a literal, just print the repr of the one you got from > win32com. > > ChrisA Yes, that did it. The repr of that one was, in fact: u'match

Can't match str/unicode

2017-01-07 Thread CM
This is probably very simple but I get confused when it comes to encoding and am generally rusty. (What follows is in Python 2.7; I know.). I'm scraping a Word docx using win32com and am just trying to do some matching rules to find certain paragraphs that, for testing purposes, equal the word

Scraping email to make invoice

2016-04-24 Thread CM
I would like to write a Pythons script to automate a tedious process and could use some advice. The source content will be an email that has 5-10 PO (purchase order) numbers and information for freelance work done. The target content will be an invoice. (There will be an email like this every

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread CM
CM added the comment: I understood what Ned meant, and I did seek advice from the third party software creator, it was the first thing I did because like you stated I thought it was an issue with the third party software and not python. Coming to this bug website was my last resort but I can

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread CM
CM added the comment: Hi Thanks for your response. So as you have correctly surmised I am using a software package call oof. I ran the package using gdb and this is the output that I got. I'm having the same issue on i.e. Segmentation fault on three machines, one is a Linux Centos/Redhat

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-08 Thread CM
New submission from CM: Process: Python [556] Path: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 2.7.10 (2.7.10) Code Type: X86-64 (Native) Parent Process: bash [510

Re: Hello World

2014-12-20 Thread CM
On Saturday, December 20, 2014 7:57:19 AM UTC-5, Steven D'Aprano wrote: Taken from Ben Kurtovic's blog: http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html (lambda _, __, ___, , _, __, ___, : getattr( __import__(True.__class__.__name__[_]

Re: Hello World

2014-12-20 Thread CM
On Sunday, December 21, 2014 1:45:02 AM UTC-5, Chris Angelico wrote: On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy wrote: Just to be clear, writing to sys.stdout works fine in Idle. import sys; sys.stdout.write('hello ') hello #2.7 In 3.4, the number of chars? bytes? is returned and

Re: Hello World

2014-12-20 Thread CM
On Sunday, December 21, 2014 2:44:50 AM UTC-5, CM wrote: On Sunday, December 21, 2014 1:45:02 AM UTC-5, Chris Angelico wrote: On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy wrote: Just to be clear, writing to sys.stdout works fine in Idle. import sys; sys.stdout.write('hello ') hello

Re: Parse bug text file

2014-07-28 Thread CM
Thank you, Chris, Terry, and jmf, for these pointers. Very helpful. -CM -- https://mail.python.org/mailman/listinfo/python-list

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread CM
On Friday, July 25, 2014 10:55:44 AM UTC-4, Orochi wrote: Hi, This Question may sound lame ,but I am searching for .Net Like Gui Builder for Python. I tried PyQt Designer' and 'Glade', No doubt its great but it created only interface. I have to code all the things in separate file.

Re: Exploring Python for next desktop GUI Project

2014-07-27 Thread CM
On Thursday, July 24, 2014 11:57:22 AM UTC-4, Noble Bell wrote: I am exploring the idea of creating my next desktop GUI project in Python and would like a little advice from you folks about a couple of requirements. My requirements will be: 1. Needs to be portable across platforms

Parse bug text file

2014-07-27 Thread CM
I have a big text file of bugs that I want to use Python to parse such that the bugs can be neatly filed into a database. I can bumble toward a solution with looping but feel this is a classic example of reinventing the wheel, and yet I'm finding it hard to Google for. Basically the file is

What can Nuitka do?

2014-06-27 Thread CM
(Trying again, simpler and cleaner post) Can I use Nuitka to transform a wxPython GUI application in Python that uses several 3rd party modules into a small and faster compiled-to-C executable? -- https://mail.python.org/mailman/listinfo/python-list

What can PyPy do?

2014-06-27 Thread CM
Can I use PyPy to transform a wxPython GUI application in Python that uses several 3rd party modules into a faster Python application that can be distributed as an exe? -- https://mail.python.org/mailman/listinfo/python-list

Re: What can Nuitka do?

2014-06-27 Thread CM
On Friday, June 27, 2014 7:44:39 PM UTC-4, Paul Sokolovsky wrote: Yes, you can. So, please try that, and report how that went. We're eager to know how that would go very much. But unlike you, we don't have need to transform wxPython GUI application in Python into an executable. So, you are

Re: What can Nuitka do?

2014-06-27 Thread CM
On Friday, June 27, 2014 11:09:11 PM UTC-4, Steven D'Aprano wrote: Having said that, I think that the OP's question is probably misguided. Thanks, Steven, for the input. It very well might be. I'll give a little more information. He or she gives the impression of expecting PyPy or

Re: What can Nuitka do?

2014-06-27 Thread CM
I'm not a Windows user, so I can't give detailed step-by-step mouse over this menu, click this button instructions, but you need to open a command line terminal. (command.com or cmd.exe, I'm not *quite* that at sea! :D Close, but I am used to using the command line in Windows.

Re: What can Nuitka do?

2014-06-27 Thread CM
On Saturday, June 28, 2014 12:23:03 AM UTC-4, Stefan Behnel wrote: There should be a folder Python27/Scripts that contains the executable programs that Python packages install. Thank you, yes, it's there. But there are two files: nuitka (I don't see an extension and don't know the file

Re: What can Nuitka do?

2014-06-27 Thread CM
Just add Scripts to path (not Scripts/nuitka), and it should run nuitka.bat. I would guess that the one without an extension is a Unix shell script of some sort; have a look at it, see if it's a text file that begins #!/bin/sh or similar. Most likely the file sizes of nuitka and

Re: State of speeding up Python for full applications

2014-06-26 Thread CM
I'm reposting my question with, I hope, better formatting: I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference,

print statements and profiling a function slowed performance

2014-06-26 Thread CM
Huh. I learned two new Python facts this week: 1. print statements were slowing down my code enough to really notice a particular transition. It went from about 2-3 seconds to a bit under 1 second. What at first seemed unresponsive now seems almost snappy. The only difference was removing a lot

Re: print statements and profiling a function slowed performance

2014-06-26 Thread CM
Seems like over the years good old fashioned debugging skills have been lost. In the earliest days of IDEs (Turbo BASIC and QuickBASIC) I regularly would employ debuggers with break points, watches, and step through my code. I do also use a debugger, but lazily use print statements,

Re: print statements and profiling a function slowed performance

2014-06-26 Thread CM
On Thursday, June 26, 2014 3:27:48 PM UTC-4, Mark Lawrence wrote: 3. use the logging module :) I've just never got around to it, but I guess I should. Thanks for the nudge. -- https://mail.python.org/mailman/listinfo/python-list

State of speeding up Python for full applications

2014-06-25 Thread CM
I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference, and sometimes a difference on par with C, from what I've heard.

using a new computer and bringing needed libraries to it

2014-05-17 Thread CM
If I want to switch my work from one computer to a new one, and I have lots of various libraries installed on the original computer, what's the best way to switch that all to the new computer? I'm hoping there is some simple way like just copying the Python/Lib/site-packages folder, but I'm

Re: python obfuscate

2014-04-12 Thread CM
On Saturday, April 12, 2014 8:07:57 AM UTC-4, Sturla Molden wrote: CM cmpyt...@gmail.com wrote: You're saying that fear of patent trolls is yet another bad reason to obfuscate your code? But then it almost sounds like you think it is a justifiable reason. So I don't think I

Re: python obfuscate

2014-04-11 Thread CM
On Friday, April 11, 2014 12:13:47 PM UTC-4, Sturla Molden wrote: Mark H Harris harrismh...@gmail.com wrote: Obfuscation (hiding) of your source is *bad*, usually done for one of the following reasons: 1) Boss is paranoid and fears loss of revenues due to intellectual

Re: Examples of modern GUI python programms

2014-03-31 Thread CM
On Sunday, March 30, 2014 7:16:07 PM UTC-4, D. Xenakis wrote: Id like to ask.. do you know any modern looking GUI examples of windows software written in python? Something like this maybe: http://techreport.com/r.x/asus-x79deluxe/software-oc.jpg (or hopefully something like this android

Re: python

2014-02-24 Thread CM
On Monday, February 24, 2014 3:31:11 AM UTC-5, Karthik Reddy wrote: I worked as a weblogic administrator and now i am changing to development and i am very much interested in python . please suggest me what are the things i need to learn more rather than python to get an I.T job. I

Re: What are the kinds of software that are not advisable to be developed using Python?

2014-02-10 Thread CM
On Saturday, February 8, 2014 10:43:47 PM UTC-5, Steven D'Aprano wrote: PyPy can generate code which is comparable to compiled C in speed. Perhaps you mean, if execution speed is the most important thing, using a naive Python interpreter may not be fast enough. Given that the OP seems to

Statement evals as False in my IDE and True elsewhere

2014-01-30 Thread CM
This is puzzling. (Using Python 2.5, WinXP, Boa Constructor 0.6.1 definitely running the code through Python 2.5) If I run these lines in my program, through my IDE (Boa Constructor), fake_data = ['n/a', 'n/a', 'n/a', 'n/a', '[omitted]', '12'] fake_result = not all(i == '[omitted]'

Re: Statement evals as False in my IDE and True elsewhere

2014-01-30 Thread CM
On Thursday, January 30, 2014 5:14:57 PM UTC-5, Peter Otten wrote: Hint: def demo(): ... fake_data = ['n/a', 'n/a', 'n/a', 'n/a', '[omitted]', '12'] ... fake_result = not all(i == '[omitted]' for i in fake_data) ... print 'This is fake result: ', fake_result demo() This

Re: Statement evals as False in my IDE and True elsewhere

2014-01-30 Thread CM
Try using square brackets notation instead. Apparently your __builtins__ is a dictionary, not a module, though I don't know why (probably something to do with numpy, which I've never actually used). But try this: builtin_all = __builtins__[all] It might work. Yes, it does. Thanks! Che

Re: Statement evals as False in my IDE and True elsewhere

2014-01-30 Thread CM
On Thursday, January 30, 2014 5:25:31 PM UTC-5, Chris Angelico wrote: On Fri, Jan 31, 2014 at 9:04 AM, CM cmpyt...@gmail.com wrote: fake_data = ['n/a', 'n/a', 'n/a', 'n/a', '[omitted]', '12'] fake_result = not all(i == '[omitted]' for i in fake_data) print 'This is fake

how to avoid spaghetti in Python?

2014-01-21 Thread CM
I've been learning and using Python for a number of years now but never really go particularly disciplined about all good coding practices. I've definitely learned *some*, but I'm hoping this year to take a good step up in terms of refactoring, maintainability, and mostly just de-spaghettizing

Re: django question

2014-01-07 Thread CM
On Monday, January 6, 2014 8:57:22 PM UTC-5, Roy Smith wrote: Yes, exactly. There's nothing magic about a django view. It's just a function which is passed an instance of HttpRequest (and possibly a few other things, depending on your url mapping), and which is expected to return an

Re: Which python framework?

2014-01-06 Thread CM
On Monday, January 6, 2014 12:02:31 PM UTC-5, blis...@gmail.com wrote: I love programming in python but I'm having trouble deciding over a framework for a single player MUD like game I'm making for fun. Ideally it's a cross-platform free framework in case I want make it open source later with

Re: django question

2014-01-06 Thread CM
On Sunday, January 5, 2014 4:50:55 PM UTC-5, Roy Smith wrote: One of the things we try to do is put as little in the views as possible. Views should be all about accepting and validating request parameters, and generating output (be that HTML via templates, or JSON, or whatever). All the

Re: PEP 450 Adding a statistics module to Python

2013-12-10 Thread CM
On Friday, August 9, 2013 9:10:18 PM UTC-4, Steven D'Aprano wrote: I am seeking comments on PEP 450, Adding a statistics module to Python's standard library: I just saw today that this will be included in Python 3.4. Congratulations, Steven, this is a nice addition. --

Re: What minimum should a person know before saying I know Python

2013-09-23 Thread CM
On Friday, September 20, 2013 5:58:00 AM UTC-4, Aseem Bansal wrote: I started Python 4 months ago. Largely self-study with use of Python documentation, stackoverflow and google. I was thinking what is the minimum that I must know before I can say that I know Python? Seems to me a fuzzy

Re: Python GUI?

2013-09-12 Thread CM
Tkinter -- Simple to use, but limited PyQT -- You have a GUI designer, so I'm not going to count that As others have pointed out, that's nonsensical. If you don't like the GUI designer, just don't use it. wxPython -- Very nice, very professional, approved by Python creator, but alas

Re: PEP 450 Adding a statistics module to Python

2013-08-14 Thread CM
On Friday, August 9, 2013 9:10:18 PM UTC-4, Steven D'Aprano wrote: I am seeking comments on PEP 450, Adding a statistics module to Python's standard library: I think it's a very good idea. Good PEP points, too. I hope it happens. -- http://mail.python.org/mailman/listinfo/python-list

Re: Minions are Python Powered!

2013-08-03 Thread CM
On Saturday, August 3, 2013 6:16:09 AM UTC-4, Borja Morales wrote: Everytime I watched the minions from Despicable Me something was hitting my unconscious mind. Finally I figured it out... Minions are Python Powered! I couldn't resist to make an image :) I haven't even seen either of

Re: Does Python 'enable' poke and hope programming?

2013-08-03 Thread CM
Wayne, thanks for your thoughts. I am all for the scientific method--in understanding the natural world, which doesn't come with a manual. But Python is an artificial system designed by mere people (as well as Guido), and, as such, does have a manual. Ideally, there should be very little

Re: Can someone suggest better resources for learning sqlite3? I wanted to use the Python library but I don't know sql.

2013-08-03 Thread CM
ave tried sql.learncodethehardway but it isn't complete yet. I tired looking on stackoverflow's sql tag also but nothing much there. Can someone suggest me better resources for learning sql/sqlite3? There are a lot of nice small tutorials out there found by Googling. One resource that you

Re: how to package embedded python?

2013-08-01 Thread CM
On Wednesday, July 31, 2013 11:47:19 AM UTC-4, David M. Cotter wrote: okay, well that might turn out to be useful, except i don't quite know how to use it, and there are no from scratch instructions. i managed to download py2exe-0.6.9.zip and unzip it, but how does one install this

Does Python 'enable' poke and hope programming?

2013-08-01 Thread CM
(My subject line is meant to be tongue and cheek inflammatory) I've been thinking about why programming for me often feels like ice skating uphill. I think part of the problem, maybe the biggest part, is what now strikes me as a Very Bad Habit, which is poke and hope (trial and error)

Re: how to package embedded python?

2013-07-30 Thread CM
On Tuesday, July 30, 2013 4:23:06 PM UTC-4, David M. Cotter wrote: yes, i've looked there, and all over google. i'm quite expert at embedding at this point. however nowhere i have looked has had instructions for this this is how you package up your .exe with all the necessary python

SQLite logic error or missing database

2013-07-29 Thread CM
(Posted to SQLite users list first; 3 views so far, and no answers, so trying here, thinking that perhaps a Python user would have some clues; I hope that is OK) I am using SQLite through either Python 2.5 or 2.7, which is the sqlite3 module. In a desktop application, every now and then, and

Re: Understanding other people's code

2013-07-15 Thread CM
On Monday, July 15, 2013 6:02:30 AM UTC-4, Azureaus wrote: To be fair to who programmed it, most functions are commented and I can't complain about the messiness of the code, It's actually very tidy. (I suppose Python forcing it's formatting is another reason it's an easily readable

Re: Understanding other people's code

2013-07-14 Thread CM
Basically the problem is I am new to the language and this was clearly written by someone who at the moment is far better at it than I am! Sure, as a beginner, yes, but also it sounds like the programmer didn't document it much at all, and that doesn't help you. I bet s/he didn't always use

Re: Stack Overflow moder ator “animuson”

2013-07-11 Thread CM
On Wednesday, July 10, 2013 11:01:26 AM UTC-4, Steven D'Aprano wrote: Mats, I fear you have misunderstood. If the Python Secret Underground existed, which it most certainly does not, it would absolutely not have the power to censor people's emails or cut them off in the middle of *That's*

Re: the general development using Python

2013-07-11 Thread CM
On Wednesday, July 10, 2013 7:57:11 PM UTC-4, Joshua Landau wrote: Yeah, but why keep shipping the Python interpreter? If you choose the installer route, you don't have to keep shipping it -- it's only downloaded if you need it. If not, then you don't download it again. I admit that not

Re: the general development using Python

2013-07-10 Thread CM
I was mainly talking in the context of the original post, where it seems something slightly different was meant. If you're deploying to customers, you'd want to offer them an installer. At least, I think you would. That's different from packing Python into a .exe file and pretending it's

Re: the general development using Python

2013-07-09 Thread CM
On Tuesday, July 9, 2013 1:03:14 AM UTC-4, Chris Angelico wrote: On Tue, Jul 9, 2013 at 2:46 PM, CM cmpyt...@gmail.com wrote: Target the three most popular desktop platforms all at once, no Linux/Windows/Mac OS versioning. Ehhh... There are differences, in, e.g., wxPython between

Re: the general development using Python

2013-07-09 Thread CM
On Tuesday, July 9, 2013 5:13:17 PM UTC-4, Joshua Landau wrote: On 9 July 2013 03:08, Adam Evanovich ajetrum...@gmail.com wrote: Can you wrap source code/libs/apps into an EXE and just send that to the end user? Or is it more complicated for them? Urm.. yes. But don't. That's the

Re: the general development using Python

2013-07-09 Thread CM
On Tuesday, July 9, 2013 5:21:22 PM UTC-4, Joshua Landau wrote: On 9 July 2013 05:46, CM cmpyt...@gmail.com wrote: Maybe 5-20 MB. That's a lot bigger than a few hundred K, but it's not that important to keep size down, really. Fair enough. It's not something I'd EMail to a friend

Re: the general development using Python

2013-07-09 Thread CM
On Tuesday, July 9, 2013 8:14:44 PM UTC-4, Joshua Landau wrote: I still think you are overstating it somewhat. Have a website on which you distribute your software to end users (and maybe even--gasp--charge them for it)? *That's* a good reason. Not really. It'd be a good reason if it

Re: the general development using Python

2013-07-09 Thread CM
On Wednesday, July 10, 2013 12:12:16 AM UTC-4, Joshua Landau wrote: On some multitude of times, CM cmpyt...@gmail.com wrote: What I was thinking of was that if you are going to sell software, you want to make it as easy as possible, and that includes not making the potential customer

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-09 Thread CM
On Tuesday, July 9, 2013 4:33:17 AM UTC-4, Aseem Bansal wrote: Thanks @Dave Cook. I'll try wxPython. If so, the hoary but working Boa Constructor 0.7 is a drag and drop GUI builder for wxPython applications. Well, more like click and then click again, then drag around. It's also an

make sublists of a list broken at nth certain list items

2013-07-08 Thread CM
I'm looking for a Pythonic way to do the following: I have data in the form of a long list of tuples. I would like to break that list into four sub-lists. The break points would be based on the nth occasion of a particular tuple. (The list represents behavioral data trials; the particular

Re: the general development using Python

2013-07-08 Thread CM
On Monday, July 8, 2013 9:45:16 PM UTC-4, ajetr...@gmail.com wrote: all, I am unhappy with the general Python documentation and tutorials. OK. Do you mean the official Python.org docs? Which tutorials? There's a ton out there. I have worked with Python very little and I'm well

Re: Python development tools

2013-06-23 Thread CM
1. Automated Refactoring Tools I wish. Why? I've never seen the appeal of these. I do plenty of refactoring. It's unclear to me what assistance an automated tool would provide. I've often wanted something that would help globally change things like function and method

Re: Python development tools

2013-06-23 Thread CM
On Sunday, June 23, 2013 4:40:07 PM UTC-4, cutems93 wrote: Hello, I am new to python development and I want to know what kinds of tools people use for python development. I went to Python website and found [12 different types of] tools. What else do I need? Also, which software is

Re: Pythonic way to count sequences

2013-04-25 Thread CM
Thank you, everyone, for the answers. Very helpful and knowledge- expanding. -- http://mail.python.org/mailman/listinfo/python-list

Pythonic way to count sequences

2013-04-24 Thread CM
I have to count the number of various two-digit sequences in a list such as this: mylist = [(2,4), (2,4), (3,4), (4,5), (2,1)] # (Here the (2,4) sequence appears 2 times.) and tally up the results, assigning each to a variable. The inelegant first pass at this was something like... # Create

Re: IDE for GUI Designer

2013-04-04 Thread CM
On Apr 4, 11:41 am, Renato Barbosa Pim Pereira renato.barbosa.pim.pere...@gmail.com wrote: Guys, is this, I wonder if there is an IDE with native support for the development of GUI's such as Netbeans with Swing, Visual Basic, etc., The term you want to use is GUI Builder. Because there can be

Re: Time zone changing while Win app is running

2013-04-03 Thread CM
2013-04-03 14:41:13.124000     WRONG                    ^ (That carrot is supposed to be pointing to the 4 in 14, which should be 18.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Time zone changing while Win app is running

2013-04-03 Thread CM
On Apr 3, 7:37 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Tue, 02 Apr 2013 17:04:12 -0700, CM wrote: To summarize the issue:  In an application, I have been using Python's datetime module to get the current time.  But it seems that, at least with Windows (XP

Re: Time zone changing while Win app is running

2013-04-03 Thread CM
I am not the maintainer of the datetime module, but based purely on what you have said, I would consider that a bug. I don't. Do you really want every time function slowed by re-initializing the timezone? It depends; do you know what re-initializing entails and how costly that would be?

[issue17627] Datetime and time doesn't update timezone in a running Win app

2013-04-03 Thread CM
New submission from CM: On Windows (tested on XP), the datetime module (and, as reported online in [1], time module) apparently gets the timezone only when a Python instance first starts, but then never updates the timezone during the life of that Python instance. So, if the user changes

Time zone changing while Win app is running

2013-04-02 Thread CM
Although there is an answer to my concern posted on Stack Overflow[1], I thought I'd run this by the Python group to just get a read on it, since it strikes me as a concern. To summarize the issue: In an application, I have been using Python's datetime module to get the current time. But it

Re: pyqt4 qt license

2013-03-09 Thread CM
On Mar 9, 9:08 pm, pitsa...@gmail.com wrote: hello, i want to develop a GUI application that will be sold. i want to use pyqt4. can i download and use the GPL version during the development and then buy the commercial verion beofore i distribute the application ? Arguably, yes. From

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread CM
The main issue is that python has dynamic typing.  The type of object that is referenced by a particular name can vary, and there's no way (in general) to know at compile time what the type of object foo is. That makes generating object code to manipulate foo very difficult. Could you help

Re: best way to share an instance of a class among modules?

2013-02-06 Thread CM
On Feb 6, 12:04 am, Terry Reedy tjre...@udel.edu wrote: On 2/5/2013 11:40 PM, CM wrote: I have recently moved all my SQLite3 database-related functions into a class, DatabaseAccess, that lives in a utilities module.  When the application loads, the namespace of the instance

Re: best way to share an instance of a class among modules?

2013-02-06 Thread CM
I was using self correctly, I think; but I should have said that the code in the importing module would be within a class, so self there refers to that class. But that's a side point. I agree that utilities.shared_cursor is visible within the importing module. But the problem below remains for

best way to share an instance of a class among modules?

2013-02-05 Thread CM
I have recently moved all my SQLite3 database-related functions into a class, DatabaseAccess, that lives in a utilities module. When the application loads, the namespace of the instance of the class is populated with two different cursors for two different databases the whole application needs to

Re: Python and Facebook

2012-06-25 Thread CM
On Jun 24, 12:16 pm, Alec Taylor alec.tayl...@gmail.com wrote: This is the most active one, forked from the official facebook one (when they used to maintain it themselves):https://github.com/pythonforfacebook/facebook-sdk On Mon, Jun 25, 2012 at 1:35 AM, Chris Angelico

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-25 Thread CM
It would not be difficult to convince me to commit homicide for a Delphi-like Python gui machine that runs on a Linux box. I have played with many - Boa, WxDes, Glade, Tk, Dabo, QtDesigner, Card, etc. Not sure whether you tried it enough on Linux, but Boa (which was intended to be kind of

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-15 Thread CM
Dietmar quotes: With Python not having an easy-to-use GUI builder, The point is, that if you want to promote Python as replacement for e.g. VB, Labview etc., then an easy-to-use GUI builder is required. The typical GUI programs will just have an input mask, a button and one or two output

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-14 Thread CM
On Jun 14, 2:25 pm, Wolfgang Keller felip...@gmx.net wrote: What is needed for domain specialists are frameworks and related tools such as GUI builders that allow them to write exclusively the domain-specific code (this is where a domain specialist will always be better than any software

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-12 Thread CM
On Jun 11, 6:55 pm, Dietmar Schwertberger n...@schwertberger.de wrote: But then we're back to the initial point: As long as there's no GUI builder for Python, most people will stick to Excel / VBA / VB. Then good thing there *are* GUI builder/IDEs for Python, one of which was good enough for

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-09 Thread CM
I think that something in the style of Visual BASIC (version 6) is required for either wxPython or PyQt/PySide (or both). In the Visual BASIC editor you can e.g. add a GUI element and directly go to the code editor to fill methods (e.g. an OnClick method). You can do this for wxPython with

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-08 Thread CM
On Jun 8, 8:27 am, Wolfgang Keller felip...@gmx.net wrote: I want a gui designer that writes the gui code for me. I don't want to write gui code. what is the gui designer that is most popular? I tried boa-constructor, and it works, but I am concerned about how dated it seems to be with no

Re: what gui designer is everyone using

2012-06-07 Thread CM
On Jun 5, 10:10 am, Mark R Rivet markrri...@aol.com wrote: I want a gui designer that writes the gui code for me. I don't want to write gui code. what is the gui designer that is most popular? I tried boa-constructor, and it works, but I am concerned about how dated it seems to be with no

Re: Are there any instrumentation widgets for wxpython or tkinter?

2012-05-20 Thread CM
On May 17, 5:00 pm, Peter peter.milli...@gmail.com wrote: Or wxPython is another good alternative. Download the demo and have a look at the widgets people have already used/created. I think there are some good choices for instrumentation (from memory). Yes, wxPython has some that are

Re: Newby Python Programming Question

2012-05-14 Thread CM
On May 11, 11:25 am, Coyote sageande...@gmail.com wrote: Folks, I am migrating to Python after a 20+ year career writing IDL programs exclusively. I have a really simple question that I can't find the answer to in any of the books and tutorials I have been reading to get up to speed. I

use Python to post image to Facebook

2012-04-09 Thread CM
Shot in the dark here: has any who reads this group been successful with getting Python to programmatically post an image to Facebook? I've tried using fbconsole[1] and facepy[2], both of which apparently work fine for their authors and others and although I have an authorization code, publish

Re: use Python to post image to Facebook

2012-04-09 Thread CM
I've tried using fbconsole[1] and facepy[2], both of which apparently Forgot the refs: [1]https://github.com/facebook/fbconsole; http://blog.carduner.net/2011/09/06/easy-facebook-scripting-in-python/ [2]https://github.com/jgorset/facepy -- http://mail.python.org/mailman/listinfo/python-list

Re: Python LOC, .exe size, and refactoring

2012-02-24 Thread CM
On Feb 22, 12:29 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Tue, 21 Feb 2012 19:51:07 -0800, CM wrote: I have an application that I was hoping to reduce a bit the size of its .exe when packaged with py2exe.  I'm removing some Python modules such as Tkinter, etc

Python LOC, .exe size, and refactoring

2012-02-21 Thread CM
I have an application that I was hoping to reduce a bit the size of its .exe when packaged with py2exe. I'm removing some Python modules such as Tkinter, etc., but now wonder how much I could size I could reduce by refactoring--and therefore shortening--my code. Is there a rule of thumb that

Re: options for plotting points on geographic map

2011-10-01 Thread CM
On Sep 29, 12:52 pm, Miki Tebeka miki.teb...@gmail.com wrote: Probably the google maps routes will be faster (maybe using embedded webkit window). However it requires internet connection. See alsohttp://www.scipy.org/Cookbook/Matplotlib/Maps Thanks. But I just needed a small radius, not the

Re: options for plotting points on geographic map

2011-10-01 Thread CM
You could create the webpage and then render it in your desktop app. I have seen plenty of apps like that. That's a good idea. I was able to get the basics of the pymaps approach going, so I may do just this. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

options for plotting points on geographic map

2011-09-28 Thread CM
Recommendations sought for using Python to plot points/custom markers (and maybe other things?) on a map of an area of the U.S. of maybe 100 miles radius. (This would be a political map showing towns, such as from Google Maps or Mapquest, and not a physical map). I'll need to place markers or

Re: Advice on how to get started with 2D-plotting ?

2011-09-07 Thread CM
On Sep 6, 2:27 pm, Fred Pacquier xne...@fredp.lautre.net wrote: Hi, I'm a Python long-timer, but I've never had to use tools like Matplotlib others before. Now, for my work, I would need to learn the basics fast, for a one-time quick-n-dirty job. This involves a graphic comparison of

Re: Advice on how to get started with 2D-plotting ?

2011-09-07 Thread CM
Now, for my work, I would need to learn the basics fast, for a one-time quick-n-dirty job. This involves a graphic comparison of RFC1918 IP subnets allocation across several networks. The idea is to draw parallel lines, with segments (subnets) coloured green, yellow or red depending on the

  1   2   3   >