Beginner problem, please help. Building a simple menu + lists , cannot print list

2021-10-11 Thread Felix Kjellström
Hello! Please see the link to the code I have uploaded to my account at replit.com https://replit.com/join/lftxpszwrv-felixkjellstrom Problem: When you select the menu option "Add buyer", you can enter three values. See code line 5, "def Add_buyer ():" Then, you use the arrow keys to select t

Python 3.8.5

2021-01-06 Thread Joseph Milroy Felix Moraes (Moraes) via Python-list
Good day, I keep getting this error message when trying to open Python 3.8.5 on my computer windows 7 , 64 bit. --- python.exe - System Error --- The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try

RE: python3.7.2 won't compile with SSL support (solved)

2019-02-21 Thread Felix Lazaro Carbonell
Incredibly: ./configure --with-ssl=/usr/include/openssl/ Made the trick!! Although --with-ssl is not documented in ./configure --help. Cheers, Felix. -- https://mail.python.org/mailman/listinfo/python-list

python3.7.2 won't compile with SSL support

2019-02-21 Thread Felix Lazaro Carbonell
ly in /usr/include/openssl/ any ideas please? Thanks in advance, Felix. -- https://mail.python.org/mailman/listinfo/python-list

RE: more pythonic way

2019-02-11 Thread Felix Lazaro Carbonell
-Mensaje original- De: Python-list [mailto:python-list-bounces+felix=epepm.cupet...@python.org] En nombre de Grant Edwards Enviado el: lunes, 11 de febrero de 2019 02:46 p.m. Para: python-list@python.org Asunto: Re: more pythonic way On 2019-02-11, Felix Lazaro Carbonell wrote

RE: more pythonic way

2019-02-11 Thread Felix Lazaro Carbonell
Sorry I meant .. def find_monthly_expenses(month=None, year=None): month = month or datetime.date.today().month .. Or it should better be: ... if not month: month = datetime.date.today().month .. Cheers, Felix. -- https://mail.python.org

more pythonic way

2019-02-11 Thread Felix Lazaro Carbonell
= datetime.date.today() .. Cheers, Felix. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python boilerplate

2016-03-20 Thread Fernando Felix do Nascimento Junior
@all I released version 1.0.0 with a tiny glossary and explanation of each file in the boilerplate. @Chris I made the boilerplate with intent that everyone can understand, download and use quickly. So, I didn't put extra dependence like cookiecutter (that depends jinja, that depends markupsaf

Python boilerplate

2016-03-19 Thread Fernando Felix do Nascimento Junior
ge.py ## Structure Structure of the project in tree format. ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── MANIFEST.in ├── module_name.py ├── README.md ├── requirements │ ├── dev.txt │ └── prod.txt ├── requirements.txt ├── setup.cfg ├── setup.py ├── tests.py └── tox.ini Fernando Felix --

Re: Hello.

2016-01-19 Thread Felix Almeida
Check your PATH environment variable. On 16/01/16 04:41 PM, Hmood Js wrote: cmd won't recognize python at all I've checked several times , and I don't understand what's wrong Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python best practices

2016-01-16 Thread Felix Almeida
Pylint is your friend: http://www.pylint.org/ If you already know a bit about the language then a good place to start is the Google Python Style Guide: https://google.github.io/styleguide/pyguide.html On 15/01/16 08:19 PM, gliesia...@gmail.com wrote: Are there any good resources on python

Re: Issuing a sqilte query, picking a random result, and copying to the system clipboard

2015-06-23 Thread Felix Yan
on MacOS. Or you may want an existing library for all these. For example, pyperclip: >>> import pyperclip >>> pyperclip.copy('The text to be copied to the clipboard.') FYI: https://pypi.python.org/pypi/pyperclip -- Regards, Felix Yan signature.asc Description: Ope

Re: Lawful != Mutable (was Can Python function return multiple data?)

2015-06-08 Thread felix
El 07/06/15 12:20, Rustom Mody escribió: On Saturday, June 6, 2015 at 10:20:49 AM UTC+5:30, Steven D'Aprano wrote: On Sat, 6 Jun 2015 01:20 pm, Rustom Mody wrote: On Saturday, June 6, 2015 at 3:30:23 AM UTC+5:30, Chris Angelico wrote: Congrats! You just proved that an object can itself be imm

Re: a more precise distance algorithm

