Re: Variables versus name bindings [Re: A certainl part of an if() structure never gets executed.]

2013-06-19 Thread Michael Torrie
On 06/18/2013 03:51 AM, Νίκος wrote: > Στις 18/6/2013 12:05 μμ, ο/η Steven D'Aprano έγραψε: >> Names are *always* linked to objects, not to other names. >> >> a = [] >> b = a # Now a and b refer to the same list >> a = {} # Now a refers to a dict, and b refers to the same list as before > > I see

Re: Variables versus name bindings [Re: A certainl part of an if() structure never gets executed.]

2013-06-19 Thread Michael Torrie
On 06/19/2013 11:16 PM, Michael Torrie wrote: > It turns out that lists, hashes (dicts), and classes can pretty much > do anything with having to much about with C-style pointers and > such. Oh wow. Parse error. should read, "pretty much do anything without having to muck abou

Re: Variables versus name bindings [Re: A certainl part of an if() structure never gets executed.]

2013-06-19 Thread Michael Torrie
On 06/19/2013 11:48 PM, Steven D'Aprano wrote: > On Wed, 19 Jun 2013 23:16:51 -0600, Michael Torrie wrote: > >> The real power and expressivity of Python comes from embracing the >> abstractions that Python provides to your advantage. There's a certain >> elegan

Re: Default Value

2013-06-21 Thread Michael Torrie
On 06/21/2013 07:41 PM, Chris Angelico wrote: >> While we're at it, I would like to petition for a function >> terminates(f, args) that I can use to determine whether a function >> will terminate before I actually call it. > > Nice idea from a theoretical point of view, but practicality beats > pu

Re: Python development tools

2013-06-23 Thread Michael Torrie
On 06/23/2013 02:40 PM, cutems93 wrote: > What else do I need? Also, which software is used in daily base? I > know version control software and bug tracking software are used > almost everyday by developers. Which software is used less often? Phew that's quite a list you have there. Are you comi

Re: Making a pass form cgi => webpy framework

2013-06-23 Thread Michael Torrie
On 06/23/2013 07:44 PM, Νίκος wrote: > Why use mako's approach which requires 2 files(an html template and the > actual python script rendering the data) when i can have simple print > statements inside 1 files(my files.py script) ? > After all its only one html table i wish to display. Sooner o

ANN: python-ldap 2.4.13

2013-06-27 Thread Michael Ströder
stuff (e.g. processing LDIF, LDAP URLs and LDAPv3 schema). Project's web site: http://www.python-ldap.org/ Ciao, Michael. Released 2.4.13 2013-06-27 Changes since 2.4.12: Lib/ * ldapobject.ReconnectLDAPObject._apply_last

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 05:44 AM, [email protected] wrote: > Alas, one reason it's a weak workaround is that it doesn't work - at least, > not how I wish it would: > > > $ cat ptrs > > x = 34 > > def p1 (a1): > > a1[0] += 12 > > p1 ([x]) > > print (x) > > $ python ptrs > 34 you'll

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 05:21 AM, [email protected] wrote: > Thank you. You reminded me of the (weak) workaround of using arrays > and confirmed my suspicion that I although I can read the variable, I > won't be able to write to it. I still don't understand why not, > though... The real problem

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 11:02 AM, Antoon Pardon wrote: > Op 29-06-13 16:02, Michael Torrie schreef: >> >> The real problem here is that you don't understand how python variables >> work. And in fact, python does not have variables. It has names that >> bind to objects. >

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 07:56 AM, Michael Torrie wrote: > x = [ 34, ] > > def test_func( out ): > out[0] += 12 > > test_func(x) > > print (x) Well, actually print (x[0]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 12:37 PM, [email protected] wrote: > :) Thank you guys for saying what I was biting my tongue about > (thanks everybody for the help, BTW!). Sometimes it's best to state the actual problem you're trying to solve and see if there's a pythonic solution that fits it rather th

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 12:51 PM, Steven D'Aprano wrote: > You are absolutely correct in principle. But in practice, there are ten > bazillion C, Pascal, COBOL, and BASIC programmers who understand the word > "variable" to mean a named memory location, for every Smalltalk or Lisp > programmer who understa

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 01:19 PM, Steven D'Aprano wrote: > Python's basic data types are not necessarily immutable. Lists and dicts > are not immutable. Being a high-level language, the idea of "primitives" > like int, double, float, etc from C doesn't really apply. A Python dict > is not made up from Pyt

