Re: Advice needed for Python packaging - can't find required library during installation

2014-02-03 Thread dieter
thebiggestbangthe...@gmail.com writes: > I am trying to package up a very simple python app. In my setup.py file I > have a couple of lines that include the following: > > from setuptools import setup > > setup( > name='ban', > version='0.1', > packages=['ban',], >

Re: [OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 5:51 PM, wrote: > 2) When I have finished to read the page, I scroll up > (or scroll back/up) to the top of the page until I see > this "feature" and the title. > 3) I click on this "feature". > 4) The title, already visible, moves, let's say, "2cm" higher. At which point

Re: [OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-03 Thread wxjmfauth
Le lundi 3 février 2014 23:56:43 UTC+1, Ben Finney a écrit : > Rotwang writes: > > > > > Why on Earth would the ["¶", U+00B6 PILCROW SIGN] correspond to an > > > EOL? The section sign and pilcrow have a history of being used to > > > refer to sections and paragraphs respectively, so using the

Re: Postfix conditionals

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 4:16 PM, Göktuğ Kayaalp wrote: > With my proposal implemented, the language would > would be encouraging having multiple statements in one line, that looks > like a single statement, but is indeed a composition of two. I wouldn't have a problem with if not i: break in Pyt

Re: Logging data from Arduino using PySerial

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 3:57 PM, Thomas wrote: > Wow...Thanks Chris! I really appreciate your suggestions (including the > stylistic ones). I'll definitely be revising my code as soon as I find the > time. As far as profiling goes, I've used timeit in the past but it's quite a > pain going throu

Re: Postfix conditionals

2014-02-03 Thread Göktuğ Kayaalp
[comments inline] "BartC" writes: > "Göktuğ Kayaalp" wrote in message > news:mailman.4966.1388953508.18130.python-l...@python.org... > >> AFAIK, we do not have "postfix conditionals" in Python, i.e. a condition >> appended to a >> statement, which determines whether the statement runs or not: >

Re: Logging data from Arduino using PySerial

2014-02-03 Thread Thomas
Wow...Thanks Chris! I really appreciate your suggestions (including the stylistic ones). I'll definitely be revising my code as soon as I find the time. As far as profiling goes, I've used timeit in the past but it's quite a pain going through any program block by block. I wish there were a prog

Re: Logging data from Arduino using PySerial

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 3:07 PM, Thomas wrote: > I've written a script to log data from my Arduino to a csv file. The script > works well enough but it's very, very slow. I'm quite new to Python and I > just wanted to put this out there to see if any Python experts could help > optimise my code.

Logging data from Arduino using PySerial

2014-02-03 Thread Thomas
I've written a script to log data from my Arduino to a csv file. The script works well enough but it's very, very slow. I'm quite new to Python and I just wanted to put this out there to see if any Python experts could help optimise my code. Here it is: import serial import re impor

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Rustom Mody
On Tuesday, February 4, 2014 3:06:24 AM UTC+5:30, Jean Dupont wrote: > I have a list like this: > [1,2,3] > The argument of my function should be a repeated version e.g. > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times > repeated also) > what is the prefered method to real

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Rustom Mody
On Tuesday, February 4, 2014 3:20:06 AM UTC+5:30, Terry Reedy wrote: > name = lambda xxx is poor style because it produces a function object > lacking a proper name. Reusing the function name as a local is also > confusing. The above is equivalent to > def m(k, n): return 1 if k & n else 0 Yeah

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 1:34 PM, Rustom Mody wrote: > Just curious: How do you go "digging for stuff starting with 'z'" ? > > OR: How do you grep inside apt? > > I know "dpkg -S pattern" > > It helps to connect pattern with package > But no good if pattern is common -- Other day I was struggling wi

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Rustom Mody
On Tuesday, February 4, 2014 12:41:03 AM UTC+5:30, Chris Angelico wrote: > On Tue, Feb 4, 2014 at 6:05 AM, Zachary Ware wrote: > > On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico wrote: > >> Technically that gets everything you need to compile Python 3.3... > >> wasn't there one more library needed

