Re: understanding list scope

2008-09-21 Thread Alex
On 21 Set, 15:07, George Sakkis <[EMAIL PROTECTED]> wrote: > On Sep 21, 8:51 am, Alex <[EMAIL PROTECTED]> wrote: > > > > > Hi all! > > > I have a problem understanding the behaviour of this snippet: > > > data_set = ({"param":"a&q

Re: NumPy installation won't import correctly

2009-12-06 Thread Alex
duce the problem with the 2.5 version of the 1.4 rc1 numpy DMG (with macpython 2.5.4 from python.org -- it refuses to install using Apple's own 2.5.1). Is there any known-to-work way to install numpy 1.4 on Mac OS X 10.5.8, and Python either 2.5 or 2.6? Guess next I'll try building from sources... Alex -- http://mail.python.org/mailman/listinfo/python-list

shove does not store data as expected

2010-04-21 Thread Alex
Dear all, I'm trying to use the shove module (http://pypi.python.org/pypi/shove) for a simple script. The script read a CSV file ad store the data. When I check the content of the "store" object (instance of Shove) *before* I close it, the data are all there but when I close and re- open it some da

Re: shove does not store data as expected

2010-04-21 Thread Alex
ry/shelve.html#example > > And further note that shove seems to be beta and (apart from > docstrings in the source code) undocumented. Thanks a lot for the clear explanation. It works! I will read the docs more carefully next time :-) Alex -- http://mail.python.org/mailman/listinfo/python-list

Is safe to use the shelve module with eventlet?

2010-06-28 Thread Alex
Hi all. I'm using eventlet <http://eventlet.net/> to build a simple web crawler. Can I use the shelve module for data persistence? Will I run into problems due to the non-blocking nature of eventlet? Thanks in advanced. Alex -- http://mail.python.org/mailman/listinfo/python-list

Open Source RSS Reader in Python?

2009-07-01 Thread Alex
I am looking for an open source RSS reader (desktop, not online) written in Python but in vain. I am not looking for a package but a fully functional software. Google: python "open source" (rss OR feeds) reader Any clue ? -- http://mail.python.org/mailman/listinfo/python-list

problem with keys combination!

2009-07-10 Thread Alex
t keys but doesn't work :-(( Plus..I can't install pyHook because there isn't a 2.6 version :-(( Can someone help me ?? thanks in advance Alex This is a piece of my code: while True: pg.event.pump() keyinput = pg.key.get_pressed() # press ESC to exit if keyinput[pg.K_

Re: problem with keys combination!

2009-07-10 Thread Alex
ys, I > have a shiny new Swiss Army Knife, the one with the screwdriver and the > corkscrew. I'd like to build my own Space Shuttle -- what do I do?" > :-))but yes We cannn Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with keys combination!

2009-07-11 Thread Alex
erase background) I read about getasynckey() to intercept a key...but I don't know how to change key pressed with another...maybe a solution ? Alex -- http://mail.python.org/mailman/listinfo/python-list

How to Force exiting from program/script

2009-07-15 Thread Alex
hi at all, I have made a script with a while loop and I want that after 30 seconds the program stop and exit . But the code like this doesn't run: In the Console I can see work so that function is correctly called... #Function to exit def exit(): print "work" raise SystemExit() t = thread

A lot of problem with pygame.mixer module!

2009-07-20 Thread Alex
play() in the dist folder there is SDL_mixer.dll so...HOW can I solve this problem ?? thanks in advance Alex Below my setup.py # py2exe setup program from distutils.core import setup import py2exe import pygame from modulefinder import Module #from pygame import mixer import ImageGrab import sys i

Re: web page retrieve problems

2009-07-27 Thread Alex
On Jul 26, 8:57 am, golu wrote: > the following function retrieves pages from the web and saves them in > a specified dir. i want to extract the respective filenames from the > urls e.g the page code.google.com shud be saved as code-google.htm  or > something similar. can u suggest me a way to do

index nested lists

2009-07-28 Thread Alex
era', 'banana'] [1, 2, 3] >>> but, if I want to enumerate elements about nested lists ??, something like: ciao 1 mela pera banana 1 2 3 ...How can I do ?? Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: index nested lists

2009-07-28 Thread Alex
t; > > >>> for parola in lista: > >    print lista[i] > >    i = i + 1 > > > ciao > > 1 > > ['mela', 'pera', 'banana'] > > [1, 2, 3] > > > but, if I want to enumerate elements about nested lists ??, somethi

Re: numpad in idle

2010-10-23 Thread Alex
thanks, but this doesn't solve the problem, because I need to use the numpad as a cursor, not to enter numbers. cheers, Alex On 24 окт, 16:44, rantingrick wrote: > On Oct 23, 7:41 pm, Jah_Alarm wrote: > > > here's my problem: I'm running IDLE in Ubuntu. For some r

Re: Retrieval of widget property values

2010-10-28 Thread Alex
thanks Peter, I'm probably not getting something, but how do show_size and show_button account for the changes in Entry? There are no references to the widget in either the function of the button. Sorry if the question is too dumb. cheers, Alex On Oct 28, 1:11 am, Peter Otten <__pete..

'NoneType' object has no attribute 'bind'

2010-10-28 Thread Alex
newpop=self.PopSize.get(); what am I doing wrong? cheers, Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: in need of some help...

2013-05-10 Thread Alex Norton
On Wednesday, 1 May 2013 13:15:28 UTC+1, Jens Thoms Toerring wrote: > Alex Norton wrote: > > > thanks... ill take a look at the Qt event handling > > > > It's rather simple: instead of the program running through a > > sequence of steps, the program norma

in need of some help regarding my rock paper scissors game

2013-05-12 Thread Alex Norton
im new to python and im in the middle of making a RPS game for a college unit. i have used PyQt to create the GUI and i have received help regarding adding the code to the buttons. but its missing something as the error 'Traceback (most recent call last): File "C:\Users\Me\Desktop\testy.py", lin

Re: in need of some help...

2013-05-12 Thread Alex Norton
On Saturday, 11 May 2013 23:20:13 UTC+1, Jens Thoms Toerring wrote: > Alex Norton wrote: > > > On Wednesday, 1 May 2013 13:15:28 UTC+1, Jens Thoms Toerring wrote: > > > > Of course, it might be nicer to have a "result" label some- > > > > where i

newbie question about subprocess.Popen() arguments

2013-05-23 Thread Alex Naumov
make it without additional saving? import subprocess as sp rc = sp.Popen(["prog", "--options", "<", msg], stdin=sp.PIPE, stdout=sp.PIPE) stdout = rc.communicate()[0] print stdout Thank you, Alex p.s. type(msg) => -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question about subprocess.Popen() arguments

2013-05-23 Thread Alex Naumov
Thank you very much, Peter! It works! On Thu, May 23, 2013 at 9:32 AM, Peter Otten <__pete...@web.de> wrote: > Alex Naumov wrote: > > > I'm trying to call new process with some parameters. The problem is that > > the last parameter is a "string"

Reading File Into 2D List

2013-07-09 Thread alex . hanga
Hello! I'm new here and fairly new to Python. I am attempting to read a data file into python and adding it to a 2D list to make it easy to use further down the line. My data file is just 7 numbers in a row seperated by commas and each bulk of data is seperated by the sign @ to indicate that th

Re: Reading File Into 2D List

2013-07-09 Thread alex . hanga
> Replace te **start line with something like: > > > > object_data.append([]) > > i += 1 > > > > This assumes a few missing lines, which must have been there or you > > would have already had runtime errors. For example, you'll need i=0 > > before the loop. > >

?????? how can I implement "cd" like shell in Python?

2012-06-28 Thread Alex chen
I just want to write a python program,it can be called in the linux terminal like the command "cd" to change the directory of the shell terminal -- -- ??: "Dave Angel"; : 2012??6??28??(??) ????8:12 ??: "A

Re: how can I implement "cd" like shell in Python?

2012-06-28 Thread Alex chen
OK,I see! Thank you everyone. -- Original -- From: "Evan Driscoll"; Date: Thu, Jun 28, 2012 10:27 PM To: "Alex chen"; Cc: "d"; "python-list"; Subject: Re: how can I implement "cd" like shell in

Re: Using a CMS for small site?

2012-07-05 Thread Alex Clark
s quite resource hungry -- especially it wants quite some memory. Actually with Plone 4 (and 4.2 in particular) that is becoming less true, I recently shrunk http://aclark.net to a 256MB vhost on rackspace cloud. -- Alex Clark · http://pythonpackages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dbf.py 0.94

2012-07-21 Thread Alex Strickland
index files": I have been using http://sourceforge.net/projects/harbour-project/ for years where a guy called Przemyslaw Czerpak has written an absolutely bullet proof implementation of NTX and CDX for DBF. Maybe it will interest you. PS : bareable is spelt bearable. -- Regards Al

Re: the meaning of rユ.......ï¾

2012-07-23 Thread Alex Strickland
-line strings). Not to mention <=, >=, ==, !=. And in languages other than python, things like ->, => (arrows for structure membership), and so on. It'll be pretty. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

ANN: pythonpackages.com beta

2012-07-28 Thread Alex Clark
/nights in #pythonpackages on irc.freenode.net. Hope to meet/talk with all of you soon. Alex -- Alex Clark · http://pythonpackages.com/ONE_CLICK -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: dbf.py 0.94

2012-08-03 Thread Alex Strickland
On 2012/07/21 11:49 PM, Mark Lawrence wrote: and PS is spelt p.s. :) Ahem, the absolutely authoritative reference on the subject: http://en.wikipedia.org/wiki/Postscript says PS or P.S. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: pylagiarism -- Need help now! Please provide code...