Re: Closures in leu of pointers?

2013-06-29 Thread Michael Torrie
On 06/29/2013 01:20 PM, [email protected] wrote: > exactly that. Without wanting to analyze it in too much depth now, I > would want a local keyword to allow me to know I was protecting my > variables, and a way to specify other scopes, without so much implied > scoping in non-intuitive

Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0: invalid start byte

2013-07-04 Thread Michael Torrie
On 07/04/2013 02:25 PM, Ferrous Cranus wrote: > try: > host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] > except: > host = "Reverse DNS Failed" > > Is there a way to write the above so i cna print the error return when > it fails? > Do you know what IP address causes the

Re: Stack Overflow moderator “animuson”

2013-07-10 Thread Michael Torrie
On 07/10/2013 06:22 AM, Mats Peterson wrote: > You're showing by these examples what regular expressions mean to you. Chris is showing no such thing. And you are simply trolling. What do you want us to do, fall down and worship you and admit that Python is a horrible language and we should all u

Re: Stack Overflow bans Mats Peterson (was Re: Stack Overflow moderator “animuson”)

2013-07-10 Thread Michael Torrie
On 07/10/2013 06:06 AM, Mats Peterson wrote: > I haven't provided a "real-world" example, since I expect you Python > Einsteins to be able do an A/B test between Python and Perl yourselves > (provided you know Perl, of course, which I'm afraid is not always the > case). And why would I use any "cu

Re: Stack Overflow moderator “animuson”

2013-07-11 Thread Michael Torrie
On 07/10/2013 02:43 AM, Mats Peterson wrote: > I fear you don’t even know what a regular expression is. Then this will > of course not affect you. Hmm, and your stack exchange posts had a similar tone, hmm? I for one have never ready any of your posts on this forum before, so it looks like you've

Re: RE Module Performance

2013-07-12 Thread Michael Torrie
On 07/12/2013 09:59 AM, Joshua Landau wrote: > If you're interested, the basic of it is that strings now use a > variable number of bytes to encode their values depending on whether > values outside of the ASCII range and some other range are used, as an > optimisation. Variable number of bytes is

Re: GeoIP2 for retrieving city and region ?

2013-07-13 Thread Michael Torrie
On 07/13/2013 12:23 PM, Νικόλας wrote: > Do you know a way of implementing anyone of these methods to a script? Yes. Modern browsers all support a location API in the browser for javascript. See this: http://diveintohtml5.info/geolocation.html -- http://mail.python.org/mailman/listinfo/python

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Michael Torrie
On 07/12/2013 10:32 AM, Νικόλας wrote: > So, my question now is, if there is some way we can get an accurate Geo > City database. As has been said pretty much by every other poster, there is no way to do get an accurate location database. Period. The databases that do exist were built by hand,

Re: GeoIP2 for retrieving city and region ?

2013-07-15 Thread Michael Torrie
On 07/15/2013 06:34 PM, Dennis Lee Bieber wrote: >> I have no idea how to implement the solution you proposed. >> These are nice ideas we need to have a way of implement them within a >> script. >> >> I have no way of grasping a map of cell towers of a map of wi-fi hotspots. >> > You don't.

Re: tkinter redraw rates

2013-07-17 Thread Michael Torrie
On 07/17/2013 05:08 AM, [email protected] wrote: > Ok. Well, what I'm currently doing, based on advice from this thread, > is to create a new thread that handles the downloading, as well as > updating a variable for text display on the GUI, and in the main > thread, just after the thread is creat

Re: Why on CentOS, python consumes too much memory ?

