Re: list comparison vs integer comparison, which is more efficient?

2015-01-03 Thread Terry Reedy
On 1/3/2015 6:19 PM, austin aigbe wrote: I am currently implementing the LTE physical layer in Python (ver 2.7.7). For the qpsk, 16qam and 64qam modulation I would like to know which is more efficient to use, between an integer comparison and a list comparison: Integer comparison: bit_pair as

Re: Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast microarray analysis, next generation sequencing and constructing gene interaction networks

2015-01-03 Thread Rustom Mody
On Sunday, January 4, 2015 8:45:08 AM UTC+5:30, thomas hahn wrote: > > > > > Help with finding tutors > for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast > microarray > analysis, next generation sequencing and constructing gene interaction > networks Hi Thomas This is a

Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast microarray analysis, next generation sequencing and constructing gene interaction networks

2015-01-03 Thread thomas hahn
​​ *Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast microarray analysis, next generation sequencing and constructing gene interaction networks* Hi I am a visually impaired bioinformatics graduate student using microarray data for my master’s the

Re: list comparison vs integer comparison, which is more efficient?

2015-01-03 Thread Chris Angelico
On Sun, Jan 4, 2015 at 10:19 AM, austin aigbe wrote: > I would like to know which is more efficient to use, between an integer > comparison and a list comparison: You can test them with the timeit module, but my personal suspicion is that any difference between them will be utterly and completel

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread Michael Torrie
On 01/03/2015 10:11 AM, André Roberge wrote: > Would you care to elaborate? All the code I have written works > correctly on all the tests I have done. I do have reports from a > user using a Mac with Python 2.7 for which some widgets did not quite > work properly ... but that's all I have heard

list comparison vs integer comparison, which is more efficient?

2015-01-03 Thread austin aigbe
Hi, I am currently implementing the LTE physical layer in Python (ver 2.7.7). For the qpsk, 16qam and 64qam modulation I would like to know which is more efficient to use, between an integer comparison and a list comparison: Integer comparison: bit_pair as an integer value before comparison

Re: Enumerating loggers iin logging module

2015-01-03 Thread John Pote
Thanks for the replies, thought there'd be a simple answer. Much appreciated. John On 30/12/2014 22:40, Chris Angelico wrote: On Wed, Dec 31, 2014 at 8:24 AM, Tim Chase wrote: While it may involve reaching into the objects may or may not be blessed, the following seems to work for me in Py2.7

Re: surprise - byte in set

2015-01-03 Thread patrick vrijlandt
Dear all, Many thanks for your responses. I never realised this difference between 'bytes' and 'string'. Thanks, Patrick --- Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Tk Tix GUI documentation & builder overview and tips

2015-01-03 Thread Terry Reedy
On 1/3/2015 1:30 PM, aba...@gmail.com wrote: Hi, I have had issues running Tix on python 2.7.6 and 3.4.2: More details on the issue here. http://stackoverflow.com/questions/27751923/tix-widgets-installation-issue Has anyone had similar issues with Tix? The current doc is wrong in any case.

Re: apostrophe not considered with tkinter's wordstart and wordend

2015-01-03 Thread Peter Otten
ravas wrote: > When I place my mouse over a word (and I press something) > I want the program to analyze the word. > Tkinter almost provides the perfect option: > self.text.get('current wordstart', 'current wordend') > > Unfortunately apostrophes are not considered using wordstart and wordend. >

Re: Put float number in message.

2015-01-03 Thread Mark Lawrence
On 03/01/2015 19:23, John Culleton wrote: Here is my last line in a simple program that is a scribus script. end = scribus.messageBox('Book Spine Width', 'dummy', ICON_WARNING, BUTTON_OK) This works. Now I want to put a float number called S instead of 'dummy'. If I just put S in the command I g

apostrophe not considered with tkinter's wordstart and wordend

2015-01-03 Thread ravas
When I place my mouse over a word (and I press something) I want the program to analyze the word. Tkinter almost provides the perfect option: self.text.get('current wordstart', 'current wordend') Unfortunately apostrophes are not considered using wordstart and wordend. http://infohost.nmt.edu/tcc

Re: surprise - byte in set

2015-01-03 Thread Gary Herron
On 01/03/2015 10:50 AM, patrick vrijlandt wrote: Hello list, Let me first wish you all the best in 2015! Today I was trying to test for occurrence of a byte in a set ... >>> sys.version '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]' >>> 'b' in 'abc' True >>>

Put float number in message.

2015-01-03 Thread John Culleton
Here is my last line in a simple program that is a scribus script. end = scribus.messageBox('Book Spine Width', 'dummy', ICON_WARNING, BUTTON_OK) This works. Now I want to put a float number called S instead of 'dummy'. If I just put S in the command I get an error. If I convert S to a string with

Re: surprise - byte in set

2015-01-03 Thread Dan Stromberg
On Sat, Jan 3, 2015 at 10:50 AM, patrick vrijlandt wrote: > Hello list, > > Let me first wish you all the best in 2015! > > Today I was trying to test for occurrence of a byte in a set ... In the last case, the set has integers in it. Try: b'b'[0] in set(b'abc') -- https://mail.python.org/mail

