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
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
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
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
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
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:
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
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)
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
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
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
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
;, '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
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
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
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
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
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
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
#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
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('.')))
>
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
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
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
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
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
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
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
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
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
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
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
;), 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
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
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
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
> >
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
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
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
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
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
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
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__)
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
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
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
>
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
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
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
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
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
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
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
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
as a good matlab interface.
Any suggestions?
-felix
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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",
= datetime.date.today()
..
Cheers,
Felix.
--
https://mail.python.org/mailman/listinfo/python-list
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
-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
ly in /usr/include/openssl/
any ideas please?
Thanks in advance,
Felix.
--
https://mail.python.org/mailman/listinfo/python-list
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
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
--
@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
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
68 matches
Mail list logo