2013-07-18 Thread Michael Torrie
On 07/18/2013 03:13 AM, William Bai wrote: > I found that it was caused by not by python but by > /usr/lib/locale/locale-archive, the same problem as that described > in http://illiterat.livejournal.com/4615.html. Too funny. So in other words there isn't a problem at all. What you thought was RA

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Michael Torrie
On 07/17/2013 11:39 PM, Eric S. Johansson wrote: > Not discourage you but this is a "been there, done that" kind of project. > You could learn more from reading somebody else is code. What hasn't been > done, and this would be very cool, is a chat program that works > peer-to-peer with no cen

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Michael Torrie
On 07/18/2013 12:19 PM, Owen Marshall wrote: > Huh - I (foolishly) didn't realize gmane actually had NNTP, I've always > used it to search mailing lists. If the list dumped to usenet (much like > c.l.python) I'd post through sunsite.dk, which is a very nice usenet > provider. But that still meant s

Re: How can I make this piece of code even faster?

2013-07-21 Thread Michael Torrie
On 07/21/2013 04:19 AM, [email protected] wrote: > Thank's for all the replies! I've tried some of the imporovements you > suggested (using math.exp() and sum() or math.fsum()). > None of that made the code faster, because they are functions you are calling > lots of times, and function

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Michael Torrie
On 07/21/2013 10:19 AM, Gilles wrote: > So, does someone know of a good, SMTP server just to send e-mails? What you're looking for is not an SMTP server but a Mail Transfer Agent, called an MTA. Pretty much all distros ship with an MTA by default, even if the SMTP server part of it isn't installe

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Michael Torrie
On 07/21/2013 02:34 PM, Gilles wrote: > Thanks for the infos. Ideally, I was looking for a simple Windows app > as MTA, but a Python script is OK. The Sendmail MTA has been ported to many platforms including windows. But... > I'm not sure my ISP blocks outbound port 25 connections. I'll > experim

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

2013-07-21 Thread Michael Torrie
On 07/21/2013 05:20 AM, Chris “Kwpolska” Warrick wrote: > On Sun, Jul 21, 2013 at 1:14 PM, Dave Cook wrote: >> On 2013-07-20, Aseem Bansal wrote: >> >>> Do I need to use QtCreator with PySide if I want drag-and-drop >>> feature for GUI development? >> >> No, you just need the layout part of QtCre

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:51 AM, Chris Angelico wrote: >> Thanks for the tip. I didn't know about SPF >> http://en.wikipedia.org/wiki/Sender_Policy_Framework > > It's a great way of detecting legit vs forged mail. If anyone tries to > send mail purporting to be from [email protected] and the receiving >

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:19 AM, Gilles wrote: > On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards > wrote: >> Unless you've got a static IP address, a domain name, and a valid MX >> record that will match up when they do a reverse DNS lookup, it's >> pretty unlikely that you're going to have much lu

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:11 AM, Gilles wrote: > On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie > wrote: >> The Sendmail MTA has been ported to many platforms including windows. >> But... > > Thanks for the tip. Since I couldn't find a good, basic, native > Windows ap

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 08:15 AM, Chris Angelico wrote: > If legit mail is rejected for failing an SPF check, it's the sending > admin's problem, not yours. You should never have problems with it if > it's set up correctly. And since rejected mail gets reported to the > transmitting MTA, you don't need to dr

[OT] SPF - was Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Michael Torrie
On 07/23/2013 03:30 AM, Chris Angelico wrote: > On Tue, Jul 23, 2013 at 7:19 PM, Chris Angelico wrote: >> Ah, there's a solution to this one. You simply use your own >> envelope-from address; SPF shouldn't be being checked for the From: >> header. > > There's an example, by the way, of this exact

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 07:40 AM, [email protected] wrote: > Sorry, you are not understanding Unicode. What is a Unicode > Transformation Format (UTF), what is the goal of a UTF and > why it is important for an implementation to work with a UTF. Really? Enlighten me. Personally, I would never use UTF as

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 08:34 AM, Chris Angelico wrote: > Frankly, Python's strings are a *terrible* internal representation > for an editor widget - not because of PEP 393, but simply because > they are immutable, and every keypress would result in a rebuilding > of the string. On the flip side, I could qui

Re: RE Module Performance

2013-07-24 Thread Michael Torrie
On 07/24/2013 04:19 PM, Chris Angelico wrote: > I'm referring here to objections like jmf's, and also to threads like this: > > http://mozilla.6506.n7.nabble.com/Flexible-String-Representation-full-Unicode-for-ES6-td267585.html > > According to the ECMAScript people, UTF-16 and exposing surrogate