2012-08-14 Thread Alex Strickland
cn tell itz a fraud - sp 2 gd! lolz On 2012/08/14 08:34 AM, Simon Cropper wrote: Hi Everyone, I just had a great idea for a new python module. I haven't bothered googling it or doing any research. I need help putting together some code; today preferably, my boss is on my back. Can someone plea

Re: [OT] Posting under ones full name

2012-08-16 Thread Alex Strickland
On 2012/08/16 07:01 AM, Dan Sommers wrote: When I've got these antlers on I am dictating and when I take them off I am not dictating. Very good. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-20 Thread Alex Strickland
On 2012/08/17 12:42 AM, Madison May wrote: As a lurker, I agree completely with Chris's sentiments. I too, but I'd prefer something top-posted than have to skip through 38 pages of quoted e-mail to get to a (generally) 1 liner at the bottom. -- Regards Alex -- http://mail.

Your favorite test tool and automation frameworks

2012-08-27 Thread Alex Naumov
? Thank you, Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Fastest web framework

2012-09-23 Thread Alex Clark
Kornatskyy -- Alex Clark · http://pythonpackages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-24 Thread Alex Clark
e any trouble using it, please open a ticket here: - https://github.com/python-imaging/Pillow/issues Alex -- Alex Clark · http://pythonpackages.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Article on the future of Python

