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

2013-11-27 Thread Antoon Pardon
Op 26-11-13 22:42, Tim Delaney schreef: > On 27 November 2013 03:57, Antoon Pardon > wrote: > > > So I can now ask my questions in dutch and expect others to try and > understand me instead of me asking them in english? Or can I use > literal tran

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

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 7:16 PM, Antoon Pardon wrote: > However that second sentence doesn't make much sense to me. Modern > languages contain a subset that is called the standard language. This > is the subset that is generally taught. Especially to those for whom > the language is foreign. So wh

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

2013-11-27 Thread Antoon Pardon
Op 27-11-13 09:19, Chris Angelico schreef: > On Wed, Nov 27, 2013 at 7:16 PM, Antoon Pardon > wrote: >> However that second sentence doesn't make much sense to me. Modern >> languages contain a subset that is called the standard language. This >> is the subset that is generally taught. Especially

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

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 7:31 PM, Antoon Pardon wrote: > Op 27-11-13 09:19, Chris Angelico schreef: >> On Wed, Nov 27, 2013 at 7:16 PM, Antoon Pardon >> wrote: >>> However that second sentence doesn't make much sense to me. Modern >>> languages contain a subset that is called the standard language

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

2013-11-27 Thread Antoon Pardon
Op 27-11-13 09:36, Chris Angelico schreef: > On Wed, Nov 27, 2013 at 7:31 PM, Antoon Pardon > wrote: >> Op 27-11-13 09:19, Chris Angelico schreef: >>> On Wed, Nov 27, 2013 at 7:16 PM, Antoon Pardon >>> wrote: However that second sentence doesn't make much sense to me. Modern languages c

Re: Python application for rpm creation

2013-11-27 Thread Matthias Runge
On 11/27/2013 03:28 AM, Amit Saha wrote: > On Wed, Nov 27, 2013 at 1:39 AM, Unix SA wrote: >> >>> Sounds to me more like he is looking to package some other in house >>> software, as opposed to packaging python specific libraries, etc.. >> >> - Yes, This is exactly i am looking at >> >> >>> Doing

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

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 7:41:54 AM UTC+5:30, Ned Batchelder wrote: > On 11/26/13 8:26 PM, Rick Johnson wrote: > And will you be here to explain to time-travelling Shakespeare why we > are all of us speaking English completely wrong (to his ears)? And to my (Indian!!) ears when Tim says

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

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 3:02:54 PM UTC+5:30, rusi wrote: [Last line cut-off by mistake!] > It is my impression that the arguments that happen in/around > programming languages are more-heat-less-light than in typical > art/science because artistic questions masquerade as sci

Re: Still off topic. Deal with it. [was Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !]

2013-11-27 Thread Jussi Piitulainen
Steven D'Aprano writes: > On Tue, 26 Nov 2013 20:24:16 -0800, Rick Johnson wrote: > > > Although i would strongly prefer for him to choose ubiquitous > > definitions *over* regional definitions when posting to internet > > forums, i would have happily ignored this thread had it not been > > for S

Re: Completely and utterly Off Topic [was Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !]

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 12:18:11 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 26 Nov 2013 17:26:48 -0800, Rick Johnson wrote: > [...] > > "A new home-run record!" > What is this "home-run" of which you speak? Houses don't generally run. > Surely you're not using a regional idiom outsid

Re: Completely and utterly Off Topic [was Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !]

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 8:47 PM, rusi wrote: > On Wednesday, November 27, 2013 12:18:11 PM UTC+5:30, Steven D'Aprano wrote: >> On Tue, 26 Nov 2013 17:26:48 -0800, Rick Johnson wrote: > >> [...] >> > "A new home-run record!" > >> What is this "home-run" of which you speak? Houses don't generally r

Re: Completely and utterly Off Topic [was Re: Got a Doubt ! Wanting for your Help ! Plz make it ASAP !]

2013-11-27 Thread Mark Lawrence
On 27/11/2013 06:48, Steven D'Aprano wrote: On Tue, 26 Nov 2013 17:26:48 -0800, Rick Johnson wrote: Even if you are correct that the OP is using a regional variation of English, you fail to realize that this "regional redefinition" of the English word: "doubts" to mean what the *majority* of E

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