Re: RE Module Performance

2013-07-25 Thread Michael Torrie
On 07/25/2013 01:07 PM, [email protected] wrote: > Let start with a simple string \textemdash or \texttendash > sys.getsizeof('–') > 40 sys.getsizeof('a') > 26 That's meaningless. You're comparing the overhead of a string object itself (a one-time cost anyway), not the overhead of st

Re: RE Module Performance

2013-07-25 Thread Michael Torrie
On 07/25/2013 11:18 AM, Steven D'Aprano wrote: > JMF has explained that it is impossible, impossible I say!, to write an > editor using a flexible string representation. Since Emacs uses such a > flexible string representation, Emacs is impossible, and therefore Emacs > doesn't exist. Now I'm e

Re: RE Module Performance

2013-07-26 Thread Michael Torrie
On 07/26/2013 07:21 AM, [email protected] wrote: sys.getsizeof('––') - sys.getsizeof('–') > > I have already explained / commented this. Maybe it got lost in translation, but I don't understand your point with that. > Hint: To understand Unicode (and every coding scheme), you should > und

FSR and unicode compliance - was Re: RE Module Performance

2013-07-28 Thread Michael Torrie
On 07/27/2013 12:21 PM, [email protected] wrote: > Good point. FSR, nice tool for those who wish to teach > Unicode. It is not every day, one has such an opportunity. I had a long e-mail composed, but decided to chop it down, but still too long. so I ditched a lot of the context, which jmf also

Re: RE Module Performance

2013-07-30 Thread Michael Torrie
On 07/30/2013 12:19 PM, Antoon Pardon wrote: > So? Why are you making this a point of discussion? I was not aware that > the pro and cons of various editor buffer implemantations was relevant > to the point I was trying to make. I for one found it very interesting. In fact this thread caused me t

Re: RE Module Performance

2013-07-30 Thread Michael Torrie
On 07/30/2013 01:09 PM, [email protected] wrote: > Matable, immutable, copyint + xxx, bufferint, O(n) > Yes, but conceptualy the reencoding happen sometime, somewhere. > The internal "ucs-2" will never automagically be transformed > into "ucs-4" (eg). So what major python project are you wo

Re: RE Module Performance

2013-07-31 Thread Michael Torrie
On 07/31/2013 01:23 AM, Antoon Pardon wrote: > Op 31-07-13 05:30, Michael Torrie schreef: >> On 07/30/2013 12:19 PM, Antoon Pardon wrote: >>> So? Why are you making this a point of discussion? I was not aware that >>> the pro and cons of various editor buffer impleman

Re: RE Module Performance

2013-07-31 Thread Michael Torrie
On 07/31/2013 02:32 AM, [email protected] wrote: > Unicode/utf* Why do you keep using the terms "utf" and "Unicode" interchangeably? -- http://mail.python.org/mailman/listinfo/python-list

Re: Help On Paramiko

2012-06-19 Thread Michael Torrie
On 06/19/2012 12:28 AM, [email protected] wrote: > Howdy All, > > I am trying to use paramiko to automate logging in to remote unix machines > and executing some commands there. > When I normally do ssh from my linux machine (with Python 2.6) to this > machine a different '>' prompt comes.

Re: None shown in output

2012-06-21 Thread Michael Hrivnak
The last three lines print the return value from the "get_numbers" function, which isn't returning anything. In python, the default return value is None, and that's why you're seeing it. Michael On Thu, Jun 21, 2012 at 11:42 PM, Xander Solis wrote: > Hello Pytho

SSL handshake hanging, despite bugfix in stdlib

2012-06-23 Thread Michael Gundlach
d on GMail's end to trigger the bug.) Am I do something wrong, or is this bug still not fixed? Any pointers would be appreciated. Python 2.6.6 (r266:84292, Dec 7 2011, 20:48:22) on 64-bit Linux 2.6.32. Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: SSL handshake hanging, despite bugfix in stdlib