2012-09-27 Thread Alex Strickland
n.wikipedia.org/wiki/ISO/IEC_8859-1 -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-10-02 Thread Alex Clark
all your options. And if it helps, you can affect the future of PIL in a meaningful way via Pillow. Alex [1] The last commit to: http://hg.effbot.org/pil-2009-raclette was in 2011. Based on that information, the answer would appear to be "nothing", which is why Pillow exists. -- Al

Re: portable unicode literals

2012-10-15 Thread Alex Strickland
ng code between both versions. While this is a state I can live with, I wonder what the rationale for this is. !puzzled thanks u'' is legal in 3.3 again. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Interest in seeing sh.py in the stdlib

2012-10-21 Thread Alex Clark
uld a PEP be a good place to propose inclusion in the stdlib? -- Alex Clark · https://www.gittip.com/aclark4life/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL and requests don't get along

2012-10-23 Thread Alex Clark
ringIO.StringIO(r.content) image = Image.open(data) which works, but it's gross. Is there something I'm missing here? No idea but you can open a ticket here if you think it's appropriate: https://github.com/python-imaging/Pillow/issues -- Alex Clark · https://www.git

Re: Lazy Attribute

2012-11-16 Thread Alex Strickland
On 2012/11/16 09:49 AM, Andriy Kornatskyy wrote: The name "attribute" is not very descriptive. Why not "lazy_attribute" instead? It just shorter and still descriptive. Shorter, but not descriptive. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