Re: surprise - byte in set

2015-01-03 Thread Jason Friedman
sys.version > '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit > (Intel)]' 'b' in 'abc' > True b'b' in b'abc' > True 'b' in set('abc') > True b'b' in set(b'abc') > False > > I was surprised by the last result. What happened? > (Examples simplified; I w

surprise - byte in set

2015-01-03 Thread patrick vrijlandt
Hello list, Let me first wish you all the best in 2015! Today I was trying to test for occurrence of a byte in a set ... >>> sys.version '3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)]' >>> 'b' in 'abc' True >>> b'b' in b'abc' True >>> 'b' in set('abc') True >>

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Mark Lawrence
On 03/01/2015 17:53, Rick Johnson wrote: On Saturday, January 3, 2015 4:39:25 AM UTC-6, Mark Lawrence wrote: I used to get very confused watching the old westerns. The child when talking about "more" and "paw" wasn't referring to possibly an adjective, noun or adverb and a part of an animal, b

Re: Python Tk Tix GUI documentation & builder overview and tips

2015-01-03 Thread abaskm
Hi, I have had issues running Tix on python 2.7.6 and 3.4.2: More details on the issue here. http://stackoverflow.com/questions/27751923/tix-widgets-installation-issue Has anyone had similar issues with Tix? Thanks and Happy New Year. On Friday, March 27, 2009 5:19:42 PM UTC-4, bal...@google

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Rick Johnson
On Saturday, January 3, 2015 4:39:25 AM UTC-6, Mark Lawrence wrote: > I used to get very confused watching the old westerns. The child when > talking about "more" and "paw" wasn't referring to possibly an > adjective, noun or adverb and a part of an animal, but what we would > refer to in the

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread Mark Lawrence
On 03/01/2015 17:11, André Roberge wrote: On Saturday, 3 January 2015 04:52:21 UTC-4, wxjm...@gmail.com wrote: Le vendredi 2 janvier 2015 20:11:25 UTC+1, André Roberge a écrit : On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: Le mercredi 31 décembre 2014 23:24:50 UTC+1, An

Re: Socket programming

2015-01-03 Thread Dan Stromberg
On Sat, Jan 3, 2015 at 3:43 AM, pramod gowda wrote: > Hi i am learning socket programming, This "works" on Linux Mint 17.1. Server: #!/usr/local/cpython-3.4/bin/python import socket server_socket = socket.socket() #server_name = '192.168.2.2' server_socket.setsockopt(socket.SOL_SOCKET, socket.

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-03 Thread André Roberge
On Saturday, 3 January 2015 04:52:21 UTC-4, wxjm...@gmail.com wrote: > Le vendredi 2 janvier 2015 20:11:25 UTC+1, André Roberge a écrit : > > On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: > > > Le mercredi 31 décembre 2014 23:24:50 UTC+1, André Roberge a écrit : > > > > EasyG

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 9:27:20 PM UTC+5:30, Steven D'Aprano wrote: > pramod gowda wrote: > > > HI, i m doing n personal laptop. > > so i think i ve rights to open a listening socket,could u pls tell me hw > > can i check it? > > Is your keyboard broken? There are a lot of missing characters

Re: Socket programming

2015-01-03 Thread Steven D'Aprano
pramod gowda wrote: > HI, i m doing n personal laptop. > so i think i ve rights to open a listening socket,could u pls tell me hw > can i check it? Is your keyboard broken? There are a lot of missing characters in your sentences. You're going to have a lot of trouble programming with a broken key

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 8:39:26 PM UTC+5:30, mm0fmf wrote: > On 03/01/2015 11:43, pramod gowda wrote: > > server_socket=socket.socket() > > server_name='192.168.2.2' > > server_port= 80 > > server_socket.bind((server_name,server_port)) > > server_socket.listen(1) > > I don't do much Python on

Re: Socket programming

2015-01-03 Thread mm0fmf
On 03/01/2015 11:43, pramod gowda wrote: server_socket=socket.socket() server_name='192.168.2.2' server_port= 80 server_socket.bind((server_name,server_port)) server_socket.listen(1) I don't do much Python on Windows but do you have the necessary access rights to open a listening socket on por

Re: Command Line Inputs from Windows

2015-01-03 Thread Gisle Vanem
Ken Stewart wrote: Here is a sample key: S1-5-21-1560217580-722697556-320042093-1000-Classes py_auto_file shell open command The corrected data for the key looks like this: "C:\Python34\python.exe" %1 %* Yikes! You use the awful cmd.exe as the shell d

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 6:08:28 PM UTC+5:30, Chris Angelico wrote: > On Sat, Jan 3, 2015 at 11:25 PM, pramod gowda wrote: > > I am using python 3.4.2 > > I don get any exceptions, > > but wn i run the code,i don see any connections, IP address is given as my > > system IP. > > What does the

Re: Socket programming

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 11:25 PM, pramod gowda wrote: > I am using python 3.4.2 > I don get any exceptions, > but wn i run the code,i don see any connections, IP address is given as my > system IP. What does the client say? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Socket programming

2015-01-03 Thread pramod gowda
On Saturday, January 3, 2015 5:26:27 PM UTC+5:30, Chris Angelico wrote: > On Sat, Jan 3, 2015 at 10:43 PM, pramod gowda wrote: > > I am not getting the output, i am using windows 7 OS.. > > please check and give me the solution. > > Windows 7 - that's part of the story. What version of Python ar

Re: pathlib type error

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 11:06 PM, Chris Angelico wrote: > On Sat, Jan 3, 2015 at 10:55 PM, Georg Grafendorfer > wrote: >> I'm using Debian 8 Jessie on an AMD64 machine. >> Getting this error: >> >> ~$ python3 >> Python 3.4.2 (default, Oct 8 2014, 10:45:20) >> [GCC 4.9.1] on linux > > Unable to re

Re: pathlib type error

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 10:55 PM, Georg Grafendorfer wrote: > I'm using Debian 8 Jessie on an AMD64 machine. > Getting this error: > > ~$ python3 > Python 3.4.2 (default, Oct 8 2014, 10:45:20) > [GCC 4.9.1] on linux > Type "help", "copyright", "credits" or "license" for more information. from

Re: Socket programming

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 10:43 PM, pramod gowda wrote: > I am not getting the output, i am using windows 7 OS.. > please check and give me the solution. Windows 7 - that's part of the story. What version of Python are you using? Is 192.168.2.2 the correct IP address? What happens when you run thes

pathlib type error

2015-01-03 Thread Georg Grafendorfer
Hi I'm using Debian 8 Jessie on an AMD64 machine. Getting this error: ~$ python3 Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from pathlib import Path >>> p = Path("/etc") >>> q = p / "init.d" Traceba

Socket programming

2015-01-03 Thread pramod gowda
Hi i am learning socket programming, client code: import socket client_socket=socket.socket() server_address='192.168.2.2' server_port= 80 print("hello") client_socket.connect((server_address,server_port)) print("hello") data=client_socket.recv(1024) print(data) client_socket.close() server cod

DjangoCon Europe 2015, in Cardiff, Wales

2015-01-03 Thread D.M. Procida
In 2015, DjangoCon Europe is coming to Cardiff: - the first-ever six-day DjangoCon. The conference will begin with an open day (as in, open to anyone who feels like coming) of free talks and tutorials, aimed at introducing new people to Python and Django and the communi

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Mark Lawrence
On 03/01/2015 10:16, Chris Angelico wrote: On Sat, Jan 3, 2015 at 9:01 PM, Steven D'Aprano wrote: Chris Angelico wrote: On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody wrote: And how does this strange language called English fits into your rules and (no) special cases scheme? http://www.omgf

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 9:01 PM, Steven D'Aprano wrote: > Chris Angelico wrote: > >> On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody wrote: >>> And how does this strange language called English fits into your rules >>> and (no) special cases scheme? >>> >>> > http://www.omgfacts.com/lists/3989/Did-you

Re: How do I remove/unlink wildcarded files

2015-01-03 Thread Steven D'Aprano
Chris Angelico wrote: > On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody wrote: >> And how does this strange language called English fits into your rules >> and (no) special cases scheme? >> >> http://www.omgfacts.com/lists/3989/Did-you-know-that-ough-can-be-pronounced-TEN-DIFFERENT-WAYS > > I learne

Re: Command Line Inputs from Windows

2015-01-03 Thread Mark Lawrence
On 03/01/2015 08:03, Ken Stewart wrote: At the moment it looks like the Python installer didn't create these registry entries properly in Windows 7. If that is actally the case please raise an issue on the bug tracker at bugs.python.org if one doesn't already exist. -- My fellow Pythonistas

Re: Command Line Inputs from Windows

2015-01-03 Thread Chris Angelico
On Sat, Jan 3, 2015 at 7:03 PM, Ken Stewart wrote: > I used the 'find' tool in regedit to search for python in the registry. > There were many hits on the word python but only a handful had data fields > similar to the one above. Every instance was missing the %* string. I > modified them all.

Re: Command Line Inputs from Windows

2015-01-03 Thread Ken Stewart
Chris, Dennis, James, and Mark: SUCCESS! Thanks for your suggestions. It was the registry. Kudos to Dennis. The data strings for a lot of different "command" keys in the registry were missing the %* (percent star) characters. Thanks Chris for the explanation on why the %* string is needed

Re: Command Line Inputs from Windows

2015-01-03 Thread Mark Lawrence
On 02/01/2015 19:44, Ken Stewart wrote: Court of King Arthur, Court of BDFL actually. I’d appreciate any help you can provide. I’m having problems passing command line parameters from Windows 7 into a Python script (using Python 3.4.2). It works correctly when I call the interpreter explic