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

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 softw

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 tu

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 wel

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 wrote: > > >> Target the three most popular desktop platforms all at once, no > > >> Linux/Windows/Mac OS versioning. > > > Ehhh... There are differences,

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 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 "nuclear" option and

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 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&#x

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

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 , CM 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 have to i

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 a

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'

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'

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 ne

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 us

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 > lan

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 in

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 p

Re: Python and Facebook

2012-06-25 Thread CM
On Jun 24, 12:16 pm, Alec Taylor 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 wrote: > > On Mon, Jun 25,

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

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 pr

Re: Python LOC, .exe size, and refactoring

2012-02-24 Thread CM
On Feb 22, 12:29 am, Steven D'Aprano 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

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 pe

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: Newby Python Programming Question

2012-05-14 Thread CM
On May 11, 11:25 am, Coyote 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 have two programs

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

2012-05-20 Thread CM
On May 17, 5:00 pm, Peter 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 applicable: LEDNumberCtrl Pe

Re: what gui designer is everyone using

2012-06-07 Thread CM
On Jun 5, 10:10 am, Mark R Rivet 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 updates in over six

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 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 updates i

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 wi

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 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 me to take me from es

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 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 developer), lay

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 outpu

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-10 Thread CM
On Jul 10, 6:50 pm, Ivan Kljaic wrote: > Ok Guys. I know that most of us have been expiriencing the need for a > nice Gui builder tool for RAD and most of us have been googling for it > a lot of times. But seriously. Why is the not even one single RAD tool > for Python. I mean what happened to boa

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread CM
> > One reason there hasn't been much demand for a GUI builder is that, in > > many cases, it's just as simpler or simpler to code a GUI by hand. I use a GUI builder because I'd rather click less than type more. I just tried that in Boa Constructor; with ~10 mouse clicks I produced 964 characters

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-12 Thread CM
On Jul 12, 5:18 pm, rantingrick wrote: > On Jul 12, 1:43 pm, CM wrote: > > > > > One reason there hasn't been much demand for a GUI builder is that, in > > > > many cases, it's just as simpler or simpler to code a GUI by hand. > > > I use a GUI bu

Pythonic way with more than one max possible

2011-07-19 Thread CM
I have three items in a dict, like this: the_dict = {'a':1, 'b':2, 'c':3} but the vals could be anything. I want to configure something else based on the "winner" of such a dict, with these rules: 1. In this dict, if there is a UNIQUE max value, that's the winner. 2. If there are any TIES for m

Re: Pythonic way with more than one max possible

2011-07-19 Thread CM
On Jul 19, 11:17 pm, CM wrote: > I have three items in a dict, like this: > > the_dict = {'a':1, 'b':2, 'c':3} > > but the vals could be anything.  I want to configure something else > based on the "winner" of such a dict, with these

Re: Pythonic way with more than one max possible

2011-07-20 Thread CM
Thanks, everyone. Very helpful! Che -- http://mail.python.org/mailman/listinfo/python-list

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

2011-09-06 Thread CM
On Sep 6, 2:27 pm, Fred Pacquier 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 RFC1918 IP subnet

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

2011-09-06 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

Re: What do I need to know in order to write a web application in python?

2011-03-04 Thread CM
On Mar 4, 5:07 pm, Corey Richardson wrote: > On 03/04/2011 04:48 PM, ErichCart ErichCart wrote: > > > In fact this doesn't necessary need to be web application. For example > > I have a friend who uses Delphi, and he can create all sorts of > > windows applications easily, like he can see the wind

Re: What do I need to know in order to write a web application in python?

2011-03-04 Thread CM
On Mar 4, 5:07 pm, Corey Richardson wrote: > On 03/04/2011 04:48 PM, ErichCart ErichCart wrote: > > > In fact this doesn't necessary need to be web application. For example > > I have a friend who uses Delphi, and he can create all sorts of > > windows applications easily, like he can see the wind

Re: What do I need to know in order to write a web application in python?

2011-03-04 Thread CM
On Mar 4, 5:07 pm, Corey Richardson wrote: > On 03/04/2011 04:48 PM, ErichCart ErichCart wrote: > > > In fact this doesn't necessary need to be web application. For example > > I have a friend who uses Delphi, and he can create all sorts of > > windows applications easily, like he can see the wind

Re: What do I need to know in order to write a web application in python?

