[issue19214] shutil.make_archive should recognize extensions in filenames

2014-04-29 Thread William Tisäter
William Tisäter added the comment: I'm not sure if this is a suitable feature in `make_archive()`, it would only introduce a more expensive and ugly lookup. Using this method with a pre-defined filename including extension must be rare. If you really want this behaviour, I would prefer having

[issue20962] Rather modest chunk size in gzip.GzipFile

2014-04-28 Thread William Tisäter
William Tisäter added the comment: That makes sense. I proceeded and updated `Lib/gzip.py` to use `io.DEFAULT_BUFFER_SIZE` instead. This will change the existing behaviour in two ways: * Start using 1024 * 8 as buffer size instead of 1024. * Add one more kwarg (`buffer_size`) to `GzipFile

[issue20050] distutils should check PyPI certs when connecting to it

2014-04-25 Thread William Tisäter
Changes by William Tisäter will...@defunct.cc: -- nosy: +tiwilliam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20050 ___ ___ Python-bugs-list

[issue20962] Rather modest chunk size in gzip.GzipFile

2014-04-24 Thread William Tisäter
William Tisäter added the comment: I played around with different file and chunk sizes using attached benchmark script. After several test runs I think 1024 * 16 would be the biggest win without losing too many μs on small seeks. You can find my benchmark output here: https://gist.github.com

Re: Latching variables in function

2014-04-09 Thread William Ray Wing
On Apr 9, 2014, at 12:35 AM, Terry Reedy tjre...@udel.edu wrote: On 4/8/2014 4:09 PM, Grawburg wrote: I've probably used the wrong term - I'm thinking of what I do when writing PLC code - so I can't find how to do this in my reference books. This is part of a project I'm working on with a

Re: Switching between cmd.CMD instances

2014-04-02 Thread William Ray Wing
On Apr 2, 2014, at 1:03 AM, Josh English joshua.r.engl...@gmail.com wrote: I have a program with several cmd.Cmd instances. I am trying to figure out what the best way to organize them should be. I've got my BossCmd, SubmissionCmd, and StoryCmd objects. The BossCmd object can start

[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-02 Thread William Ehlhardt
New submission from William Ehlhardt: The following Python runs unnecessarily slowly: import fractions fractions.Fraction(6249919, 625) ** 89993 The problem here is that Fraction.__pow__ constructs a new Fraction() to return, and Fraction.__new__ tries to gcd to normalize the numerator

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-03-31 Thread William Schwartz
New submission from William Schwartz: In Python 2.7 and 3.3, decorating a unittest.TestCase subclass with unittest.expectedFailure caused test discover to skip the decorated test case. Python 3.4 apparently ignores the decorator when applied to classes. The attached file when run with Python

Re: Python programming

2014-03-07 Thread William Ray Wing
On Mar 7, 2014, at 1:03 PM, John Ladasky john_lada...@sbcglobal.net wrote: As for FORTRAN? This week, I actually downloaded an application which required a FORTRAN compiler. This is the only FORTRAN application I've ever needed. It's not old code, the first revision came out about 10

Re: Python programming

2014-03-06 Thread William Ray Wing
On Mar 6, 2014, at 8:24 PM, Roy Smith r...@panix.com wrote: In article mailman.7884.1394151937.18130.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On 06 Mar 2014 02:51:54 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst) declaimed the following: In article

Re: Mac vs. Linux for Python Development

2014-02-24 Thread William Ray Wing
On Feb 23, 2014, at 3:43 AM, twiz twiza...@gmail.com wrote: Hello, I'm sure this is a common question but I can't seem to find a previous thread that addresses it. If one one exists, please point me to it. I've been developing with python recreationally for a while on Ubuntu but will

Re: Coding a simple state machine in python

2014-02-24 Thread William Ray Wing
On Feb 24, 2014, at 8:30 PM, Ronaldo abhishek1...@gmail.com wrote: How do I write a state machine in python? I have identified the states and the conditions. Is it possible to do simple a if-then-else sort of an algorithm? Below is some pseudo code: if state == ABC: do_something()

Re: Just For Inquiry

2014-02-20 Thread William Ray Wing
On Feb 20, 2014, at 5:48 PM, John Gordon gor...@panix.com wrote: In mailman.7196.1392914525.18130.python-l...@python.org shivang patel patelshivan...@gmail.com writes: So, I kindly request to you please, give me a very brief info regarding *Role of Project Manager*. In my organization,

Re: SSH/Telnet program to Router/switch

2014-02-19 Thread William Ray Wing
On Feb 19, 2014, at 3:14 AM, Sujith S sujith...@gmail.com wrote: Hi, I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using expect/send. Do we have expect available in python as well or need to use

Re: Python programming

2014-02-12 Thread William Ray Wing
On Feb 12, 2014, at 10:04 PM, Roy Smith r...@panix.com wrote: In article ldhcau$d9v$1...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: On 2014-02-13, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: An S-100 wire-wrap board. Yup, been there done that! Never did

Re: Newcomer Help

2014-02-10 Thread William Ray Wing
On Feb 10, 2014, at 11:10 AM, Walter Hughey wkhug...@gmail.com wrote: I am new to Python programming, actually new to any programming language. I sent the email below to the pythonmac-...@python.org a few days ago. So far I have not seen a reply, actually, I have not seen anything from

Re: [RELEASED] Python 3.3.4 release candidate 1

2014-01-27 Thread William Ray Wing
On Jan 27, 2014, at 8:55 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 27/01/2014 07:36, Georg Brandl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm reasonably happy to announce the Python 3.3.4 release candidate 1.

Re: Learning python networking

2014-01-15 Thread William Ray Wing
On Jan 15, 2014, at 11:31 AM, Chris Angelico ros...@gmail.com wrote: On Thu, Jan 16, 2014 at 3:25 AM, William Ray Wing w...@mac.com wrote: On Jan 15, 2014, at 7:52 AM, Chris Angelico ros...@gmail.com wrote: One of the fundamentals of the internet is that connections *will* break. A friend

Re: Learning python networking

2014-01-15 Thread William Ray Wing
On Jan 15, 2014, at 7:52 AM, Chris Angelico ros...@gmail.com wrote: [megabyte] One of the fundamentals of the internet is that connections *will* break. A friend of mine introduced me to Magic: The Gathering via a program that couldn't handle drop-outs, and it got extremely frustrating - we

Re: How to get Mac address of ethernet port?

2014-01-13 Thread William Ray Wing
On Jan 11, 2014, at 11:34 AM, Michael Torrie torr...@gmail.com wrote: On 01/11/2014 07:35 AM, Andriy Kornatskyy wrote: Sam, How about this? from uuid import getnode as get_mac '%012x' % get_mac() This seems to work if you have only one ethernet adapter. Most computers have two

Re: Looking for tips for moving dev environment from Windows to Mac

2014-01-08 Thread William Ray Wing
On Jan 8, 2014, at 9:11 AM, pyt...@bdurham.com wrote: Long time Windows developer making the move to Apple platform. My new development environment is a 15 MacBook Pro with 16 Gb RAM and a 512 Gb SSD. I'm totally new to the world of Apple hardware and software and am looking for advice on

Re: Looking for tips for moving dev environment from Windows to Mac

2014-01-08 Thread William Ray Wing
On Jan 8, 2014, at 12:26 PM, Bob Hartwig bobje...@gmail.com wrote: 4. Best visual diff utility for Mac? opendiff. I think it's part of xcode. Regarding Python IDEs, I really like PyCharm. It's written in Java, and sometimes you can tell that by its performance, but it's very featureful

Re: Question RE urllib

2013-12-16 Thread William Ray Wing
On Dec 16, 2013, at 6:40 AM, Jeff James j...@jeffljames.com wrote: So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are down when, in fact, they are actually up. These sites do not require a logon in order for the home

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

2013-12-09 Thread William Ray Wing
On Dec 9, 2013, at 11:57 AM, rusi rustompm...@gmail.com wrote: On Monday, December 9, 2013 5:53:41 PM UTC+5:30, Oscar Benjamin wrote: 5) Learning to program should be painful and we should expect the students to complain about it (someone actually said that!) but the pain makes them better

Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !

2013-11-23 Thread William Ray Wing
On Nov 23, 2013, at 1:42 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Nov 22, 2013 at 7:18 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I'm not an expert on Indian English, but I understand that in that dialect it is grammatically correct to say the codes, just as in

Re: Program Translation - Nov. 14, 2013

2013-11-16 Thread William Ray Wing
On Nov 16, 2013, at 4:31 AM, Terence tbwri...@bigpond.net.au wrote: I downloaded the packed file mentioned, extracted the files and had a look at the Fortran sources given: ETGTAB.FOR and ETGTAB.F The ETGTAB.FOR file had double spacing, which Iremoved automatically, then compared the two

Re: Automation

2013-11-16 Thread William Ray Wing
On Nov 16, 2013, at 1:17 AM, Larry Hudson org...@yahoo.com wrote: [byte] However, that's just a side comment. I wanted to mention my personal peeve... I notice it's surprisingly common for people who are native English-speakers to use 'to' in place of 'too' (to little, to late.), your

Re: Python Beginner

2013-11-16 Thread William Ray Wing
On Nov 16, 2013, at 5:25 PM, ngangsia akumbo ngang...@gmail.com wrote: I am called Richard m from western Africa, Cameroon. It was a pleasure for me to join this group. I have been learning python for about 4 months now and i have already mastered alot as far as the language is concern.

Re: understanding someone else's program

2013-11-15 Thread William Ray Wing
On Nov 15, 2013, at 6:05 AM, C. Ng ngc...@gmail.com wrote: Hi all, Please suggest how I can understand someone else's program where - documentation is sparse - in function A, there will be calls to function B, C, D and in those functions will be calls to functions R,S,T and so on

Re: python 3.3 repr

2013-11-15 Thread William Ray Wing
On Nov 15, 2013, at 10:18 AM, Robin Becker ro...@reportlab.com wrote: On 15/11/2013 15:07, Joel Goldstick wrote: Cool, someone here is older than me! I came in with the 8080, and I remember split octal, but sixes are something I missed out on. The pdp 10/15 had 18 bit

Re: To whoever hacked into my Database

2013-11-13 Thread William Ray Wing
On Nov 13, 2013, at 1:27 PM, superchromix mark...@gmail.com wrote: hi all, I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of

Re: datetime question

2013-11-12 Thread William Ray Wing
On Nov 12, 2013, at 10:57 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: Στις 12/11/2013 5:54 μμ, ο/η Tim Chase έγραψε: On 2013-11-12 17:24, Ferrous Cranus wrote: But what of the server was in California and i live in Greece? How would datetime.now() work then? Best practices say to

Re: using print() with multiprocessing and pythonw

2013-11-12 Thread William Ray Wing
On Nov 12, 2013, at 2:12 PM, Isaac Gerg isaac.g...@gergltd.com wrote: I launch my program with pythonw and begin it with the code below so that all my print()'s go to the log file specified. if sys.executable.find('pythonw') =0: # Redirect all console output to file.

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski
New submission from William Grzybowski: Hello, Currently python setup.py restricts FreeBSD host platform by version, e.g. freebsd7, freebsd8. It is not only out-of-date (we already are on freebsd11) but also doesn't seem to have a good reason to do so. Proposed patches replaces

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski
Changes by William Grzybowski willia...@gmail.com: Added file: http://bugs.python.org/file32574/tip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19554

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski
Changes by William Grzybowski willia...@gmail.com: Removed file: http://bugs.python.org/file32573/tip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19554

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski
William Grzybowski added the comment: Semaphores broken or not (it seems to work just fine in freebsd9) python is still usable overall. I see no reason to arbitrarily chose what freebsd platform to build. -- ___ Python tracker rep

[issue19554] Enable all freebsd* host platforms

2013-11-11 Thread William Grzybowski
William Grzybowski added the comment: Ah, I see, I made a misinterpretation of setup.py. Sorry about that. So please ignore the setup.py changes in the patch ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19554

Re: i want to know about python language

2013-11-07 Thread William Ray Wing
On Nov 7, 2013, at 1:51 AM, Kewl p kewlp...@gmail.com wrote: On Thursday, November 7, 2013 8:48:26 AM UTC+5:30, Kewl p wrote: h can i get link of a ide in which python can run,,...?? -- https://mail.python.org/mailman/listinfo/python-list There are actually almost too many. Googling

Re: how to load test a web app?

2013-11-06 Thread William Ray Wing
On Nov 6, 2013, at 1:25 PM, Skip Montanaro s...@pobox.com wrote: Have a look at selenium and sauce labs: http://www.seleniumhq.org/ https://saucelabs.com/ Maybe we should pass that information along to Kathleen Sebelius. :-) Skip Definitely! Anyone seen the cover of this week's issue

Re: multiprocessing: child process race to answer

2013-11-02 Thread William Ray Wing
On Nov 2, 2013, at 1:03 AM, smhall05 smhal...@gmail.com wrote: On Friday, November 1, 2013 10:52:40 PM UTC-4, MRAB wrote: On 02/11/2013 02:35, smhall05 wrote: I am using a basic multiprocessing snippet I found: #- from multiprocessing

Re: multiprocessing: child process race to answer (forgot to Cc: the list)

2013-11-02 Thread William Ray Wing
finds the answer in about 250ms, but since I can't stop the other processes, it takes about 800ms before I can use the answer. Do you recommend a global variable flag? Any other suggestions? On Nov 2, 2013 8:17 AM, William Ray Wing w...@mac.com wrote: On Nov 2, 2013, at 1:03 AM, smhall05

Re: Basic Python Questions - Oct. 31, 2013

2013-11-01 Thread William Ray Wing
On Oct 31, 2013, at 5:31 AM, E.D.G. edgrs...@ix.netcom.com wrote: Posted by E.D.G. on October 31, 2013 The following are several relatively basic questions regarding Python's capabilities. I am not presently using it myself. At the moment a number of people including myself are

Re: Basic Python Questions - Oct. 31, 2013

2013-11-01 Thread William Ray Wing
On Nov 1, 2013, at 2:08 PM, Ethan Furman et...@stoneleaf.us wrote: On 11/01/2013 08:42 AM, William Ray Wing wrote: Granted, this performance is based on pulling in libraries. It imports numpy, mathplotlib, and wx to handle the fast array calculations, the plotting, and the GUI

Re: Error Testing

2013-10-31 Thread William Ray Wing
On Oct 31, 2013, at 1:17 PM, Neil Cerutti ne...@norwich.edu wrote: On 2013-10-31, rusi rustompm...@gmail.com wrote: On Thursday, October 31, 2013 8:50:27 PM UTC+5:30, Neil Cerutti wrote: wrote: This suggests that Pascal went against established practice. This is false. FORTRAN used = and

Problem in Multiprocessing module

2013-10-11 Thread William Ray Wing
I'm running into a problem in the multiprocessing module. My code is running four parallel processes which are doing network access completely independently of each other (gathering data from different remote sources). On rare circumstances, the code blows up when one of my processes has do

Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-10 Thread William Ray Wing
On Oct 10, 2013, at 10:12 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-10-10, Chris Angelico ros...@gmail.com wrote: On Fri, Oct 11, 2013 at 12:09 AM, Roy Smith r...@panix.com wrote: BTW, one of the earliest things that turned me on to Python was when I discovered that it uses j

Re: DNS query against a specific server.

2013-09-30 Thread William Ray Wing
On Sep 30, 2013, at 7:42 AM, Michel Albert exh...@gmail.com wrote: Hi, ``socket.gethostbyname`` sends the DNS resolution query to the DNS server specified by the OS. Is there an easy way to send a query to a *different* server? I see that twisted.names allows you to do this, but,

Re: Possibilities of Building Stacked Neural Networks

2013-09-25 Thread William Ray Wing
On Sep 25, 2013, at 5:43 AM, Robert Kern robert.k...@gmail.com wrote: On 2013-09-24 19:03, Michael Lamport Commons wrote: Dear Members of this list-serve: Would it be possible to build “stacked neural networks” like the one shown in the attached document? You may have a

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-21 Thread William Bryant
On Saturday, September 21, 2013 1:39:41 AM UTC+12, Duncan Booth wrote: William Bryant gogobe...@gmail.com wrote: Thanks a lot! I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-21 Thread William Bryant
On Saturday, September 21, 2013 1:39:41 AM UTC+12, Duncan Booth wrote: William Bryant gogobe...@gmail.com wrote: Thanks a lot! I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we

Re: Tryign to send mail via a python script by using the local MTA

2013-09-21 Thread William Ray Wing
On Sep 21, 2013, at 5:21 AM, Νίκος nikos.gr...@gmail.com wrote: On 18/9/2013 2:29 πμ, Dennis Lee Bieber wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus nikos.gr...@gmail.com declaimed the following: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Bryant
On Friday, September 20, 2013 11:09:03 AM UTC+12, Ian wrote: On Thu, Sep 19, 2013 at 1:22 PM, William Bryant gogobe...@gmail.com wrote: It was the other functions above it. Thanks. but I tried to do the while loop - I don't think I did it right, I am novice in python and I am 13 years

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-20 Thread William Ray Wing
On Sep 20, 2013, at 3:01 AM, William Bryant gogobe...@gmail.com wrote: [byte] Thanks a lot! I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we are learning statistics and we are allowed our

Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-19 Thread William Bryant
the word 'def' has squiggily lines but the program works fine. It says: Syntax Error: expected an indented block. - why? def restart(): print( Cacluation DONE! ) restart = input(\nEnter yes if you want to make a new list and no if

Re: Language design

2013-09-18 Thread William Ray Wing
On Sep 18, 2013, at 11:12 AM, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 19, 2013 at 1:08 AM, Neil Cerutti ne...@norwich.edu wrote: On 2013-09-18, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 19, 2013 at 12:57 AM, Neil Cerutti ne...@norwich.edu wrote: There's lots of poetry with

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
of a list of numbers *# #* and the mode of a list of strings because that is what we are *# #* learning in math atm in school :P *# #**# #* Author: William Bryant

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
*# #**# #* Author: William Bryant*# #**# #* Created: 11/09/2013

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Sorry guys, I didn't read anything u said. Because I just figured it out on my own :) I'll read it now. But u can check out my program I have done so far (It works but I think it needs some tidying up.) :) Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I calculate a mean with python?

2013-09-17 Thread William Bryant
Thanks to all and @Joel Goldstick, I am learning python through youtube. They explained Global and Local variables to me. :) Thanks for that critisism, it really helps. I am 13 years old and I am looking forward to studing programming in University! :DD --

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread William Ray Wing
On Sep 17, 2013, at 5:42 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: On 17/9/2013 7:30 μμ, Denis McMahon wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? Python can not control

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread William Ray Wing
On Sep 16, 2013, at 12:15 PM, Ferrous Cranus nikos.gr...@gmail.com wrote: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37,

How do I calculate a mean with python?

2013-09-16 Thread William Bryant
Hey I am new to python so go easy, but I wanted to know how to make a program that calculates the maen. List = [15, 6, 6, 7, 8, 9, 40] def mean(): global themean, thesum for i in List: thecount = List.count(i) thesum = sum(List) themean = thesum / thecount Why

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread William Bryant
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote: On 12 September 2013 07:04, William Bryant gogobe...@gmail.com wrote: Thanks everyone for helping but I did listen to you :3 Sorry. This is my code, it works, I know it's not the best way to do it and it's the long

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread William Bryant
Thanks for the contructive critisism - :D I'll try fix it up! -- https://mail.python.org/mailman/listinfo/python-list

Re: Help please, why doesn't it show the next input?

2013-09-12 Thread William Bryant
because that is what we are *# #* learning in math atm in school :P *# #**# #* Author: William Bryant

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
@Dave Angel What is .lower() ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
@Jugurtha Hadjar What does user_input.lower() mean/do? -- https://mail.python.org/mailman/listinfo/python-list

Help please, why doesn't it show the next input?

2013-09-10 Thread William Bryant
Hey, I am very new to python, I am 13 years old. I want to be able to make a program the caculates the mean, meadian and mode. When i run the program, an input field pops up and says 'Does your list contain, a number or a string?' like I want it to, but when I type in something that is not one

Re: Help please, why doesn't it show the next input?

2013-09-10 Thread William Bryant
On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote: In ef8de6db-5f35-4d07-8306-bcec47b1e...@googlegroups.com William Bryant gogobe...@gmail.com writes: Hey, I am very new to python, I am 13 years old. I want to be able to make = a program the caculates the mean

Re: Can I trust downloading Python?

2013-09-09 Thread William Ray Wing
On Sep 9, 2013, at 12:23 PM, Michael Torrie torr...@gmail.com wrote: On 09/09/2013 05:02 AM, Anthony Papillion wrote: But (and this is stepping into *really* paranoid territory here. But maybe not beyond the realm of possibility) it would not be so hard to compromise compilers at the chip

Re: Cross Platform

2013-09-05 Thread William Ray Wing
On Sep 4, 2013, at 11:47 PM, Chandru Rajendran chandru_rajend...@infosys.com wrote: Hi all, I have a doubt regarding the python cross platform. I think you mean you have a question... If we write Class in windows ,whether we can without any modifications in Linux, if so then how about

Re: Unable to redirect the subprocess CMD.exe to txt file. Please help !!!

2013-09-03 Thread William Ray Wing
On Sep 3, 2013, at 9:54 AM, Venkatesh venkatesh.to...@gmail.com wrote: Hello comp.lang.python Group, I am trying to invoke a subprocess in Python as below import sys import time import os import subprocess DETACHED_PROCESS = 0x0008 path = r'C:\Windows\System32\cmd.exe /k ping

Re: Module for dialoging with intercative programs, sockets, files, etc.

2013-08-06 Thread William Ray Wing
On Aug 6, 2013, at 4:44 AM, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Am 05.08.2013 21:38, schrieb Olive: I have found telnetlib which make very easy to interact with a telnet server, especially the read_until command. I wonder if something similar exits for other things that a

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

2013-07-18 Thread William Bai
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. William 在 2013年7月18日星期四UTC+8下午12时45分01秒,William Bai写道: Hi: Previously, we found that our python scripts consume too

Re: crack a router passcode

2013-07-09 Thread William Ray Wing
On Jul 9, 2013, at 12:55 AM, saadharana saadhar...@gmail.com wrote: I need to crack my router passcode to see what firmware it's running. There's a passcode set but I don't remember it and it's not written down anywhere. This question really isn't appropriate for a python-list, BUT -

Re: Important features for editors

2013-07-04 Thread William Ray Wing
On Jul 4, 2013, at 9:22 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-07-04 05:02, Dave Angel wrote: [snip an excellent list of things to look for in an editor] Also, - the ability to perform changes in bulk, especially across files. Often, this is done with the ability to

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2013-07-03 Thread William Schwartz
William Schwartz added the comment: Looks like this issue is closed, but I got IDLE to crash. On Python 3.3.2, Windows 7, and Tk version 8.5, IDLE crashes when pasting \U0001F382 (Unicode birthday cake character). Below is the version string for the Python I'm running. Python 3.3.2 (v3.3.2

Re: Is this PEP-able? fwhile

2013-06-26 Thread William Ray Wing
On Jun 26, 2013, at 7:49 AM, Fábio Santos fabiosantos...@gmail.com wrote: On 26 Jun 2013 11:45, jim...@aol.com wrote: On Tuesday, June 25, 2013 9:30:54 PM UTC+5:30, Ian wrote: In my experience the sorts of people who preach one exit point are also all about defining preconditions and

[issue18274] python: not found

2013-06-20 Thread William Moreno
New submission from William Moreno: mklib: Making FreeBSD static library: librtasm.a gmake[4]: Leaving directory `/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rtasm' gmake[4]: Entering directory `/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/util' python