How to pass class instance to a method?

2012-11-25 Thread ALeX inSide
How to "statically type" an instance of class that I pass to a method of other instance? I suppose there shall be some kind of method decorator to treat an argument as an instance of class? Generally it is needed so IDE (PyCharm) can auto-complete instance's methods and properties. Pseudo-pyt

Re: 10 sec poll - please reply!

2012-11-25 Thread ALeX inSide
press_keys() On Tuesday, November 20, 2012 2:18:38 PM UTC+2, Michael Herrmann wrote: > Hi, > > > > I'm developing a GUI Automation library (http://www.getautoma.com) and am > having difficulty picking a name for the function that simulates key strokes. > I currently have it as 'type' but tha

The Zen of Zope, by Alex Clark

2012-12-09 Thread Alex Clark
import other The Zen of Zope, by Alex Clark Beautiful is an attribute of ugly. Explicit is implemented by implicit. Simple is provided by complex. Complex is directly provided by complicated. Flat only implements nested. Sparse has tagged value dense. Readability count is not in range. Special

Re: The Zen of Zope, by Alex Clark

2012-12-10 Thread Alex Clark
On 2012-12-10 04:24:00 +, Steven D'Aprano said: On Sun, 09 Dec 2012 20:13:43 -0500, Alex Clark wrote: import other The Zen of Zope, by Alex Clark I expect that I would find that hilarious if I knew anything about Zope :) Well, you are in luck! Because it's a tutorial t

Re: The Zen of Zope, by Alex Clark

2012-12-11 Thread Alex Clark
On 2012-12-11 21:01:03 +, Gregory Ewing said: Steven D'Aprano wrote: On Sun, 09 Dec 2012 20:13:43 -0500, Alex Clark wrote: > The Zen of Zope, by Alex Clark I expect that I would find that hilarious if I knew anything about Zope :) It's probably a good thing I don'

Re: The Zen of Zope, by Alex Clark

2012-12-11 Thread Alex Clark
On 2012-12-12 00:36:29 +, alex23 said: On Dec 12, 7:23 am, Alex Clark wrote: TL;DR: Zope has a lot to offer, and there are times when you may need its libraries to perform complex tasks. I always avoided Zope as I kept hearing "there's the Python way and then there'

Please help test Pillow for Python 3

2013-01-15 Thread Alex Clark
Hi, Python 3 support for PIL has been merged into the Pillow (PIL fork) master branch. If this interests you, please help test! - git://github.com/python-imaging/Pillow.git More on the subject: - http://blog.aclark.net/2013/01/10/pillow-python-3/ -- Alex Clark · https://www.gittip.com

A quirk/gotcha of for i, x in enumerate(seq) when seq is empty

2012-02-23 Thread Alex Willmer
This week I was slightly surprised by a behaviour that I've not considered before. I've long used for i, x in enumerate(seq): # do stuff as a standard looping-with-index construct. In Python for loops don't create a scope, so the loop variables are available afterward. I've sometimes used this

Python urllib2 problem: Name or service not known

2012-02-27 Thread Alex Borghgraef
Hi all, Some time ago I've written some python code to read video data off an IP camera connected via a router to a laptop. Now I try to run this code on a different laptop and router combination, but now I can't access the camera. Some minimal example code: import urllib2 url = urllib2.urlo