2015-05-25 Thread felix
El 25/05/15 15:21, ravas escribió: I read an interesting comment: """ The coolest thing I've ever discovered about Pythagorean's Theorem is an alternate way to calculate it. If you write a program that uses the distance form c = sqrt(a^2 + b^2) you will suffer from the lose of half of your ava

Re: Camelot a good tool for me

2015-05-22 Thread felix
El 22/05/15 10:24, Mark Lawrence escribió: On 22/05/2015 08:59, Cecil Westerhof wrote: I want to learn a lot of things. For example writing database and graphical applications. For database I decided on SQLAlchemy and GUI on Tkinter. In principal I want to write Python 3 applications. I came ac

Re: Opening Multiple files at one time

2015-04-22 Thread Felix Dietrich
f.write("some content") if some_condition: continue_to_open_files = False j += 1 Alternativly /itertools.count/ allows using of the for-loop: import itertools for j in itertools.count(1): with open("%03iworld" % j, "w") as f: f

Re: Trying to hire or grow a Python developer for a 2 year contract

2015-04-07 Thread felix
El 05/04/15 13:28, Peter Rowley escribió: Hi, I'm at York University in Toronto, Canada. We have a large Python-and-Oracle web application written with Pyramids and YUI that we use to manage the staffing of courses at York and are looking for an intermediate or senior developer for a 2 yea

Re: Thread._stop() behavior changed in Python 3.4

2014-03-17 Thread Felix Yan
g, though. In any case, if it's just a tests problem, you should > theoretically be able to ignore it. > > ChrisA I was just trying to comment and see yours... Thanks a lot! :D Regards, Felix Yan signature.asc Description: This is a digitally signed message part. -- https://mail.python.org/mailman/listinfo/python-list

Re: Thread._stop() behavior changed in Python 3.4

2014-03-17 Thread Felix Yan
On Monday, March 17, 2014 17:33:09 Antoine Pitrou wrote: > Hi, > > Felix Yan gmail.com> writes: > > A minimized snippet to reproduce: > > > > #!/usr/bin/python > > import threading > > > > def stale(): > > import time > >

Thread._stop() behavior changed in Python 3.4

2014-03-17 Thread Felix Yan
re's an easy way to get broken programs to work again, just in the way they currently are? Downstream bug reports, for reference: http://youtrack.jetbrains.com/issue/PY-12317 https://github.com/paramiko/paramiko/issues/286 Regards, Felix Yan signature.asc Description: This is a digit

Re: Diagnose a segfault in ipython/readline

2014-03-05 Thread Felix Yan
gh though. Also we reported the problem on readline mailing list first, so if they end up thinking there's something that python need to fix, I'll open a bug on the Python bug tracker. Thanks again! Regards, Felix Yan signature.asc Description: This is a digitally signed mess

Diagnose a segfault in ipython/readline

2014-03-05 Thread Felix Yan
;), don't press Enter - press "Up", followed by any key Backtrace pasted here: https://paste.xinu.at/cg7/ Downstream bug report on Arch Linux: https://bugs.archlinux.org/task/39144 Any help would be really appreciated! Regards, Felix Yan signature.asc Description: This is a digitally

Re: Lua is faster than Fortran???

2010-07-09 Thread Felix
On Jul 9, 12:44 am, Stefan Behnel wrote: > Felix, 09.07.2010 05:39: > Well, at least its "parallel processing abilities" are quite good actually. > If you have really large computations, they usually run on more than one > computer (not just more than one processor). S

Re: Lua is faster than Fortran???

2010-07-09 Thread Felix
On Jul 9, 1:16 am, sturlamolden wrote: > On 9 Jul, 05:39, Felix wrote: > > For an outsider it does not look like a solution to the GIL mess or a > > true breakthrough for performance are around the corner (even though > > there seem to be many different attempts at

Re: Lua is faster than Fortran???

2010-07-08 Thread Felix
ng with parts). Am I wrong? If not, what is the perspective? Do we need to move on to the next language and loose all the great libraries that have been built around python? Felix -- http://mail.python.org/mailman/listinfo/python-list

ConfigParser is not parsing

2010-02-12 Thread felix gao
Hi all, I am trying to get the some configuration file read in by Python, however, after the read command it return a list with the filename that I passed in. what is going on? Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright",

Re: SQL user function returning list for IN clause

2009-10-16 Thread Felix
ws: > > def foobar_contains(foo, bar): >     return foo in foobar(bar) > > and change the query to > > select * from table a, table b where foobar_contains(a.foo, b.bar) I thought about that (see above), but it would not use an index on a.foo which a regular a.foo IN (x,y,z)

SQL user function returning list for IN clause

2009-10-16 Thread Felix
I am using the Python SQLite3 interface, but the question is probably general to python and SQL. I want to run a query like select * from table a, table b where a.foo IN foobar(b.bar) where foobar is a user function (registered by create_function in pysqlite3) returning a list of integers. Howev

Multiprocessing.Array bug / shared numpy array

2009-10-08 Thread Felix
Hi, The documentation for the Multiprocessing.Array says: multiprocessing.Array(typecode_or_type, size_or_initializer, *, lock=True)¶ ... If lock is False then access to the returned object will not be automatically protected by a lock, so it will not necessarily be “process-safe”. ... However:

Re: Multiprocessing.Queue deadlock

2009-10-08 Thread Felix Schlesinger
On Oct 8, 3:21 am, Dennis Lee Bieber wrote: > On Wed, 7 Oct 2009 10:24:08 -0700 (PDT), Felix Schlesinger > > A bunch of workers push an unknown number of results into a queue. The > > main process needs to collect all those results. > > > What is the right wa

Re: Multiprocessing.Queue deadlock

2009-10-07 Thread Felix Schlesinger
On Oct 7, 12:16 pm, MRAB wrote: > Felix wrote: > > Hello, > > > I keep running into a deadlock in a fairly simple parallel script > > using Multiprocessing.Queue for sending tasks and receiving results. > > It seems to be the workers cannot finish pusing buffer

Multiprocessing.Queue deadlock

2009-10-06 Thread Felix
Is there something I am understanding wrong about the interface? Is there a much better way to do what I am trying to do above? Thanks Felix -- http://mail.python.org/mailman/listinfo/python-list

Designing superclasses so inherited methods return objects with same type as the instance.

2008-11-19 Thread Felix T.
bound) Is there a standard way to do this, or a better one? Thanks in advance, Felix -- http://mail.python.org/mailman/listinfo/python-list

Re: good matlab interface

2007-07-02 Thread felix seltzer
my problems where more with scipy, which i needed for pymat. scipy gives two import errors (but still imports), and then pymat cant find the libraries that scipy provides. ohwell... i think i can just modify it to work with numpy untill i can sort out the errors. thanks, -felix On 7/2/07

good matlab interface

2007-06-29 Thread felix seltzer
as a good matlab interface. Any suggestions? -felix -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML Render Support in PyGTK

2007-06-29 Thread felix seltzer
http://directory.fsf.org/webauth/htmlpreproc/gtkhtml.html might help. just like thomas though... more info on what your doing/have done would help us help you On 6/29/07, Thomas Jollans <[EMAIL PROTECTED]> wrote: There was no need to re-ask so soon. On Friday 29 June 2007, senthil arasu wrote

Re: Help needed in PyGTk

2007-06-29 Thread felix seltzer
try the pygtk mailing list, "pygtk" <[EMAIL PROTECTED]> they will probobly be able to help you more. On 6/29/07, senthil arasu <[EMAIL PROTECTED]> wrote: Hi, I am trying to render HTML in PyGTK widget but iam not getting the expected result. I would like to know whether PyGTK supports HTML rend

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-06-29 Thread felix seltzer
does this project include support for pygtk type GUI's? On 6/29/07, Mark Dufour <[EMAIL PROTECTED]> wrote: Hi all, I have just released version 0.0.22 of Shed Skin, an experimental Python-to-C++ compiler. Among other things, it has the exciting new feature of being able to generate (simple, fo

Re: Help Needed in WxPython

2007-06-28 Thread felix seltzer
If you use pygtk, the notebook object could do that in a few lines of code but im not sure about wxPython. note that if your using *nix of some sort, gtk should work fine, but under windows some people report issues. -felix On 6/28/07, senthil arasu <[EMAIL PROTECTED]> wrote: Hi, Cur

Re: Threads Dying?

2007-06-28 Thread felix seltzer
are you using pygtk as well? how are you using your threads, (just out of curiosity into the issue) -felix On 6/28/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: En Thu, 28 Jun 2007 15:12:53 -0300, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> escribió: > I've got

Re: DOS, UNIX and tabs

2006-12-28 Thread Felix Benner
Christophe Cavalaria schrieb: > Steven D'Aprano wrote: > You gave the reason in your post : because other people who are using > software that doesn't understand tabs as YOU expect them to have problems > with your code. > > Tabs aren't a problem at all as long as nobody else than you edit your c

Re: DOS, UNIX and tabs

2006-12-28 Thread Felix Benner
Sebastian 'lunar' Wiesner schrieb: > Ben <[EMAIL PROTECTED]> typed > >> I have a python script on a windows system that runs fine. Both use >> tabs to indent sections of the code. > > Just a tip for you: In python you never use tabs for indentation. The > python style guide [1] recommends four sp

Re: problem with PIPE

2006-12-24 Thread Felix Benner
Dhika Cikul schrieb: > Hello, > > I'm new in Python, i don't know my subject is correct or wrong. I have > problem with my script. I want to change password with passwd password > in python without user submitted anything from keyboard. I get > tutorial that i must use pipe to process this. And th

Re: Help with small program

2006-12-24 Thread Felix Benner
smartbei schrieb: > Hello, I am a newbie with python, though I am having a lot of fun using > it. Here is one of the excersizes I am trying to complete: > the program is supposed to find the coin combination so that with 10 > coins you can reach a certain amoung, taken as a parameter. Here is the >

Re: Question on regex

2006-12-23 Thread Felix Benner
Prabhu Gurumurthy schrieb: > to fix this problem, i used negative lookahead with ip pattern: > so the ip pattern now changes to: > \d{1,3}(\.\d{1,3}){3}(?!/\d+) > > now the problem is 10.150.100.0 works fine, 10.100.4.64 subnet gets > matched with ip pattern with the following result: > > 10.10

Re: [ANN] Py++ - 0.8.5

2006-12-21 Thread Felix Benner
Roman Yakovenko schrieb: > Hello! > > I'm pleased to announce the 0.8.5 release of Py++. I'm just wondering why there is a comp.lang.python.announce newsgroup. Could it be for making announcements or would that be too obvious? -- http://mail.python.org/mailman/listinfo/python-list

Re: Fall of Roman Empire

2006-12-20 Thread Felix Benner
Thomas Ploch schrieb: >> Ben Finney schrieb: >>> "John Machin" <[EMAIL PROTECTED]> writes: >>> Ben Finney wrote: > \ "...one of the main causes of the fall of the Roman Empire was | > `\that, lacking zero, they had no way to indicate successful | > _o__)

Re: MySQLdb, lots of columns and newb-ness

2006-12-19 Thread Felix Benner
Andrew Sackville-West schrieb: > I have an ascii data dump from a POS system that has 131 fields in a > single column in a flat file. I can easily open the file, read in the > data and assemble it into various formats. okay. what I *want* to do > is insert each of these fields into a mysql databas

AI library

2006-12-15 Thread Felix Benner
I thought about an AI library for python. This is the possible structure I came up with. Are there any thoughts about it? ailib/ search.py class State: "represents an immutable state of a problem" def __str__(self): pass def __has

pyqt scrollview layout

2006-07-21 Thread Felix Steffenhagen
remise() method, nothing happens. Does anyone know where the problem lies and perhaps has a solution for me? regards, Felix -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with win32com and MS Project

2005-10-19 Thread Felix Collins
Felix Collins wrote: > Hi, > > I'm trying to assign a resource to a task in MS Project by using the > example from MSDN for VB... > > > "Use the Add method to add an Assignment object to the Assignments > collection. The following example adds a resource ide

Trouble with win32com and MS Project

2005-10-19 Thread Felix Collins
;, 'D:\\Program Files\\Microsoft Office\\OFFICE11\\VBAPJ.CHM', 131074, -2146827187), None) Anyone got any ideas about how to attack this? Cheers, Felix -- http://mail.python.org/mailman/listinfo/python-list

Re: Inline::Python, pyperl, etc.

2005-09-01 Thread Felix Schwarz
Eli Stevens (WG.c) wrote: > PyPerl 1.0.1 > http://wiki.python.org/moin/PyPerl > > The interest in these projects seems to have died off about 2001, > however. That, or they simply haven't needed to be updated for the last > few Python versions. > > I've bumped into some snags with pyperl (can

Re: authentication project

2005-08-10 Thread Felix Schwarz
Hi, for some of the "ground work" you could use the Python Web Modules (www.pythonweb.org). fs -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP:sorting list of outline numbers

2005-08-02 Thread Felix Collins
Felix Collins wrote: > > Thanks Scott and Robert for your quick help. This list is amazing! > > Regards, > Felix Using Decorate, Sort , Undecorate... works like a charm. Thanks again. Felix -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP:sorting list of outline numbers

2005-08-02 Thread Felix Collins
Robert Kern wrote: > Felix Collins wrote: > > Use the "key" keyword argument to list.sort(). > > In [1]: outline = ['1.12', '1.1', '1', '1.2'] > > In [2]: outline.sort(key=lambda x: map(int, x.split('.'))) >

HELP:sorting list of outline numbers

2005-08-02 Thread Felix Collins
#x27;m planning on splitting the strings into multiple lists of ints and doing numerical sorts. Thanks for any clever ideas that might make it easier. Felix -- http://mail.python.org/mailman/listinfo/python-list

Help with regexp please

2005-07-22 Thread Felix Collins
nenumber = n.string[n.start():n.end()] parentoutlinenumber 1.2.3 How do I get that into one regexp? Thanks for any help... Felix -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with regexp please

2005-07-22 Thread Felix Collins
Christopher Subich wrote: > Scott David Daniels wrote: Thanks to you both. Wow! what a quick response! >string.rsplit('.',1)[0] Clever Python! ;-) Sorry, I mainly code in C so I'm not very Pythonic in my thinking. Thanks again... Felix -- http://mail.python.org/ma

regex question

2005-06-25 Thread Felix Schwarz
Hi all, I'm experiencing problems with a regular expression and I can't figure out which words I use when googling. I read the python documentation for the re module multiple times now but still no idea what I'm doing wrong. What I want to do: - Extract all digits (\d) in a string. - Digits are

Re: instantiate new objects

2005-03-10 Thread Felix Steffenhagen
The default mutual parameters in the method bayes.generate_cpd(...) was the problem, thanks alot for the hint and for this code snippet to find such problems :-). Greetings, Felix Michael Spencer wrote: Without looking in the slightest at what you are implementing or how, this implies that state

instantiate new objects

2005-03-10 Thread Felix Steffenhagen
e) Does someone see the problem there??? If you need some more information about what happens in the module please write me a mail, but i hope the comments are enough to understand the problem. If you think this is too much off-topic we can discuss the problem out of the newsgroup. thanks in

Re: duplicate docstrings

2005-02-19 Thread Felix Wiemann
hings""" def baz(self): """Baz things in a C manner""" class Implementation(Interface): def foo(self): pass def bar(self): pass def baz(self): pass print Implementation.foo.__doc__ print I