[issue18274] python: not found

2013-06-20 Thread William Moreno
William Moreno added the comment: Hi ... tks for answer me   What is the right place ? Yes, I have installed Python using FreeBSD-ports? I am using FreeBSD-ports regulary. William Elasio Moreno Albarracin Ingeniero de Sistemas de la Universidad Antonio Nariño Universidad Industrial de

Re: The state of pySerial

2013-05-29 Thread William Ray Wing
On May 29, 2013, at 2:23 PM, Ma Xiaojun damage3...@gmail.com wrote: Hi, all. pySerial is probably the solution for serial port programming. Physical serial port is dead on PC but USB-to-Serial give it a second life. Serial port stuff won't interest end users at all. But it is still used in

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-20 Thread William Moreno
William Moreno added the comment: Thank's a lot by answered me, I am now at FreeBSD team in order to fix this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18008

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-20 Thread William Moreno
William Moreno added the comment: [SOLVED on FreeBSD 9.1] if anyone need to see http://www.freshports.org/lang/python33/ thank's again to alls specyally to Marcus von Appen (marcusva) -- ___ Python tracker rep...@bugs.python.org http

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread William Moreno
New submission from William Moreno: cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -pthread -pthread Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects

Re: Message passing syntax for objects | OOPv2

2013-05-10 Thread William Ray Wing
On May 10, 2013, at 12:55 AM, Roy Smith r...@panix.com wrote: In article mailman.1523.1368160434.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: The first hard disk I ever worked with stored 20MB in the space of a 5.25 slot (plus its associated ISA controller card).