2012-06-24 Thread Michael Gundlach
Thanks for your reply, Terry. On Sun, Jun 24, 2012 at 1:12 AM, Terry Reedy wrote: > On 6/23/2012 1:29 PM, Michael Gundlach wrote: > >> Am I do something wrong, or is this bug still not fixed? Any pointers > > would be appreciated. Python 2.6.6 (r266:84292, Dec 7 2011, 20:4

Re: SSL handshake hanging, despite bugfix in stdlib

2012-06-25 Thread Michael Gundlach
Hello again Terry (and mailing list), On Sun, Jun 24, 2012 at 9:34 AM, Michael Gundlach wrote: > I've now changed to 2.7.3, and if I don't write back in the next few days, > it means that that fixed the problem -- thanks for your help! :) > The problem still exists in Py

Re: SSL handshake hanging, despite bugfix in stdlib

2012-06-28 Thread Michael Gundlach
; Thanks for your advice, Terry. http://bugs.python.org/issue1251 updated as you suggested. - Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: 2 + 2 = 5

2012-07-04 Thread Michael Ross
pt it prints: True 4 2 ?? Regards, Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: How to safely maintain a status file

2012-07-08 Thread Michael Hrivnak
What are you keeping in this status file that needs to be saved several times per second? Depending on what type of state you're storing and how persistent it needs to be, there may be a better way to store it. Michael On Sun, Jul 8, 2012 at 7:53 AM, Christian Heimes wrote: > Am 08.07

Re: How to safely maintain a status file

2012-07-09 Thread Michael Hrivnak
iar, maybe start by looking at celery. Michael On Mon, Jul 9, 2012 at 1:52 AM, Plumo wrote: >> What are you keeping in this status file that needs to be saved >> several times per second? Depending on what type of state you're >> storing and how persistent it needs to be

Re: Python and Qt4 Designer

2012-07-14 Thread Michael Torrie
On 07/13/2012 03:12 PM, Jean Dubois wrote: > Thanks for the extra docu references In this day and age, I think compiling ui files to code is probably on the way out. Instead you should consider using the ui files directly in your code. This has the advantage of letting you change the gui somewha

Re: Python and Qt4 Designer

2012-07-14 Thread Michael Torrie
On 07/14/2012 11:13 AM, rusi wrote: > I looked at the second link and find code like this: > > app = None if ( not app ): app = QtGui.QApplication([]) > > Maybe I'm dense but whats that if doing there? > > Frankly I seem to be a bit jinxed with gui stuff. A few days ago > someone was singing t

Re: Python and Qt4 Designer

2012-07-16 Thread Michael Torrie
On 07/15/2012 01:58 AM, Vincent Vande Vyvre wrote: > Rusi is not the op, and his question is about these lines > > app = None > if ( not app ): Yeah that's a no-op. The original author of that code is clearly confused there. > > not this one > > app = QtGui.QApplication([]) >

Re: from future import pass_function

2012-07-25 Thread Michael Hrivnak
importantly, there is no value to be gained by making them objects. It is valuable for a language to have control statements, as others have already explained. This is an interesting exercise to think about what their nature is, but at the end of the day, embrace them for what they are. Michael

Re: from future import pass_function

2012-07-26 Thread Michael Hrivnak
s": http://docs.python.org/tutorial/controlflow.html Michael On Thu, Jul 26, 2012 at 2:42 AM, Ulrich Eckhardt wrote: > pass is not a control statement, it is just a placeholder to make it > explicit that there is nothing else to be expected here. > > Uli > -- > ht

Re: from future import pass_function

2012-07-26 Thread Michael Hrivnak
In case the rest of the email didn't make it obvious, everything you quoted me on was sarcasm. I know those things can't be done, and I explained why they can't and shouldn't be done. Michael On Thu, Jul 26, 2012 at 5:16 AM, Devin Jeanpierre wrote: > On Thu, Jul 26, 2

Re: PyCon for students?

2012-07-27 Thread Michael Hrivnak
ython devs like to take their vacations during the summer too, so there is potential for conflict with that. Lastly, the main conference is Friday-Sunday, and I think many students could make that work. It also probably overlaps with a lot of spring breaks. Michael P.S. Instead of doing "

Re: Is Python a commercial proposition ?

