Am 17.01.2024 um 19:44 schrieb Mats Wichmann via Python-list:
Be interesting to know if your WIndows 10 has those files in place, and
it's just a missing path entry (a good thing, perhaps) that's causing it
not to be found there.
Yes. Python is not on the Path - by design.
while the new Wi
Am 16.01.2024 um 23:44 schrieb Barry via Python-list:
On 16 Jan 2024, at 17:11, Sibylle Koczian via Python-list
wrote:
while the new Windows 11 machine finds the Microsoft stub
You can turn off the stub in windows settings. The magic windows jargon is
“App Execution Aliases”. Once you
Am 15.01.2024 um 23:55 schrieb Mats Wichmann via Python-list:
On 1/15/24 12:01, Thomas Passin via Python-list wrote:
On 1/15/2024 1:26 PM, Mats Wichmann via Python-list wrote:
Python from the App Store is not the same as Python from python.org:
yes. this question is about the python.org distri
Am 15.01.2024 um 00:46 schrieb Mike Dewhirst via Python-list:
In Windows the provided methods for running complex command lines are either a
batch file or a shortcut.Someone very kindly pointed out to me in this thread
that there is a PEP for py.exe. I don't use py.exe originally because I didn
Am 09.01.2024 um 12:36 schrieb Barry Scott via Python-list:
On 7 Jan 2024, at 15:09, Sibylle Koczian via Python-list
wrote:
Oh, and the two Windows and Python versions are on two different computers.
Will remove the "/env" from my shebang lines, even if I don't un
Am 01.01.2024 um 12:50 schrieb Barry via Python-list:
On 1 Jan 2024, at 11:14, Sibylle Koczian via Python-list
wrote:
But in all this thread I didn't see a single explanation for my current
situation: one and the same shebang line works on Windows 10 / Python 3.11 and
doesn'
Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list:
I had assumed the OP had installed Python from the Microsoft shop and
that's where py.exe must have come from.
In fact I didn't say in my post that I always get Python from
python.org. When I started to use the language there wa
Am 22.12.2023 um 14:13 schrieb Barry:
On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list
wrote:
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file
Hello,
I always install Python on Windows in the same manner:
- Python is not on the path,
- it is installed for all users,
- the Python Launcher is installed for all users,
- the file types .py, .pyw etc. are associated with Python.
My shebang line is usually "#!/usr/bin/env python3".
This ha
Am 24.11.2023 um 22:49 schrieb Rimu Atkinson via Python-list:
I really can't think of a case
where the missing comma would make any sense at all.
That is pretty tricky, yes.
The comma means it's a tuple. Without the comma, it's just a string with
parenthesis around it, which is a strin
Am 29.03.2023 um 18:46 schrieb Pranav Bhardwaj:
Dear sir,
I am Pranav Bhardwaj and I stuck in a problem. My problem is
that in my system I have python 3.11.2 but when I type python in my command
prompt, my command prompt show that python version 2.7.13 as a default. And
I can't be
Am 20.03.2021 um 09:34 schrieb Alan Bawden:
The real reason Python strings support a .title() method is surely
because Unicode supports upper, lower, _and_ title case letters, and
tells you how to map between them. Consider:
>>> '\u01f1'.upper()
'\u01f1'
This is the "DZ" character.
Am 13.02.2021 um 06:34 schrieb Mladen Gogala via Python-list:
On Fri, 12 Feb 2021 18:29:48 +, Tony Ogilvie wrote:
I am trying to write a program to open a PostgesSQL 13 database using
psycopg2. All seems to work if I write direct to Python but if I write
the script into IDLE it does not wor
Am 19.01.2021 um 17:48 schrieb Dennis Lee Bieber:
On Tue, 19 Jan 2021 03:26:50 + (UTC), Mladen Gogala via Python-list
declaimed the following:
Since you're most probably using Winduhs, use regedit and modify your PATH
You don't need to use regedit to modify environment variables.
Am 31.12.2020 um 18:06 schrieb Mats Wichmann:
What you're doing is going to give you probably unexpected results
anyway. Here's why: (when it's set up properly) when clicking from
explorer Windows will create a window to run the Python interpreter in,
and when your script finishes, Python quit
Am 06.12.2020 um 15:19 schrieb MRAB:
On 2020-12-06 08:11, Sibylle Koczian wrote:
Am 05.12.2020 um 19:56 schrieb Paulo da Silva:
Hi!
Why this example does not work?
--
from tkinter import *
root=Tk()
root.geometry("400x200")
S=Scrollbar(root)
T=Text(root)
...
Am 05.12.2020 um 19:56 schrieb Paulo da Silva:
Hi!
Why this example does not work?
--
from tkinter import *
root=Tk()
root.geometry("400x200")
S=Scrollbar(root)
T=Text(root)
...
mainloop()
-
Shouldn't that be
root.mainloop()
?
--
https://mail.python
Am 08.10.2020 um 18:58 schrieb Joe via Python-list:
Hi,
I just downloaded the above for Windows but am unable to get it to run. I have gone to
the directory and double-clicked the "python.exe" file but that just brings me
to the command prompt.
Any suggestions as to what I am doing wrong?
Tha
Am 15.08.2020 um 10:14 schrieb Manfred Lotz:
Hi Chris,
Thanks a lot for you advice.
On Sat, 15 Aug 2020 16:15:29 +1000
Chris Angelico wrote:
On Sat, Aug 15, 2020 at 3:36 PM Manfred Lotz
wrote:
I have an object which I could initialize providind an int or a str.
...
For my use case I do
Am 09.03.2020 um 10:08 schrieb Hilary Ilsley:
Hello
We have been asked to download python so our daughter can complete her homework, only once we have down
loaded it keeps going to "set up" and even after completing "modify" or
"repair" it goes back to set up.
https://www.python.org/downloads/
Am 25.02.2020 um 07:32 schrieb Christian Gollwitzer:
Am 24.02.20 um 22:29 schrieb mm0fmf:
Can anyone recommend a graphic layout designer for Tkinter programs.
I have a number of older C# Windows Forms apps that need porting so
they can run on Linux and Windows and this is the chance to re-wri
Am 22.10.2019 um 19:24 schrieb Terry Reedy:
...
Is there a win32 list where people might have more knowledge of such?
There is:
python-wi...@python.org
https://mail.python.org/mailman/listinfo/python-win32
If you prefer Gmane:
news://news.gmane.org/gmane.comp.python.windows
HTH
--
htt
Am 19.10.2019 um 13:11 schrieb jf...@ms4.hinet.net:
For the two examples below:
(1)
class A:
... def foo(self):
... self.goo()
...
class B(A):
... def goo(self):
... print(1)
...
(2)
class A:
... def foo(self):
... self.goo()
... def goo(self): pass
Am 03.10.2018 um 09:34 schrieb Timothy Cowell via Python-list:
Could I please ask for help installing Python on Windows 10 - I've tried twice
(Version 3.7 for windows) selecting the install now option. After first attempt
I uninstalled and tried again.
Each time it has put 4 items in the progr
Am 21.08.2018 um 23:36 schrieb Poul Riis:
I would like to list all possible ways to put N students in groups of k
students (suppose that k divides N) with the restriction that no two students
should ever meet each other in more than one group.
I think this is a classical problem and I think the
Am 06.11.2017 um 23:40 schrieb Skip Montanaro:
I'm using sqlite3 (2.6.0, SQLite version 3.13.0, Python 2.7.13) and
was hoping to introspect the types of a table using the cursor's
description attribute. PEP 249 states: "The first two items (name and
type_code) are mandatory..." I tried this query
Am 26.03.2017 um 06:01 schrieb arjun.janah:
Hello,
I am using an HP PC, brought in 2009, which currently has on it Windows 7
Ultimate, Service Pack 1.
Did you do all Windows updates?
System type is 64-bit operating system.
I went to https://www.python.org/downloads/windows/ and chose the f
Am 15.03.2017 um 01:23 schrieb Michael Torrie:
On 03/14/2017 01:59 PM, Xristos Xristoou wrote:
I have a database in microsoft ACCESS with about 150 records.. if I
want to get some data from this database using a query in python and
i want to store in some variables in python that will do this
Am 13.09.2016 um 12:09 schrieb Chris Angelico:
On Tue, Sep 13, 2016 at 8:01 PM, Antoon Pardon
wrote:
Then python seems to be broken:
]]] a = range(3)
]]] old_a = a
]]] a += [8, 13]
]]] id(a), id(old_a)
(140062018784792, 140062018784792)
]]] a, old_a
([0, 1, 2, 8, 13], [0, 1, 2, 8, 13])
A r
Am 27.06.2016 um 22:14 schrieb codewiz...@gmail.com:
On Sunday, June 26, 2016 at 5:45:18 PM UTC-4, Michael Torrie wrote:
Qt's a fantastic toolkit, and the most mature of any of them, and the
most portable, but man the bindings are not Pythonic at all.
Enaml feels pretty Pythonic to me:
https
Am 27.04.2016 um 11:31 schrieb Peter Otten:
Sibylle Koczian wrote:
And if the csv module is used anyway, why not simply read into a
DictReader?
How would that help with looking up 3.5 by "apple" given the OP's sample
data
banana,4.0
apple,3.5
orange,3.0
Quite right, it wo
Am 27.04.2016 um 04:42 schrieb jf...@ms4.hinet.net:
Just curious:-) why everyone here open the csv file without using newline='' as
suggested in Python 3.4.4 document section 14.1?
And if the csv module is used anyway, why not simply read into a DictReader?
--
https://mail.python.org/mailman
Am 28.03.2016 um 02:20 schrieb Steven D'Aprano:
On Mon, 28 Mar 2016 01:18 am, Bob Gailer wrote:
The problem with putting input at the end of a program is: if the program
raises an exception you won't see it.
True. But the solution to that is simple: don't make mistakes when
programming :-)
I
Am 13.03.2016 um 20:19 schrieb mrihustle12:
Sent from my Sprint Samsung Galaxy S® 6.
Not with this information, we'd need much more. The OS is necessary
information, but not sufficient.
Have you got Python installed? If yes, which version? Where did you get
it and how did you install it?
Am 27.02.2016 um 19:13 schrieb wrong.addres...@gmail.com:
On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote:
On 27.02.2016 12:18, wrong.addres...@gmail.com wrote:
Isn't there any good GUI IDE like Visual Basic? I hope there are some less well
known GUI IDEs which I did
Am 02.11.2015 um 13:35 schrieb Daniel Joffe:
Didn't you see the answers to your first posting? All of them earlier
than this.
Sibylle
--
https://mail.python.org/mailman/listinfo/python-list
Am 30.10.2015 um 17:20 schrieb Robinson, Wendy:
Hi there,
I installed Python 3.5.0 64-bit for Windows yesterday and tried some
basic programs successfully.
This morning I rebooted my computer and can’t get a single one to work.
The interpreter seems to be fine and the environment variables look
Am 13.10.2015 um 00:10 schrieb Ben Finney:
Sibylle Koczian writes:
Am 12.10.2015 um 13:39 schrieb Steven D'Aprano:
Auto-complete is a fine and useful tool. But if you are crippled as a
programmer without it, well, then you can hardly claim to understand the
language or framework yo
Am 12.10.2015 um 13:39 schrieb Steven D'Aprano:
Auto-complete is a fine and useful tool. But if you are crippled as a
programmer without it, well, then you can hardly claim to understand the
language or framework you are programming in if you cannot use it without
an IDE doing half the work for y
Am 06.08.2015 um 03:06 schrieb Terry Reedy:
There have been discussions, such as today on Idle-sig , about who uses
Idle and who we should design it for. If you use Idle in any way, or
know of or teach classes using Idle, please answer as many of the
questions below as you are willing, and as ar
Am 18.07.2015 um 02:40 schrieb Denis McMahon:
On Thu, 16 Jul 2015 19:15:38 -0700, craig.sirna wrote:
The assignment wants us to take a users first, middle and last name in a
single input ( name=('enter your full name: )).
Then we must display the full name rearranged in Last, First Middle
orde
Am 20.02.2015 um 15:16 schrieb Dennis Lee Bieber:
The middle-ground is probably something like the embedded version of
Firebird (pity there has been no updated book -- "The Firebird Book" came
out in 2004, v1.5 while 2.5 is current [Whoops, looks like there /is/ an
update, print-on-deman
that a bad idea. I haven't done any designing that
included databases.
Thanks!
Chuck
When I first answered this question, I sent the answer erroneously to
the OP and not to the list. So here it is again.
On Tue, Oct 14, 2014 at 1:19 PM, Sibylle Koczian wrote:
>
> As I don't know
Am 18.07.2014 20:45, schrieb Chris “Kwpolska” Warrick:
Yes, exceptions do exist. But most video tutorials are produced by
people without enough knowledge, and people that should not be working
on educational material. This is especially visible in videos about
basic things: they can be produced b
Am 29.06.2014 09:06, schrieb Martin S:
x=int(input('Enter an integer '))
y=int(input('Enter another integer '))
z=int(input('Enter a third integer '))
formatStr='Integer {0}, {1}, {2}, and the sum is {3}.'
equations=formatStr.format(x,y,z,x+y+z)
print(equations)
formatStr2='{0} divided by {1} is
Am 24.12.2013 01:39, schrieb Chris Angelico:
On Tue, Dec 24, 2013 at 11:30 AM, Igor Korot wrote:
So, my question is: since there is a simple way of inserting
preformatted string into the datetime field of mySQL, how do I
validate the date string?
Well, the easiest way would be to simply attem
Am 28.11.2013 02:32, schrieb Mark Lawrence:
On 28/11/2013 01:05, Dennis Lee Bieber wrote:
Not quite as friendly, and sort of a moving target: Look at Dabo [the
creators' goal was to create a Python equivalent of Visual FoxPro].
At http://www.dabodev.com/ and mailing list at
gmane.comp.python.
Am 07.11.2013 14:14, schrieb Piet van Oostrum:
Nick the Gr33k writes:
I have decided to take your advice.
I wasn't able to fit those 'lists' of mine into MySQL's varchar()
datatype after converting them to long strings and that sads me.
My implementation is like the following.
I do not use an
Am 13.06.2013 09:11, schrieb Νικόλαος Κούρας:
On 13/6/2013 4:55 πμ, Steven D'Aprano wrote:
The "and" operator works in a similar fashion. Experiment with it and see
how it works for yourself.
I read yours psots many times,all of them, tryign to understand them.
But you didn't do what he re
Am 12.06.2013 22:00, schrieb Νικόλαος Κούρας:
On 12/6/2013 10:48 μμ, Sibylle Koczian wrote:
if '=' not in ( name and month and year ):
i understand: if '=' not in name AND '=' not in month AND '=' not in
year
Wrong. The "'=' not in (...)
Am 12.06.2013 20:06, schrieb Νικόλαος Κούρας:
Whn i see:
if( x and y ):
i understand: if x expression = True AND ALSO y expression = True then
execute
if( x or y ):
i understand: if x expression = True OR y expression = True then execute
You didn't read MRABs explanation, did you?
if '=' n
Am 19.04.2013 19:42, schrieb lcrocker:
I understand that for something like a server distribution, but Ubuntu
is a user-focused desktop distribution. It has a GUI, always. The
purpose of a distro like that is to give users a good experience. If I
install Python on Windows, I get to use Python. On
Am 02.04.2013 18:10, schrieb David Robinow:
On Tue, Apr 2, 2013 at 11:39 AM, D. Xenakis mailto:gouzouna...@hotmail.com>> wrote:
3)Downloaded and installed "PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe"
from http://www.riverbankcomputing.com/software/pyqt/download ,
here: "C:\Python33" (It
Am 17.03.2013 16:50, schrieb rusi:
About your python I cant say, but your English looks/sounds as good as
a native's.
So dont waste your time getting that right; its good enough!
Thank you. Flowers go to Dorothy L. Sayers, most of them. As far as Dabo
is concerned, at the moment I just have to
Am 16.03.2013 21:30, schrieb Wolfgang Keller:
Will look at Pypapi and SQLkit.
Did look: SQLkit needs Python 2. Pypapi, from the link you gave: "The
new release of PyPaPi is written in Java. You can find more info in the
official site." On this official site - http://www.pypapi.org/ - I can't
Am 14.03.2013 14:24, schrieb Wolfgang Keller:
This is becoming an FAQ.
The currently available (non-web) database application development
frameworks for Python are:
using wxPython:
Dabohttp://www.dabodev.com
Defis http://sourceforge.net/projects/defis/ (Russian only)
GNUehttp://www.gn
Am 22.05.2012 04:37, schrieb Simon Cropper:
On 22/05/12 05:35, Sibylle Koczian wrote:
So I suppose you're using Python 2 or that's acceptable for you at
least. In this case I'd take a long look at Dabo: http://www.dabodev.com/
That's based on wxPython but easier to use and
Am 19.05.2012 04:05, schrieb Simon Cropper:
Googling gridtable allowed me to find my way to the wxGrid Manual which
seems to be what I was asking for...
http://wiki.wxpython.org/wxGrid%20Manual
wxPyGridTableBase, a particular class associated with wxGrid appears to
be what I need. The blurb sta
Am 25.11.2011 01:16, schrieb Steven D'Aprano:
As far as I can tell, nobody running the 64-bit version of Windows 7 has
chimed in to either confirm or refute W. eWatson's claim that IDLE
doesn't show up, so we have no way of telling whether it doesn't show up
due to a lack in the installer, or be
Am 23.11.2011 04:45, schrieb Alan Meyer:
On 11/22/2011 3:05 PM, Dennis Lee Bieber wrote:
On Tue, 22 Nov 2011 14:29:18 -0500, Alan Meyer
declaimed the following in gmane.comp.python.general:
On 11/22/2011 1:55 PM, Alan Meyer wrote:
...
6. Select, or navigate to and select, the python IDLE inte
Am 13.08.2011 21:26, schrieb MrPink:
I have file of records delimited by spaces.
I need to import the date string and convert them into date datatypes.
'07/27/2011' 'Event 1 Description'
'07/28/2011' 'Event 2 Description'
'07/29/2011' 'Event 3 Description'
I just discovered that my oDate is not
Am 19.11.2010 21:27, schrieb Ned Deily:
There have been a lot of changes going into Python 3.2, currently in
alpha testing, in the areas of encodings and how they affect the
interfaces to/from the various platform operating systems Python 3 runs
on. It would be very useful if you could try the
Hello,
on a german Windows installation I get problems with locale. If I run
that module as a script from a command window this is the output:
C:\Python31\Lib>locale.py
Locale aliasing:
Locale defaults as determined by getdefaultlocale():
--
goldtech schrieb:
Thank you to posters for help to my question. Seems I had trouble with
triple quotes strings in the PythonWin shell. But using the Idle shell
things work as expected. But this is probably another issue...any way,
w/Idle's shell I got the "action" regarding multiline strings I
ex
Iain Barnett schrieb:
On 21 Jan 2010, at 00:11, Gabriel Genellina wrote:
If you insist on using Python 3.1, there is another interface to PostgreSQL
called pg8000 that claims to be Python 3.x compatible (I've not actually tested
it).
[1] http://mail.python.org/pipermail/python-porting/2008-D
Terry Reedy schrieb:
In Python 3, a file opened in 'b' mode is for reading and writing bytes
with no encoding/decoding. I believe cvs works with files in text mode
as it returns and expects strings/text for reading and writing. Perhaps
the cvs doc should say must not be opened in 'b' mode. Not
Peter Otten schrieb:
> I'd preprocess the rows as I tend to prefer the simplest approach I can come
> up with. Example:
>
> def recode_rows(rows, source_encoding, target_encoding):
> def recode(field):
> if isinstance(field, unicode):
> return field.encode(target_encoding)
Hello,
I want to put data from a database into a tab separated text file. This
looks like a typical application for the csv module, but there is a
snag: the rows I get from the database module (kinterbasdb in this case)
contain unicode objects and numbers. And of course the unicode objects
contai
Filip Gruszczyński schrieb:
> One of the Python Zen rules is Explicit is better implicit. And yet
> it's ok to do:
>
> if x:
>do_sth
>
> when x is string or list. Since it's very comfy, I've got nothing
> against though. I am just curious, why is it so?
>
> And one more thing: is it ok to do
Sibylle Koczian schrieb:
> Hello,
>
> So I looked into the calendar module and made a LocalHTMLCalendar
> subclass. Putting in additional style classes for "my" dates wasn't
> difficult, but there is one thing I don't like at all: the methods
> formatmonth
Terry Reedy schrieb:
> Calendar is an ancient and not-well-maintained module which may even
> predate html. (There have even been suggestions that it be dropped.) I
> would not be surprised if the 'css' parameter of formatyearpage were an
> incomplete addition to the first version of HTMLCalendar
Hello,
I want to create a calendar with special text and background color for
holidays and some other dates. This is for printing, but a HTML file
seems a good choice, independent of changing text processing software
and easier to code with Python than a script which fills in a Word or
OpenOffice
Bruno Desthuilliers schrieb:
> Sibylle Koczian a écrit :
> (snip)
>>
>>
>> The print command inside the __init__ method isn't executed, so that
>> method doesn't seem to start at all.
>
> this often happens with (usually C-coded) immutable types. The
I do more or less understand this error message:
>>> import datetime
>>> x1 = datetime.date.today()
>>> x2 = datetime.date(x1)
Traceback (most recent call last):
File "", line 1, in
TypeError: an integer is required
I don't understand at all why I get the same message with this little
script:
t; /usr/local/lib/python2.5 ?
>
> Many thanks for a hint,
>
Which OS?
Windows: control panel / software will list all python packages which
came with separate installers.
Linux: the package manager of your distribution should tell you what's
installed.
--
Dr
bably left in the same directory you had "re.py" in?
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
need to tweak anything.
Sometimes you've got to choose between a slightly older version without
install worries and the newest source, but not at the moment.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
import cx_Oracle" all work.
>
Normally extensions should go into a subdirectory of
c:\python24\Lib\site-packages. Everything that comes with a windows
installer usually installs itself exactly there. In those cases no
messing about with PYTHONPATH or sys.path should be necessary.
HTH
Koc
least to the default table type). There simply hasn't
yet been time for every experienced MySQL user to get hit by the need to
commit things.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
meric (that check wouldn't need a regular expression if its
really so simple).
No Python here so I can't try it out to be more specific, but look for
HTMLParser in the library reference.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
uot;,
> quotechar="'", delimiter='\t')
> for line in reader:
> if cnt > 6:
> break
> for col in line:
>print col
> cnt = cnt + 1
>
> print p
>
Here you print every single cell, but p doesn't change.
HTH
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ce. And string2 is added to string1 if and only if it has length 1; if
not, string1 is set to the empty string. So either string1 is empty or
it has length k+1. Or did you mean checking if string1 is empty?
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [
Marc 'BlackJack' Rintsch schrieb:
> In <[EMAIL PROTECTED]>, Sibylle Koczian wrote:
>
>>
>>The web server is on my machine - doesn't it use its regional settings?
>
>
> The settings are per user and stored in environment variables. Apache
>
Marc 'BlackJack' Rintsch schrieb:
> In <[EMAIL PROTECTED]>, Sibylle Koczian wrote:
>
>
>>I'm writing a cgi script which only needs to run in a small LAN. I tried
>>to show dates in a reasonable format by using
>>
>
> That's the web se
uary'
>
What did you leave out? I get
Traceback (most recent call last):
File "", line 1, in -toplevel-
locale.nl_langinfo(locale.MON_1)
AttributeError: 'module' object has no attribute 'nl_langinfo'
(Python 2.4, german Windows XP Pro)
Moreover, 'J
ription of the right format works
('%d.%m.%Y'). But why doesn't the short form work as well?
Thank you for explanations or links to them,
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ef outer():
arg_in = 2
def inner():
x = arg_in * 3
return x
return inner()
>>> outer()
6
Seen from the inside of "inner" x is local, arg_in is in the enclosing
function.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
are of this, but the 'plus' shape existed before
> Christianity, too.
>
> =Tony.Meyer
And the Python logo _is_ a plus sign and _not_ a christian cross. Try
crucifying anybody on it.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
That's the french equivalent to the german
"python.exe hat ein Problem festgestellt und muss beendet werden."
Coming from Windows, I don't know the english version. I get this if I
don't correct the "coding: cp-1252".
Regards,
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
n that case, couldn't you return to Python 2.4.2
and use IDLE instead of PythonWin? Doesn't print your scripts with
syntax highlighting, which is a pity, but otherwise ok, I think.
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
omical attempt:
>
> "Who order holds is only to putrid for looking for - a genius grasps the
> chaos"
>
Automated translation in a nutshell.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
e for (corresponding to .commit() and
> .rollback() methods of the DB-API2 connection object, BEGIN is issued
> implicitly), then the MySQL documentation will probably answer that.
>
What sort of table do you use? MyISAM isn't transaction oriented, and
that's the standard. S
What a stupid comparison! A computer without Windows is a computer with
another operating system. It isn't even comparable to a car with
specially expensive non standard seats.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http
ht not
be a problem for users with english Windows installations who can get
bitten anyway by the space in "program files". But in my german
installation I never had a reason to install Python outside of "Programme".
Thanks for any help,
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber schrieb:
> On Fri, 24 Jun 2005 13:42:39 +0200, Sibylle Koczian
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>
> ll[2:] = ...
>
> is not an object creation, merely an access into an existing object.
>
That
of the list,
and this copy is sorted, not the original list. Right so far?
But assignment to the slice:
>>> ll[2:] = [2, 4]
>>> ll
[3, 1, 2, 4]
_does_ change my original ll.
What did I misunderstand?
Thanks,
Sibylle
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt
s script consists only of function (or
class) definitions.
You can either
- open the interactive python interpreter and type:
import ip_adress
ip_adress.my_addr()
or, probably simpler,
- add the following two lines to your script, after the definition of
your function:
if __name__ == '
Pokerface schrieb:
Gotta say, is we let this man write the docs for us, they'll sure as
sugar be more colorful than the ones we presently have, even if he
doesn't manage to make them better.
"The [insert relation]ing Python interpreter is usually installed
as /usr/local/bin/python on those g*dd
ys call locale.setlocale() and afterwards combine your
"printable" string yourself.
--
Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg
Tel.: (0821) 598-2400, Fax : (0821) 598-2410
e-mail : [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ror: No module named fixedpoint
...
Very helpful, not only directories, but full module names. I hope I'll
remember (or find) "python -v -v" next time around.
Python is nice, but Python + c.l.p. is a Really Good Thing.
Koczian
--
Dr. Sibylle Koczian
Universitaetsbibliothek, A
1 - 100 of 103 matches
Mail list logo