2013-11-27 Thread Mark Lawrence
On 27/11/2013 08:16, Antoon Pardon wrote: Op 26-11-13 22:42, Tim Delaney schreef: On 27 November 2013 03:57, Antoon Pardon mailto:antoon.par...@rece.vub.ac.be>> wrote: So I can now ask my questions in dutch and expect others to try and understand me instead of me asking them in engli

Re: Recursive generator for combinations of a multiset?

2013-11-27 Thread John O'Hagan
On Tue, 26 Nov 2013 10:33:06 + Oscar Benjamin wrote: > On 26 November 2013 06:18, John O'Hagan > wrote: > > [...] > > > > def _multicombs(prepend, words, r, chkstr): > > """chkstr is the string of remaining availalable characters""" > > if r == 0: > > yield prepend, chkstr >

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

2013-11-27 Thread Ned Batchelder
On 11/26/13 11:24 PM, Rick Johnson wrote: On Tuesday, November 26, 2013 8:11:54 PM UTC-6, Ned Batchelder wrote: Rick, through all the verbiage, I've lost track of what you are advocating. The OP asks a question and uses the word doubt in a way that is unusual to you and many other, though not

Wrapping around a list

2013-11-27 Thread amjadcsu
Hello, I am working on a problem (Bioinformatics domain) where all possible combinations of input string needs to be printed as sublist For example: Input string : "LEQN" Output= "[L","E","Q","N"]["LE","EQ","QN","NL"] ["LEQ","EQN","QNE","NLE"] ["LEQN"] The code i have written for this is as foll

Re: Wrapping around a list

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 9:46 PM, wrote: > So the question i am asking , how can i add wrapping around sublist in my > sliding window function. By the look of what you now have, the easiest way would probably be to duplicate the list before you slide. So instead of working on "LEQN", you work on

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

2013-11-27 Thread Paul Rudin
rusi writes: > Propositionally: All languages are equal -- Turing complete As an aside, not all languages are Turing complete. For example Charity is a language with the property that programs are guaranteed to terminate. -- https

Re: Wrapping around a list

2013-11-27 Thread Amjad Syed
On Wednesday, November 27, 2013 1:53:54 PM UTC+3, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 9:46 PM, wrote: > > > So the question i am asking , how can i add wrapping around sublist in my > > sliding window function. > > > > By the look of what you now have, the easiest way would proba

Re: Wrapping around a list

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed wrote: > Thanks Chris for the reply. But i would like sliding function to be scalable, > as input string can be of 100 letters. A hundred isn't much to work with, and your code will be fairly simple. Give it a try with small strings, see how it goes;

Re: Wrapping around a list

2013-11-27 Thread Ned Batchelder
On 11/27/13 6:14 AM, Chris Angelico wrote: On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed wrote: Thanks Chris for the reply. But i would like sliding function to be scalable, as input string can be of 100 letters. A hundred isn't much to work with, and your code will be fairly simple. Give it

tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Dan Wissme
Hi ! Am I the only one to get a bug in GUIs using tkinter on my Mac under maverick and Python 3.3.3 ? When will they get rid of Tcl/Tk which causes recurrent problems at almost each new Python version ! Please, for the rest of us... -dan -- https://mail.python.org/mailman/listinfo/python-li

Re: tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Ned Batchelder
On 11/27/13 6:32 AM, Dan Wissme wrote: Hi ! Am I the only one to get a bug in GUIs using tkinter on my Mac under maverick and Python 3.3.3 ? When will they get rid of Tcl/Tk which causes recurrent problems at almost each new Python version ! Please, for the rest of us... -dan It sounds lik

RE: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

2013-11-27 Thread Hoàng Tuấn Việt
Hi Fabio, I cannot see your reply in python-list until I search this question on Internet again. I try (username.encode('utf-8') + '\r') and the problem is fixed. Thank you very much. Viet >You should be able to reproduce the same behavior on PyDev if in your run >configuratio

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

2013-11-27 Thread Tim Golden
On 27/11/2013 08:31, Hoàng Tuấn Việt wrote: > I cannot see your reply in python-list until I search this question > on Internet again. (cc-ing the OP because of the nature of the problem) Viet, That's because you're not subscribed to the list. The way it works is that you subscribe to the list a

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

