Re: tkinter and gtk problem

2014-09-26 Thread Chris Angelico
On Sat, Sep 27, 2014 at 4:15 AM, Paula Estrella wrote: > Hello, we are working on ubuntu 12.04 LTS; we use gtk to take screenshots > and we added a simple interface to select a file using tkFileDialog but it > doesn't work; is it possible that tkinter and gtk are incompatible? a test > script to o

Re: Storage Cost Calculation

2014-09-26 Thread Chris Angelico
On Sat, Sep 27, 2014 at 4:53 AM, Abohfu venant zinkeng wrote: > QUESTION > > Could someone help me with a design and a python program to implement that > design to solve the above problem? We are not going to do your homework for you. ChrisA -- https://mail.python.org/mailman/listinfo/python-li

tkinter and gtk problem

2014-09-26 Thread Paula Estrella
Hello, we are working on ubuntu 12.04 LTS; we use gtk to take screenshots and we added a simple interface to select a file using tkFileDialog but it doesn't work; is it possible that tkinter and gtk are incompatible? a test script to open a file with tkFileDialog works fine but if we import gtk eve

Storage Cost Calculation

2014-09-26 Thread Abohfu venant zinkeng
- Hard drives have been the secondary storage of choice on computers for many years. They have improved in speed, in capacity, and in cost for over 50 years. It's interesting to look at how the prices have dropped, or, conversely, how much storage your money will buy now as compared

Understanding co_lnotab

2014-09-26 Thread Shiyao Ma
When reading the notes on co_lnotab I totally got lost at this line:https://hg.python.org/cpython/file/fd0c02c3df31/Objects/lnotab_notes.txt#l31 It says,"In case #b, there's no way to know from looking at the table later how many were written." No way to know "what" is written? And why no way

Re: Microsoft Visual C++ Compiler for Python 2.7

2014-09-26 Thread Chris Angelico
On Sat, Sep 27, 2014 at 11:30 AM, Dave Angel wrote: > Not Found > > The requested URL /pipermail/python-dev/2014-Sep > tember/136499.html, was not found on this server. Someone forgot to be careful of posting URLs with punctuation near them... Trim off the comma and it'll work: https://mail.pyt

Re: Leap year

2014-09-26 Thread Gene Heskett
On Friday 26 September 2014 23:49:43 Seymore4Head did opine And Gene did reply: > Still practicing. Since this is listed as a Pseudocode, I assume this > is a good way to explain something. That means I can also assume my > logic is fading with age. > http://en.wikipedia.org/wiki/Leap_year#Algori

Leap year

2014-09-26 Thread Seymore4Head
Still practicing. Since this is listed as a Pseudocode, I assume this is a good way to explain something. That means I can also assume my logic is fading with age. http://en.wikipedia.org/wiki/Leap_year#Algorithm Me trying to look at the algorithm, it would lead me to try something like: if year

Re: Microsoft Visual C++ Compiler for Python 2.7

2014-09-26 Thread Ethan Furman
On 09/26/2014 06:30 PM, Dave Angel wrote: Not Found Worked fine for me. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re:Microsoft Visual C++ Compiler for Python 2.7

2014-09-26 Thread Dave Angel
Mark Lawrence Wrote in message: > I thought that Windows users who don't follow Python-dev might be > interested in this announcement > https://mail.python.org/pipermail/python-dev/2014-September/136499.html, > the rest of you can look away now :) > > -- > My fellow Pythonistas, ask not what

pip install virtualenvwrapper complaining there's no module named "core"

2014-09-26 Thread Tim Chase
I'm at a bit of a loss trying to figure out where this mysterious "core" module is. FWIW, this is a hosted server where "python" is 2.4, but 2.6 is available if named. Full steps were as follows: 1) Pull down "get-pip.py" as directed wget https://raw.github.com/pypa/pip/master/contrib/get-pip.p

Re: Want to win a 500 tablet?