2012-07-29 Thread Michael Hrivnak
ly on hosting services like: - Google App Engine: https://developers.google.com/appengine/ - OpenShift: http://openshift.redhat.com/ - Heroku: http://www.heroku.com/ In sum, python is used widely for a variety of purposes by some of the largest enterprises down to very small projects. Michael On Sun, J

Re: find out whether a module exists (without importing it)

2012-08-06 Thread Michael Poeltl
; imp.find_module(), but > it didn't find any module name containing a '.' > > Am I doing anything wrong? > > Is there another existing implementation, that helps. > > I could do this manually, but this is something I'd just like to do > if necessary

Re: New internal string format in 3.3

2012-08-19 Thread Michael Torrie
On 08/19/2012 11:51 AM, [email protected] wrote: > Five minutes after a closed my interactive interpreters windows, > the day I tested this stuff. I though: > "Too bad I did not noted the extremely bad cases I found, I'm pretty > sure, this problem will arrive on the table". Reading through this

Re: New internal string format in 3.3

2012-08-20 Thread Michael Torrie
On 08/20/2012 07:17 AM, Roy Smith wrote: > In article , > Michael Torrie wrote: > >> Python generally tries to follow unicode >> encoding rules to the letter. Thus if a piece of text cannot be >> represented in the character set of the terminal, then Python will

Re: Books?

2012-08-22 Thread Michael Poeltl
I would recommend "Dive into Python3" just goole-search "dive into python3" filetype:pdf and you got it! regards Michael * Anonymous Group [2012-08-22 03:40]: > What books do you recomend for learning python? Preferably free and/or > online. > -- > http://

Re: py2c - an open source Python to C/C++ is looking for developers

2012-09-01 Thread Michael Torrie
On 09/01/2012 09:15 PM, Ramchandra Apte wrote: > It converts to *pure* C/C++ *without* using Python or its API so that it can > be the same speed as C/C++ Sounds like a fun project for you. I hope you learn a lot doing it. That's reason enough for it. Do you plan to port all the standard python

Re: Flexible string representation, unicode, typography, ...

2012-09-02 Thread Michael Torrie
On 09/02/2012 12:58 PM, [email protected] wrote: > My rationale: very simple. > > 1) I never heard about something better than sticking with one > of the Unicode coding scheme. (genreral theory) > 2) I am not at all convinced by the "new" Py 3.3 algorithm. I'm not the > only one guy, who noticed

Re: Dynamically scheduling Cron Jobs for Python Scripts.

2012-09-07 Thread Michael Ströder
cause of reboot)? Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: avoid the redefinition of a function

2012-09-12 Thread Michael Torrie
On 09/12/2012 06:56 AM, Jabba Laci wrote: > I have an installer script that contains lots of little functions. It > has an interactive menu and the corresponding function is called. Over > time it grew long and when I want to add a new function, I should give > a unique name to that function. Howev

Re: Article on the future of Python

2012-09-25 Thread Michael Harleman
for future comparison. Michael Harleman > > From: Mark Lawrence >To: [email protected] >Sent: Tuesday, September 25, 2012 4:15 AM >Subject: Article on the future of Python > >Hi all, > >I though this might be of interest. >

Re: How to investigate web script not running?

2012-09-28 Thread Michael Ross
ernal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. == Do it the other way around: # cgitb before anything else import cgitb cgitb.enable() # so this error will be caught from fcgi import WSGIServer Regar

Re: notmm is dead!

2012-10-04 Thread Michael Torrie
On 10/04/2012 05:13 PM, Etienne Robillard wrote: > Thanks, but I tried all that and don't have much energy for continuing. If > you're > serious about open source then maybe you can forward the thread to > django-developers > and get some fundings to pay for a minimalistic fee to get the project

Re: notmm is dead!

2012-10-05 Thread Michael Torrie
On 10/05/2012 04:43 AM, Etienne Robillard wrote: > No. All past notmm licenses were and still ARE ISC licensed. The license fee > is simply because I'm shifting into commercial license for new releases, > including > the newer 0.4.5 version... Pypi was not the authority source for notmm and > nei

Re: [fcgi.py] Force cache upgrade?