2013-11-27 Thread Robert Kern
On 2013-11-27 08:31, Antoon Pardon wrote: Op 27-11-13 09:19, Chris Angelico schreef: On Wed, Nov 27, 2013 at 7:16 PM, Antoon Pardon wrote: However that second sentence doesn't make much sense to me. Modern languages contain a subset that is called the standard language. This is the subset that

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

2013-11-27 Thread Robert Kern
On 2013-11-27 08:16, Antoon Pardon wrote: Op 26-11-13 22:42, Tim Delaney schreef: On 27 November 2013 03:57, Antoon Pardon mailto:antoon.par...@rece.vub.ac.be>> wrote: So I can now ask my questions in dutch and expect others to try and understand me instead of me asking them in engli

Re: Cracking hashes with Python

2013-11-27 Thread TheRandomPast .
Hi, So apparently when I've been staring at code all day and tired my brain doesn't tell my hands to type half of what I want it to. I apologise for my last post. This is my code; import md5 import sys characters=range(48,57)+range(65,90)+range(97,122) def chklength(hash): if len(hash) !=

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

2013-11-27 Thread Gene Heskett
On Wednesday 27 November 2013 07:44:18 rusi did opine: > On Wednesday, November 27, 2013 7:41:54 AM UTC+5:30, Ned Batchelder wrote: > > On 11/26/13 8:26 PM, Rick Johnson wrote: > > > > And will you be here to explain to time-travelling Shakespeare why we > > are all of us speaking English compl

Re: Cracking hashes with Python

2013-11-27 Thread Chris Angelico
On Wed, Nov 27, 2013 at 11:40 PM, TheRandomPast . wrote: > And dictionary is working, as is the brute force however the issue I have > having is with my chklength() as no matter how many characters I input it > skips the !=32 and goes straight to asking the user to chose either Brute > Force or Di

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

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 6:27:52 PM UTC+5:30, Robert Kern wrote: > On 2013-11-27 08:16, Antoon Pardon wrote: > > Op 26-11-13 22:42, Tim Delaney schreef: > >> On 27 November 2013 03:57, Antoon Pardon wrote: > >> So I can now ask my questions in dutch and expect others to try and > >>

Re: Wrapping around a list