Re: generator slides review

2014-02-03 Thread Terry Reedy
On 2/3/2014 5:22 PM, andrea crotti wrote: That's already better, another thing which I just thought about could be this (which actually happened a few times): def original_gen(): count = 0 while count < 10: yield count count += 1 def consumer(): gen = original

Re: [newbie] troubles with tuples

2014-02-03 Thread Denis McMahon
On Mon, 03 Feb 2014 08:50:31 -0800, Jean Dupont wrote: > I'm looking at the way to address tuples e.g. > tup2 = (1, 2, 3, 4, 5, 6, 7 ); > > As I found out indices start with 0 in Python, so tup2[0] gives me 1, > the first element in the tuple as expected tup2[1] gives me 2, the > second element i

Re: Calculator Problem

2014-02-03 Thread Denis McMahon
On Mon, 03 Feb 2014 10:25:37 -0800, Charlie Winn wrote: > Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64 > bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for > more information. RESTART =

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Denis McMahon
On Sun, 02 Feb 2014 09:44:05 -0800, Jean Dupont wrote: > I'm looking for an efficient method to produce rows of tables like this: > > for base 2 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 . > . > . > 1 1 1 1 > > for base 3 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 1 1 0 > 0 0 0 1 2 .

Re: __init__ is the initialiser

2014-02-03 Thread Gregory Ewing
Steven D'Aprano wrote: # --- Untested --- # Automatically call each __new__ constructor method, starting from # the most fundamental (object) and ending with the current class. stack = [] for c in cls.__mro__: if hasattr(c, '__new__'): stack.append(c.__new__) while stack: stack.po

Re: Postfix conditionals

2014-02-03 Thread BartC
"Göktuğ Kayaalp" wrote in message news:mailman.4966.1388953508.18130.python-l...@python.org... AFAIK, we do not have "postfix conditionals" in Python, i.e. a condition appended to a statement, which determines whether the statement runs or not: py> for i in [False]: ... break if not i

Advice needed for Python packaging - can't find required library during installation

2014-02-03 Thread thebiggestbangtheory
Hello all, I am trying to package up a very simple python app. In my setup.py file I have a couple of lines that include the following: from setuptools import setup setup( name='ban', version='0.1', packages=['ban',], description='Python Distribution Utilities',

Re: Calculator Problem

2014-02-03 Thread Ian Kelly
On Feb 3, 2014 3:26 PM, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > > On Mon, 03 Feb 2014 10:04:35 -0800, Charlie Winn wrote: > > > excuse me but don't be so *** rude , i did run this program and it > > did run correctly > > Charlie, you may have run *some* program, but i

Re: Calculator Problem

2014-02-03 Thread Gary Herron
On 02/03/2014 10:04 AM, Charlie Winn wrote: On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote: ... Sorry, but in fact you did *not* run this program as you claim. It's full of syntax errors. Any attempt to run it will display syntax errors immediately, and never actually run.

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Tim Chase
On 2014-02-03 13:36, Jean Dupont wrote: > I have a list like this: > [1,2,3] > > The argument of my function should be a repeated version e.g. > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of > times repeated also) > > what is the prefered method to realize this in Python? > > a

[OT] Usage of U+00B6 PILCROW SIGN (was: generator slides review and Python doc (+/- text bug))

2014-02-03 Thread Ben Finney
Rotwang writes: > Why on Earth would the [“¶”, U+00B6 PILCROW SIGN] correspond to an > EOL? The section sign and pilcrow have a history of being used to > refer to sections and paragraphs respectively, so using them for > permalinks to individual sections of a web page makes perfect sense. Symbo

Re: generator slides review

2014-02-03 Thread andrea crotti
2014-02-03 Terry Reedy : > On 2/2/2014 5:40 AM, andrea crotti wrote: >> > In general, use assert (== AssertionError) to check program logic (should > never raise). Remember that assert can be optimized away. Use other > exceptions to check user behavior. So I believe that ValueError is > appropriat