Re: Why do Perl programmers make more money than Python programmers

2013-05-07 Thread William Ray Wing
On May 7, 2013, at 4:31 PM, Martijn Lievaart m...@rtij.nl.invlalid wrote: On Sun, 05 May 2013 17:07:41 -0400, Roy Smith wrote: There *are* programming languages worse than PHP. Have you ever tried britescript? Have you tried MUMPS? :-) M4 Which one? The original MUMPS

Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread William Ray Wing
I run a bit of python code that monitors my connection to the greater Internet. It checks connectivity to the requested target IP addresses, logging both successes and failures, once every 15 seconds. I see failures quite regularly, predictably on Sunday nights after midnight when various

Re: Finding the source of an exception in a python multiprocessing program

2013-04-24 Thread William Ray Wing
On Apr 24, 2013, at 4:31 PM, Neil Cerutti ne...@norwich.edu wrote: On 2013-04-24, William Ray Wing w...@mac.com wrote: When I look at the pool module, the error is occurring in get(self, timeout=None) on the line after the final else: def get(self, timeout=None): self.wait

[issue7980] time.strptime not thread safe

2013-03-12 Thread William McBrine
William McBrine added the comment: I'm still seeing this, in the 2.7.2 that comes with OS X 10.8.2. -- nosy: +William.McBrine ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7980