2012-10-05 Thread Michael Ströder
red to reload a script only > after some time or some number of hits, Well, that's the whole point of using FastCGI: Have a long-running process for better performance. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: notmm is dead!

2012-10-05 Thread Michael Torrie
On 10/05/2012 07:43 PM, 8 Dihedral wrote: > I think it is OK to have some string attatched in those open source projects. What are you talking about? What "string?" > Nowadays the software industry is just like the perfume and prtinting > and the audio-video entaertainment industry. True

Re: notmm is dead!

2012-10-07 Thread Michael Torrie
On 10/07/2012 08:08 PM, alex23 wrote: > On Oct 8, 11:45 am, Dwight Hutto wrote: >> What is failed, but a timeline in this scenario, if you found the >> answer in the end? > > It was a _joke_ referring to Michael Torrie's email addressing the > 8 Dihedral bot _as

Re: notmm is dead!

2012-10-07 Thread Michael Torrie
On 10/07/2012 09:42 PM, Jason Friedman wrote: >>> It was a _joke_ referring to Michael Torrie's email addressing the >>> 8 Dihedral bot _as if it was a person_. >> >> Well it would be useful to probe the bot's parameters... > > Five eights i

Re: Generating C++ code

2012-10-10 Thread Michael Torrie
On 10/09/2012 10:00 AM, Jean-Michel Pichavant wrote: > Greetings, > > I'm trying to generate C++ code from an XML file. I'd like to use a template > engine, which imo produce something readable and maintainable. > My google search about this subject has been quite unsuccessful, I've been > redir

Re: Aggressive language on python-list

2012-10-14 Thread Michael Torrie
On 10/13/2012 09:46 AM, Etienne Robillard wrote: > OT. you obviously has no clue what agressive behavior mean. :-) > > So please continue with the passive tone saying nothing relevant > and login to facebook. There's a saying in English. Hit pigeons flutter. I have not been impressed with your

Re: Preventing crap email from google?

2012-10-19 Thread Michael Torrie
On 10/19/2012 06:43 PM, Mark Lawrence wrote: > Good morning/afternoon/evening all, > > Is there any possibility that we could find a way to prevent the double > spaced rubbish that comes from G$ infiltrating this ng/ml? For example, > does Python have anybody who works for G$ who could pull a f

Re: How to set 250000 baud rate in pyserial ?

2012-10-26 Thread Michael Torrie
On 10/26/2012 04:01 PM, [email protected] wrote: > Error is like cannot set special baud rate. But as I said pyserial > set this speed without problem for ttyUSB0 So it seems pyserial uses > diefferent code depending of port type. I tried to simlink ln -s > ttyACM0 ttyUSB0 but it does not work No

Re: Negative array indicies and slice()

2012-10-29 Thread Michael Torrie
On 10/29/2012 01:34 PM, Andrew Robinson wrote: > No, I don't think it big and complicated. I do think it has timing > implications which are undesirable because of how *much* slices are used. > In an embedded target -- I have to optimize; and I will have to reject > certain parts of Python to ma

Re: Negative array indicies and slice()

2012-10-30 Thread Michael Torrie
On 10/30/2012 09:47 AM, Andrew Robinson wrote: > Let's not confound an issue here -- I am going to implement the python > interpreter; and am not bound by optimization considerations of the > present python interpreter -- There are things I can do which as a > python programmer -- you can't. I

Re: How to improve the usability of nested packages