2011-03-05 Thread CM
On Mar 5, 6:49 am, ErichCart ErichCart wrote: > Regarding Boa constructor, it is very old, isn't it? The latest news > from this project date to the end of 2006. I don't expect it to > support python 3 any time soon. The website is incredibly out of date, but the last major update was July 2007.

Re: Directly Executable Files in Python

2011-03-29 Thread CM
> it has to be reproducing the byte code > interpreter in the code segment and the byte code in the data segment... > so that each .exe file created by said process is actually loading an > entire copy of at least the byte code interpreter with each program > "compiled" ... Yes, if you think of i

Re: Directly Executable Files in Python

2011-03-29 Thread CM
On Mar 29, 12:16 am, harrismh777 wrote: > Chris Rebert wrote: > > Yes. py2exe is a tool which generates such Windows executables: > >http://www.py2exe.org/ > > Interesting... but it can't possibly be creating .exe files > (compiling)... I don't buy it... it has to be reproducing the byte code > in

Re: Free software versus software idea patents

2011-04-12 Thread CM
>  I don't even know one person who has Win7 installed, running, and likes >it... > not even one.   Hi, m harris, nice to meet you. Now you do. To the online community: Is there a name for trolling for A by advocating for not-A in a way that discredits your point of view an case so that A now

Re: Free software versus software idea patents

2011-04-14 Thread CM
On Apr 14, 1:50 am, harrismh777 wrote: > Westley Martínez wrote: >   I don't  even know one person who has Win7 installed, running, and > likes it... > >  >>  not even one. > > >>> >  >  Hi, m harris, nice to meet you.  Now you do. > > >>> >  >  To the online community:  Is there a

Re: Python IDE/text-editor

2011-04-15 Thread CM
On Apr 16, 1:43 am, Alec Taylor wrote: > Thanks, but non of the IDEs so far suggested have an embedded python > interpreter AND tabs... a few of the editors (such as Editra) have > really nice interfaces, however are missing the embedded > interpreter... emacs having the opposite problem, missing

Re: De-tupleizing a list

2011-04-25 Thread CM
On Apr 25, 11:28 pm, Gnarlodious wrote: > I have an SQLite query that returns a list of tuples: > > [('0A',), ('1B',), ('2C',), ('3D',),... > > What is the most Pythonic way to loop through the list returning a > list like this?: > > ['0A', '1B', '2C', '3D',... > > -- Gnarlie For just this case,

Re: Development tools and practices for Pythonistas

2011-04-26 Thread CM
On Apr 26, 10:39 am, snorble wrote: > I'm not a Pythonista, but I aspire to be. > > My current tools: > > Python, gvim, OS file system > > My current practices: > > When I write a Python app, I have several unorganized scripts in a > directory (usually with several named test1.py, test2.py, etc.,

Re: Development tools and practices for Pythonistas

2011-04-26 Thread CM
> I guess it depends on your project, but that sounds needlessly complex > and way too tough with a VCS.  I'd say just don't go there. (Whoops, I meant way too tough *without* a VCS, not with) -- http://mail.python.org/mailman/listinfo/python-list

Re: Development tools and practices for Pythonistas

2011-04-29 Thread CM
> A lone developer using such a VCS reaps the benefits of this by getting > good merging support. While we're on the topic, when should a lone developer bother to start using a VCS? At what point in the complexity of a project (say a hobby project, but a somewhat seriousish one, around ~5-9k LOC

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

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 /

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'?

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 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 y

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 w

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. -- https://mail.python

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 wi

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

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 i

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

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]' for

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 > > >>> d

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. Tha

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 wrote: > > > fake_data = ['n/a', 'n/a', 'n/a', 'n/a', '[omitted]', '12'] > > > fake_result = n

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

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__.__n

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 ret

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. > > >>>>

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: 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 obfuscate

2014-04-11 Thread CM
On Friday, April 11, 2014 12:13:47 PM UTC-4, Sturla Molden wrote: > Mark H Harris 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 > > property theft.

Re: python obfuscate

2014-04-12 Thread CM
On Saturday, April 12, 2014 8:07:57 AM UTC-4, Sturla Molden wrote: > CM 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 > > &g

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 als

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 > "insta

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) progra

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

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 ne

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 mig

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: 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 > a

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 bou

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.

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 of

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 stateme

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

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

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 > o

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 an

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

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 platfo

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 str

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

  1   2   >