Re: listbox binding..what is the current selection?

2013-03-07 Thread William Ray Wing
On Mar 6, 2013, at 11:38 PM, Rex Macey xer0...@gmail.com wrote: Thanks. I have spent time with the docs, at least with the Python v3.3 and tkinter v8.5 (pdf). I wish they had more examples. My approach is to browse the docs, try a program, fail, read the docs, try again. When I can't

[issue17224] can not open idle in python 2.7.3

2013-02-18 Thread william wu
New submission from william wu: I install python 2.7 in windows xp 32bit. I try to open idle using C:\Python27python.exe Lib\idlelib\idle.py, But return error as following: Traceback (most recent call last): File Lib\idlelib\idle.py, line 11, in module idlelib.PyShell.main() File C

[issue17201] Use allowZip64=True by default

2013-02-14 Thread William Mallard
William Mallard added the comment: See attached. The patch updates ZipFile, its documentation, and its unit tests. -- keywords: +patch Added file: http://bugs.python.org/file29074/zipfile_zip64_by_default.patch ___ Python tracker rep

[issue17201] Use allowZip64=True by default

2013-02-14 Thread William Mallard
Changes by William Mallard w...@llard.net: Added file: http://bugs.python.org/file29075/zipfile_zip64_by_default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17201

[issue17189] Add zip64 support to shutil