Re: Python urllib2 problem: Name or service not known

2012-02-28 Thread Alex Borghgraef
On Feb 28, 1:36 am, Steven D'Aprano wrote: > On Mon, 27 Feb 2012 12:48:27 -0800, Alex Borghgraef wrote: > > Hi all, > > > Some time ago I've written some python code to read video data off an IP > > camera connected via a router to a laptop. Now I try to run t

Re: Python urllib2 problem: Name or service not known

2012-02-28 Thread Alex Borghgraef
On Feb 28, 10:50 am, Alex Borghgraef wrote: > I'll still have to find out a way to get this thing working with proxy > enabled if I ever want to connect it to our overall network. Ok, doing os.environ['http_proxy']='' before importing urllib2 seems to do the tric

Benchmarking stripping of Unicode characters which are invalid XML

2012-03-18 Thread Alex Willmer
7168610096 True genexp_f7 20.2065701485 True genexp_f8 21.1112251282 True Regards, Alex #!/usr/bin/python # Valid XML 1.0 characters are # #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x1-#x10] # http://www.w3.org/TR/2008/PER-xml-20080205/#charsets # # Before passing an arbitrary unicode s

Re: f python?

2012-04-09 Thread Alex Mizrahi
Ok no problem. My sloppiness. After all, my implementation wasn't portable. So, let's fix it. After a while, discovered there's the os.sep. Ok, replace "/" to os.sep, done. Then, bang, all hell went lose. Because, the backslash is used as escape in string, so any regex that manipulate path got fuc

Re: trac.util

2012-04-14 Thread Alex Willmer
ot;/root/weewx/bin/Image.py", line 32, in >     from  trac.util import escape > ImportError: No module named trac.util Trac is a bug tracker/wiki. Installation instruction are at http://trac.edgewall.org/wiki/TracDownload or you can probably through your operating system's packa

Re: *.sdf database access

2012-04-21 Thread Alex Willmer
string in Visual Studio. These look promising http://www.connectionstrings.com/sql-server-2005-ce > 3. Assuming a module from (1) above, does anyone have a code snippet > for connecting to the database and then accessing a varbinary (image) > in one of the tables of the databese? Pass, I'm afraid Regards, Alex -- http://mail.python.org/mailman/listinfo/python-list

Cross-platform mobile application written in Python