Re: sampling items from a nested list

2005-02-17 Thread Felix Wiemann
return_list.append([]) for j in i: if done.setdefault(j[1], 0) in indices[j[1]]: return_list[-1].append(j) done[j[1]] += 1 return return_list -- Felix Wiemann -- http://www.ososo.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can __new__ prevent __init__ from being called?

2005-02-15 Thread Felix Wiemann
Steven Bethard wrote: > Felix Wiemann wrote: > >> How can I prevent __init__ from being called on the >> already-initialized object? > > The short answer: you can't: > http://www.python.org/2.2.3/descrintro.html#__new__ What a pity. By the way, I'm just

Can __new__ prevent __init__ from being called?

2005-02-15 Thread Felix Wiemann
his checking code in the __init__ method of every subclass. Is there an easier way than using a metaclass and writing a custom __call__ method? -- Felix Wiemann -- http://www.ososo.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to pass attribute name via sys.argv

2005-01-27 Thread Felix Hebeler
Wolfram Kraus wrote: Felix Hebeler wrote: I need to call an object attribute: value = object.attrName[0] Use getattr: value = getattr(object, attrName)[0] HTH, Wolfram Thanks so much! Had I known earlier. Looks so easy... Now, why did I not find this in the online tutorial, the reference

how to pass attribute name via sys.argv

2005-01-27 Thread Felix Hebeler
thing like >>> attrName = sys.argv[1] >>> attrName 'cellsize' and I need to pass it on so I can call value = object.cellsize[0] Can this be done using Python? Thanks for any hints Cheers Felix -- http://mail.python.org/mailman/listinfo/python-list