2013-02-13 Thread William Mallard
William Mallard added the comment: Ok, here's a patch that makes zip64 the default in make_archive() when format='zip'. I also agree that ZipFile should set allowZip64=True by default. (PKZIP has supported zip64 since 2001!) -- Added file: http://bugs.python.org/file29060

[issue17189] Add zip64 support to shutil

2013-02-13 Thread William Mallard
William Mallard added the comment: Documentation added. See attached. -- Added file: http://bugs.python.org/file29063/shutil_zip64_by_default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17189

[issue17201] Use allowZip64=True by default

2013-02-13 Thread William Mallard
William Mallard added the comment: Enabling ZIP64 seems like a reasonable default. The documentation justifies the current 32-bit default with outdated information: ZIP64 extensions are disabled by default because the default 'zip' and 'unzip' commands on Unix (the InfoZIP utilities) don't

[issue17189] Add zip64 support to shutil

2013-02-11 Thread William Mallard
New submission from William Mallard: This patch enables creation of 64-bit zip files via make_archive(). make_archive uses ZipFile to create zip files. ZipFile already supports creation of 64-bit archives via a kwarg, but make_archive hard-codes it to 32-bit. This patch exposes the option

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-30 Thread William D. Colburn
William D. Colburn added the comment: What it should do is be consistent (predictable) in it's handling of input and output. If it accepts unicode and outputs unicode, then it should accept unicode and output unicode, not accept garbage and then barf. Valid data should be consistantly valid

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-28 Thread William D. Colburn
William D. Colburn added the comment: I'm ranting against an improper bug closure and bad behavior from the python sqlite3. Treating invalid data as sometimes valid and sometime as invalid is a problem. Problems with a Python module are not anuser-error, they are an implementation error

<    1   2   3   4   5   6   7   8   9   >