2012-11-03 Thread Michael Schwarz
names for the packages and modules that are imported into the local namespace (like sip or rtp) and also add new stuff without fearing a namespace conflict in one of the applications using the library. I really hope there is a better way :-(. Michael smime.p7s Description: S/MIME cryptogr

Re: How to improve the usability of nested packages

2012-11-03 Thread Michael Schwarz
27;t look very IDE-friendly. Thanks for your tips! Michael [1]: http://docs.zope.org/zopetoolkit/codingstyle/python-style.html smime.p7s Description: S/MIME cryptographic signature -- http://mail.python.org/mailman/listinfo/python-list

Re: How to generate account number?

2012-11-03 Thread Michael Torrie
On 11/02/2012 03:13 PM, Andriy Kornatskyy wrote: > > Requirements for `account number` generator: > > 1. Issue pseudo random consistent number (must be unique for dozen millions > of records) > 2. Easy check validity (without a need to make a database call) > > Interested? Read more here: > >

10 sec poll - please reply!

2012-11-20 Thread Michael Herrmann
Hi, I'm developing a GUI Automation library (http://www.getautoma.com) and am having difficulty picking a name for the function that simulates key strokes. I currently have it as 'type' but that clashes with the built-in function. Example uses of 'type': type(ENTER) type("Hello World!") ty

Re: 10 sec poll - please reply!

2012-11-20 Thread Michael Herrmann
it might bother more experienced Python programmers who are used to a very different meaning of 'type'. Do you think that could be a problem? Thanks again to all who have replied, Michael On Tuesday, November 20, 2012 1:18:38 PM UTC+1, Michael Herrmann wrote: > Hi, >

Re: 10 sec poll - please reply!

2012-11-20 Thread Michael Herrmann
P.S.: The website is back online; our hosting provider was having technical problems... On Tuesday, November 20, 2012 1:18:38 PM UTC+1, Michael Herrmann wrote: > Hi, > > > > I'm developing a GUI Automation library (http://www.getautoma.com) and am > having difficulty

Re: 10 sec poll - please reply!

2012-11-20 Thread Michael Herrmann
parameter indicating the target. It would just be send_keys(ENTER) send_keys("Hello World!") send_keys(CTRL + 'a') Does that change your preference for 'send_keys'? Thanks a lot!!! On Tuesday, November 20, 2012 1:18:38 PM UTC+1, Michael Herrmann wrote

Re: 10 sec poll - please reply!

2012-11-21 Thread Michael Herrmann
Dear all, thanks so much for your replies. Based on your inputs, we have started to experiment with changes to our API. I hope to be able to present the results to you tomorrow. Thanks again, Michael On Tuesday, November 20, 2012 1:18:38 PM UTC+1, Michael Herrmann wrote: > Hi, > >

Re: 10 sec poll - please reply!

2012-11-22 Thread Michael Herrmann
n pressing and releasing could we think easily be done with, say hold_down(SHIFT) ... release(SHIFT) Another ambiguity of 'press' that I pointed out in my original mail is that it could also be understood as "pressing a button". The current idea is to rais

Re: 10 sec poll - please reply!

2012-11-22 Thread Michael Herrmann
But then again you might have people trying to `type(ALT + TAB)`, which in our current proposal can only be input using `press`... What do the others think about this? Cheers On Thursday, November 22, 2012 8:08:39 PM UTC+1, Chris Angelico wrote: > On Fri, Nov 23, 2012 at 5:00 AM, Micha

Re: 10 sec poll - please reply!

2012-11-23 Thread Michael Herrmann
"Hello World!") enter("test.txt", into="File name") Thanks, Michael On Thursday, November 22, 2012 7:00:55 PM UTC+1, Michael Herrmann wrote: > Dear all, > > > > thank you for your replies. After experimenting with your suggestions, we &

Re: 10 sec poll - please reply!

2012-11-23 Thread Michael Herrmann
oogle.com/forum/?fromgroups=#!topic/comp.lang.python/GjZ2hAS1Wyk Thanks, Michael On Friday, November 23, 2012 10:08:06 AM UTC+1, Michael Herrmann wrote: > Hi Steven, > > > > On Friday, November 23, 2012 6:41:35 AM UTC+1, Steven D'Aprano wrote: > > > On Thu, 22 Nov

Re: 10 sec poll - please reply!

2012-11-23 Thread Michael Herrmann
just how many people would have a problem with this. I know I'm really spamming this list and apologize. I promise it'll be over soon. Michael On Friday, November 23, 2012 5:43:08 PM UTC+1, Kwpolska wrote: > On Fri, Nov 23, 2012 at 2:42 PM, Michael Herrmann > > <...&g

Re: 10 sec poll - please reply!

2012-11-24 Thread Michael Herrmann
ou were just happily using `press` with the understanding that it presses and releases keys, so I hope this one isn't too bad. As I said, I opened a new thread solely for overriding `type` in the context of a GUI automation library: https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.

<    1   2   3   4   5   6   7   8   9   10   >