2013-11-27 Thread Neil Cerutti
On Wed, Nov 27, 2013 at 5:46 AM, wrote: > I am working on a problem (Bioinformatics domain) where all > possible combinations of input string needs to be printed as > sublist > > For example: > Input string : "LEQN" > Output= "[L","E","Q","N"] > ["LE","EQ","QN","NL"]["LEQ","EQN","QNE","NLE"]["LEQ

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

2013-11-27 Thread Rotwang
On 27/11/2013 08:31, Antoon Pardon wrote: Op 27-11-13 09:19, Chris Angelico schreef: [...] Do you mean standard British English, standard American English, standard Australian English, or some other? Does that significantly matter or are you just looking for details you can use to disagree? A

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

2013-11-27 Thread Robert Kern
On 2013-11-27 13:29, rusi wrote: On Wednesday, November 27, 2013 6:27:52 PM UTC+5:30, Robert Kern wrote: On 2013-11-27 08:16, Antoon Pardon wrote: Op 26-11-13 22:42, Tim Delaney schreef: On 27 November 2013 03:57, Antoon Pardon wrote: So I can now ask my questions in dutch and expect ot

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

2013-11-27 Thread Larry Martell
On Wed, Nov 27, 2013 at 5:31 AM, Paul Rudin wrote: > rusi writes: > >> Propositionally: All languages are equal -- Turing complete > > As an aside, not all languages are Turing complete. For example Charity > is a language with the property that programs are guaranteed to > terminate. > >

Use of logging module to track TODOs

2013-11-27 Thread Jordi Riera
Hey list, I always have issues with TODOs as they stay in the code and most of time forgot. On that, I tried to find a way to track them and to be able to output them automatically. Automatically is a key as if devs have to do it manually it won't be done. While I was checking the logging modu

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

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 7:39:37 PM UTC+5:30, Larry wrote: > On Wed, Nov 27, 2013 at 5:31 AM, Paul Rudin wrote: > > rusi writes: > >> Propositionally: All languages are equal -- Turing complete > > As an aside, not all languages are Turing complete. For example Charity > > is a language wi

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

2013-11-27 Thread Steven D'Aprano
On Wed, 27 Nov 2013 09:09:37 -0500, Larry Martell wrote: > On Wed, Nov 27, 2013 at 5:31 AM, Paul Rudin > wrote: >> rusi writes: >> >>> Propositionally: All languages are equal -- Turing complete >> >> As an aside, not all languages are Turing complete. For example Charity >> is a language with t

Re: parsing nested unbounded XML fields with ElementTree

2013-11-27 Thread Larry Martell
On Tue, Nov 26, 2013 at 8:20 AM, Stefan Behnel wrote: > Larry Martell, 26.11.2013 13:23: >> On Tue, Nov 26, 2013 at 2:38 AM, Stefan Behnel wrote: >>> larry.martell...@gmail.com, 25.11.2013 23:22: I have an XML file that has an element called "Node". These can be nested to any depth and

Re: Use of logging module to track TODOs

2013-11-27 Thread Jean-Michel Pichavant
- Original Message - > Hey list, Greetings ! > How do you do with your TODOs? > > Regards, > Jordi TODOs always share the same fate : they get forgotten and wander the code until the project dies. Unless you have the required mental resilience to stop the urgent work to fix your TO

Re: Use of logging module to track TODOs

2013-11-27 Thread Mark Lawrence
On 27/11/2013 14:52, Jean-Michel Pichavant wrote: - Original Message - Hey list, Greetings ! How do you do with your TODOs? Regards, Jordi TODOs always share the same fate : they get forgotten and wander the code until the project dies. Unless you have the required mental resil

Re: tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Terry Reedy
On 11/27/2013 6:48 AM, Ned Batchelder wrote: On 11/27/13 6:32 AM, Dan Wissme wrote: Hi ! Am I the only one to get a bug in GUIs using tkinter on my Mac under maverick and Python 3.3.3 ? When will they get rid of Tcl/Tk which causes recurrent problems at almost each new Python version ! Please, f

Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

2013-11-27 Thread Terry Reedy
On 11/27/2013 7:37 AM, Tim Golden wrote: On 27/11/2013 08:31, Hoàng Tuấn Việt wrote: I cannot see your reply in python-list until I search this question on Internet again. (cc-ing the OP because of the nature of the problem) Viet, That's because you're not subscribed to the list. The way it

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

2013-11-27 Thread Ned Batchelder
On 11/27/13 8:18 AM, Gene Heskett wrote: On Wednesday 27 November 2013 07:44:18 rusi did opine: On Wednesday, November 27, 2013 7:41:54 AM UTC+5:30, Ned Batchelder wrote: On 11/26/13 8:26 PM, Rick Johnson wrote: And will you be here to explain to time-travelling Shakespeare why we are all

Re: Cracking hashes with Python

2013-11-27 Thread Laszlo Nagy
On 2013-11-26 00:58, Marc wrote: Hashes, by definition, are not reversible mathematically. The only way to figure out what they represent is to take plaintext that might be the plaintext based on anything you might know about the original plaintext (which is often nothing) and hash it; then see

Re: Wrapping around a list

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 4:16:50 PM UTC+5:30, Amjad Syed wrote: > Hello, > > I am working on a problem (Bioinformatics domain) where all possible > combinations of input string needs to be printed as sublist If we take the standard combinations (Pascal triangle) result nCr + nCr-1 = n+1Cr

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

2013-11-27 Thread Tim Chase
On 2013-11-27 01:32, rusi wrote: > > And will you be here to explain to time-travelling Shakespeare > > why we are all of us speaking English completely wrong (to his > > ears)? > > And to my (Indian!!) ears when Tim says 'plank in the eye' where > King James says 'beam' it does not cut it. Wel

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

2013-11-27 Thread rusi
On Wednesday, November 27, 2013 9:55:12 PM UTC+5:30, Tim Chase wrote: > On 2013-11-27 01:32, rusi wrote: > > > And will you be here to explain to time-travelling Shakespeare > > > why we are all of us speaking English completely wrong (to his > > > ears)? > > And to my (Indian!!) ears when Tim sa

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-27 Thread Jurko Gospodnetić
Hi. On 25.11.2013. 14:42, Jurko Gospodnetić wrote: So far all tests seem to indicate that things work out fine if we install to some dummy target folder, copy the target folder to some version specific location & uninstall. That leaves us with a working Python folder sans the start menu and

Re: Cracking hashes with Python

2013-11-27 Thread MRAB
On 27/11/2013 12:40, TheRandomPast . wrote: Hi, So apparently when I've been staring at code all day and tired my brain doesn't tell my hands to type half of what I want it to. I apologise for my last post. This is my code; import md5 import sys characters=range(48,57)+range(65,90)+range(97,1

Re: Wrapping around a list

2013-11-27 Thread Peter Pearson
On Wed, 27 Nov 2013 08:33:43 -0500, Neil Cerutti wrote: > On Wed, Nov 27, 2013 at 5:46 AM, wrote: >> I am working on a problem (Bioinformatics domain) where all >> possible combinations of input string needs to be printed as >> sublist >> >> For example: >> Input string : "LEQN" >> Output= "[L",

Re: python for everyday tasks

2013-11-27 Thread Pavel Volkov
On Saturday 23 November 2013 02:01:26 Steven D'Aprano wrote: > * Python is not Java, and Java is not Python either: > > http://dirtsimple.org/2004/12/python-is-not-java.html > http://dirtsimple.org/2004/12/java-is-not-python-either.html Thanks for all those references. There's this statement in t

Re: Wrapping around a list

2013-11-27 Thread Amjad Syed
On Wednesday, November 27, 2013 2:14:18 PM UTC+3, Chris Angelico wrote: > On Wed, Nov 27, 2013 at 10:07 PM, Amjad Syed wrote: > > > Thanks Chris for the reply. But i would like sliding function to be > > scalable, as input string can be of 100 letters. > > > > A hundred isn't much to work wit

Re: python for everyday tasks

2013-11-27 Thread Michael Torrie
On 11/27/2013 11:05 AM, Pavel Volkov wrote: > Thanks for all those references. > There's this statement in the first article: > > "Got a switch statement? The Python translation is a hash table, not a bunch > of if-then statments. Got a bunch of if-then's that wouldn't be a switch > statement in

Re: python for everyday tasks

2013-11-27 Thread Jean-Michel Pichavant
- Original Message - > On Saturday 23 November 2013 02:01:26 Steven D'Aprano wrote: > > * Python is not Java, and Java is not Python either: > > > > http://dirtsimple.org/2004/12/python-is-not-java.html > > http://dirtsimple.org/2004/12/java-is-not-python-either.html > > Thanks for all th

Re: tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Travis Griggs
On Nov 27, 2013, at 3:32 AM, Dan Wissme wrote: > Hi ! > Am I the only one to get a bug in GUIs using tkinter on my Mac under maverick > and Python 3.3.3 ? > When will they get rid of Tcl/Tk which causes recurrent problems at almost > each new Python version ! > Please, for the rest of us... I

'_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread magnus.ly...@gmail.com
When I run e.g. compile('sin(5) * cos(6)', '', 'eval').co_names, I get ('sin', 'cos'), which is just what I expected. But when I have a list comprehension in the expression, I get a little surprise: >>> compile('[x*x for x in y]', '', 'eval').co_names ('_[1]', 'y', 'x') >>> This happens in Pyth

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ned Batchelder
On 11/27/13 2:40 PM, magnus.ly...@gmail.com wrote: When I run e.g. compile('sin(5) * cos(6)', '', 'eval').co_names, I get ('sin', 'cos'), which is just what I expected. But when I have a list comprehension in the expression, I get a little surprise: compile('[x*x for x in y]', '', 'eval').co_

Re: tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Ned Deily
In article <5295d83d$0$3458$426a3...@news.free.fr>, Dan Wissme wrote: > Am I the only one to get a bug in GUIs using tkinter on my Mac under > maverick and Python 3.3.3 ? > When will they get rid of Tcl/Tk which causes recurrent problems at > almost each new Python version ! > Please, for the r

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ian Kelly
On Nov 27, 2013 2:11 PM, "Ned Batchelder" wrote: > > On 11/27/13 2:40 PM, magnus.ly...@gmail.com wrote: >> >> So, in the case of "a.b + x" I'm really just interested in a and x, not b. So the (almost) whole story is that I do: >> >> # Find names not starting with ".", i.e a & b in "a.c + b" >

Re: Static Website Generator

2013-11-27 Thread Silvio Siefke
Hello, On Sat, 16 Nov 2013 11:43:01 -0500 Veritatem Ignotam wrote: > I'll second Nikola (full disclosure: not affiliated) Thank you for advice. Nikola is good, i good convert my blog in it and my theme i have convert. Only two things i miss: I find no way the blog article in the index file to

Re: Static Website Generator

2013-11-27 Thread Ben Finney
Silvio Siefke writes: > Thank you for advice. Nikola is good, i good convert my blog in it and > my theme i have convert. Only two things i miss: […] > Is here someone familar with the system and can help? It would be better to ask for Nikola help on the Nikola-specific discussion forums http:

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Chris Kaynor
On Wed, Nov 27, 2013 at 12:09 PM, Ned Batchelder wrote: > * Is there perhaps a better way to achieve what I'm trying to do? >> >> What I'm really after, is to check that python expressions embedded in >> text files are: >> - well behaved (no syntax errors etc) >> - don't accidentally access anythi

Re: Cracking hashes with Python

2013-11-27 Thread Denis McMahon
On Wed, 27 Nov 2013 12:40:41 +, TheRandomPast . wrote: > And dictionary is working, as is the brute force however the issue I > have having is with my chklength() as no matter how many characters I > input it skips the !=32 and goes straight to asking the user to chose > either Brute Force or

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Ned Batchelder
On 11/27/13 3:44 PM, Chris Kaynor wrote: On Wed, Nov 27, 2013 at 12:09 PM, Ned Batchelder mailto:n...@nedbatchelder.com>> wrote: * Is there perhaps a better way to achieve what I'm trying to do? What I'm really after, is to check that python expressions embedded in text

Access database - GUI - Python - I need architectural advice

2013-11-27 Thread jm.almeras
Hello ! I wish to develop a database application with a lot of specific functionnalities dealing with sound files. I have developped an Access prototype and run into a first problem : it is not so easy to find code working with VBA to extract the duration of a sound file. I have found many c

Re: '_[1]' in .co_names using builtin compile() in Python 2.6

2013-11-27 Thread Steven D'Aprano
On Wed, 27 Nov 2013 11:40:52 -0800, magnus.ly...@gmail.com wrote: > What I'm really after, is to check that python expressions embedded in > text files are: - well behaved (no syntax errors etc) - don't > accidentally access anything it shouldn't - I serve them with the values > they need on execu

Re: How to determine whether client and server are on the same host

2013-11-27 Thread Malte Forkel
Am 27.11.2013 00:37, schrieb Gregory Ewing: > > What would happen if you tried the file-based method when > it wasn't a local connection? Is there a danger of it > "succeeding" on the wrong machine and damaging something? > I have been thinking about that. There is a slight risk that the client m

Re: How to determine whether client and server are on the same host

2013-11-27 Thread Malte Forkel
Am 27.11.2013 01:14, schrieb Michael Torrie: > > I believe socket.getsockname() can return the IP address of the > connecting client if you're using standard tcp/ip sockets. > The way you describe it, it sounds like it would require a change to the server. I can only modify the client. I'll try t

Re: How to determine whether client and server are on the same host

2013-11-27 Thread Malte Forkel
Am 27.11.2013 00:15, schrieb Chris Angelico: > Since the server runs Linux, inability to run /sbin/ifconfig could > safely be interpreted as "we're not running on the server". But I > think this actually gains little over "is there a file called > /tmp/_this_is_malte_forkel_on_his_server_9515343_",

Re: Recursive generator for combinations of a multiset?

2013-11-27 Thread Oscar Benjamin
On 27 November 2013 10:25, John O'Hagan wrote: > On Tue, 26 Nov 2013 10:33:06 + > Oscar Benjamin wrote: > > I simplified it a bit more to this: > > def word_sequences(prepend, target, subwords): > """subwords is a list of lists of subwords grouped by length, > in order of length""

Re: tkinter bug on mac maverick python 3.3.3

2013-11-27 Thread Terry Reedy
On 11/27/2013 1:44 PM, Travis Griggs wrote: Or are you proposing that Tcl/Tk be moved out of the python core distro, and instead delivered as a separate package? AFAIK, TK is only distributed with the core on Windows, where there is no package manager to easily install it. It is required for

Re: python for everyday tasks

2013-11-27 Thread Chris Angelico
On Thu, Nov 28, 2013 at 5:05 AM, Pavel Volkov wrote: > "Got a switch statement? The Python translation is a hash table, not a bunch > of if-then statments. Got a bunch of if-then's that wouldn't be a switch > statement in Java because strings are involved? It's still a hash table. " I actually di

Re: Access database - GUI - Python - I need architectural advice

2013-11-27 Thread Chris Angelico
On Thu, Nov 28, 2013 at 8:35 AM, jm.almeras wrote: > Access, and more generally VB, is excellent for building the GUI (forms, > widgets etc.). Python is a great for coding, and it comes with high quality > libraries... Does anyone have any suggestions as to how I can build my > database app with n

mush 1.1 released! - Type-based dependency injection for scripts

2013-11-27 Thread Chris Withers
Hi All, I'm very happy to announce the a new release of Mush, a light weight dependency injection framework aimed at enabling the easy testing and re-use of chunks of code that make up scripts. This release rounds out a few rough edges after a few months of real world use: - Runners can no

error

2013-11-27 Thread speen saba
Hello there, I am attending the lectures, and written the codes according to lectures. Professor's codes are working fine, but my one gives an error. I am new to python. Please it's a humble request, just be easy on me while making me understand about the code. It will be much appreciated.

Re: error

2013-11-27 Thread Cameron Simpson
On 27Nov2013 16:37, speen saba wrote: > Hello there, >I am attending the lectures, and written the codes according to lectures. > Professor's codes are working fine, but my one gives an error. I am new to > python. Please it's a humble request, just be easy on me while making me > understan

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

2013-11-27 Thread alex23
On 27/11/2013 7:12 PM, Antoon Pardon wrote: However that there is no perfect solution doesn't imply we can't expect some effort from those with english as a mother tongue to search for ways in which to express themselves that are more likely to be understood by those who had to learn english as a

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

2013-11-27 Thread Roy Smith
In article , alex23 wrote: > On 27/11/2013 7:12 PM, Antoon Pardon wrote: > > However that there is no perfect solution doesn't imply > > we can't expect some effort from those with english as a mother > > tongue to search for ways in which to express themselves that are > > more likely to be und

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

2013-11-27 Thread Tim Chase
On 2013-11-27 20:08, Roy Smith wrote: > > How do you expect people to know they're using a local idiom? > > Look it up in Urban Dictionary and Bob's your uncle. I thought that's how one could tell if it was an *inappropriate* idiom. As a matter of fact, I'm surprised that "Bob's your uncle" does

Re: Access database - GUI - Python - I need architectural advice

2013-11-27 Thread Mark Lawrence
On 28/11/2013 01:05, Dennis Lee Bieber wrote: Not quite as friendly, and sort of a moving target: Look at Dabo [the creators' goal was to create a Python equivalent of Visual FoxPro]. At http://www.dabodev.com/ and mailing list at gmane.comp.python.dabo.users. -- Python is the second

Python project

2013-11-27 Thread ngangsia akumbo
Hi everyone I a beginner in python. The first project is to build an online city guide start with my own city. I will need some support on where to get started. support like where to find the required resources which will help me, libraries, tutorials on similar project etc. Please thanks for

Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Victor Hooi
Hi, I'm running pep8 across my code, and getting warnings about my long lines (> 80 characters). I'm wonder what's the recommended way to handle the below cases, and fit under 80 characters. First example - multiple context handlers: with open(self.full_path, 'r') as input, open(s

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Victor Hooi
Hi, Also, forgot two other examples that are causing me grief: cur.executemany("INSERT INTO foobar_foobar_files VALUES (?)", [[os.path.relpath(filename, foobar_input_folder)] for filename in filenames]) I've already broken it up using the parentheses, not sure what's the

Re: error

2013-11-27 Thread Dave Angel
On Wed, 27 Nov 2013 16:37:37 -0800 (PST), speen saba wrote: p = [1,2] And below is the error. Evrything works fine untill class polar point, but when I try to pick point (instance) p in the list i.e x,y (1,2,3,1). It does not work. I mean p.x gets the error where it should give me the value

Re: Python project

2013-11-27 Thread Dave Angel
On Wed, 27 Nov 2013 17:43:27 -0800 (PST), ngangsia akumbo wrote: I a beginner in python. The first project is to build an online city guide start with my own city. I will need some support on where to get started. Are you experienced in other languages, in html? Is this your first time prog

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ben Finney
Victor Hooi writes: > I'm running pep8 across my code, and getting warnings about my long > lines (> 80 characters). Great! Thank you for working to make your code readable by keeping lines reasonably short. > I'm wonder what's the recommended way to handle the below cases, and > fit under 80 c

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Terry Reedy
On 11/27/2013 8:57 PM, Victor Hooi wrote: [sorry if the re-wrapping mis-formats anything] I'm running pep8 Ah yes, the module that turns PEP8 into the straightjacket it explicitly says it is not meant to be. across my code, We mostly to not change existing stdlib modules to conform unle

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ben Finney
Victor Hooi writes: > cur.executemany("INSERT INTO foobar_foobar_files VALUES (?)", > [[os.path.relpath(filename, foobar_input_folder)] for > filename in filenames]) > > I've already broken it up using the parentheses But now the continuation line indentation is needless

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ned Batchelder
On 11/27/13 8:57 PM, Victor Hooi wrote: Hi, I'm running pep8 across my code, and getting warnings about my long lines (> 80 characters). I'm wonder what's the recommended way to handle the below cases, and fit under 80 characters. My recommendations usually amount to: write more statements,

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Terry Reedy
On 11/27/2013 9:03 PM, Victor Hooi wrote: Hi, Also, forgot two other examples that are causing me grief: cur.executemany("INSERT INTO foobar_foobar_files VALUES (?)", [[os.path.relpath(filename, foobar_input_folder)] for filename in filenames]) I've already broken it

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Steven D'Aprano
On Thu, 28 Nov 2013 13:47:22 +1100, Ben Finney wrote: >> Third example - long comments: >> >> """ NB - We can't use Psycopg2's parametised statements here, as >> that automatically wraps everything in single quotes. So >> s3://my_bucket/my_file.csv.gz would become >> s3://'my_buck

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ned Batchelder
On 11/27/13 9:03 PM, Victor Hooi wrote: Hi, Also, forgot two other examples that are causing me grief: cur.executemany("INSERT INTO foobar_foobar_files VALUES (?)", [[os.path.relpath(filename, foobar_input_folder)] for filename in filenames]) I've already broken it u

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ben Finney
Ned Batchelder writes: > The important thing in a with statement is that the assigned name will > be closed (or otherwise exited) automatically. The open call is just > the expression used to assign the name. The expression there isn't > really important. This looks odd, but works the same as

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Neil Cerutti
tOn Wed, Nov 27, 2013 at 8:57 PM, Victor Hooi wrote: > with open(self.full_path, 'r') as input, open(self.output_csv, > 'ab') as output: There are two nice and clean solutions for this. I usually nest them. with open(self.full_path, 'r') as input: with open(self.ouptut_csv, 'ab')

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ben Finney
Steven D'Aprano writes: > On Thu, 28 Nov 2013 13:47:22 +1100, Ben Finney wrote: > > [A triple-quoted string is] not syntactically a comment, and I don't > > think pretending triple-quoted strings are comments is good > > practice. If nothing else, you'll need a special case if you want to > > enc

Re: Python project

2013-11-27 Thread Johannes Findeisen
On Wed, 27 Nov 2013 17:43:27 -0800 (PST) ngangsia akumbo wrote: > Hi everyone Hi, > I a beginner in python. The first project is to build an online city guide > start with my own city. I will need some support on where to get started. Take a look at the Django Web framework: https://www.django

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Ethan Furman
On 11/27/2013 06:59 PM, Ned Batchelder wrote: The important thing in a with statement is that the assigned name will be closed (or otherwise exited) automatically. The open call is just the expression used to assign the name. The expression there isn't really important. This looks odd, but w

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Steven D'Aprano
On Wed, 27 Nov 2013 17:57:13 -0800, Victor Hooi wrote: > Hi, > > I'm running pep8 across my code, and getting warnings about my long > lines (> 80 characters). > > I'm wonder what's the recommended way to handle the below cases, and fit > under 80 characters. > > First example - multiple contex

Re: Python and PEP8 - Recommendations on breaking up long lines?

2013-11-27 Thread Steven D'Aprano
On Wed, 27 Nov 2013 21:59:56 -0500, Ned Batchelder wrote: > The important thing in a with statement is that the assigned name will > be closed (or otherwise exited) automatically. The open call is just > the expression used to assign the name. The expression there isn't > really important. This

  1   2   >