2012-06-17 Thread Alex Susu
-mobile-revival/ (also at http://go.to/slog). I would be happy to answer questions related to the project and appreciate if you can provide me feedback. With best regards, Alex Susu -- http://mail.python.org/mailman/listinfo/python-list

Cross-platform mobile application written in Python

2012-06-18 Thread Alex Susu
-mobile-revival/ (also at http://go.to/slog). I would be happy to answer questions related to the project and appreciate if you can provide me feedback. With best regards, Alex Susu -- http://mail.python.org/mailman/listinfo/python-list

Re: Anyone here can do a comparation between Djang and RoR

2011-08-16 Thread Alex Po
Many things already done in RoR if comparing it with Django. -- http://mail.python.org/mailman/listinfo/python-list

Re: subclass urllib2

2011-02-28 Thread Alex Willmer
On Feb 28, 6:53 pm, monkeys paw wrote: > I'm trying to subclass urllib2 in order to mask the > version attribute. Here's what i'm using: > > import urllib2 > > class myURL(urllib2): >      def __init__(self): >          urllib2.__init__(self) >          self.version = 'firefox' > > I get this> > T

下载 below Download, in python.org site menu

2011-03-06 Thread Alex Willmer
On the English version of http://python.org I'm seeing 下载 as a menu item between Download and Community. AFAICT it's Simplified Chinese for 'download'. Is it's appearance intentional, or a leak through from a translation of the entire page? Regards, Alex PS Tested with

Re: error in exception syntax

2011-03-09 Thread Alex Willmer
p://docs.python.org/release/3.2/whatsnew/3.0.html Regards, Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: argparse and filetypes

2011-03-22 Thread Alex Willmer
On Mar 22, 2:06 pm, Bradley Hintze wrote: > I just started with argparse. I want to simply check the extension of > the file that the user passes to the program. I get a ''file' object > has no attribute 'rfind'' error when I use > os.path.splitext(args.infile).  Here is my code. > > import argpar

Re: argparse and filetypes

2011-03-22 Thread Alex Willmer
On Mar 22, 2:06 pm, Bradley Hintze wrote: > Hi, > > I just started with argparse. I want to simply check the extension of > the file that the user passes to the program. I get a ''file' object > has no attribute 'rfind'' error when I use > os.path.splitext(args.infile). Addendum, some file object

Re: file print extra spaces

2011-03-22 Thread Alex Willmer
;                                  'count' : 49, > >                                  'c2' : '0.102040816326531', > > How can i print the file out without having an extra newline between > printed lines? > > Thanks for the help all. What you are se

Re: Validating Command Line Options

2011-03-23 Thread Alex Willmer
On Mar 23, 3:20 pm, T wrote: > Thanks!  argparse is definitely what I need..unfortunately I'm running > 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other > scripts break. Argparse was a third-party module before it became part of the std- lib. You may find it easier to use th

Re: Inconsistency with split() - Script, OS, or Package Problem?

2011-05-09 Thread Alex Willmer
(Direct reply to me, reposted on Jame's behalf) Hi Alex, On Mon, May 9, 2011 at 3:21 PM, Alex Willmer wrote: > On May 9, 8:10 pm, James Wright wrote: >> Hello Ian, >> >> It does indeed to seem that way. However the script works just fine >> on other ma

Re: What to use for finding as many syntax errors as possible.

2022-11-08 Thread Alex Hall
On Sunday, October 9, 2022 at 12:09:45 PM UTC+2, Antoon Pardon wrote: > I would like a tool that tries to find as many syntax errors as possible > in a python file. I know there is the risk of false positives when a > tool tries to recover from a syntax error and proceeds but I would > prefer th

Addition of a .= operator

2023-05-20 Thread Alex Jando
I have many times had situations where I had a variable of a certain type, all I cared about it was one of it's methods. For example: import hashlib hash = hashlib.sha256(b'word') hash = hash.hexdigest() ---

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-23 Thread Alex Pinkney
On Tue, 23 May 2023, 17:25 Chris Green, wrote: > Mike Dewhirst wrote: > > [-- multipart/mixed, encoding 7bit, 22 lines --] > > > > [-- text/plain, encoding base64, charset: UTF-8, 16 lines --] > > > > On 21/05/2023 5:53 am, Chris Green wrote: > > > I'm converting a bash script to python as i

<< robot control >>

2021-03-12 Thread Alex Kaye
I am looking for a package or module that would use my Rasberry Pi 3 wirelessly to control a land vehicle or someone to consult with to discuss some of my options. Maybe with joystick commands. Alex -- https://mail.python.org/mailman/listinfo/python-list

( AI retail store inventory control.)

2021-09-02 Thread Alex Kaye
Looking for Python package to develop positive inventory control for a chain of stores. Alex kaye -- https://mail.python.org/mailman/listinfo/python-list

RE: [Python-Dev] [RELEASE] Python 2.7.15

2018-05-01 Thread Alex Walters
I've gotten some mixed signals on the status of this release, notably from the BDFL: https://twitter.com/gvanrossum/status/991170064417153025 "Python 2.7.15 released -- the last 2.7 release!" (and a link to this thread) I was under the impression that 2.7 was being supported until 2020. If this

Re: Anaconda with Python 3.7

2018-09-03 Thread Alex Kaye
Sorry bad typing. AK On Mon, Sep 3, 2018 at 7:07 AM Alex Kaye wrote: > When one downloads Anaconda, doesn't it > bring Pyhon with it ? > > AK > > On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > >> On 2018-09-03 11:38, gvim wrote: >> > Anyone

Re: Anaconda with Python 3.7

2018-09-03 Thread Alex Kaye
When one downloads Anaconda, doesn't it bring Pyhon with it ? AK On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > On 2018-09-03 11:38, gvim wrote: > > Anyone have any idea when Anaconda might ship a version compatible with > > Python 3.7. I sent them 2 emails but no reply. > > > > gvim >

Re: Anaconda with Python 3.7

2018-09-05 Thread Alex Kaye
Sorry bad typing. AK On Mon, Sep 3, 2018 at 7:07 AM Alex Kaye wrote: > When one downloads Anaconda, doesn't it > bring Pyhon with it ? > > AK > > On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > >> On 2018-09-03 11:38, gvim wrote: >> > Anyone

Re: Anaconda with Python 3.7

2018-09-05 Thread Alex Kaye
When one downloads Anaconda, doesn't it bring Pyhon with it ? AK On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > On 2018-09-03 11:38, gvim wrote: > > Anyone have any idea when Anaconda might ship a version compatible with > > Python 3.7. I sent them 2 emails but no reply. > > > > gvim >

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread alex wright
We employ a pretty hard limit of 100. This way I can reliably have 1 module split vertically with a test or configuration file open or 3 separate modules, etc. I find 80 to be a bit strict, although in the past I've been in unfortunate environments where it was helpful. The rest of PEP8 is large

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread alex wright
The 80 column limit probably helps protect us from the singularity. Once the robots take over we will have code with a digestible amount of logic per line and can fix what we have caused. In other words, Java is only armoring the robots against us for the inevitable battle. On Sat, Apr 16, 2016

Re: How to become more motivated to learn Python

2016-05-04 Thread alex wright
Beyond motivation, it's not likely just reading a flat text will be retained meaningfully without creative problem solving. Personal projects are the best route in my opinion. I like reading technical books but I figure I retain a small percentage of the specifics. On May 4, 2016 6:32 AM, "mvilja

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread alex wright
It seems like it would be equal opportunity between sexes. 1:1 opportunity to ask based on apparent sex. It is not equal representation necessarily. On May 6, 2016 5:53 PM, "beliavsky--- via Python-list" < python-list@python.org> wrote: > On Friday, May 6, 2016 at 5:07:28 PM UTC-4, Ethan Furman

Re: How to put back a number-based index

2016-05-14 Thread alex wright
I have recently been going through "Data Science From Scratch" which may be interesting. There is a podcast with the author on talk python to me. https://talkpython.fm/episodes/show/56/data-science-from-scratch On Sat, May 14, 2016 at 10:33 AM, Michael Selik wrote: > You might also be interest

Re: Django Girls workshop at EuroPython 2016

2016-05-26 Thread alex wright
From the link: "If you are a woman, know English and have a laptop you can apply for a pass!" So it would appear so. On Thu, May 26, 2016 at 5:39 AM, Karim wrote: > > > On 26/05/2016 10:58, M.-A. Lemburg wrote: > >> We’re pleased to announce a Django Girls workshop on Sunday, July 17, >> the f

Re: movie from pictures

2016-06-10 Thread alex wright
I find shlex.split to be most useful to make my arguments a list in these cases. On Jun 9, 2016 3:28 PM, "MRAB" wrote: > On 2016-06-09 19:58, Peter Otten wrote: > >> Nev wrote: >> >> Thank you for your reply. I tried something like this in python code: >>> >>> from subprocess import call >>> call

Re: PyCon Keynote

2016-06-18 Thread alex wright
I enjoyed it. Skipped most of the intro video but I enjoyed the content of his talk. Shared with a co-worker as well. On Jun 18, 2016 5:23 PM, "Chris Angelico" wrote: > On Sun, Jun 19, 2016 at 7:14 AM, Quivis wrote: > > On Thu, 09 Jun 2016 12:53:37 -0700, Ethan Furman wrote: > > > >>https:

Re: ANN: Python Meeting Düsseldorf - 07.11.2018

2018-11-13 Thread Alex Kaye
Is anyone conducting Python webinars ? It would be helpful to us beginners. It could become a worldwide connector for Python users. Alex On Tue, Nov 13, 2018 at 3:21 AM eGenix Team: M.-A. Lemburg wrote: > > [This announcement is in German since it targets a local user group > m

get the terminal's size

2019-01-14 Thread Alex Ternaute
subprocess. I feel that I'm missing something but what ? Looking on the internet for a hint, I see that python3 has an os.get_terminal_size(). Please, is there something similar for python2 ? Cheers -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
Hi, Peter Otten : >> In a terminal, I type $ echo $COLUMNS 100 >> But in Python, os.getenv("COLUMNS") gets nothing. >> I feel that I'm missing something but what ? > $ export COLUMNS Thank you very much ! -- Aelx -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
ows the windows resizings. Whenever I consider forking to Python3, this would be my 1st step. >> Please, is there something similar for python2 ? > I suspect there is some solution in the curses module... I did dir(curse) but I could not see if something goes this way. Bye -- Alex -- https:/

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
order to use get_terminal_size(). Bye -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-15 Thread Alex Ternaute
n argument. I tried : P = Popen(['stty', '-a'], stdout=subprocess.PIPE, universal_newlines=True) and it runs fine too, so the output seems not really related to that fd. Btw I did not know about namedtuple, thanks for that too. > Hope this helps. Greatly. Cheers, -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-15 Thread Alex Ternaute
om/questions/1396820/apt-like-column-output- python-library/1446973#1446973 Fine, but It meets much more needs than my present one. But thanks too. Bye -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: get the terminal's size

2019-01-15 Thread Alex Ternaute
smthlike: cs.tty.ttysize(0) WinSize(rows=50, columns=100) anotherTty=open('/dev/pts/3', 'rw') cs.tty.ttysize(anotherTty) WinSize(rows=43, columns=199) It runs :) I do not need that today but one day orother it could help. Cheers -- Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: My appreciation for python's great work to my country.

2019-02-11 Thread Alex Kaye
Kiyimba, In my community in Arizona ( pop 7000) I am the only one using Linux and the only one who is studying Python, no one is coding. So spread your knowledge among the youth of your commun ity. It is good for their future. Alex Kaye On Sat, Feb 9, 2019 at 1:34 PM Terry Reedy wrote: >

Re: Python resources recommendations

2019-03-09 Thread Alex Kaye
DL, Good advice. U of M is well done and interesting. One wonders what Arup plans to use Python for. I am dabbling and am relearning from DOS and machine language on AppleII. A K.

Re: EuroPython 2020: Going virtual / EuroPython 2021: Dublin, Ireland

2020-03-17 Thread Alex Kaye
Glad to read this. It is about time to benefit those of us that do not travel to events. AK On Tue, Mar 17, 2020 at 2:52 AM M.-A. Lemburg wrote: > In our blog post on the COVID-19 last week, we were still hopeful that > the situation would improve in time for the event in July. The last > few

Re: Phyton 32 or 64 bit?

2020-05-26 Thread Alex Kaye
To all: The only stupid question is one that wasn't asked ! Alex On Tue, May 26, 2020 at 12:42 PM MRAB wrote: > On 2020-05-26 19:13, R. A. Hoffman via Python-list wrote: > > > > Good afternoon, > > > > > > > > Please forgive what may be a stu

Re: EuroPython videos all on archive.org

2020-11-28 Thread Alex Kaye
Without volunteers, the world would end, abruptly ! Thanks, Alex On Sat, Nov 28, 2020 at 5:48 AM M.-A. Lemburg wrote: > Over the last few weeks, Anthon van der Neut, our media work group chair > for EP2015 and EP2016, put in a lot of effort into getting all our > conference

<    1   2   3   4   5   6   7   8   9   10   >