Re: Calculator Problem

2014-02-03 Thread Steven D'Aprano
On Mon, 03 Feb 2014 10:04:35 -0800, Charlie Winn wrote: > excuse me but don't be so *** rude , i did run this program and it > did run correctly Charlie, you may have run *some* program, but it wasn't the program you posted here. And if it ran correctly, why are you asking for help? The co

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Steven D'Aprano
On Mon, 03 Feb 2014 13:36:24 -0800, Jean Dupont wrote: > I have a list like this: > [1,2,3] > > The argument of my function should be a repeated version e.g. > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times > repeated also) > > what is the prefered method to realize this i

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Gary Herron
On 02/03/2014 01:36 PM, Jean Dupont wrote: I have a list like this: [1,2,3] The argument of my function should be a repeated version e.g. [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated also) That's not very clear. You say "The" argument (singular; meaning 1) b

Re: [newbie] troubles with tuples

2014-02-03 Thread Terry Reedy
On 2/3/2014 11:50 AM, Jean Dupont wrote: I'm looking at the way to address tuples e.g. tup2 = (1, 2, 3, 4, 5, 6, 7 ); As I found out indices start with 0 in Python, so tup2[0] gives me 1, the first element in the tuple as expected tup2[1] gives me 2, the second element in the tuple as expected n

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Terry Reedy
On 2/3/2014 10:05 AM, Jean Dupont wrote: Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las: On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten: I'm looking for an efficient method to produce rows of tables lik

Re: Python 3.3 and Pygame 19.2a install problems

2014-02-03 Thread Terry Reedy
On 2/3/2014 1:55 PM, MRAB wrote: On 2014-02-03 06:43, Terry Reedy wrote: It is possible that the VC++2010 runtime does not work with XP, but requires Vista+ and that the Microsoft installer installs the older VC++2008 runtime on XP even when installing 3.3. If you install for a single user, th

[newbie] copying identical list for a function argument

2014-02-03 Thread Jean Dupont
I have a list like this: [1,2,3] The argument of my function should be a repeated version e.g. [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated also) what is the prefered method to realize this in Python? any help would be really appreciated kind regards, jean --

Re: fseek In Compressed Files

2014-02-03 Thread Dave Angel
Ayushi Dalmia Wrote in message: > On Thursday, January 30, 2014 4:20:26 PM UTC+5:30, Ayushi Dalmia wrote: >> Hello, >> >> >> >> I need to randomly access a bzip2 or gzip file. How can I set the offset for >> a line and later retreive the line from the file using the offset. Pointers >> in th

Re: __init__ is the initialiser

2014-02-03 Thread Nicholas Cole
On Monday, 3 February 2014, Chris Angelico wrote: > On Tue, Feb 4, 2014 at 12:50 AM, Nicholas Cole > > > wrote: > >> There have been occasional times I've wanted an "explicit destruction" > >> feature. Rather than the facetious exception I listed above, it'd be > >> better to have all those refe

Re: Unable to Launch Python 2.7 after Windows 8.1 Update