2014-09-26 Thread Seymore4Head
On Fri, 26 Sep 2014 18:55:54 -0400, Seymore4Head wrote: >I am taking "An Introduction to Interactive Programming in Python" at >coursera.org. From their announcments page: > >Week one of the video contest is open > >For those of you that are interested in helping your peers, the >student video t

Want to win a 500 tablet?

2014-09-26 Thread Seymore4Head
I am taking "An Introduction to Interactive Programming in Python" at coursera.org. From their announcments page: Week one of the video contest is open For those of you that are interested in helping your peers, the student video tutorial competition is an excellent opportunity. The week one sub

Microsoft Visual C++ Compiler for Python 2.7

2014-09-26 Thread Mark Lawrence
I thought that Windows users who don't follow Python-dev might be interested in this announcement https://mail.python.org/pipermail/python-dev/2014-September/136499.html, the rest of you can look away now :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can d

Re: "Fuzzy" Counter?

2014-09-26 Thread Rob Gaddi
On Fri, 26 Sep 2014 15:10:43 -0400 random...@fastmail.us wrote: > On Fri, Sep 26, 2014, at 14:30, Rob Gaddi wrote: > > The "histogram" bin solution that everyone keeps trying to steer you > > towards is almost certainly what you really want. Epsilon is your > > resolution. You cannot resolve any

Re: "Fuzzy" Counter?

2014-09-26 Thread random832
On Fri, Sep 26, 2014, at 14:30, Rob Gaddi wrote: > The "histogram" bin solution that everyone keeps trying to steer you > towards is almost certainly what you really want. Epsilon is your > resolution. You cannot resolve any information below your resolution > limit. Yes, 1.49 and 1.51 wind up i

Re: any way to tell at runtime whether a callable is implemented in Python or C ?

2014-09-26 Thread Terry Reedy
On 9/26/2014 12:10 PM, Ian Kelly wrote: On Fri, Sep 26, 2014 at 6:12 AM, Stefan Behnel wrote: On Fri, Sep 26, 2014 at 5:47 PM, Wolfgang Maier wrote: is there any reliable and inexpensive way to inspect a callable from running Python code to learn whether it is implemented in Python or C befo

Re: "Fuzzy" Counter?

2014-09-26 Thread Rob Gaddi
On Tue, 23 Sep 2014 22:01:51 -0700 (PDT) Miki Tebeka wrote: > On Tuesday, September 23, 2014 7:33:06 PM UTC+3, Rob Gaddi wrote: > > > While you're at it, think > > long and hard about that definition of fuzziness. If you can make it > > closer to the concept of histogram "bins" you'll get much

Re: Flask and Python 3

2014-09-26 Thread Terry Reedy
On 9/26/2014 7:41 AM, Ned Batchelder wrote: Can't we just stick to trying to help people with Python, and let them make other decisions for themselves? I agree. The OP should watch the video on debugging, and the off-topic discussion of video versus text should end. -- Terry Jan Reedy -- h

Re: "Fuzzy" Counter?

2014-09-26 Thread random832
On Wed, Sep 24, 2014, at 00:57, Miki Tebeka wrote: > On Tuesday, September 23, 2014 4:37:10 PM UTC+3, Peter Otten wrote: > > x eq y > > y eq z > > not (x eq z) > > > > where eq is the test given above -- should x, y, and z land in the same bin? > Yeah, I know the counting depends on the order of

Re: [PyQt] Automatic Crash Reporting