2014-02-03 Thread Tim Golden
On 02/02/2014 15:39, Allison Gray wrote: I recently obtained a new laptop with Windows 8.1 and installed Python 2.7. Everything was working fine. Then after my first update, I was unable to launch Python. After clicking the Python icon, the thinking cursor activated, but Python never opened. I re

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Asaf Las
On Monday, February 3, 2014 9:37:36 PM UTC+2, Jean Dupont wrote: > Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las: > > Of course you don't have to, but I'm curious and learn well by examples > > :-( And making this design generic is really a good example indeed. -- https://mail.pyt

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Asaf Las
On Monday, February 3, 2014 9:37:36 PM UTC+2, Jean Dupont wrote: > Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las: > > Of course you don't have to, but I'm curious and learn well by examples > :-( Hi Jean Don't get me wrong i did not mean to be rude (was joking) - i think if you wi

Re: undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

2014-02-03 Thread Skip Montanaro
> Good luck getting this fixed. Even if you do manage to get your vendor > to start shipping wide builds, you're going to have people screaming > about how much more RAM their processes use now :( Never mind that > other Linux builds of Python have done the same thing for years. Our vendor hasn't

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Jean Dupont
Op maandag 3 februari 2014 16:34:18 UTC+1 schreef Asaf Las: > On Monday, February 3, 2014 5:05:40 PM UTC+2, Jean Dupont wrote: > > Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las: > > > > > On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: > > > > Op zondag 2 februari 20

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread wxjmfauth
Le lundi 3 février 2014 19:55:26 UTC+1, Rotwang a écrit : > On 03/02/2014 18:37, wxjmfa...@gmail.com wrote: > > >> [...] > > >> > > >> Hint: try clicking the ¶. > > > > > > I never was aware of this "feature". Is it deliverate? > > > > Do you mean deliberate? Of course it is. > > > > >

Re: [newbie] troubles with tuples

2014-02-03 Thread Jean Dupont
Op maandag 3 februari 2014 18:06:46 UTC+1 schreef Rustom Mody: > On Monday, February 3, 2014 10:20:31 PM UTC+5:30, Jean Dupont wrote: > > I'm looking at the way to address tuples > > e.g. > > tup2 = (1, 2, 3, 4, 5, 6, 7 ); > > As I found out indices start with 0 in Python, so > > tup2[0] gives me

Re: undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 5:59 AM, Skip Montanaro wrote: > On Mon, Feb 3, 2014 at 12:27 PM, Chris Angelico wrote: >> On Tue, Feb 4, 2014 at 4:41 AM, Skip Montanaro wrote: >>> I think this means that at configure time, OpenSuSE and our vendor >>> chose different values for the --enable-unicode optio

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 6:05 AM, Zachary Ware wrote: > On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico wrote: >> On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes >> wrote: >>> On 03.02.2014 16:14, Ram Rachum wrote: Worked! Thanks Ervin! >>> >>>$ sudo apt-get build-dep python3.3 >>> >>>

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Zachary Ware
On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico wrote: > On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes wrote: >> On 03.02.2014 16:14, Ram Rachum wrote: >>> Worked! Thanks Ervin! >> >>$ sudo apt-get build-dep python3.3 >> >> will install everything you need to compile Python 3.4 on Debian a

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread Rotwang
On 03/02/2014 18:37, wxjmfa...@gmail.com wrote: [...] Hint: try clicking the ¶. I never was aware of this "feature". Is it deliverate? Do you mean deliberate? Of course it is. It gives to me the feeling of a badly programmed html page, especially if this sign does correspond to an eol!

Re: undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

2014-02-03 Thread Skip Montanaro
On Mon, Feb 3, 2014 at 12:27 PM, Chris Angelico wrote: > On Tue, Feb 4, 2014 at 4:41 AM, Skip Montanaro wrote: >> I think this means that at configure time, OpenSuSE and our vendor >> chose different values for the --enable-unicode option. Is that >> correct? > > Easy enough to check. Fire up eac

Re: Python 3.3 and Pygame 19.2a install problems

2014-02-03 Thread MRAB
On 2014-02-03 06:43, Terry Reedy wrote: On 2/2/2014 10:04 PM, edvoge...@gmail.com wrote: Traceback (most recent call last): File "C:\Users\Ed\Documents\SOMA\Minecraft and Python\inventwithpython_src\dodger.py", line 1, in >> import pygame, random, sys File "C:\Python33\lib\site-packages\py

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes wrote: > On 03.02.2014 16:14, Ram Rachum wrote: >> Worked! Thanks Ervin! > >$ sudo apt-get build-dep python3.3 > > will install everything you need to compile Python 3.4 on Debian and > Ubuntu. Good luck! :) Technically that gets everything you

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 5:37 AM, wrote: > Le lundi 3 février 2014 18:42:36 UTC+1, Rotwang a écrit : >> On 03/02/2014 13:59, wxjmfa...@gmail.com wrote: >> Hint: try clicking the ¶. > > I never was aware of this "feature". Is it deliverate? > > It gives to me the feeling of a badly programmed > html

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread wxjmfauth
Le lundi 3 février 2014 18:42:36 UTC+1, Rotwang a écrit : > On 03/02/2014 13:59, wxjmfa...@gmail.com wrote: > > > [...] > > > > > > I noticed the same effect with the Python doc > > > since ? (long time). > > > > > > Eg. > > > > > > The Python Tutorial > > > appears as > > > The Python Tu

Re: fseek In Compressed Files

2014-02-03 Thread Serhiy Storchaka
30.01.14 18:21, Peter Otten написав(ла): Do you know an efficient way to implement random access for a bzip2 or gzip file? See dictzip and BGZF. Unfortunately Python stdlib doesn't support them. -- https://mail.python.org/mailman/listinfo/python-list

Re: Calculator Problem

2014-02-03 Thread Charlie Winn
On Monday, February 3, 2014 6:17:44 PM UTC, Joel Goldstick wrote: > On Feb 3, 2014 1:05 PM, "Charlie Winn" wrote: > > > > > > On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote: > > > > On 02/02/2014 01:16 PM, Charlie Winn wrote: > > > > > > > > > Hey Guys i Need Help , When i run

Re: Calculator Problem

2014-02-03 Thread Roy Smith
Charlie Winn wrote: > excuse me but don't be so *** rude , i did run this program and it did > run correctly and if you want me to prove it with screenshots so be it , so > don't make accusations ** Gary ** i only came here for some help not to be > accused of not even running my program H

Re: undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 4:41 AM, Skip Montanaro wrote: > I think this means that at configure time, OpenSuSE and our vendor > chose different values for the --enable-unicode option. Is that > correct? Easy enough to check. Fire up each Python and have a look at what sys.maxunicode is - if it's 655

Re: Calculator Problem

2014-02-03 Thread Joel Goldstick
On Feb 3, 2014 1:05 PM, "Charlie Winn" wrote: > > On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote: > > On 02/02/2014 01:16 PM, Charlie Winn wrote: > > > > > Hey Guys i Need Help , When i run this program i get the 'None' Under the program, see what i mean by just running it , can som

Re: Calculator Problem

2014-02-03 Thread Charlie Winn
On Sunday, February 2, 2014 9:46:24 PM UTC, Gary Herron wrote: > On 02/02/2014 01:16 PM, Charlie Winn wrote: > > > Hey Guys i Need Help , When i run this program i get the 'None' Under the > > program, see what i mean by just running it , can someone help me fix this > > > > > > def Addition():

Re: __init__ is the initialiser

2014-02-03 Thread Chris Angelico
On Tue, Feb 4, 2014 at 12:50 AM, Nicholas Cole wrote: >> There have been occasional times I've wanted an "explicit destruction" >> feature. Rather than the facetious exception I listed above, it'd be >> better to have all those references (including the original one in a, >> since there's nothing

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread andrea crotti
2014-02-03 : > generator slides review and Python doc > > > I do not know what tool is used to produce such > slides. > > When the mouse is over a a text like a title ( ... <\H*> ???) > the text get transformed and a colored eol is appearing. > > Example with the slide #3: > > Even numbers > becom

Re: __init__ is the initialiser

2014-02-03 Thread Ian Kelly
On Mon, Feb 3, 2014 at 6:44 AM, Dennis Lee Bieber wrote: > On Sun, 02 Feb 2014 18:40:59 -0500, Roy Smith declaimed the > following: > >>I'm reasonably sure you posted this as humor, but there is some truth in >>what you said. In the crypto/security domain, you often want to keep a >>key or clear

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread Rotwang
On 03/02/2014 13:59, wxjmfa...@gmail.com wrote: [...] I noticed the same effect with the Python doc since ? (long time). Eg. The Python Tutorial appears as The Python Tutorial¶ with a visible colored "¶", 'PILCROW SIGN', blueish in Python 3, red in Python 2.7.6. Hint: try clicking the ¶. --

undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

2014-02-03 Thread Skip Montanaro
For various reasons at work, we get Python from a third party. I just installed VTK for OpenSuSE on one of my desktop machines using zypper. When I import it from /usr/bin/python (2.7.3), the import works just fine. When I try to import it from our vendor-provided Python (2.7.2), I get this traceba

Re: [newbie] troubles with tuples

2014-02-03 Thread Rustom Mody
On Monday, February 3, 2014 10:20:31 PM UTC+5:30, Jean Dupont wrote: > I'm looking at the way to address tuples > e.g. > tup2 = (1, 2, 3, 4, 5, 6, 7 ); > As I found out indices start with 0 in Python, so > tup2[0] gives me 1, the first element in the tuple as expected > tup2[1] gives me 2, the se

Re: [newbie] troubles with tuples

2014-02-03 Thread Asaf Las
On Monday, February 3, 2014 6:50:31 PM UTC+2, Jean Dupont wrote: > I'm looking at the way to address tuples > > e.g. > tup2 = (1, 2, 3, 4, 5, 6, 7 ); > As I found out indices start with 0 in Python, so > tup2[0] gives me 1, the first element in the tuple as expected > tup2[1] gives me 2, the seco

Re: [newbie] troubles with tuples

2014-02-03 Thread Larry Martell
On Mon, Feb 3, 2014 at 11:50 AM, Jean Dupont wrote: > I'm looking at the way to address tuples > e.g. > tup2 = (1, 2, 3, 4, 5, 6, 7 ); > > As I found out indices start with 0 in Python, so > tup2[0] gives me 1, the first element in the tuple as expected > tup2[1] gives me 2, the second element in

[newbie] troubles with tuples

2014-02-03 Thread Jean Dupont
I'm looking at the way to address tuples e.g. tup2 = (1, 2, 3, 4, 5, 6, 7 ); As I found out indices start with 0 in Python, so tup2[0] gives me 1, the first element in the tuple as expected tup2[1] gives me 2, the second element in the tuple as expected now here comes what surprises me: tup2[0:1]

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread Michael Torrie
On 02/03/2014 06:59 AM, wxjmfa...@gmail.com wrote: > generator slides review and Python doc > > > I do not know what tool is used to produce such > slides. What slides? What web site are you referring to? A little context wouldn't hurt. -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Rustom Mody
On Monday, February 3, 2014 8:44:01 PM UTC+5:30, cool-RR wrote: > On Mon, Feb 3, 2014 at 1:08 PM, Ervin Hegedüs wrote: > > > try this: > > sudo apt-get install libssl-dev > Worked! Thanks Ervin! In general its a good idea to *look at* what you get with apt-get build-dep python3 You need not

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Christian Heimes
On 03.02.2014 16:14, Ram Rachum wrote: > Worked! Thanks Ervin! $ sudo apt-get build-dep python3.3 will install everything you need to compile Python 3.4 on Debian and Ubuntu. Good luck! :) Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Asaf Las
On Monday, February 3, 2014 5:05:40 PM UTC+2, Jean Dupont wrote: > Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las: > > > On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: > > > Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten: > > > I'm looking for an effici

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Ram Rachum
Worked! Thanks Ervin! On Mon, Feb 3, 2014 at 1:08 PM, Ervin Hegedüs wrote: > Hello, > > On Mon, Feb 03, 2014 at 02:50:15AM -0800, cool-RR wrote: > > Hi, > > > > I'm trying to install Python 3.4b3 on Ubuntu. Since compilation seems to > be the only way, I'm trying that. > > > > I downloaded the

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Jean Dupont
Op zondag 2 februari 2014 19:07:38 UTC+1 schreef Roy Smith: > In article <515e582f-ed17-4d4e-9872-f07f1fda6...@googlegroups.com>, > Jean Dupont wrote: > > > I'm looking for an efficient method to produce rows of tables like this: > > > > for base 2 > > 0 0 0 0 > > 0 0 0 1 > > 0 0 1 0 > > 0 0 1 1

Re: [newbie] making rows of table with discrete values for different number systems

2014-02-03 Thread Jean Dupont
Op maandag 3 februari 2014 02:56:43 UTC+1 schreef Asaf Las: > On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote: > > Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten: > > > > I'm looking for an efficient method to produce rows of tables like this: > > jean > you can als

Re: generator slides review and Python doc (+/- text bug)

2014-02-03 Thread Jean-Michel Pichavant
- Original Message - > generator slides review and Python doc > > > I do not know what tool is used to produce such > slides. > > When the mouse is over a a text like a title ( ... <\H*> ???) > the text get transformed and a colored eol is appearing. Used to get a link to the given chap

generator slides review and Python doc (+/- text bug)

2014-02-03 Thread wxjmfauth
generator slides review and Python doc I do not know what tool is used to produce such slides. When the mouse is over a a text like a title ( ... <\H*> ???) the text get transformed and a colored eol is appearing. Example with the slide #3: Even numbers becomes Even numbers§ with a visible co

Re: __init__ is the initialiser

2014-02-03 Thread Nicholas Cole
On Mon, Feb 3, 2014 at 12:07 AM, Chris Angelico wrote: > On Mon, Feb 3, 2014 at 10:40 AM, Roy Smith wrote: >> I'm reasonably sure you posted this as humor, but there is some truth in >> what you said. In the crypto/security domain, you often want to keep a >> key or cleartext around only for the

Re: Python 3.3 and Pygame 19.2a install problems

2014-02-03 Thread edvogel56
On Monday, February 3, 2014 12:43:06 AM UTC-6, Terry Reedy wrote: > On 2/2/2014 10:04 PM, EdV wrote: > > > > >> Traceback (most recent call last): File > > >> "C:\Users\Ed\Documents\SOMA\Minecraft and > > >> Python\inventwithpython_src\dodger.py", line 1, in > > >> import pygame, random, sy

[ANN] pyspread 0.2.6

2014-02-03 Thread Martin Manns
== pyspread 0.2.6 == Pyspread 0.2.6 is released. This update brings Excel xls file reading and prevents many pyspread lock ups that were caused by misbehaving user code. About pyspread == Pyspread is a non-traditional spreadsheet application that is based o

ANN: python-ldap 2.4.14

2014-02-03 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.14 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related st

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Ervin Hegedüs
Hello, On Mon, Feb 03, 2014 at 02:50:15AM -0800, cool-RR wrote: > Hi, > > I'm trying to install Python 3.4b3 on Ubuntu. Since compilation seems to be > the only way, I'm trying that. > > I downloaded the source, I changed Setup.dist to have this: > > SSL=/usr > _ssl _ssl.c \ >

Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread cool-RR
Hi, I'm trying to install Python 3.4b3 on Ubuntu. Since compilation seems to be the only way, I'm trying that. I downloaded the source, I changed Setup.dist to have this: SSL=/usr _ssl _ssl.c \ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ -L$(SSL)/lib -lssl -l

Re: Python for Myo Control Armband

2014-02-03 Thread Vincent Vande Vyvre
Le 03/02/2014 10:15, Fernando Masanori Ashikaga a écrit : Does anyone know if there is already a Python library for Myo [1] Gesture Control Armband? There are other gesture controls with Python libraries? Thanks in advance [1] https://www.thalmic.com/en/myo/

Python for Myo Control Armband

2014-02-03 Thread Fernando Masanori Ashikaga
Does anyone know if there is already a Python library for Myo [1] Gesture Control Armband? There are other gesture controls with Python libraries? Thanks in advance [1] https://www.thalmic.com/en/myo/ -- https://mail.python.org/mailman/listinfo/python-list