2014-09-26 Thread Detlev Offenbach
Hi, I did this myself for the eric IDE. Depending upon your needs it is really simple. Just check the eric5.py main script. (http://eric-ide.python-projects.org) Detlev On Thursday 25 September 2014, 04:15:53 Timothy W. Grove wrote: > Can anyone recommend a good automatic crash reporting modul

Re: "Fuzzy" Counter?

2014-09-26 Thread Ethan Furman
On 09/23/2014 09:32 AM, Rob Gaddi wrote: On Tue, 23 Sep 2014 05:34:19 -0700 (PDT) Miki Tebeka wrote: Before I start writing my own. Is there something like collections.Counter (fore frequencies) that does "fuzzy" matching? Meaning x is considered equal to y if abs(x - y) < epsilon. (x, y and

Re: any way to tell at runtime whether a callable is implemented in Python or C ?

2014-09-26 Thread Ian Kelly
On Fri, Sep 26, 2014 at 6:12 AM, Stefan Behnel wrote: > Chris Angelico schrieb am 26.09.2014 um 10:42: >> On Fri, Sep 26, 2014 at 5:47 PM, Wolfgang Maier wrote: >>> is there any reliable and inexpensive way to inspect a callable from running >>> Python code to learn whether it is implemented in Py

Re: PyCli : Need some reference to good books or tutorials on pycli

2014-09-26 Thread Jean-Michel Pichavant
- Original Message - > From: vijna...@gmail.com > To: python-list@python.org > Sent: Friday, 26 September, 2014 2:54:48 PM > Subject: PyCli : Need some reference to good books or tutorials on pycli > > Hi Folks, > > I need to develop a CLI (PyCli or similar)on Linux. > To be more specific

Re: PyCli : Need some reference to good books or tutorials on pycli

2014-09-26 Thread Michael Torrie
On 09/26/2014 06:54 AM, vijna...@gmail.com wrote: > Hi Folks, > > I need to develop a CLI (PyCli or similar)on Linux. > To be more specific to develop Quagga(open source routing software) like > commands using python instead of C. > > Need some good reference material for the same. > > P.S googl

Re: PyCli : Need some reference to good books or tutorials on pycli

2014-09-26 Thread Michael Torrie
On 09/26/2014 06:54 AM, vijna...@gmail.com wrote: > Hi Folks, > > I need to develop a CLI (PyCli or similar)on Linux. > To be more specific to develop Quagga(open source routing software) like > commands using python instead of C. > > Need some good reference material for the same. > > P.S googl

Re: joining thread hangs unexpectedly

2014-09-26 Thread Ian Kelly
On Thu, Sep 25, 2014 at 11:45 PM, Christian Calderon wrote: > I am working on a personal project that helps minecraft clients connect to > minecraft servers using tor hidden services. I am handling the client > connection in a separate thread, but when I try to join the threads they > hang. The pr

PyCli : Need some reference to good books or tutorials on pycli

2014-09-26 Thread vijnaana
Hi Folks, I need to develop a CLI (PyCli or similar)on Linux. To be more specific to develop Quagga(open source routing software) like commands using python instead of C. Need some good reference material for the same. P.S google didn't help Thank You! Vij -- https://mail.python.org/mailman/li

Re: any way to tell at runtime whether a callable is implemented in Python or C ?

2014-09-26 Thread Stefan Behnel
Chris Angelico schrieb am 26.09.2014 um 10:42: > On Fri, Sep 26, 2014 at 5:47 PM, Wolfgang Maier wrote: >> is there any reliable and inexpensive way to inspect a callable from running >> Python code to learn whether it is implemented in Python or C before calling >> into it ? > > I'm not sure you

Re: Flask and Python 3

2014-09-26 Thread Ned Batchelder
On 9/25/14 2:26 PM, Chris “Kwpolska” Warrick wrote: On Thu, Sep 25, 2014 at 8:18 PM, Juan Christian wrote: The thing is, it’s text. I suppose I could use some text-to-speech software to provide you with a video tutorial version of that. No, you can't, if you think a video tutorial is only t

Re: Flask and Python 3

2014-09-26 Thread Rustom Mody
On Friday, September 26, 2014 3:26:34 PM UTC+5:30, Jean-Michel Pichavant wrote: > Though I'm never using videos to learn, they probably can benefit some people. > > Ask you this question : is there a major difference between videos and > presentations, if not how can we justify the money spent o

Re: Flask and Python 3

2014-09-26 Thread Jean-Michel Pichavant
- Original Message - > From: "Chris Angelico" > Cc: "Python" > Sent: Friday, 26 September, 2014 1:55:51 AM > Subject: Re: Flask and Python 3 > > On Fri, Sep 26, 2014 at 4:35 AM, Juan Christian > wrote: > > when I say video tutorial, it's implied that every video that I > > talked about

Re: any way to tell at runtime whether a callable is implemented in Python or C ?

2014-09-26 Thread Chris Angelico
On Fri, Sep 26, 2014 at 5:47 PM, Wolfgang Maier wrote: > Hi, > is there any reliable and inexpensive way to inspect a callable from running > Python code to learn whether it is implemented in Python or C before calling > into it ? I'm not sure you can say for absolute certain, but the presence of

Re: "Fuzzy" Counter?

2014-09-26 Thread Miki Tebeka
Greetings, On Wednesday, September 24, 2014 5:57:15 PM UTC+3, Ian wrote: > Then your result depends on the order of your input, which is usually > not a good thing. As stated in previous reply - I'm OK with that. > Why would you need to determine the *number* of bins in advance? You > just need t

Re: any way to tell at runtime whether a callable is implemented in Python or C ?

2014-09-26 Thread Stefan Behnel
Wolfgang Maier schrieb am 26.09.2014 um 09:47: > is there any reliable and inexpensive way to inspect a callable from > running Python code to learn whether it is implemented in Python or C > before calling into it ? Not really. Both can have very different types and very different interfaces. The

any way to tell at runtime whether a callable is implemented in Python or C ?

2014-09-26 Thread Wolfgang Maier
Hi, is there any reliable and inexpensive way to inspect a callable from running Python code to learn whether it is implemented in Python or C before calling into it ? Thanks, Wolfgang -- https://mail.python.org/mailman/listinfo/python-list

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Chris Angelico
On Fri, Sep 26, 2014 at 5:31 PM, Rock Neurotiko wrote: > Doesn't fails the render of the data, fails the verification of the SSL > certificate, all certificates have an start and end date, if you are not in > that range, your browser don't verify it (that's to prevent malicious SSL > certs). Prec

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Rock Neurotiko
2014-09-26 9:25 GMT+02:00 Gmane : > Hi, > > Thanks - that was the problemincorrect system date/time. The system > date time and hardware date time were off. Adjusted the system time to use > one of the online time servers and then used hwclock --systohc (as a root > user) to set the hardware

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Gmane
Hi, Thanks - that was the problemincorrect system date/time. The system date time and hardware date time were off. Adjusted the system time to use one of the online time servers and then used hwclock --systohc (as a root user) to set the hardware clock. But it is weird that the data from a

Re:https://www.python.org/ seems to be down

2014-09-26 Thread Dang Zhiqiang
Working for me, In beijing is OK. At 2014-09-26 14:46:15, "Gmane" wrote: >https://www.python.org/ seems to be down when I last checked on 06:45 UTC on >26th Sep 2014. >Anybody else experiencing this problem? > >-- >https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.o

joining thread hangs unexpectedly

2014-09-26 Thread Christian Calderon
I am working on a personal project that helps minecraft clients connect to minecraft servers using tor hidden services. I am handling the client connection in a separate thread, but when I try to join the threads they hang. The problem is in the file called hiddencraft.py, in the function main at t

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Rock Neurotiko
2014-09-26 9:05 GMT+02:00 Gmane : > Chris Angelico gmail.com> writes: > > I am getting the following error in my Firefox browser (OpenSuse OS): > > Secure Connection Failed > > An error occurred during a connection to www.python.org. The OCSP response > is not yet valid (contains a date in the fu

Re: https://www.python.org/ seems to be down

2014-09-26 Thread Gmane
Chris Angelico gmail.com> writes: > > On Fri, Sep 26, 2014 at 4:46 PM, Gmane > yahoo.com.dmarc.invalid> wrote: > > https://www.python.org/ seems to be down when I last checked on 06:45 UTC on > > 26th Sep 2014. > > Anybody else experiencing this problem? > > Working for me. Are you getting DNS